[03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21: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: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:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37: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: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: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: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:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53: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: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: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:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]OFD Sender: No OFD packet to send [04:04:47]OFD Sender: No OFD packet to send [04:04:52]OFD Sender: No OFD packet to send [04:04:57]OFD Sender: No OFD packet to send [04:05:02]OFD Sender: No OFD packet to send [04:05:07]OFD Sender: No OFD packet to send [04:05:12]OFD Sender: No OFD packet to send [04:05:17]OFD Sender: No OFD packet to send [04:05:22]OFD Sender: No OFD packet to send [04:05: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:04]accept exits with 9 [04:07:04]New connection [04:07:04]New thread 3067346276 created [04:07:04]Thread 3067489636 joined [04:07:04]Waiting for new connection... [04:07:04] Sock 9.Parse request [04:07:04]Sock 9.Check first char [04:07:04]Sock 9.First char is OK [04:07:04]request: POST /json_proto HTTP/1.0 [04:07:04]Method: POST [04:07:04]URL: /json_proto [04:07:04]Method is POST - this is cgi request [04:07:04]url: /json_proto [04:07:04]query_string will be loaded in cgi processing [04:07:04]execute_cgi json_proto POST (null) [04:07:04]execute_cgi path=json_proto method=POST [04:07:04]POST find Content-Length [04:07:04]Host: 172.17.51.3:8080 [04:07:04]Content-Length: 688 [04:07:04]Content-Type: application/json [04:07:04] [04:07:04]POST finish read [04:07:04]Found Content-Length = 688 [04:07:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8200.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:04]execute_script... [04:07:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8200.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:07:04]POST & json_proto [04:07:04]process_json_proto [04:07:04]json parsed OK: [04:07:04]protocol is kg_v1.0 [04:07:04]action value=close_receipt [04:07:04]process_action close_receipt [04:07:04]cmd_close_receipt [04:07:04]MH_GetDate [04:07:04]Write to MH i2c: F0 00 00 A7 20 B6 [04:07:04]Write i2c OK [04:07:04]MH_I2C_Read... [04:07:04]Read from MH i2c: F0 [04:07:04]MH_I2C_Read... [04:07:04]Read from MH i2c: F0 09 00 [04:07:04]MH_I2C_Read... [04:07:04]Read from MH i2c: F0 09 00 A7 20 00 6B D3 15 67 04 C1 95 66 39 [04:07:04]GetLastDocTimeStamp 1729479749 [04:07:04]current date 1729483627 [04:07:04]FM_GetShiftState [04:07:04]SAM_PROTO_GetShiftState [04:07:04]wFMCommunicate request_size=4 [04:07:04]MH_SAM_APDU [04:07:04]CAPDU: 80 13 01 00 [04:07:04]Write to MH i2c: E2 08 00 A8 20 80 13 01 00 00 00 00 00 45 [04:07:04]Write i2c OK [04:07:04]MH_I2C_Read... [04:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:05]Read from MH i2c: E2 [04:07:05]MH_I2C_Read... [04:07:05]Read from MH i2c: E2 0E 00 [04:07:05]MH_I2C_Read... [04:07:05]Read from MH i2c: E2 0E 00 A8 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C1 [04:07:05]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [04:07:05]wFMCommunicate OK [04:07:05]SAM_PROTO_GetShiftState done [04:07:05]FM_GetShiftState done [04:07:05]opened in 1729471058 [04:07:05]opened+sec_in_day 1729557458 [04:07:05]quantity*price = 450076 [04:07:05]sum+1 = 450077 [04:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 4500.00 Внесено: 8200.00 СДАЧА: 3700.00 НСП 1% : 39.83 НДС 12% : 477.96 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 8 21.10.2024 04:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30511 ФПД: 257875439863699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T040707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30511&fm=257875439863699&tin=02508201610067®Number=0000000000186857&sum=450000 [04:07:06]StoreToDocumentArchive [04:07:06]shift 115 fd 30511 [04:07:06]save to /storage/0115/doc_00030511 [04:07:06]save last doc name /storage/0115/doc_00030511 to /storage/kkm_last_doc_name [04:07:06]save OK [04:07:06]Clear old archive folders... [04:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:07:06]tlvbuf is 01E56080 [04:07:06]SAM_PROTO_ClearQueue [04:07:06]wFMCommunicate request_size=4 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 09 00 00 [04:07:06]Write to MH i2c: E2 08 00 B5 20 80 09 00 00 00 00 00 00 47 [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [04:07:06]RAPDU: 90 00 [04:07:06]wFMCommunicate OK [04:07:06]SAM_PROTO_ClearQueue done [04:07:06]KKMCreateOFDPacket [04:07:06]OFDProtocolAddRootSTLVToBuf [04:07:06]FM_MakeSignedData [04:07:06]FM_MakeSignedData [04:07:06]SAM_PROTO_SignData [04:07:06]wFMCommunicate request_size=4 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 0D 01 02 [04:07:06]Write to MH i2c: E2 08 00 B6 20 80 0D 01 02 00 00 00 00 4F [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [04:07:06]RAPDU: 90 00 [04:07:06]wFMCommunicate OK [04:07:06]wFMCommunicate request_size=255 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6B D3 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 77 00 [04:07:06]Write to MH i2c: E2 02 01 B7 20 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6B D3 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 77 00 00 00 F9 [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 B7 20 00 90 00 4B [04:07:06]RAPDU: 90 00 [04:07:06]wFMCommunicate OK [04:07:06]wFMCommunicate request_size=16 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EA 89 4D FD 47 93 [04:07:06]Write to MH i2c: E2 13 00 B8 20 80 0D 02 02 0B 00 00 35 04 06 00 EA 89 4D FD 47 93 00 00 3E [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 03 00 B8 20 00 90 00 4C [04:07:06]RAPDU: 90 00 [04:07:06]wFMCommunicate OK [04:07:06]wFMCommunicate request_size=4 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 0D 03 02 [04:07:06]Write to MH i2c: E2 08 00 B9 20 80 0D 03 02 00 00 00 00 54 [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 0B 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 0B 00 B9 20 00 85 F2 7C 44 B2 F4 32 BA 90 00 1E [04:07:06]RAPDU: 85 F2 7C 44 B2 F4 32 BA 90 00 [04:07:06]wFMCommunicate OK [04:07:06]SAM_PROTO_SignData done [04:07:06]FM_MakeSignedData done [04:07:06]CreateOFDProtocolMessage [04:07:06]wFMCommunicate request_size=4 [04:07:06]MH_SAM_APDU [04:07:06]CAPDU: 80 11 00 00 [04:07:06]Write to MH i2c: E2 08 00 BA 20 80 11 00 00 00 00 00 00 54 [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:06]Read from MH i2c: E2 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 17 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: E2 17 00 BA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [04:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:07:06]wFMCommunicate OK [04:07:06]CreateOFDProtocolMessage done [04:07:06]OFDSenderStorePacket 30511 [04:07:06]StoreOFDPacket docnum=30511 [04:07:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 EC A0 0D 01 6C 41 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6B D3 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 77 00 00 35 04 06 00 EA 89 4D FD 47 93 85 F2 7C 44 B2 F4 32 BA [04:07:06]CheckFolder [04:07:06]dirname=/storage/ofd_packets [04:07:06]CheckFolder done [04:07:06]ProducePacketName [04:07:06]name=ofd_packets/00030511 [04:07:06]NVStorageSaveData ofd_packets/00030511 [04:07:06]File name is /storage/ofd_packets/00030511 [04:07:06]Write 307 bytes [04:07:06]NVStorageSaveData done [04:07:06]OFDSenderStorePacket done [04:07:06]KKMCreateOFDPacket done [04:07:06]NVStorageSaveData kkm_last_timestamp [04:07:06]File name is /storage/kkm_last_timestamp [04:07:06]Write 4 bytes [04:07:06]NVStorageSaveData done [04:07:06]ExternCall_PrintAddStr [04:07:06]wPrintStart [04:07:06]Write to MH i2c: 01 00 00 BB 20 DB [04:07:06]Write i2c OK [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: 01 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: 01 07 00 [04:07:06]MH_I2C_Read... [04:07:06]Read from MH i2c: 01 07 00 BB 20 00 00 00 00 00 FF 0F F0 [04:07:06]RasterBufferAndPrint [04:07:06]line Счет N : (1)342913 [04:07:06]line ИНН: 02508201610067 [04:07:06]line Контрольно-Кассовый Чек [04:07:06]line ПРОДАЖА [04:07:06]line ТРК (МРК, ГНК) : 51 [04:07:06]line Товар: 2710194210 [04:07:06]line D-ENERGY Дт-К-2 [04:07:06]line 58.300 * 77.20 [04:07:06]line = 4500.76 [04:07:06]line НДС 12% НСП 1% [04:07:06]line > о реализуемом товаре [04:07:06]line ОКРУГЛЕНИЕ: -0.76 [04:07:06]line ИТОГО: 4500.00 [04:07:06]line Внесено: 8200.00 [04:07:06]line СДАЧА: 3700.00 [04:07:06]line НСП 1% : 39.83 [04:07:06]line НДС 12% : 477.96 [04:07:06]line Наличными: 4500.00 [04:07:06]line Безнал.: 0.00 [04:07:06]line Место: АЗС № 78 "Партнер Нефть" [04:07:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [04:07:06]line СНО: Общий режим [04:07:06]line Чек 8 21.10.2024 04:07 [04:07:06]line Смена: 115 ФФД: 1.0 [04:07:06]line ЗНМ: 0300000137 [04:07:06]line РНМ: 0000000000186857 [04:07:06]line Версия ККМ: v1.0 [04:07:06]line ФМ: 0000000002094219 [04:07:06]line ФД: 30511 [04:07:06]line ФПД: 257875439863699 [04:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T040707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30511&fm=257875439863699&tin=02508201610067®Number=0000000000186857&sum=450000 [04:07:07]OFD Sender: Processing packet 30511 [packets to send 10, broken 9] [04:07:07]ProducePacketName [04:07:07]name=ofd_packets/00030511 [04:07:07]OFD Sender: To server: pG, [04:07:07]CommunicateWithHost lk.salyk.kg:30040 [04:07:07]ConnectInit lk.salyk.kg [04:07:07]written 0, free lines is 4095 [04:07:07]Connected sock=10 [04:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 EC A0 0D 01 6C 41 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 6B D3 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 77 00 00 35 04 06 00 EA 89 4D FD 47 93 85 F2 7C 44 B2 F4 32 BA [04:07:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F7 DF 47 00 81 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 32 30 39 34 32 31 39 10 04 04 00 2F 77 00 00 F4 03 04 00 ED 7D 15 67 B6 04 01 00 00 CE 1E DF 94 E1 CE 10 2C [04:07:07]CommunicateWithHost err = 0 [04:07:07]CheckOFDResponse [04:07:07]1017 (14) - 77093643461234 [04:07:07]1041 (16) - 0000000002094219 [04:07:07]1040 (4) - 30511 [04:07:07]1012 (4) - 20.10.2024 22:02 [04:07:07]1206 (1) - 0 [04:07:07]OFD Sender: Remove packet 30511 [04:07:07]ProducePacketName [04:07:07]name=ofd_packets/00030511 [04:07:07]NVStorageDeleteData [04:07:07]Write to MH i2c: 01 00 00 E6 20 06 [04:07:07]Write i2c OK [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: 01 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: 01 07 00 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: 01 07 00 E6 20 00 00 00 00 00 EE 0C 07 [04:07:07]RasterBufferAndPrint [04:07:07]line [04:07:07]line [04:07:07]line [04:07:07]line [04:07:07]line [04:07:07]written 0, free lines is 3316 [04:07:07]MH_Cut [04:07:07]Write to MH i2c: D1 01 00 ED 20 01 DF [04:07:07]Write i2c OK [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: D1 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: D1 01 00 [04:07:07]MH_I2C_Read... [04:07:07]Read from MH i2c: D1 01 00 ED 20 00 DE [04:07:07]Write to MH i2c: 01 00 00 EE 20 0E [04:07:07]Write i2c OK [04:07:07]MH_I2C_Read... [04:07:07]OFD Sender: No OFD packet to send [04:07:08]*** Cut start [04:07:08]*** Partial cut [04:07:08]*** CUTSNS_PIN = 1 [04:07:08]*** CUTSNS_PIN = 0 [04:07:08]*** Brake cut motor [04:07:08]Read from MH i2c: 01 [04:07:08]MH_I2C_Read... [04:07:08]*** Stop cut motor [04:07:08]*** Cut end [04:07:08]Read from MH i2c: 01 07 00 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: 01 07 00 EE 20 00 00 00 00 00 FF 0F 23 [04:07:08]process_action close_receipt done [04:07:08]requested_data is exist [04:07:08]produce_requested_data [04:07:08]requested_item fm.sn is exist - process it [04:07:08]wFMCommunicate request_size=4 [04:07:08]MH_SAM_APDU [04:07:08]CAPDU: 80 11 00 00 [04:07:08]Write to MH i2c: E2 08 00 EF 20 80 11 00 00 00 00 00 00 89 [04:07:08]Write i2c OK [04:07:08]MH_I2C_Read... [04:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:07:08]Read from MH i2c: E2 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: E2 17 00 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: E2 17 00 EF 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [04:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:07:08]wFMCommunicate OK [04:07:08]requested_item fd.num is exist - process it [04:07:08]SAM_PROTO_GetFieldsCounters [04:07:08]wFMCommunicate request_size=4 [04:07:08]MH_SAM_APDU [04:07:08]CAPDU: 80 13 00 00 [04:07:08]Write to MH i2c: E2 08 00 F0 20 80 13 00 00 00 00 00 00 8C [04:07:08]Write i2c OK [04:07:08]MH_I2C_Read... [04:07:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:07:08]Read from MH i2c: E2 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: E2 62 00 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: E2 62 00 F0 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 77 00 00 0E 04 04 00 73 00 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 E3 [04:07:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:07:08]wFMCommunicate OK [04:07:08]SAM_PROTO_GetFieldsCounters done [04:07:08]requested_item shift.num is exist - process it [04:07:08]requested_item shift.opened is exist - process it [04:07:08]req_shift_opened [04:07:08]FM_GetShiftState [04:07:08]SAM_PROTO_GetShiftState [04:07:08]wFMCommunicate request_size=4 [04:07:08]MH_SAM_APDU [04:07:08]CAPDU: 80 13 01 00 [04:07:08]Write to MH i2c: E2 08 00 F1 20 80 13 01 00 00 00 00 00 8E [04:07:08]Write i2c OK [04:07:08]MH_I2C_Read... [04:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:07:08]Read from MH i2c: E2 [04:07:08]MH_I2C_Read... [04:07:08]Read from MH i2c: E2 0E 00 [04:07:08]MH_I2C_Read... [04:07:09]Read from MH i2c: E2 0E 00 F1 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0A [04:07:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [04:07:09]wFMCommunicate OK [04:07:09]SAM_PROTO_GetShiftState done [04:07:09]FM_GetShiftState done [04:07:09]req_shift_opened done [04:07:09]requested_item shift.open_date is exist - process it [04:07:09]req_shift_open_date [04:07:09]req_shift_open_date done [04:07:09]produce_requested_data done [04:07:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30511,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [04:07:09]process_action_free close_receipt [04:07:09]json_value_free [04:07:09]json_value_free done [04:07:09]process_json_proto returns [04:07:09]Send response to host [04:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30511,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [04:07:09]free response buf [04:07:09]execute_script done [04:07:09]execute_script returns [04:07:09]free content buf [04:07:09]Sock 9.Close socket [04:07:09]Sock 9.Thread stoped [04:07:12]OFD Sender: No OFD packet to send [04:07:17]OFD Sender: No OFD packet to send [04:07:22]OFD Sender: No OFD packet to send [04:07:27]OFD Sender: No OFD packet to send [04:07:32]OFD Sender: No OFD packet to send [04:07:37]OFD Sender: No OFD packet to send [04:07:42]OFD Sender: No OFD packet to send [04:07:47]OFD Sender: No OFD packet to send [04:07:52]OFD Sender: No OFD packet to send [04:07:57]OFD Sender: No OFD packet to send [04:08:02]OFD Sender: No OFD packet to send [04:08:07]OFD Sender: No OFD packet to send [04:08:12]OFD Sender: No OFD packet to send [04:08:17]OFD Sender: No OFD packet to send [04:08:22]OFD Sender: No OFD packet to send [04:08:27]OFD Sender: No OFD packet to send [04:08:32]OFD Sender: No OFD packet to send [04:08:37]OFD Sender: No OFD packet to send [04:08:42]OFD Sender: No OFD packet to send [04:08:47]OFD Sender: No OFD packet to send [04:08:52]OFD Sender: No OFD packet to send [04:08:57]OFD Sender: No OFD packet to send [04:09:02]OFD Sender: No OFD packet to send [04:09:07]OFD Sender: No OFD packet to send [04:09:12]OFD Sender: No OFD packet to send [04:09:17]OFD Sender: No OFD packet to send [04:09:22]OFD Sender: No OFD packet to send [04:09:27]OFD Sender: No OFD packet to send [04:09:32]OFD Sender: No OFD packet to send [04:09:37]OFD Sender: No OFD packet to send [04:09:42]OFD Sender: No OFD packet to send [04:09: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: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:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]accept exits with 7 [04:22:33]New connection [04:22:33]New thread 3067489636 created [04:22:33]Thread 3067346276 joined [04:22:33]Waiting for new connection... [04:22:33] Sock 7.Parse request [04:22:33]Sock 7.Check first char [04:22:33]Sock 7.First char is OK [04:22:33]request: POST /json_proto HTTP/1.0 [04:22:33]Method: POST [04:22:33]URL: /json_proto [04:22:33]Method is POST - this is cgi request [04:22:33]url: /json_proto [04:22:33]query_string will be loaded in cgi processing [04:22:33]execute_cgi json_proto POST (null) [04:22:33]execute_cgi path=json_proto method=POST [04:22:33]POST find Content-Length [04:22:33]Host: 172.17.51.3:8080 [04:22:33]Content-Length: 688 [04:22:33]Content-Type: application/json [04:22:33] [04:22:33]POST finish read [04:22:33]Found Content-Length = 688 [04:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 53.310, "sum" : 4115.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 4115.00, "payments": [ { "type": 0, "sum" : 4115.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:33]execute_script... [04:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 53.310, "sum" : 4115.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 4115.00, "payments": [ { "type": 0, "sum" : 4115.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:33]POST & json_proto [04:22:33]process_json_proto [04:22:33]json parsed OK: [04:22:33]protocol is kg_v1.0 [04:22:33]action value=close_receipt [04:22:33]process_action close_receipt [04:22:33]cmd_close_receipt [04:22:33]MH_GetDate [04:22:33]Write to MH i2c: F0 00 00 F2 20 01 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: F0 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: F0 09 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: F0 09 00 F2 20 00 0C D7 15 67 04 C1 95 66 29 [04:22:33]GetLastDocTimeStamp 1729483627 [04:22:33]current date 1729484556 [04:22:33]FM_GetShiftState [04:22:33]SAM_PROTO_GetShiftState [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 13 01 00 [04:22:33]Write to MH i2c: E2 08 00 F3 20 80 13 01 00 00 00 00 00 90 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0E 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0E 00 F3 20 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0C [04:22:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [04:22:33]wFMCommunicate OK [04:22:33]SAM_PROTO_GetShiftState done [04:22:33]FM_GetShiftState done [04:22:33]opened in 1729471058 [04:22:33]opened+sec_in_day 1729557458 [04:22:33]quantity*price = 411553 [04:22:33]sum+1 = 411554 [04:22:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 4115.00 Внесено: 7000.00 СДАЧА: 2885.00 НСП 1% : 36.42 НДС 12% : 437.05 Наличными: 4115.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 9 21.10.2024 04:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30512 ФПД: 196564463861293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T042236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30512&fm=196564463861293&tin=02508201610067®Number=0000000000186857&sum=411500 [04:22:34]StoreToDocumentArchive [04:22:34]shift 115 fd 30512 [04:22:34]save to /storage/0115/doc_00030512 [04:22:34]save last doc name /storage/0115/doc_00030512 to /storage/kkm_last_doc_name [04:22:34]save OK [04:22:34]Clear old archive folders... [04:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:22:34]tlvbuf is B6FDB720 [04:22:34]SAM_PROTO_ClearQueue [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 09 00 00 [04:22:34]Write to MH i2c: E2 08 00 00 21 80 09 00 00 00 00 00 00 93 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 00 21 00 90 00 95 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]SAM_PROTO_ClearQueue done [04:22:34]KKMCreateOFDPacket [04:22:34]OFDProtocolAddRootSTLVToBuf [04:22:34]FM_MakeSignedData [04:22:34]FM_MakeSignedData [04:22:34]SAM_PROTO_SignData [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 01 02 [04:22:34]Write to MH i2c: E2 08 00 01 21 80 0D 01 02 00 00 00 00 9B [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 01 21 00 90 00 96 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]wFMCommunicate request_size=255 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3E D0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 47 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 47 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 AA 00 00 00 00 07 04 06 00 6C 47 06 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 0C D7 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 77 00 [04:22:34]Write to MH i2c: E2 02 01 02 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3E D0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 47 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 47 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 AA 00 00 00 00 07 04 06 00 6C 47 06 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 0C D7 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 77 00 00 00 F4 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 02 21 00 90 00 97 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]wFMCommunicate request_size=16 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 C6 3B 0B 3E 2D [04:22:34]Write to MH i2c: E2 13 00 03 21 80 0D 02 02 0B 00 00 35 04 06 00 B2 C6 3B 0B 3E 2D 00 00 1C [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 03 00 03 21 00 90 00 98 [04:22:34]RAPDU: 90 00 [04:22:34]wFMCommunicate OK [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 0D 03 02 [04:22:34]Write to MH i2c: E2 08 00 04 21 80 0D 03 02 00 00 00 00 A0 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:34]Read from MH i2c: E2 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 0B 00 [04:22:34]MH_I2C_Read... [04:22:34]Read from MH i2c: E2 0B 00 04 21 00 C9 76 E9 EB A4 FE D1 35 90 00 5C [04:22:34]RAPDU: C9 76 E9 EB A4 FE D1 35 90 00 [04:22:34]wFMCommunicate OK [04:22:34]SAM_PROTO_SignData done [04:22:34]FM_MakeSignedData done [04:22:34]CreateOFDProtocolMessage [04:22:34]wFMCommunicate request_size=4 [04:22:34]MH_SAM_APDU [04:22:34]CAPDU: 80 11 00 00 [04:22:34]Write to MH i2c: E2 08 00 05 21 80 11 00 00 00 00 00 00 A0 [04:22:34]Write i2c OK [04:22:34]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 05 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EE [04:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:22:35]wFMCommunicate OK [04:22:35]CreateOFDProtocolMessage done [04:22:35]OFDSenderStorePacket 30512 [04:22:35]StoreOFDPacket docnum=30512 [04:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DB FE 0D 01 47 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3E D0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 47 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 47 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 AA 00 00 00 00 07 04 06 00 6C 47 06 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 0C D7 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 77 00 00 35 04 06 00 B2 C6 3B 0B 3E 2D C9 76 E9 EB A4 FE D1 35 [04:22:35]CheckFolder [04:22:35]dirname=/storage/ofd_packets [04:22:35]CheckFolder done [04:22:35]ProducePacketName [04:22:35]name=ofd_packets/00030512 [04:22:35]NVStorageSaveData ofd_packets/00030512 [04:22:35]File name is /storage/ofd_packets/00030512 [04:22:35]Write 307 bytes [04:22:35]NVStorageSaveData done [04:22:35]OFDSenderStorePacket done [04:22:35]KKMCreateOFDPacket done [04:22:35]NVStorageSaveData kkm_last_timestamp [04:22:35]File name is /storage/kkm_last_timestamp [04:22:35]Write 4 bytes [04:22:35]NVStorageSaveData done [04:22:35]ExternCall_PrintAddStr [04:22:35]wPrintStart [04:22:35]Write to MH i2c: 01 00 00 06 21 27 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 06 21 00 00 00 00 00 FF 0F 3C [04:22:35]RasterBufferAndPrint [04:22:35]line Счет N : (1)342914 [04:22:35]line ИНН: 02508201610067 [04:22:35]line Контрольно-Кассовый Чек [04:22:35]line ПРОДАЖА [04:22:35]line ТРК (МРК, ГНК) : 51 [04:22:35]line Товар: 2710194210 [04:22:35]line D-ENERGY Дт-К-2 [04:22:35]line 53.310 * 77.20 [04:22:35]line = 4115.53 [04:22:35]line НДС 12% НСП 1% [04:22:35]line > о реализуемом товаре [04:22:35]line ОКРУГЛЕНИЕ: -0.53 [04:22:35]line ИТОГО: 4115.00 [04:22:35]line Внесено: 7000.00 [04:22:35]line СДАЧА: 2885.00 [04:22:35]line НСП 1% : 36.42 [04:22:35]line НДС 12% : 437.05 [04:22:35]line Наличными: 4115.00 [04:22:35]line Безнал.: 0.00 [04:22:35]line Место: АЗС № 78 "Партнер Нефть" [04:22:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [04:22:35]line СНО: Общий режим [04:22:35]line Чек 9 21.10.2024 04:22 [04:22:35]line Смена: 115 ФФД: 1.0 [04:22:35]line ЗНМ: 0300000137 [04:22:35]line РНМ: 0000000000186857 [04:22:35]line Версия ККМ: v1.0 [04:22:35]line ФМ: 0000000002094219 [04:22:35]line ФД: 30512 [04:22:35]line ФПД: 196564463861293 [04:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T042236&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30512&fm=196564463861293&tin=02508201610067®Number=0000000000186857&sum=411500 [04:22:35]OFD Sender: Processing packet 30512 [packets to send 10, broken 9] [04:22:35]ProducePacketName [04:22:35]name=ofd_packets/00030512 [04:22:35]OFD Sender: To server: pG, [04:22:35]CommunicateWithHost lk.salyk.kg:30040 [04:22:35]ConnectInit lk.salyk.kg [04:22:35]written 0, free lines is 4095 [04:22:35]Connected sock=9 [04:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DB FE 0D 01 47 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 3E D0 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 A1 47 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 47 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 AA 00 00 00 00 07 04 06 00 6C 47 06 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 0C D7 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 77 00 00 35 04 06 00 B2 C6 3B 0B 3E 2D C9 76 E9 EB A4 FE D1 35 [04:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 13 45 47 00 4E 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 77 00 00 F4 03 04 00 8E 81 15 67 B6 04 01 00 00 E5 25 18 D7 20 D7 0C 4C [04:22:35]CommunicateWithHost err = 0 [04:22:35]CheckOFDResponse [04:22:35]1017 (14) - 77093643461234 [04:22:35]1041 (16) - 0000000002094219 [04:22:35]1040 (4) - 30512 [04:22:35]1012 (4) - 20.10.2024 22:17 [04:22:35]1206 (1) - 0 [04:22:35]OFD Sender: Remove packet 30512 [04:22:35]ProducePacketName [04:22:35]name=ofd_packets/00030512 [04:22:35]NVStorageDeleteData [04:22:35]Write to MH i2c: 01 00 00 31 21 52 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 F5 0C 5A [04:22:35]RasterBufferAndPrint [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]line [04:22:35]written 0, free lines is 3324 [04:22:35]MH_Cut [04:22:35]Write to MH i2c: D1 01 00 38 21 01 2B [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: D1 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: D1 01 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: D1 01 00 38 21 00 2A [04:22:35]Write to MH i2c: 01 00 00 39 21 5A [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:36]OFD Sender: No OFD packet to send [04:22:36]*** Cut start [04:22:36]*** Partial cut [04:22:36]*** CUTSNS_PIN = 1 [04:22:36]*** CUTSNS_PIN = 0 [04:22:36]*** Brake cut motor [04:22:37]Read from MH i2c: 01 [04:22:37]MH_I2C_Read... [04:22:37]*** Stop cut motor [04:22:37]*** Cut end [04:22:37]Read from MH i2c: 01 07 00 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: 01 07 00 39 21 00 00 00 00 00 FF 0F 6F [04:22:37]process_action close_receipt done [04:22:37]requested_data is exist [04:22:37]produce_requested_data [04:22:37]requested_item fm.sn is exist - process it [04:22:37]wFMCommunicate request_size=4 [04:22:37]MH_SAM_APDU [04:22:37]CAPDU: 80 11 00 00 [04:22:37]Write to MH i2c: E2 08 00 3A 21 80 11 00 00 00 00 00 00 D5 [04:22:37]Write i2c OK [04:22:37]MH_I2C_Read... [04:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:37]Read from MH i2c: E2 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 17 00 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 17 00 3A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 23 [04:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:22:37]wFMCommunicate OK [04:22:37]requested_item fd.num is exist - process it [04:22:37]SAM_PROTO_GetFieldsCounters [04:22:37]wFMCommunicate request_size=4 [04:22:37]MH_SAM_APDU [04:22:37]CAPDU: 80 13 00 00 [04:22:37]Write to MH i2c: E2 08 00 3B 21 80 13 00 00 00 00 00 00 D8 [04:22:37]Write i2c OK [04:22:37]MH_I2C_Read... [04:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:37]Read from MH i2c: E2 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 62 00 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 62 00 3B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 77 00 00 0E 04 04 00 73 00 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 33 [04:22:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 77 00 00 0E 04 04 00 73 00 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:22:37]wFMCommunicate OK [04:22:37]SAM_PROTO_GetFieldsCounters done [04:22:37]requested_item shift.num is exist - process it [04:22:37]requested_item shift.opened is exist - process it [04:22:37]req_shift_opened [04:22:37]FM_GetShiftState [04:22:37]SAM_PROTO_GetShiftState [04:22:37]wFMCommunicate request_size=4 [04:22:37]MH_SAM_APDU [04:22:37]CAPDU: 80 13 01 00 [04:22:37]Write to MH i2c: E2 08 00 3C 21 80 13 01 00 00 00 00 00 DA [04:22:37]Write i2c OK [04:22:37]MH_I2C_Read... [04:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:37]Read from MH i2c: E2 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 0E 00 [04:22:37]MH_I2C_Read... [04:22:37]Read from MH i2c: E2 0E 00 3C 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 56 [04:22:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [04:22:37]wFMCommunicate OK [04:22:37]SAM_PROTO_GetShiftState done [04:22:37]FM_GetShiftState done [04:22:37]req_shift_opened done [04:22:37]requested_item shift.open_date is exist - process it [04:22:37]req_shift_open_date [04:22:37]req_shift_open_date done [04:22:37]produce_requested_data done [04:22:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30512,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [04:22:37]process_action_free close_receipt [04:22:37]json_value_free [04:22:37]json_value_free done [04:22:37]process_json_proto returns [04:22:37]Send response to host [04:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30512,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [04:22:37]free response buf [04:22:37]execute_script done [04:22:37]execute_script returns [04:22:37]free content buf [04:22:37]Sock 7.Close socket [04:22:37]Sock 7.Thread stoped [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49: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: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: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:12]OFD Sender: No OFD packet to send [04:51:17]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: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: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: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:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:30]accept exits with 10 [04:58:30]New connection [04:58:30]New thread 3067346276 created [04:58:30]Thread 3067489636 joined [04:58:30]Waiting for new connection... [04:58:30] Sock 10.Parse request [04:58:30]Sock 10.Check first char [04:58:30]Sock 10.First char is OK [04:58:30]request: POST /json_proto HTTP/1.0 [04:58:30]Method: POST [04:58:30]URL: /json_proto [04:58:30]Method is POST - this is cgi request [04:58:30]url: /json_proto [04:58:30]query_string will be loaded in cgi processing [04:58:30]execute_cgi json_proto POST (null) [04:58:30]execute_cgi path=json_proto method=POST [04:58:30]POST find Content-Length [04:58:30]Host: 172.17.51.3:8080 [04:58:30]Content-Length: 688 [04:58:30]Content-Type: application/json [04:58:30] [04:58:30]POST finish read [04:58:30]Found Content-Length = 688 [04:58:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:30]execute_script... [04:58:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:30]POST & json_proto [04:58:30]process_json_proto [04:58:30]json parsed OK: [04:58:30]protocol is kg_v1.0 [04:58:30]action value=close_receipt [04:58:30]process_action close_receipt [04:58:30]cmd_close_receipt [04:58:30]MH_GetDate [04:58:30]Write to MH i2c: F0 00 00 3D 21 4D [04:58:30]Write i2c OK [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: F0 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: F0 09 00 [04:58:30]MH_I2C_Read... [04:58:30]Read from MH i2c: F0 09 00 3D 21 00 79 DF 15 67 04 C1 95 66 EA [04:58:30]GetLastDocTimeStamp 1729484556 [04:58:30]current date 1729486713 [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 3E 21 80 13 01 00 00 00 00 00 DC [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 3E 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 58 [04:58:30]RAPDU: 09 00 01 52 A2 15 67 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]opened in 1729471058 [04:58:30]opened+sec_in_day 1729557458 [04:58:30]quantity*price = 100051 [04:58:30]sum+1 = 100052 [04:58:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 10 21.10.2024 04:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30513 ФПД: 94453441174912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T045833&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30513&fm=94453441174912&tin=02508201610067®Number=0000000000186857&sum=100000 [04:58:32]StoreToDocumentArchive [04:58:32]shift 115 fd 30513 [04:58:32]save to /storage/0115/doc_00030513 [04:58:32]save last doc name /storage/0115/doc_00030513 to /storage/kkm_last_doc_name [04:58:32]save OK [04:58:32]Clear old archive folders... [04:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:58:32]tlvbuf is 01DEA590 [04:58:32]SAM_PROTO_ClearQueue [04:58:32]wFMCommunicate request_size=4 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 09 00 00 [04:58:32]Write to MH i2c: E2 08 00 4B 21 80 09 00 00 00 00 00 00 DE [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 4B 21 00 90 00 E0 [04:58:32]RAPDU: 90 00 [04:58:32]wFMCommunicate OK [04:58:32]SAM_PROTO_ClearQueue done [04:58:32]KKMCreateOFDPacket [04:58:32]OFDProtocolAddRootSTLVToBuf [04:58:32]FM_MakeSignedData [04:58:32]FM_MakeSignedData [04:58:32]SAM_PROTO_SignData [04:58:32]wFMCommunicate request_size=4 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 0D 01 02 [04:58:32]Write to MH i2c: E2 08 00 4C 21 80 0D 01 02 00 00 00 00 E6 [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 4C 21 00 90 00 E1 [04:58:32]RAPDU: 90 00 [04:58:32]wFMCommunicate OK [04:58:32]wFMCommunicate request_size=255 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 79 DF 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 77 00 [04:58:32]Write to MH i2c: E2 02 01 4D 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 79 DF 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 77 00 00 00 39 [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 4D 21 00 90 00 E2 [04:58:32]RAPDU: 90 00 [04:58:32]wFMCommunicate OK [04:58:32]wFMCommunicate request_size=16 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 55 E7 A7 CF 1D 80 [04:58:32]Write to MH i2c: E2 13 00 4E 21 80 0D 02 02 0B 00 00 35 04 06 00 55 E7 A7 CF 1D 80 00 00 8D [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 03 00 4E 21 00 90 00 E3 [04:58:32]RAPDU: 90 00 [04:58:32]wFMCommunicate OK [04:58:32]wFMCommunicate request_size=4 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 0D 03 02 [04:58:32]Write to MH i2c: E2 08 00 4F 21 80 0D 03 02 00 00 00 00 EB [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 0B 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 0B 00 4F 21 00 31 BC CD 3C 15 B0 54 D0 90 00 CB [04:58:32]RAPDU: 31 BC CD 3C 15 B0 54 D0 90 00 [04:58:32]wFMCommunicate OK [04:58:32]SAM_PROTO_SignData done [04:58:32]FM_MakeSignedData done [04:58:32]CreateOFDProtocolMessage [04:58:32]wFMCommunicate request_size=4 [04:58:32]MH_SAM_APDU [04:58:32]CAPDU: 80 11 00 00 [04:58:32]Write to MH i2c: E2 08 00 50 21 80 11 00 00 00 00 00 00 EB [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:32]Read from MH i2c: E2 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 17 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: E2 17 00 50 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 39 [04:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:58:32]wFMCommunicate OK [04:58:32]CreateOFDProtocolMessage done [04:58:32]OFDSenderStorePacket 30513 [04:58:32]StoreOFDPacket docnum=30513 [04:58:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 79 FF 0D 01 5C 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 79 DF 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 77 00 00 35 04 06 00 55 E7 A7 CF 1D 80 31 BC CD 3C 15 B0 54 D0 [04:58:32]CheckFolder [04:58:32]dirname=/storage/ofd_packets [04:58:32]CheckFolder done [04:58:32]ProducePacketName [04:58:32]name=ofd_packets/00030513 [04:58:32]NVStorageSaveData ofd_packets/00030513 [04:58:32]File name is /storage/ofd_packets/00030513 [04:58:32]Write 307 bytes [04:58:32]NVStorageSaveData done [04:58:32]OFDSenderStorePacket done [04:58:32]KKMCreateOFDPacket done [04:58:32]NVStorageSaveData kkm_last_timestamp [04:58:32]File name is /storage/kkm_last_timestamp [04:58:32]Write 4 bytes [04:58:32]NVStorageSaveData done [04:58:32]ExternCall_PrintAddStr [04:58:32]wPrintStart [04:58:32]Write to MH i2c: 01 00 00 51 21 72 [04:58:32]Write i2c OK [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: 01 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: 01 07 00 [04:58:32]MH_I2C_Read... [04:58:32]Read from MH i2c: 01 07 00 51 21 00 00 00 00 00 FF 0F 87 [04:58:32]RasterBufferAndPrint [04:58:32]line Счет N : (1)342915 [04:58:32]line ИНН: 02508201610067 [04:58:32]line Контрольно-Кассовый Чек [04:58:32]line ПРОДАЖА [04:58:32]line ТРК (МРК, ГНК) : 61 [04:58:32]line Товар: 2710194210 [04:58:32]line D-ENERGY Дт-К-2 [04:58:32]line 12.960 * 77.20 [04:58:32]line = 1000.51 [04:58:32]line НДС 12% НСП 1% [04:58:32]line > о реализуемом товаре [04:58:32]line ОКРУГЛЕНИЕ: -0.51 [04:58:32]line ИТОГО: 1000.00 [04:58:32]line Внесено: 1000.00 [04:58:32]line СДАЧА: 0.00 [04:58:32]line НСП 1% : 8.85 [04:58:32]line НДС 12% : 106.25 [04:58:32]line Наличными: 1000.00 [04:58:32]line Безнал.: 0.00 [04:58:32]line Место: АЗС № 78 "Партнер Нефть" [04:58:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [04:58:32]line СНО: Общий режим [04:58:32]line Чек 10 21.10.2024 04:58 [04:58:32]line Смена: 115 ФФД: 1.0 [04:58:32]line ЗНМ: 0300000137 [04:58:32]line РНМ: 0000000000186857 [04:58:32]line Версия ККМ: v1.0 [04:58:32]line ФМ: 0000000002094219 [04:58:32]line ФД: 30513 [04:58:32]line ФПД: 94453441174912 [04:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T045833&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30513&fm=94453441174912&tin=02508201610067®Number=0000000000186857&sum=100000 [04:58:32]OFD Sender: Processing packet 30513 [packets to send 10, broken 9] [04:58:32]ProducePacketName [04:58:32]name=ofd_packets/00030513 [04:58:32]OFD Sender: To server: pG, [04:58:32]CommunicateWithHost lk.salyk.kg:30040 [04:58:32]ConnectInit lk.salyk.kg [04:58:32]written 0, free lines is 4095 [04:58:33]Connected sock=7 [04:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 79 FF 0D 01 5C 55 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 79 DF 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 77 00 00 35 04 06 00 55 E7 A7 CF 1D 80 31 BC CD 3C 15 B0 54 D0 [04:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AD 7A 47 00 AA EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 77 00 00 F4 03 04 00 FB 89 15 67 B6 04 01 00 00 09 5C 38 EC 7F 44 56 46 [04:58:33]CommunicateWithHost err = 0 [04:58:33]CheckOFDResponse [04:58:33]1017 (14) - 77093643461234 [04:58:33]1041 (16) - 0000000002094219 [04:58:33]1040 (4) - 30513 [04:58:33]1012 (4) - 20.10.2024 22:53 [04:58:33]1206 (1) - 0 [04:58:33]OFD Sender: Remove packet 30513 [04:58:33]ProducePacketName [04:58:33]name=ofd_packets/00030513 [04:58:33]NVStorageDeleteData [04:58:33]Write to MH i2c: 01 00 00 7C 21 9D [04:58:33]Write i2c OK [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: 01 [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: 01 07 00 [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: 01 07 00 7C 21 00 00 00 00 00 EE 0C 9E [04:58:33]RasterBufferAndPrint [04:58:33]line [04:58:33]line [04:58:33]line [04:58:33]line [04:58:33]line [04:58:33]written 0, free lines is 3316 [04:58:33]MH_Cut [04:58:33]Write to MH i2c: D1 01 00 83 21 01 76 [04:58:33]Write i2c OK [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: D1 [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: D1 01 00 [04:58:33]MH_I2C_Read... [04:58:33]Read from MH i2c: D1 01 00 83 21 00 75 [04:58:33]Write to MH i2c: 01 00 00 84 21 A5 [04:58:33]Write i2c OK [04:58:33]MH_I2C_Read... [04:58:33]OFD Sender: No OFD packet to send [04:58:34]*** Cut start [04:58:34]*** Partial cut [04:58:34]*** CUTSNS_PIN = 1 [04:58:34]*** CUTSNS_PIN = 0 [04:58:34]*** Brake cut motor [04:58:34]Read from MH i2c: 01 [04:58:34]MH_I2C_Read... [04:58:34]*** Stop cut motor [04:58:34]*** Cut end [04:58:34]Read from MH i2c: 01 07 00 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: 01 07 00 84 21 00 00 00 00 00 FF 0F BA [04:58:34]process_action close_receipt done [04:58:34]requested_data is exist [04:58:34]produce_requested_data [04:58:34]requested_item fm.sn is exist - process it [04:58:34]wFMCommunicate request_size=4 [04:58:34]MH_SAM_APDU [04:58:34]CAPDU: 80 11 00 00 [04:58:34]Write to MH i2c: E2 08 00 85 21 80 11 00 00 00 00 00 00 20 [04:58:34]Write i2c OK [04:58:34]MH_I2C_Read... [04:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:34]Read from MH i2c: E2 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 17 00 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 17 00 85 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6E [04:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [04:58:34]wFMCommunicate OK [04:58:34]requested_item fd.num is exist - process it [04:58:34]SAM_PROTO_GetFieldsCounters [04:58:34]wFMCommunicate request_size=4 [04:58:34]MH_SAM_APDU [04:58:34]CAPDU: 80 13 00 00 [04:58:34]Write to MH i2c: E2 08 00 86 21 80 13 00 00 00 00 00 00 23 [04:58:34]Write i2c OK [04:58:34]MH_I2C_Read... [04:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:34]Read from MH i2c: E2 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 62 00 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 62 00 86 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 77 00 00 0E 04 04 00 73 00 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 82 [04:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 77 00 00 0E 04 04 00 73 00 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:58:34]wFMCommunicate OK [04:58:34]SAM_PROTO_GetFieldsCounters done [04:58:34]requested_item shift.num is exist - process it [04:58:34]requested_item shift.opened is exist - process it [04:58:34]req_shift_opened [04:58:34]FM_GetShiftState [04:58:34]SAM_PROTO_GetShiftState [04:58:34]wFMCommunicate request_size=4 [04:58:34]MH_SAM_APDU [04:58:34]CAPDU: 80 13 01 00 [04:58:34]Write to MH i2c: E2 08 00 87 21 80 13 01 00 00 00 00 00 25 [04:58:34]Write i2c OK [04:58:34]MH_I2C_Read... [04:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:34]Read from MH i2c: E2 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 0E 00 [04:58:34]MH_I2C_Read... [04:58:34]Read from MH i2c: E2 0E 00 87 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A1 [04:58:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [04:58:34]wFMCommunicate OK [04:58:34]SAM_PROTO_GetShiftState done [04:58:34]FM_GetShiftState done [04:58:34]req_shift_opened done [04:58:34]requested_item shift.open_date is exist - process it [04:58:34]req_shift_open_date [04:58:34]req_shift_open_date done [04:58:34]produce_requested_data done [04:58:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30513,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [04:58:34]process_action_free close_receipt [04:58:34]json_value_free [04:58:34]json_value_free done [04:58:34]process_json_proto returns [04:58:34]Send response to host [04:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30513,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [04:58:34]free response buf [04:58:34]execute_script done [04:58:34]execute_script returns [04:58:34]free content buf [04:58:34]Sock 10.Close socket [04:58:34]Sock 10.Thread stoped [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:32]accept exits with 9 [05:07:32]New connection [05:07:32]New thread 3067489636 created [05:07:32]Thread 3067346276 joined [05:07:32]Waiting for new connection... [05:07:32] Sock 9.Parse request [05:07:32]Sock 9.Check first char [05:07:32]Sock 9.First char is OK [05:07:32]request: POST /json_proto HTTP/1.0 [05:07:32]Method: POST [05:07:32]URL: /json_proto [05:07:32]Method is POST - this is cgi request [05:07:32]url: /json_proto [05:07:32]query_string will be loaded in cgi processing [05:07:32]execute_cgi json_proto POST (null) [05:07:32]execute_cgi path=json_proto method=POST [05:07:32]POST find Content-Length [05:07:32]Host: 172.17.51.3:8080 [05:07:32]Content-Length: 677 [05:07:32]Content-Type: application/json [05:07:32] [05:07:32]POST finish read [05:07:32]Found Content-Length = 677 [05:07:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:32]execute_script... [05:07:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:07:32]POST & json_proto [05:07:32]process_json_proto [05:07:32]json parsed OK: [05:07:32]protocol is kg_v1.0 [05:07:32]action value=close_receipt [05:07:32]process_action close_receipt [05:07:32]cmd_close_receipt [05:07:32]MH_GetDate [05:07:32]Write to MH i2c: F0 00 00 88 21 98 [05:07:32]Write i2c OK [05:07:32]MH_I2C_Read... [05:07:32]Read from MH i2c: F0 [05:07:32]MH_I2C_Read... [05:07:32]Read from MH i2c: F0 09 00 [05:07:32]MH_I2C_Read... [05:07:32]Read from MH i2c: F0 09 00 88 21 00 97 E1 15 67 04 C1 95 66 55 [05:07:32]GetLastDocTimeStamp 1729486713 [05:07:32]current date 1729487255 [05:07:32]FM_GetShiftState [05:07:32]SAM_PROTO_GetShiftState [05:07:32]wFMCommunicate request_size=4 [05:07:32]MH_SAM_APDU [05:07:32]CAPDU: 80 13 01 00 [05:07:32]Write to MH i2c: E2 08 00 89 21 80 13 01 00 00 00 00 00 27 [05:07:32]Write i2c OK [05:07:32]MH_I2C_Read... [05:07:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:32]Read from MH i2c: E2 [05:07:32]MH_I2C_Read... [05:07:32]Read from MH i2c: E2 0E 00 [05:07:32]MH_I2C_Read... [05:07:32]Read from MH i2c: E2 0E 00 89 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A3 [05:07:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [05:07:32]wFMCommunicate OK [05:07:32]SAM_PROTO_GetShiftState done [05:07:32]FM_GetShiftState done [05:07:32]opened in 1729471058 [05:07:32]opened+sec_in_day 1729557458 [05:07:32]quantity*price = 50041 [05:07:32]sum+1 = 50042 [05:07:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 11 21.10.2024 05:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30514 ФПД: 24301372445056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T050735&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30514&fm=24301372445056&tin=02508201610067®Number=0000000000186857&sum=50000 [05:07:33]StoreToDocumentArchive [05:07:33]shift 115 fd 30514 [05:07:33]save to /storage/0115/doc_00030514 [05:07:33]save last doc name /storage/0115/doc_00030514 to /storage/kkm_last_doc_name [05:07:33]save OK [05:07:33]Clear old archive folders... [05:07:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:07:33]tlvbuf is 01E0C1B0 [05:07:33]SAM_PROTO_ClearQueue [05:07:33]wFMCommunicate request_size=4 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 09 00 00 [05:07:33]Write to MH i2c: E2 08 00 96 21 80 09 00 00 00 00 00 00 29 [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 96 21 00 90 00 2B [05:07:33]RAPDU: 90 00 [05:07:33]wFMCommunicate OK [05:07:33]SAM_PROTO_ClearQueue done [05:07:33]KKMCreateOFDPacket [05:07:33]OFDProtocolAddRootSTLVToBuf [05:07:33]FM_MakeSignedData [05:07:33]FM_MakeSignedData [05:07:33]SAM_PROTO_SignData [05:07:33]wFMCommunicate request_size=4 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 0D 01 02 [05:07:33]Write to MH i2c: E2 08 00 97 21 80 0D 01 02 00 00 00 00 31 [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 97 21 00 90 00 2C [05:07:33]RAPDU: 90 00 [05:07:33]wFMCommunicate OK [05:07:33]wFMCommunicate request_size=255 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 97 E1 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 77 00 00 35 04 06 00 16 [05:07:33]Write to MH i2c: E2 02 01 98 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 97 E1 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 77 00 00 35 04 06 00 16 00 00 F3 [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 98 21 00 90 00 2D [05:07:33]RAPDU: 90 00 [05:07:33]wFMCommunicate OK [05:07:33]wFMCommunicate request_size=10 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 0D 02 02 05 1A 1A AC 11 80 [05:07:33]Write to MH i2c: E2 0D 00 99 21 80 0D 02 02 05 00 1A 1A AC 11 80 00 00 AF [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 03 00 99 21 00 90 00 2E [05:07:33]RAPDU: 90 00 [05:07:33]wFMCommunicate OK [05:07:33]wFMCommunicate request_size=4 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 0D 03 02 [05:07:33]Write to MH i2c: E2 08 00 9A 21 80 0D 03 02 00 00 00 00 36 [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 0B 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 0B 00 9A 21 00 A2 2B 41 3F 1F 8B AF A0 90 00 7D [05:07:33]RAPDU: A2 2B 41 3F 1F 8B AF A0 90 00 [05:07:33]wFMCommunicate OK [05:07:33]SAM_PROTO_SignData done [05:07:33]FM_MakeSignedData done [05:07:33]CreateOFDProtocolMessage [05:07:33]wFMCommunicate request_size=4 [05:07:33]MH_SAM_APDU [05:07:33]CAPDU: 80 11 00 00 [05:07:33]Write to MH i2c: E2 08 00 9B 21 80 11 00 00 00 00 00 00 36 [05:07:33]Write i2c OK [05:07:33]MH_I2C_Read... [05:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:33]Read from MH i2c: E2 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 17 00 [05:07:33]MH_I2C_Read... [05:07:33]Read from MH i2c: E2 17 00 9B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 84 [05:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:07:33]wFMCommunicate OK [05:07:33]CreateOFDProtocolMessage done [05:07:33]OFDSenderStorePacket 30514 [05:07:33]StoreOFDPacket docnum=30514 [05:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 E9 07 01 24 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 97 E1 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 77 00 00 35 04 06 00 16 1A 1A AC 11 80 A2 2B 41 3F 1F 8B AF A0 [05:07:33]CheckFolder [05:07:33]dirname=/storage/ofd_packets [05:07:33]CheckFolder done [05:07:33]ProducePacketName [05:07:33]name=ofd_packets/00030514 [05:07:33]NVStorageSaveData ofd_packets/00030514 [05:07:33]File name is /storage/ofd_packets/00030514 [05:07:33]Write 301 bytes [05:07:33]NVStorageSaveData done [05:07:33]OFDSenderStorePacket done [05:07:33]KKMCreateOFDPacket done [05:07:33]NVStorageSaveData kkm_last_timestamp [05:07:33]File name is /storage/kkm_last_timestamp [05:07:34]Write 4 bytes [05:07:34]NVStorageSaveData done [05:07:34]ExternCall_PrintAddStr [05:07:34]wPrintStart [05:07:34]Write to MH i2c: 01 00 00 9C 21 BD [05:07:34]Write i2c OK [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 07 00 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 07 00 9C 21 00 00 00 00 00 FF 0F D2 [05:07:34]RasterBufferAndPrint [05:07:34]line Счет N : (1)342916 [05:07:34]line ИНН: 02508201610067 [05:07:34]line Контрольно-Кассовый Чек [05:07:34]line ПРОДАЖА [05:07:34]line ТРК (МРК, ГНК) : 53 [05:07:34]line Товар: 2710124130 [05:07:34]line Аи-92-К-2 [05:07:34]line 7.480 * 66.90 [05:07:34]line = 500.41 [05:07:34]line НДС 12% НСП 1% [05:07:34]line > о реализуемом товаре [05:07:34]line ОКРУГЛЕНИЕ: -0.41 [05:07:34]line ИТОГО: 500.00 [05:07:34]line Внесено: 500.00 [05:07:34]line СДАЧА: 0.00 [05:07:34]line НСП 1% : 4.43 [05:07:34]line НДС 12% : 53.14 [05:07:34]line Наличными: 500.00 [05:07:34]line Безнал.: 0.00 [05:07:34]line Место: АЗС № 78 "Партнер Нефть" [05:07:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [05:07:34]line СНО: Общий режим [05:07:34]line Чек 11 21.10.2024 05:07 [05:07:34]line Смена: 115 ФФД: 1.0 [05:07:34]line ЗНМ: 0300000137 [05:07:34]line РНМ: 0000000000186857 [05:07:34]line Версия ККМ: v1.0 [05:07:34]line ФМ: 0000000002094219 [05:07:34]line ФД: 30514 [05:07:34]line ФПД: 24301372445056 [05:07:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T050735&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30514&fm=24301372445056&tin=02508201610067®Number=0000000000186857&sum=50000 [05:07:34]OFD Sender: Processing packet 30514 [packets to send 10, broken 9] [05:07:34]ProducePacketName [05:07:34]name=ofd_packets/00030514 [05:07:34]OFD Sender: To server: pG, [05:07:34]CommunicateWithHost lk.salyk.kg:30040 [05:07:34]ConnectInit lk.salyk.kg [05:07:34]written 0, free lines is 4095 [05:07:34]Connected sock=10 [05:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 E9 07 01 24 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 97 E1 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 77 00 00 35 04 06 00 16 1A 1A AC 11 80 A2 2B 41 3F 1F 8B AF A0 [05:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 B7 47 00 A0 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 32 30 39 34 32 31 39 10 04 04 00 32 77 00 00 F4 03 04 00 19 8C 15 67 B6 04 01 00 00 25 50 97 8B 83 73 DE 8C [05:07:34]CommunicateWithHost err = 0 [05:07:34]CheckOFDResponse [05:07:34]1017 (14) - 77093643461234 [05:07:34]1041 (16) - 0000000002094219 [05:07:34]1040 (4) - 30514 [05:07:34]1012 (4) - 20.10.2024 23:02 [05:07:34]1206 (1) - 0 [05:07:34]OFD Sender: Remove packet 30514 [05:07:34]ProducePacketName [05:07:34]name=ofd_packets/00030514 [05:07:34]NVStorageDeleteData [05:07:34]Write to MH i2c: 01 00 00 C7 21 E8 [05:07:34]Write i2c OK [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 07 00 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: 01 07 00 C7 21 00 00 00 00 00 F5 0C F0 [05:07:34]RasterBufferAndPrint [05:07:34]line [05:07:34]line [05:07:34]line [05:07:34]line [05:07:34]line [05:07:34]written 0, free lines is 3323 [05:07:34]MH_Cut [05:07:34]Write to MH i2c: D1 01 00 CE 21 01 C1 [05:07:34]Write i2c OK [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: D1 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: D1 01 00 [05:07:34]MH_I2C_Read... [05:07:34]Read from MH i2c: D1 01 00 CE 21 00 C0 [05:07:34]Write to MH i2c: 01 00 00 CF 21 F0 [05:07:34]Write i2c OK [05:07:34]MH_I2C_Read... [05:07:35]OFD Sender: No OFD packet to send [05:07:35]*** Cut start [05:07:35]*** Partial cut [05:07:35]*** CUTSNS_PIN = 1 [05:07:35]*** CUTSNS_PIN = 0 [05:07:35]*** Brake cut motor [05:07:36]Read from MH i2c: 01 [05:07:36]MH_I2C_Read... [05:07:36]*** Stop cut motor [05:07:36]*** Cut end [05:07:36]Read from MH i2c: 01 07 00 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: 01 07 00 CF 21 00 00 00 00 00 FF 0F 05 [05:07:36]process_action close_receipt done [05:07:36]requested_data is exist [05:07:36]produce_requested_data [05:07:36]requested_item fm.sn is exist - process it [05:07:36]wFMCommunicate request_size=4 [05:07:36]MH_SAM_APDU [05:07:36]CAPDU: 80 11 00 00 [05:07:36]Write to MH i2c: E2 08 00 D0 21 80 11 00 00 00 00 00 00 6B [05:07:36]Write i2c OK [05:07:36]MH_I2C_Read... [05:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:07:36]Read from MH i2c: E2 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 17 00 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 17 00 D0 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B9 [05:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [05:07:36]wFMCommunicate OK [05:07:36]requested_item fd.num is exist - process it [05:07:36]SAM_PROTO_GetFieldsCounters [05:07:36]wFMCommunicate request_size=4 [05:07:36]MH_SAM_APDU [05:07:36]CAPDU: 80 13 00 00 [05:07:36]Write to MH i2c: E2 08 00 D1 21 80 13 00 00 00 00 00 00 6E [05:07:36]Write i2c OK [05:07:36]MH_I2C_Read... [05:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:07:36]Read from MH i2c: E2 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 62 00 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 62 00 D1 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 77 00 00 0E 04 04 00 73 00 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 D1 [05:07:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 77 00 00 0E 04 04 00 73 00 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 [05:07:36]wFMCommunicate OK [05:07:36]SAM_PROTO_GetFieldsCounters done [05:07:36]requested_item shift.num is exist - process it [05:07:36]requested_item shift.opened is exist - process it [05:07:36]req_shift_opened [05:07:36]FM_GetShiftState [05:07:36]SAM_PROTO_GetShiftState [05:07:36]wFMCommunicate request_size=4 [05:07:36]MH_SAM_APDU [05:07:36]CAPDU: 80 13 01 00 [05:07:36]Write to MH i2c: E2 08 00 D2 21 80 13 01 00 00 00 00 00 70 [05:07:36]Write i2c OK [05:07:36]MH_I2C_Read... [05:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:07:36]Read from MH i2c: E2 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 0E 00 [05:07:36]MH_I2C_Read... [05:07:36]Read from MH i2c: E2 0E 00 D2 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EC [05:07:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [05:07:36]wFMCommunicate OK [05:07:36]SAM_PROTO_GetShiftState done [05:07:36]FM_GetShiftState done [05:07:36]req_shift_opened done [05:07:36]requested_item shift.open_date is exist - process it [05:07:36]req_shift_open_date [05:07:36]req_shift_open_date done [05:07:36]produce_requested_data done [05:07:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30514,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [05:07:36]process_action_free close_receipt [05:07:36]json_value_free [05:07:36]json_value_free done [05:07:36]process_json_proto returns [05:07:36]Send response to host [05:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30514,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [05:07:36]free response buf [05:07:36]execute_script done [05:07:36]execute_script returns [05:07:36]free content buf [05:07:36]Sock 9.Close socket [05:07:36]Sock 9.Thread stoped [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22: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]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: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: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:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]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: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:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:27]accept exits with 7 [06:26:27]New connection [06:26:27]New thread 3067346276 created [06:26:27]Thread 3067489636 joined [06:26:27]Waiting for new connection... [06:26:27] Sock 7.Parse request [06:26:27]Sock 7.Check first char [06:26:27]Sock 7.First char is OK [06:26:27]request: POST /json_proto HTTP/1.0 [06:26:27]Method: POST [06:26:27]URL: /json_proto [06:26:27]Method is POST - this is cgi request [06:26:27]url: /json_proto [06:26:27]query_string will be loaded in cgi processing [06:26:27]execute_cgi json_proto POST (null) [06:26:27]execute_cgi path=json_proto method=POST [06:26:27]POST find Content-Length [06:26:27]Host: 172.17.51.3:8080 [06:26:27]Content-Length: 843 [06:26:27]Content-Type: application/json [06:26:27] [06:26:27]POST finish read [06:26:27]Found Content-Length = 843 [06:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:27]execute_script... [06:26:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:27]POST & json_proto [06:26:27]process_json_proto [06:26:27]json parsed OK: [06:26:27]protocol is kg_v1.0 [06:26:27]action value=close_receipt [06:26:27]process_action close_receipt [06:26:27]cmd_close_receipt [06:26:27]MH_GetDate [06:26:27]Write to MH i2c: F0 00 00 D3 21 E3 [06:26:27]Write i2c OK [06:26:27]MH_I2C_Read... [06:26:27]Read from MH i2c: F0 [06:26:27]MH_I2C_Read... [06:26:27]Read from MH i2c: F0 09 00 [06:26:27]MH_I2C_Read... [06:26:27]Read from MH i2c: F0 09 00 D3 21 00 17 F4 15 67 04 C1 95 66 33 [06:26:27]GetLastDocTimeStamp 1729487255 [06:26:27]current date 1729491991 [06:26:27]FM_GetShiftState [06:26:27]SAM_PROTO_GetShiftState [06:26:27]wFMCommunicate request_size=4 [06:26:27]MH_SAM_APDU [06:26:27]CAPDU: 80 13 01 00 [06:26:27]Write to MH i2c: E2 08 00 D4 21 80 13 01 00 00 00 00 00 72 [06:26:27]Write i2c OK [06:26:27]MH_I2C_Read... [06:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:27]Read from MH i2c: E2 [06:26:27]MH_I2C_Read... [06:26:27]Read from MH i2c: E2 0E 00 [06:26:27]MH_I2C_Read... [06:26:27]Read from MH i2c: E2 0E 00 D4 21 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EE [06:26:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [06:26:27]wFMCommunicate OK [06:26:27]SAM_PROTO_GetShiftState done [06:26:27]FM_GetShiftState done [06:26:27]opened in 1729471058 [06:26:27]opened+sec_in_day 1729557458 [06:26:27]quantity*price = 200031 [06:26:27]sum+1 = 200032 [06:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 12 21.10.2024 06:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30515 ФПД: 130638896101512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30515&fm=130638896101512&tin=02508201610067®Number=0000000000186857&sum=200031 [06:26:29]StoreToDocumentArchive [06:26:29]shift 115 fd 30515 [06:26:29]save to /storage/0115/doc_00030515 [06:26:29]save last doc name /storage/0115/doc_00030515 to /storage/kkm_last_doc_name [06:26:29]save OK [06:26:29]Clear old archive folders... [06:26:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:26:29]tlvbuf is 01DFA6C0 [06:26:29]SAM_PROTO_ClearQueue [06:26:29]wFMCommunicate request_size=4 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 09 00 00 [06:26:29]Write to MH i2c: E2 08 00 E1 21 80 09 00 00 00 00 00 00 74 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 E1 21 00 90 00 76 [06:26:29]RAPDU: 90 00 [06:26:29]wFMCommunicate OK [06:26:29]SAM_PROTO_ClearQueue done [06:26:29]KKMCreateOFDPacket [06:26:29]OFDProtocolAddRootSTLVToBuf [06:26:29]FM_MakeSignedData [06:26:29]FM_MakeSignedData [06:26:29]SAM_PROTO_SignData [06:26:29]wFMCommunicate request_size=4 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 0D 01 02 [06:26:29]Write to MH i2c: E2 08 00 E2 21 80 0D 01 02 00 00 00 00 7C [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 E2 21 00 90 00 77 [06:26:29]RAPDU: 90 00 [06:26:29]wFMCommunicate OK [06:26:29]wFMCommunicate request_size=255 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 17 F4 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 77 00 00 35 04 06 00 76 [06:26:29]Write to MH i2c: E2 02 01 E3 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 17 F4 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 77 00 00 35 04 06 00 76 00 00 B3 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 E3 21 00 90 00 78 [06:26:29]RAPDU: 90 00 [06:26:29]wFMCommunicate OK [06:26:29]wFMCommunicate request_size=10 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 0D 02 02 05 D0 BC FE F8 88 [06:26:29]Write to MH i2c: E2 0D 00 E4 21 80 0D 02 02 05 00 D0 BC FE F8 88 00 00 93 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 03 00 E4 21 00 90 00 79 [06:26:29]RAPDU: 90 00 [06:26:29]wFMCommunicate OK [06:26:29]wFMCommunicate request_size=4 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 0D 03 02 [06:26:29]Write to MH i2c: E2 08 00 E5 21 80 0D 03 02 00 00 00 00 81 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 0B 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 0B 00 E5 21 00 F8 82 25 B5 5E 62 BD 31 90 00 84 [06:26:29]RAPDU: F8 82 25 B5 5E 62 BD 31 90 00 [06:26:29]wFMCommunicate OK [06:26:29]SAM_PROTO_SignData done [06:26:29]FM_MakeSignedData done [06:26:29]CreateOFDProtocolMessage [06:26:29]wFMCommunicate request_size=4 [06:26:29]MH_SAM_APDU [06:26:29]CAPDU: 80 11 00 00 [06:26:29]Write to MH i2c: E2 08 00 E6 21 80 11 00 00 00 00 00 00 81 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:29]Read from MH i2c: E2 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 17 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: E2 17 00 E6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CF [06:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:26:29]wFMCommunicate OK [06:26:29]CreateOFDProtocolMessage done [06:26:29]OFDSenderStorePacket 30515 [06:26:29]StoreOFDPacket docnum=30515 [06:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 02 1C 07 01 67 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 17 F4 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 77 00 00 35 04 06 00 76 D0 BC FE F8 88 F8 82 25 B5 5E 62 BD 31 [06:26:29]CheckFolder [06:26:29]dirname=/storage/ofd_packets [06:26:29]CheckFolder done [06:26:29]ProducePacketName [06:26:29]name=ofd_packets/00030515 [06:26:29]NVStorageSaveData ofd_packets/00030515 [06:26:29]File name is /storage/ofd_packets/00030515 [06:26:29]Write 301 bytes [06:26:29]NVStorageSaveData done [06:26:29]OFDSenderStorePacket done [06:26:29]KKMCreateOFDPacket done [06:26:29]NVStorageSaveData kkm_last_timestamp [06:26:29]File name is /storage/kkm_last_timestamp [06:26:29]Write 4 bytes [06:26:29]NVStorageSaveData done [06:26:29]ExternCall_PrintAddStr [06:26:29]wPrintStart [06:26:29]Write to MH i2c: 01 00 00 E7 21 08 [06:26:29]Write i2c OK [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: 01 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: 01 07 00 [06:26:29]MH_I2C_Read... [06:26:29]Read from MH i2c: 01 07 00 E7 21 00 00 00 00 00 FF 0F 1D [06:26:29]RasterBufferAndPrint [06:26:29]line Счет N : (1)342917 [06:26:29]line ИНН: 02508201610067 [06:26:29]line Контрольно-Кассовый Чек [06:26:29]line ПРОДАЖА [06:26:29]line ТРК (МРК, ГНК) : 63 [06:26:29]line Товар: 2710124130 [06:26:29]line Аи-92-К-2 [06:26:29]line 29.900 * 66.90 [06:26:29]line = 2000.31 [06:26:29]line НДС 12% НСП 1% [06:26:29]line > о реализуемом товаре [06:26:29]line ИТОГО: 2000.31 [06:26:29]line НСП 1% : 17.70 [06:26:29]line НДС 12% : 212.42 [06:26:29]line Наличными: 0.00 [06:26:29]line Безнал.: 2000.31 [06:26:29]line Место: АЗС № 78 "Партнер Нефть" [06:26:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:26:29]line СНО: Общий режим [06:26:29]line Чек 12 21.10.2024 06:26 [06:26:29]line Смена: 115 ФФД: 1.0 [06:26:29]line ЗНМ: 0300000137 [06:26:29]line РНМ: 0000000000186857 [06:26:29]line Версия ККМ: v1.0 [06:26:29]line Платежная система: АКБ Кыргызстан [06:26:29]line ФМ: 0000000002094219 [06:26:29]line ФД: 30515 [06:26:29]line ФПД: 130638896101512 [06:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T062631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30515&fm=130638896101512&tin=02508201610067®Number=0000000000186857&sum=200031 [06:26:29]OFD Sender: Processing packet 30515 [packets to send 10, broken 9] [06:26:29]ProducePacketName [06:26:29]name=ofd_packets/00030515 [06:26:29]OFD Sender: To server: pG, [06:26:29]CommunicateWithHost lk.salyk.kg:30040 [06:26:29]ConnectInit lk.salyk.kg [06:26:29]written 0, free lines is 4095 [06:26:30]Connected sock=10 [06:26:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 02 1C 07 01 67 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 17 F4 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 77 00 00 35 04 06 00 76 D0 BC FE F8 88 F8 82 25 B5 5E 62 BD 31 [06:26:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0B 75 47 00 8D 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 32 30 39 34 32 31 39 10 04 04 00 33 77 00 00 F4 03 04 00 98 9E 15 67 B6 04 01 00 00 8D 8E C5 43 A8 A4 BB 4E [06:26:30]CommunicateWithHost err = 0 [06:26:30]CheckOFDResponse [06:26:30]1017 (14) - 77093643461234 [06:26:30]1041 (16) - 0000000002094219 [06:26:30]1040 (4) - 30515 [06:26:30]1012 (4) - 21.10.2024 00:21 [06:26:30]1206 (1) - 0 [06:26:30]OFD Sender: Remove packet 30515 [06:26:30]ProducePacketName [06:26:30]name=ofd_packets/00030515 [06:26:30]NVStorageDeleteData [06:26:30]Write to MH i2c: 01 00 00 11 22 33 [06:26:30]Write i2c OK [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: 01 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: 01 07 00 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: 01 07 00 11 22 00 00 00 00 00 02 0D 49 [06:26:30]RasterBufferAndPrint [06:26:30]line [06:26:30]line [06:26:30]line [06:26:30]line [06:26:30]line [06:26:30]written 0, free lines is 3336 [06:26:30]MH_Cut [06:26:30]Write to MH i2c: D1 01 00 18 22 01 0C [06:26:30]Write i2c OK [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: D1 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: D1 01 00 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: D1 01 00 18 22 00 0B [06:26:30]Write to MH i2c: 01 00 00 19 22 3B [06:26:30]Write i2c OK [06:26:30]MH_I2C_Read... [06:26:30]OFD Sender: No OFD packet to send [06:26:31]*** Cut start [06:26:31]*** Partial cut [06:26:31]*** CUTSNS_PIN = 1 [06:26:31]*** CUTSNS_PIN = 0 [06:26:31]*** Brake cut motor [06:26:31]Read from MH i2c: 01 [06:26:31]MH_I2C_Read... [06:26:31]*** Stop cut motor [06:26:31]*** Cut end [06:26:31]Read from MH i2c: 01 07 00 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: 01 07 00 19 22 00 00 00 00 00 FF 0F 50 [06:26:31]process_action close_receipt done [06:26:31]requested_data is exist [06:26:31]produce_requested_data [06:26:31]requested_item fm.sn is exist - process it [06:26:31]wFMCommunicate request_size=4 [06:26:31]MH_SAM_APDU [06:26:31]CAPDU: 80 11 00 00 [06:26:31]Write to MH i2c: E2 08 00 1A 22 80 11 00 00 00 00 00 00 B6 [06:26:31]Write i2c OK [06:26:31]MH_I2C_Read... [06:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:31]Read from MH i2c: E2 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 17 00 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 17 00 1A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 04 [06:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:26:31]wFMCommunicate OK [06:26:31]requested_item fd.num is exist - process it [06:26:31]SAM_PROTO_GetFieldsCounters [06:26:31]wFMCommunicate request_size=4 [06:26:31]MH_SAM_APDU [06:26:31]CAPDU: 80 13 00 00 [06:26:31]Write to MH i2c: E2 08 00 1B 22 80 13 00 00 00 00 00 00 B9 [06:26:31]Write i2c OK [06:26:31]MH_I2C_Read... [06:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:31]Read from MH i2c: E2 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 62 00 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 62 00 1B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 77 00 00 0E 04 04 00 73 00 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 20 [06:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:26:31]wFMCommunicate OK [06:26:31]SAM_PROTO_GetFieldsCounters done [06:26:31]requested_item shift.num is exist - process it [06:26:31]requested_item shift.opened is exist - process it [06:26:31]req_shift_opened [06:26:31]FM_GetShiftState [06:26:31]SAM_PROTO_GetShiftState [06:26:31]wFMCommunicate request_size=4 [06:26:31]MH_SAM_APDU [06:26:31]CAPDU: 80 13 01 00 [06:26:31]Write to MH i2c: E2 08 00 1C 22 80 13 01 00 00 00 00 00 BB [06:26:31]Write i2c OK [06:26:31]MH_I2C_Read... [06:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:31]Read from MH i2c: E2 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 0E 00 [06:26:31]MH_I2C_Read... [06:26:31]Read from MH i2c: E2 0E 00 1C 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 37 [06:26:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [06:26:31]wFMCommunicate OK [06:26:31]SAM_PROTO_GetShiftState done [06:26:31]FM_GetShiftState done [06:26:31]req_shift_opened done [06:26:31]requested_item shift.open_date is exist - process it [06:26:31]req_shift_open_date [06:26:31]req_shift_open_date done [06:26:31]produce_requested_data done [06:26:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30515,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [06:26:31]process_action_free close_receipt [06:26:31]json_value_free [06:26:31]json_value_free done [06:26:31]process_json_proto returns [06:26:31]Send response to host [06:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30515,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [06:26:31]free response buf [06:26:31]execute_script done [06:26:31]execute_script returns [06:26:31]free content buf [06:26:31]Sock 7.Close socket [06:26:31]Sock 7.Thread stoped [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]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:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [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: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]OFD Sender: No OFD packet to send [06:36:51]OFD Sender: No OFD packet to send [06:36:56]OFD Sender: No OFD packet to send [06:37:01]OFD Sender: No OFD packet to send [06:37:06]OFD Sender: No OFD packet to send [06:37:11]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:16]accept exits with 9 [06:56:16]New connection [06:56:16]New thread 3067489636 created [06:56:16]Thread 3067346276 joined [06:56:16]Waiting for new connection... [06:56:16] Sock 9.Parse request [06:56:16]Sock 9.Check first char [06:56:16]Sock 9.First char is OK [06:56:16]request: POST /json_proto HTTP/1.0 [06:56:16]Method: POST [06:56:16]URL: /json_proto [06:56:16]Method is POST - this is cgi request [06:56:16]url: /json_proto [06:56:16]query_string will be loaded in cgi processing [06:56:16]execute_cgi json_proto POST (null) [06:56:16]execute_cgi path=json_proto method=POST [06:56:16]POST find Content-Length [06:56:16]Host: 172.17.51.3:8080 [06:56:16]Content-Length: 682 [06:56:16]Content-Type: application/json [06:56:16] [06:56:16]POST finish read [06:56:16]Found Content-Length = 682 [06:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:16]execute_script... [06:56:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:16]POST & json_proto [06:56:16]process_json_proto [06:56:16]json parsed OK: [06:56:16]protocol is kg_v1.0 [06:56:16]action value=close_receipt [06:56:16]process_action close_receipt [06:56:16]cmd_close_receipt [06:56:16]MH_GetDate [06:56:16]Write to MH i2c: F0 00 00 1D 22 2E [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: F0 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: F0 09 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: F0 09 00 1D 22 00 13 FB 15 67 04 C1 95 66 81 [06:56:16]GetLastDocTimeStamp 1729491991 [06:56:16]current date 1729493779 [06:56:16]FM_GetShiftState [06:56:16]SAM_PROTO_GetShiftState [06:56:16]wFMCommunicate request_size=4 [06:56:16]MH_SAM_APDU [06:56:16]CAPDU: 80 13 01 00 [06:56:16]Write to MH i2c: E2 08 00 1E 22 80 13 01 00 00 00 00 00 BD [06:56:16]Write i2c OK [06:56:16]MH_I2C_Read... [06:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:16]Read from MH i2c: E2 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 0E 00 [06:56:16]MH_I2C_Read... [06:56:16]Read from MH i2c: E2 0E 00 1E 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 39 [06:56:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [06:56:16]wFMCommunicate OK [06:56:16]SAM_PROTO_GetShiftState done [06:56:16]FM_GetShiftState done [06:56:16]opened in 1729471058 [06:56:16]opened+sec_in_day 1729557458 [06:56:16]quantity*price = 100015 [06:56:16]sum+1 = 100017 [06:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 13 21.10.2024 06:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30516 ФПД: 175876501457280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30516&fm=175876501457280&tin=02508201610067®Number=0000000000186857&sum=100000 [06:56:17]StoreToDocumentArchive [06:56:17]shift 115 fd 30516 [06:56:17]save to /storage/0115/doc_00030516 [06:56:17]save last doc name /storage/0115/doc_00030516 to /storage/kkm_last_doc_name [06:56:17]save OK [06:56:17]Clear old archive folders... [06:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:56:17]tlvbuf is 01E10EE0 [06:56:17]SAM_PROTO_ClearQueue [06:56:17]wFMCommunicate request_size=4 [06:56:17]MH_SAM_APDU [06:56:17]CAPDU: 80 09 00 00 [06:56:17]Write to MH i2c: E2 08 00 2B 22 80 09 00 00 00 00 00 00 BF [06:56:17]Write i2c OK [06:56:17]MH_I2C_Read... [06:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:17]Read from MH i2c: E2 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 2B 22 00 90 00 C1 [06:56:17]RAPDU: 90 00 [06:56:17]wFMCommunicate OK [06:56:17]SAM_PROTO_ClearQueue done [06:56:17]KKMCreateOFDPacket [06:56:17]OFDProtocolAddRootSTLVToBuf [06:56:17]FM_MakeSignedData [06:56:17]FM_MakeSignedData [06:56:17]SAM_PROTO_SignData [06:56:17]wFMCommunicate request_size=4 [06:56:17]MH_SAM_APDU [06:56:17]CAPDU: 80 0D 01 02 [06:56:17]Write to MH i2c: E2 08 00 2C 22 80 0D 01 02 00 00 00 00 C7 [06:56:17]Write i2c OK [06:56:17]MH_I2C_Read... [06:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:17]Read from MH i2c: E2 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 2C 22 00 90 00 C2 [06:56:17]RAPDU: 90 00 [06:56:17]wFMCommunicate OK [06:56:17]wFMCommunicate request_size=255 [06:56:17]MH_SAM_APDU [06:56:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 13 FB 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 77 00 00 35 04 06 00 9F [06:56:17]Write to MH i2c: E2 02 01 2D 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 13 FB 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 77 00 00 35 04 06 00 9F 00 00 A6 [06:56:17]Write i2c OK [06:56:17]MH_I2C_Read... [06:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:17]Read from MH i2c: E2 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 [06:56:17]MH_I2C_Read... [06:56:17]Read from MH i2c: E2 03 00 2D 22 00 90 00 C3 [06:56:17]RAPDU: 90 00 [06:56:17]wFMCommunicate OK [06:56:17]wFMCommunicate request_size=10 [06:56:17]MH_SAM_APDU [06:56:17]CAPDU: 80 0D 02 02 05 F5 70 64 C9 80 [06:56:17]Write to MH i2c: E2 0D 00 2E 22 80 0D 02 02 05 00 F5 70 64 C9 80 00 00 E6 [06:56:17]Write i2c OK [06:56:17]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 03 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 03 00 2E 22 00 90 00 C4 [06:56:18]RAPDU: 90 00 [06:56:18]wFMCommunicate OK [06:56:18]wFMCommunicate request_size=4 [06:56:18]MH_SAM_APDU [06:56:18]CAPDU: 80 0D 03 02 [06:56:18]Write to MH i2c: E2 08 00 2F 22 80 0D 03 02 00 00 00 00 CC [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 0B 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 0B 00 2F 22 00 56 31 52 48 EC 32 6D 0F 90 00 88 [06:56:18]RAPDU: 56 31 52 48 EC 32 6D 0F 90 00 [06:56:18]wFMCommunicate OK [06:56:18]SAM_PROTO_SignData done [06:56:18]FM_MakeSignedData done [06:56:18]CreateOFDProtocolMessage [06:56:18]wFMCommunicate request_size=4 [06:56:18]MH_SAM_APDU [06:56:18]CAPDU: 80 11 00 00 [06:56:18]Write to MH i2c: E2 08 00 30 22 80 11 00 00 00 00 00 00 CC [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:18]Read from MH i2c: E2 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 17 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: E2 17 00 30 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [06:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:56:18]wFMCommunicate OK [06:56:18]CreateOFDProtocolMessage done [06:56:18]OFDSenderStorePacket 30516 [06:56:18]StoreOFDPacket docnum=30516 [06:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 4D 07 01 55 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 13 FB 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 77 00 00 35 04 06 00 9F F5 70 64 C9 80 56 31 52 48 EC 32 6D 0F [06:56:18]CheckFolder [06:56:18]dirname=/storage/ofd_packets [06:56:18]CheckFolder done [06:56:18]ProducePacketName [06:56:18]name=ofd_packets/00030516 [06:56:18]NVStorageSaveData ofd_packets/00030516 [06:56:18]File name is /storage/ofd_packets/00030516 [06:56:18]Write 301 bytes [06:56:18]NVStorageSaveData done [06:56:18]OFDSenderStorePacket done [06:56:18]KKMCreateOFDPacket done [06:56:18]NVStorageSaveData kkm_last_timestamp [06:56:18]File name is /storage/kkm_last_timestamp [06:56:18]Write 4 bytes [06:56:18]NVStorageSaveData done [06:56:18]ExternCall_PrintAddStr [06:56:18]wPrintStart [06:56:18]Write to MH i2c: 01 00 00 31 22 53 [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 07 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 07 00 31 22 00 00 00 00 00 FF 0F 68 [06:56:18]RasterBufferAndPrint [06:56:18]line Счет N : (1)342918 [06:56:18]line ИНН: 02508201610067 [06:56:18]line Контрольно-Кассовый Чек [06:56:18]line ПРОДАЖА [06:56:18]line ТРК (МРК, ГНК) : 63 [06:56:18]line Товар: 2710124130 [06:56:18]line Аи-92-К-2 [06:56:18]line 14.950 * 66.90 [06:56:18]line = 1000.16 [06:56:18]line НДС 12% НСП 1% [06:56:18]line > о реализуемом товаре [06:56:18]line ОКРУГЛЕНИЕ: -0.16 [06:56:18]line ИТОГО: 1000.00 [06:56:18]line Внесено: 1000.00 [06:56:18]line СДАЧА: 0.00 [06:56:18]line НСП 1% : 8.85 [06:56:18]line НДС 12% : 106.21 [06:56:18]line Наличными: 1000.00 [06:56:18]line Безнал.: 0.00 [06:56:18]line Место: АЗС № 78 "Партнер Нефть" [06:56:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [06:56:18]line СНО: Общий режим [06:56:18]line Чек 13 21.10.2024 06:56 [06:56:18]line Смена: 115 ФФД: 1.0 [06:56:18]line ЗНМ: 0300000137 [06:56:18]line РНМ: 0000000000186857 [06:56:18]line Версия ККМ: v1.0 [06:56:18]line ФМ: 0000000002094219 [06:56:18]line ФД: 30516 [06:56:18]line ФПД: 175876501457280 [06:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065619&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30516&fm=175876501457280&tin=02508201610067®Number=0000000000186857&sum=100000 [06:56:18]OFD Sender: Processing packet 30516 [packets to send 10, broken 9] [06:56:18]ProducePacketName [06:56:18]name=ofd_packets/00030516 [06:56:18]OFD Sender: To server: pG, [06:56:18]CommunicateWithHost lk.salyk.kg:30040 [06:56:18]ConnectInit lk.salyk.kg [06:56:18]written 0, free lines is 4095 [06:56:18]Connected sock=10 [06:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 82 4D 07 01 55 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 13 FB 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 77 00 00 35 04 06 00 9F F5 70 64 C9 80 56 31 52 48 EC 32 6D 0F [06:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 37 61 47 00 0A 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 77 00 00 F4 03 04 00 95 A5 15 67 B6 04 01 00 00 EF 25 52 09 29 E6 A5 A6 [06:56:18]CommunicateWithHost err = 0 [06:56:18]CheckOFDResponse [06:56:18]1017 (14) - 77093643461234 [06:56:18]1041 (16) - 0000000002094219 [06:56:18]1040 (4) - 30516 [06:56:18]1012 (4) - 21.10.2024 00:51 [06:56:18]1206 (1) - 0 [06:56:18]OFD Sender: Remove packet 30516 [06:56:18]ProducePacketName [06:56:18]name=ofd_packets/00030516 [06:56:18]NVStorageDeleteData [06:56:18]Write to MH i2c: 01 00 00 5C 22 7E [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 07 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: 01 07 00 5C 22 00 00 00 00 00 EE 0C 7F [06:56:18]RasterBufferAndPrint [06:56:18]line [06:56:18]line [06:56:18]line [06:56:18]line [06:56:18]line [06:56:18]written 0, free lines is 3316 [06:56:18]MH_Cut [06:56:18]Write to MH i2c: D1 01 00 63 22 01 57 [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: D1 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: D1 01 00 [06:56:18]MH_I2C_Read... [06:56:18]Read from MH i2c: D1 01 00 63 22 00 56 [06:56:18]Write to MH i2c: 01 00 00 64 22 86 [06:56:18]Write i2c OK [06:56:18]MH_I2C_Read... [06:56:19]OFD Sender: No OFD packet to send [06:56:19]*** Cut start [06:56:19]*** Partial cut [06:56:19]*** CUTSNS_PIN = 1 [06:56:19]*** CUTSNS_PIN = 0 [06:56:19]*** Brake cut motor [06:56:20]Read from MH i2c: 01 [06:56:20]MH_I2C_Read... [06:56:20]*** Stop cut motor [06:56:20]*** Cut end [06:56:20]Read from MH i2c: 01 07 00 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: 01 07 00 64 22 00 00 00 00 00 FF 0F 9B [06:56:20]process_action close_receipt done [06:56:20]requested_data is exist [06:56:20]produce_requested_data [06:56:20]requested_item fm.sn is exist - process it [06:56:20]wFMCommunicate request_size=4 [06:56:20]MH_SAM_APDU [06:56:20]CAPDU: 80 11 00 00 [06:56:20]Write to MH i2c: E2 08 00 65 22 80 11 00 00 00 00 00 00 01 [06:56:20]Write i2c OK [06:56:20]MH_I2C_Read... [06:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:20]Read from MH i2c: E2 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 17 00 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 17 00 65 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [06:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [06:56:20]wFMCommunicate OK [06:56:20]requested_item fd.num is exist - process it [06:56:20]SAM_PROTO_GetFieldsCounters [06:56:20]wFMCommunicate request_size=4 [06:56:20]MH_SAM_APDU [06:56:20]CAPDU: 80 13 00 00 [06:56:20]Write to MH i2c: E2 08 00 66 22 80 13 00 00 00 00 00 00 04 [06:56:20]Write i2c OK [06:56:20]MH_I2C_Read... [06:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:20]Read from MH i2c: E2 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 62 00 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 62 00 66 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 77 00 00 0E 04 04 00 73 00 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 6F [06:56:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:20]wFMCommunicate OK [06:56:20]SAM_PROTO_GetFieldsCounters done [06:56:20]requested_item shift.num is exist - process it [06:56:20]requested_item shift.opened is exist - process it [06:56:20]req_shift_opened [06:56:20]FM_GetShiftState [06:56:20]SAM_PROTO_GetShiftState [06:56:20]wFMCommunicate request_size=4 [06:56:20]MH_SAM_APDU [06:56:20]CAPDU: 80 13 01 00 [06:56:20]Write to MH i2c: E2 08 00 67 22 80 13 01 00 00 00 00 00 06 [06:56:20]Write i2c OK [06:56:20]MH_I2C_Read... [06:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:20]Read from MH i2c: E2 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 0E 00 [06:56:20]MH_I2C_Read... [06:56:20]Read from MH i2c: E2 0E 00 67 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 82 [06:56:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [06:56:20]wFMCommunicate OK [06:56:20]SAM_PROTO_GetShiftState done [06:56:20]FM_GetShiftState done [06:56:20]req_shift_opened done [06:56:20]requested_item shift.open_date is exist - process it [06:56:20]req_shift_open_date [06:56:20]req_shift_open_date done [06:56:20]produce_requested_data done [06:56:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30516,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [06:56:20]process_action_free close_receipt [06:56:20]json_value_free [06:56:20]json_value_free done [06:56:20]process_json_proto returns [06:56:20]Send response to host [06:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30516,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [06:56:20]free response buf [06:56:20]execute_script done [06:56:20]execute_script returns [06:56:20]free content buf [06:56:20]Sock 9.Close socket [06:56:20]Sock 9.Thread stoped [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:25]accept exits with 7 [07:10:25]New connection [07:10:25]New thread 3067346276 created [07:10:25]Thread 3067489636 joined [07:10:25]Waiting for new connection... [07:10:25] Sock 7.Parse request [07:10:25]Sock 7.Check first char [07:10:25]Sock 7.First char is OK [07:10:25]request: POST /json_proto HTTP/1.0 [07:10:25]Method: POST [07:10:25]URL: /json_proto [07:10:25]Method is POST - this is cgi request [07:10:25]url: /json_proto [07:10:25]query_string will be loaded in cgi processing [07:10:25]execute_cgi json_proto POST (null) [07:10:25]execute_cgi path=json_proto method=POST [07:10:25]POST find Content-Length [07:10:25]Host: 172.17.51.3:8080 [07:10:25]Content-Length: 679 [07:10:25]Content-Type: application/json [07:10:25] [07:10:25]POST finish read [07:10:25]Found Content-Length = 679 [07:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:25]execute_script... [07:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342919", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:25]POST & json_proto [07:10:25]process_json_proto [07:10:25]json parsed OK: [07:10:25]protocol is kg_v1.0 [07:10:25]action value=close_receipt [07:10:25]process_action close_receipt [07:10:25]cmd_close_receipt [07:10:25]MH_GetDate [07:10:25]Write to MH i2c: F0 00 00 68 22 79 [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: F0 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: F0 09 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: F0 09 00 68 22 00 65 FE 15 67 04 C1 95 66 21 [07:10:25]GetLastDocTimeStamp 1729493779 [07:10:25]current date 1729494629 [07:10:25]FM_GetShiftState [07:10:25]SAM_PROTO_GetShiftState [07:10:25]wFMCommunicate request_size=4 [07:10:25]MH_SAM_APDU [07:10:25]CAPDU: 80 13 01 00 [07:10:25]Write to MH i2c: E2 08 00 69 22 80 13 01 00 00 00 00 00 08 [07:10:25]Write i2c OK [07:10:25]MH_I2C_Read... [07:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:25]Read from MH i2c: E2 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 0E 00 [07:10:25]MH_I2C_Read... [07:10:25]Read from MH i2c: E2 0E 00 69 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 84 [07:10:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:10:25]wFMCommunicate OK [07:10:25]SAM_PROTO_GetShiftState done [07:10:25]FM_GetShiftState done [07:10:25]opened in 1729471058 [07:10:25]opened+sec_in_day 1729557458 [07:10:25]quantity*price = 100050 [07:10:25]sum+1 = 100052 [07:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 14 21.10.2024 07:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30517 ФПД: 110349798395822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071029&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30517&fm=110349798395822&tin=02508201610067®Number=0000000000186857&sum=100000 [07:10:26]StoreToDocumentArchive [07:10:26]shift 115 fd 30517 [07:10:26]save to /storage/0115/doc_00030517 [07:10:26]save last doc name /storage/0115/doc_00030517 to /storage/kkm_last_doc_name [07:10:26]save OK [07:10:26]Clear old archive folders... [07:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:10:26]tlvbuf is B6F5D7E0 [07:10:26]SAM_PROTO_ClearQueue [07:10:26]wFMCommunicate request_size=4 [07:10:26]MH_SAM_APDU [07:10:26]CAPDU: 80 09 00 00 [07:10:26]Write to MH i2c: E2 08 00 76 22 80 09 00 00 00 00 00 00 0A [07:10:26]Write i2c OK [07:10:26]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 76 22 00 90 00 0C [07:10:27]RAPDU: 90 00 [07:10:27]wFMCommunicate OK [07:10:27]SAM_PROTO_ClearQueue done [07:10:27]KKMCreateOFDPacket [07:10:27]OFDProtocolAddRootSTLVToBuf [07:10:27]FM_MakeSignedData [07:10:27]FM_MakeSignedData [07:10:27]SAM_PROTO_SignData [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 0D 01 02 [07:10:27]Write to MH i2c: E2 08 00 77 22 80 0D 01 02 00 00 00 00 12 [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 77 22 00 90 00 0D [07:10:27]RAPDU: 90 00 [07:10:27]wFMCommunicate OK [07:10:27]wFMCommunicate request_size=255 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 77 00 00 35 04 06 00 64 5C D0 88 [07:10:27]Write to MH i2c: E2 02 01 78 22 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 77 00 00 35 04 06 00 64 5C D0 88 00 00 BD [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 78 22 00 90 00 0E [07:10:27]RAPDU: 90 00 [07:10:27]wFMCommunicate OK [07:10:27]wFMCommunicate request_size=7 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 0D 02 02 02 CF AE [07:10:27]Write to MH i2c: E2 0A 00 79 22 80 0D 02 02 02 00 CF AE 00 00 96 [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 03 00 79 22 00 90 00 0F [07:10:27]RAPDU: 90 00 [07:10:27]wFMCommunicate OK [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 0D 03 02 [07:10:27]Write to MH i2c: E2 08 00 7A 22 80 0D 03 02 00 00 00 00 17 [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 0B 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 0B 00 7A 22 00 4B 04 D9 59 47 FA 34 4B 90 00 59 [07:10:27]RAPDU: 4B 04 D9 59 47 FA 34 4B 90 00 [07:10:27]wFMCommunicate OK [07:10:27]SAM_PROTO_SignData done [07:10:27]FM_MakeSignedData done [07:10:27]CreateOFDProtocolMessage [07:10:27]wFMCommunicate request_size=4 [07:10:27]MH_SAM_APDU [07:10:27]CAPDU: 80 11 00 00 [07:10:27]Write to MH i2c: E2 08 00 7B 22 80 11 00 00 00 00 00 00 17 [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:27]Read from MH i2c: E2 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 17 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: E2 17 00 7B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [07:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:10:27]wFMCommunicate OK [07:10:27]CreateOFDProtocolMessage done [07:10:27]OFDSenderStorePacket 30517 [07:10:27]StoreOFDPacket docnum=30517 [07:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 60 D4 04 01 16 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 77 00 00 35 04 06 00 64 5C D0 88 CF AE 4B 04 D9 59 47 FA 34 4B [07:10:27]CheckFolder [07:10:27]dirname=/storage/ofd_packets [07:10:27]CheckFolder done [07:10:27]ProducePacketName [07:10:27]name=ofd_packets/00030517 [07:10:27]NVStorageSaveData ofd_packets/00030517 [07:10:27]File name is /storage/ofd_packets/00030517 [07:10:27]Write 298 bytes [07:10:27]NVStorageSaveData done [07:10:27]OFDSenderStorePacket done [07:10:27]KKMCreateOFDPacket done [07:10:27]NVStorageSaveData kkm_last_timestamp [07:10:27]File name is /storage/kkm_last_timestamp [07:10:27]Write 4 bytes [07:10:27]NVStorageSaveData done [07:10:27]ExternCall_PrintAddStr [07:10:27]wPrintStart [07:10:27]Write to MH i2c: 01 00 00 7C 22 9E [07:10:27]Write i2c OK [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: 01 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: 01 07 00 [07:10:27]MH_I2C_Read... [07:10:27]Read from MH i2c: 01 07 00 7C 22 00 00 00 00 00 FF 0F B3 [07:10:27]RasterBufferAndPrint [07:10:27]line Счет N : (1)342919 [07:10:27]line ИНН: 02508201610067 [07:10:27]line Контрольно-Кассовый Чек [07:10:27]line ПРОДАЖА [07:10:27]line ТРК (МРК, ГНК) : 54 [07:10:27]line Товар: 2710194210 [07:10:27]line ДТ-К-2 [07:10:27]line 13.130 * 76.20 [07:10:27]line = 1000.51 [07:10:27]line НДС 12% НСП 1% [07:10:27]line > о реализуемом товаре [07:10:27]line ОКРУГЛЕНИЕ: -0.51 [07:10:27]line ИТОГО: 1000.00 [07:10:27]line Внесено: 1000.00 [07:10:27]line СДАЧА: 0.00 [07:10:27]line НСП 1% : 8.85 [07:10:27]line НДС 12% : 106.25 [07:10:27]line Наличными: 1000.00 [07:10:27]line Безнал.: 0.00 [07:10:27]line Место: АЗС № 78 "Партнер Нефть" [07:10:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:10:27]line СНО: Общий режим [07:10:27]line Чек 14 21.10.2024 07:10 [07:10:27]line Смена: 115 ФФД: 1.0 [07:10:27]line ЗНМ: 0300000137 [07:10:27]line РНМ: 0000000000186857 [07:10:27]line Версия ККМ: v1.0 [07:10:27]line ФМ: 0000000002094219 [07:10:27]line ФД: 30517 [07:10:27]line ФПД: 110349798395822 [07:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071029&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30517&fm=110349798395822&tin=02508201610067®Number=0000000000186857&sum=100000 [07:10:27]OFD Sender: Processing packet 30517 [packets to send 10, broken 9] [07:10:27]ProducePacketName [07:10:27]name=ofd_packets/00030517 [07:10:27]OFD Sender: To server: pG, [07:10:27]CommunicateWithHost lk.salyk.kg:30040 [07:10:27]ConnectInit lk.salyk.kg [07:10:27]written 0, free lines is 4095 [07:10:27]Connected sock=10 [07:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 60 D4 04 01 16 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 65 FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 77 00 00 35 04 06 00 64 5C D0 88 CF AE 4B 04 D9 59 47 FA 34 4B [07:10:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 69 90 47 00 55 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 32 30 39 34 32 31 39 10 04 04 00 35 77 00 00 F4 03 04 00 E6 A8 15 67 B6 04 01 00 00 E4 41 D1 B8 CA B5 5F 83 [07:10:28]CommunicateWithHost err = 0 [07:10:28]CheckOFDResponse [07:10:28]1017 (14) - 77093643461234 [07:10:28]1041 (16) - 0000000002094219 [07:10:28]1040 (4) - 30517 [07:10:28]1012 (4) - 21.10.2024 01:05 [07:10:28]1206 (1) - 0 [07:10:28]OFD Sender: Remove packet 30517 [07:10:28]ProducePacketName [07:10:28]name=ofd_packets/00030517 [07:10:28]NVStorageDeleteData [07:10:28]Write to MH i2c: 01 00 00 A7 22 C9 [07:10:28]Write i2c OK [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: 01 [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: 01 07 00 [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: 01 07 00 A7 22 00 00 00 00 00 EE 0C CA [07:10:28]RasterBufferAndPrint [07:10:28]line [07:10:28]line [07:10:28]line [07:10:28]line [07:10:28]line [07:10:28]written 0, free lines is 3316 [07:10:28]MH_Cut [07:10:28]Write to MH i2c: D1 01 00 AE 22 01 A2 [07:10:28]Write i2c OK [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: D1 [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: D1 01 00 [07:10:28]MH_I2C_Read... [07:10:28]Read from MH i2c: D1 01 00 AE 22 00 A1 [07:10:28]Write to MH i2c: 01 00 00 AF 22 D1 [07:10:28]Write i2c OK [07:10:28]MH_I2C_Read... [07:10:28]OFD Sender: No OFD packet to send [07:10:28]*** Cut start [07:10:28]*** Partial cut [07:10:28]*** CUTSNS_PIN = 1 [07:10:29]*** CUTSNS_PIN = 0 [07:10:29]*** Brake cut motor [07:10:29]Read from MH i2c: 01 [07:10:29]MH_I2C_Read... [07:10:29]*** Stop cut motor [07:10:29]*** Cut end [07:10:29]Read from MH i2c: 01 07 00 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: 01 07 00 AF 22 00 00 00 00 00 FF 0F E6 [07:10:29]process_action close_receipt done [07:10:29]requested_data is exist [07:10:29]produce_requested_data [07:10:29]requested_item fm.sn is exist - process it [07:10:29]wFMCommunicate request_size=4 [07:10:29]MH_SAM_APDU [07:10:29]CAPDU: 80 11 00 00 [07:10:29]Write to MH i2c: E2 08 00 B0 22 80 11 00 00 00 00 00 00 4C [07:10:29]Write i2c OK [07:10:29]MH_I2C_Read... [07:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:29]Read from MH i2c: E2 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 17 00 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 17 00 B0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [07:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:10:29]wFMCommunicate OK [07:10:29]requested_item fd.num is exist - process it [07:10:29]SAM_PROTO_GetFieldsCounters [07:10:29]wFMCommunicate request_size=4 [07:10:29]MH_SAM_APDU [07:10:29]CAPDU: 80 13 00 00 [07:10:29]Write to MH i2c: E2 08 00 B1 22 80 13 00 00 00 00 00 00 4F [07:10:29]Write i2c OK [07:10:29]MH_I2C_Read... [07:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:29]Read from MH i2c: E2 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 62 00 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 62 00 B1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 77 00 00 0E 04 04 00 73 00 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 BE [07:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:29]wFMCommunicate OK [07:10:29]SAM_PROTO_GetFieldsCounters done [07:10:29]requested_item shift.num is exist - process it [07:10:29]requested_item shift.opened is exist - process it [07:10:29]req_shift_opened [07:10:29]FM_GetShiftState [07:10:29]SAM_PROTO_GetShiftState [07:10:29]wFMCommunicate request_size=4 [07:10:29]MH_SAM_APDU [07:10:29]CAPDU: 80 13 01 00 [07:10:29]Write to MH i2c: E2 08 00 B2 22 80 13 01 00 00 00 00 00 51 [07:10:29]Write i2c OK [07:10:29]MH_I2C_Read... [07:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:29]Read from MH i2c: E2 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 0E 00 [07:10:29]MH_I2C_Read... [07:10:29]Read from MH i2c: E2 0E 00 B2 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CD [07:10:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:10:29]wFMCommunicate OK [07:10:29]SAM_PROTO_GetShiftState done [07:10:29]FM_GetShiftState done [07:10:29]req_shift_opened done [07:10:29]requested_item shift.open_date is exist - process it [07:10:29]req_shift_open_date [07:10:29]req_shift_open_date done [07:10:29]produce_requested_data done [07:10:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30517,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:10:29]process_action_free close_receipt [07:10:29]json_value_free [07:10:29]json_value_free done [07:10:29]process_json_proto returns [07:10:29]Send response to host [07:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30517,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:10:29]free response buf [07:10:29]execute_script done [07:10:29]execute_script returns [07:10:29]free content buf [07:10:29]Sock 7.Close socket [07:10:29]Sock 7.Thread stoped [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:12:59]accept exits with 9 [07:12:59]New connection [07:12:59]New thread 3067489636 created [07:12:59]Thread 3067346276 joined [07:12:59]Waiting for new connection... [07:12:59] Sock 9.Parse request [07:12:59]Sock 9.Check first char [07:12:59]Sock 9.First char is OK [07:12:59]request: POST /json_proto HTTP/1.0 [07:12:59]Method: POST [07:12:59]URL: /json_proto [07:12:59]Method is POST - this is cgi request [07:12:59]url: /json_proto [07:12:59]query_string will be loaded in cgi processing [07:12:59]execute_cgi json_proto POST (null) [07:12:59]execute_cgi path=json_proto method=POST [07:12:59]POST find Content-Length [07:12:59]Host: 172.17.51.3:8080 [07:12:59]Content-Length: 677 [07:12:59]Content-Type: application/json [07:12:59] [07:12:59]POST finish read [07:12:59]Found Content-Length = 677 [07:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:59]execute_script... [07:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:59]POST & json_proto [07:12:59]process_json_proto [07:12:59]json parsed OK: [07:12:59]protocol is kg_v1.0 [07:12:59]action value=close_receipt [07:12:59]process_action close_receipt [07:12:59]cmd_close_receipt [07:12:59]MH_GetDate [07:12:59]Write to MH i2c: F0 00 00 B3 22 C4 [07:12:59]Write i2c OK [07:12:59]MH_I2C_Read... [07:12:59]Read from MH i2c: F0 [07:12:59]MH_I2C_Read... [07:12:59]Read from MH i2c: F0 09 00 [07:12:59]MH_I2C_Read... [07:12:59]Read from MH i2c: F0 09 00 B3 22 00 FF FE 15 67 04 C1 95 66 06 [07:12:59]GetLastDocTimeStamp 1729494629 [07:12:59]current date 1729494783 [07:12:59]FM_GetShiftState [07:12:59]SAM_PROTO_GetShiftState [07:12:59]wFMCommunicate request_size=4 [07:12:59]MH_SAM_APDU [07:12:59]CAPDU: 80 13 01 00 [07:12:59]Write to MH i2c: E2 08 00 B4 22 80 13 01 00 00 00 00 00 53 [07:12:59]Write i2c OK [07:12:59]MH_I2C_Read... [07:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:59]Read from MH i2c: E2 [07:12:59]MH_I2C_Read... [07:12:59]Read from MH i2c: E2 0E 00 [07:12:59]MH_I2C_Read... [07:12:59]Read from MH i2c: E2 0E 00 B4 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CF [07:12:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:12:59]wFMCommunicate OK [07:12:59]SAM_PROTO_GetShiftState done [07:12:59]FM_GetShiftState done [07:12:59]opened in 1729471058 [07:12:59]opened+sec_in_day 1729557458 [07:12:59]quantity*price = 40006 [07:12:59]sum+1 = 40007 [07:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 15 21.10.2024 07:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30518 ФПД: 116624172661630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30518&fm=116624172661630&tin=02508201610067®Number=0000000000186857&sum=40000 [07:13:00]StoreToDocumentArchive [07:13:00]shift 115 fd 30518 [07:13:00]save to /storage/0115/doc_00030518 [07:13:00]save last doc name /storage/0115/doc_00030518 to /storage/kkm_last_doc_name [07:13:00]save OK [07:13:00]Clear old archive folders... [07:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:00]tlvbuf is 01DB6220 [07:13:00]SAM_PROTO_ClearQueue [07:13:00]wFMCommunicate request_size=4 [07:13:00]MH_SAM_APDU [07:13:00]CAPDU: 80 09 00 00 [07:13:00]Write to MH i2c: E2 08 00 C1 22 80 09 00 00 00 00 00 00 55 [07:13:00]Write i2c OK [07:13:00]MH_I2C_Read... [07:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:00]Read from MH i2c: E2 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: E2 03 00 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: E2 03 00 C1 22 00 90 00 57 [07:13:00]RAPDU: 90 00 [07:13:00]wFMCommunicate OK [07:13:00]SAM_PROTO_ClearQueue done [07:13:00]KKMCreateOFDPacket [07:13:00]OFDProtocolAddRootSTLVToBuf [07:13:00]FM_MakeSignedData [07:13:00]FM_MakeSignedData [07:13:00]SAM_PROTO_SignData [07:13:00]wFMCommunicate request_size=4 [07:13:00]MH_SAM_APDU [07:13:00]CAPDU: 80 0D 01 02 [07:13:00]Write to MH i2c: E2 08 00 C2 22 80 0D 01 02 00 00 00 00 5D [07:13:00]Write i2c OK [07:13:00]MH_I2C_Read... [07:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:00]Read from MH i2c: E2 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: E2 03 00 [07:13:00]MH_I2C_Read... [07:13:00]Read from MH i2c: E2 03 00 C2 22 00 90 00 58 [07:13:00]RAPDU: 90 00 [07:13:01]wFMCommunicate OK [07:13:01]wFMCommunicate request_size=255 [07:13:01]MH_SAM_APDU [07:13:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 FF FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 77 00 00 35 04 06 00 6A [07:13:01]Write to MH i2c: E2 02 01 C3 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 FF FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 77 00 00 35 04 06 00 6A 00 00 CF [07:13:01]Write i2c OK [07:13:01]MH_I2C_Read... [07:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:01]Read from MH i2c: E2 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 03 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [07:13:01]RAPDU: 90 00 [07:13:01]wFMCommunicate OK [07:13:01]wFMCommunicate request_size=10 [07:13:01]MH_SAM_APDU [07:13:01]CAPDU: 80 0D 02 02 05 11 AE 62 3B 7E [07:13:01]Write to MH i2c: E2 0D 00 C4 22 80 0D 02 02 05 00 11 AE 62 3B 7E 00 00 44 [07:13:01]Write i2c OK [07:13:01]MH_I2C_Read... [07:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:01]Read from MH i2c: E2 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 03 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [07:13:01]RAPDU: 90 00 [07:13:01]wFMCommunicate OK [07:13:01]wFMCommunicate request_size=4 [07:13:01]MH_SAM_APDU [07:13:01]CAPDU: 80 0D 03 02 [07:13:01]Write to MH i2c: E2 08 00 C5 22 80 0D 03 02 00 00 00 00 62 [07:13:01]Write i2c OK [07:13:01]MH_I2C_Read... [07:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:01]Read from MH i2c: E2 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 0B 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 0B 00 C5 22 00 53 CA 36 39 67 4C E5 C5 90 00 4C [07:13:01]RAPDU: 53 CA 36 39 67 4C E5 C5 90 00 [07:13:01]wFMCommunicate OK [07:13:01]SAM_PROTO_SignData done [07:13:01]FM_MakeSignedData done [07:13:01]CreateOFDProtocolMessage [07:13:01]wFMCommunicate request_size=4 [07:13:01]MH_SAM_APDU [07:13:01]CAPDU: 80 11 00 00 [07:13:01]Write to MH i2c: E2 08 00 C6 22 80 11 00 00 00 00 00 00 62 [07:13:01]Write i2c OK [07:13:01]MH_I2C_Read... [07:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:01]Read from MH i2c: E2 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 17 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: E2 17 00 C6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [07:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:13:01]wFMCommunicate OK [07:13:01]CreateOFDProtocolMessage done [07:13:01]OFDSenderStorePacket 30518 [07:13:01]StoreOFDPacket docnum=30518 [07:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A3 AA 07 01 39 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 FF FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 77 00 00 35 04 06 00 6A 11 AE 62 3B 7E 53 CA 36 39 67 4C E5 C5 [07:13:01]CheckFolder [07:13:01]dirname=/storage/ofd_packets [07:13:01]CheckFolder done [07:13:01]ProducePacketName [07:13:01]name=ofd_packets/00030518 [07:13:01]NVStorageSaveData ofd_packets/00030518 [07:13:01]File name is /storage/ofd_packets/00030518 [07:13:01]Write 301 bytes [07:13:01]NVStorageSaveData done [07:13:01]OFDSenderStorePacket done [07:13:01]KKMCreateOFDPacket done [07:13:01]NVStorageSaveData kkm_last_timestamp [07:13:01]File name is /storage/kkm_last_timestamp [07:13:01]Write 4 bytes [07:13:01]NVStorageSaveData done [07:13:01]ExternCall_PrintAddStr [07:13:01]wPrintStart [07:13:01]Write to MH i2c: 01 00 00 C7 22 E9 [07:13:01]Write i2c OK [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: 01 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: 01 07 00 [07:13:01]MH_I2C_Read... [07:13:01]Read from MH i2c: 01 07 00 C7 22 00 00 00 00 00 FF 0F FE [07:13:01]RasterBufferAndPrint [07:13:01]line Счет N : (1)342920 [07:13:01]line ИНН: 02508201610067 [07:13:01]line Контрольно-Кассовый Чек [07:13:01]line ПРОДАЖА [07:13:01]line ТРК (МРК, ГНК) : 33 [07:13:01]line Товар: 2710124130 [07:13:01]line Аи-92-К-2 [07:13:01]line 5.980 * 66.90 [07:13:01]line = 400.06 [07:13:01]line НДС 12% НСП 1% [07:13:01]line > о реализуемом товаре [07:13:01]line ОКРУГЛЕНИЕ: -0.06 [07:13:01]line ИТОГО: 400.00 [07:13:01]line Внесено: 400.00 [07:13:01]line СДАЧА: 0.00 [07:13:01]line НСП 1% : 3.54 [07:13:01]line НДС 12% : 42.48 [07:13:01]line Наличными: 400.00 [07:13:01]line Безнал.: 0.00 [07:13:01]line Место: АЗС № 78 "Партнер Нефть" [07:13:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:13:01]line СНО: Общий режим [07:13:01]line Чек 15 21.10.2024 07:13 [07:13:01]line Смена: 115 ФФД: 1.0 [07:13:01]line ЗНМ: 0300000137 [07:13:01]line РНМ: 0000000000186857 [07:13:01]line Версия ККМ: v1.0 [07:13:01]line ФМ: 0000000002094219 [07:13:01]line ФД: 30518 [07:13:01]line ФПД: 116624172661630 [07:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30518&fm=116624172661630&tin=02508201610067®Number=0000000000186857&sum=40000 [07:13:01]OFD Sender: Processing packet 30518 [packets to send 10, broken 9] [07:13:01]ProducePacketName [07:13:01]name=ofd_packets/00030518 [07:13:01]OFD Sender: To server: pG, [07:13:01]CommunicateWithHost lk.salyk.kg:30040 [07:13:01]ConnectInit lk.salyk.kg [07:13:01]written 0, free lines is 4095 [07:13:01]Connected sock=10 [07:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A3 AA 07 01 39 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 FF FE 15 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 77 00 00 35 04 06 00 6A 11 AE 62 3B 7E 53 CA 36 39 67 4C E5 C5 [07:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0B 9B 47 00 AC FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 36 77 00 00 F4 03 04 00 80 A9 15 67 B6 04 01 00 00 95 8E D0 2B 5C 25 27 37 [07:13:02]CommunicateWithHost err = 0 [07:13:02]CheckOFDResponse [07:13:02]1017 (14) - 77093643461234 [07:13:02]1041 (16) - 0000000002094219 [07:13:02]1040 (4) - 30518 [07:13:02]1012 (4) - 21.10.2024 01:08 [07:13:02]1206 (1) - 0 [07:13:02]OFD Sender: Remove packet 30518 [07:13:02]ProducePacketName [07:13:02]name=ofd_packets/00030518 [07:13:02]NVStorageDeleteData [07:13:02]Write to MH i2c: 01 00 00 F2 22 14 [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: 01 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: 01 07 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: 01 07 00 F2 22 00 00 00 00 00 EB 0C 12 [07:13:02]RasterBufferAndPrint [07:13:02]line [07:13:02]line [07:13:02]line [07:13:02]line [07:13:02]line [07:13:02]written 0, free lines is 3313 [07:13:02]MH_Cut [07:13:02]Write to MH i2c: D1 01 00 F9 22 01 ED [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: D1 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: D1 01 00 [07:13:02]MH_I2C_Read... [07:13:02]Read from MH i2c: D1 01 00 F9 22 00 EC [07:13:02]Write to MH i2c: 01 00 00 FA 22 1C [07:13:02]Write i2c OK [07:13:02]MH_I2C_Read... [07:13:02]OFD Sender: No OFD packet to send [07:13:02]*** Cut start [07:13:02]*** Partial cut [07:13:02]*** CUTSNS_PIN = 1 [07:13:02]*** CUTSNS_PIN = 0 [07:13:03]*** Brake cut motor [07:13:03]Read from MH i2c: 01 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: 01 07 00 [07:13:03]MH_I2C_Read... [07:13:03]*** Stop cut motor [07:13:03]*** Cut end [07:13:03]Read from MH i2c: 01 07 00 FA 22 00 00 00 00 00 FF 0F 31 [07:13:03]process_action close_receipt done [07:13:03]requested_data is exist [07:13:03]produce_requested_data [07:13:03]requested_item fm.sn is exist - process it [07:13:03]wFMCommunicate request_size=4 [07:13:03]MH_SAM_APDU [07:13:03]CAPDU: 80 11 00 00 [07:13:03]Write to MH i2c: E2 08 00 FB 22 80 11 00 00 00 00 00 00 97 [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [07:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:03]Read from MH i2c: E2 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 17 00 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 17 00 FB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [07:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:13:03]wFMCommunicate OK [07:13:03]requested_item fd.num is exist - process it [07:13:03]SAM_PROTO_GetFieldsCounters [07:13:03]wFMCommunicate request_size=4 [07:13:03]MH_SAM_APDU [07:13:03]CAPDU: 80 13 00 00 [07:13:03]Write to MH i2c: E2 08 00 FC 22 80 13 00 00 00 00 00 00 9A [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [07:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:03]Read from MH i2c: E2 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 62 00 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 62 00 FC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 77 00 00 0E 04 04 00 73 00 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 0D [07:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 36 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:03]wFMCommunicate OK [07:13:03]SAM_PROTO_GetFieldsCounters done [07:13:03]requested_item shift.num is exist - process it [07:13:03]requested_item shift.opened is exist - process it [07:13:03]req_shift_opened [07:13:03]FM_GetShiftState [07:13:03]SAM_PROTO_GetShiftState [07:13:03]wFMCommunicate request_size=4 [07:13:03]MH_SAM_APDU [07:13:03]CAPDU: 80 13 01 00 [07:13:03]Write to MH i2c: E2 08 00 FD 22 80 13 01 00 00 00 00 00 9C [07:13:03]Write i2c OK [07:13:03]MH_I2C_Read... [07:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:03]Read from MH i2c: E2 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 0E 00 [07:13:03]MH_I2C_Read... [07:13:03]Read from MH i2c: E2 0E 00 FD 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 18 [07:13:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:13:03]wFMCommunicate OK [07:13:03]SAM_PROTO_GetShiftState done [07:13:03]FM_GetShiftState done [07:13:03]req_shift_opened done [07:13:03]requested_item shift.open_date is exist - process it [07:13:03]req_shift_open_date [07:13:03]req_shift_open_date done [07:13:03]produce_requested_data done [07:13:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30518,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:13:03]process_action_free close_receipt [07:13:03]json_value_free [07:13:03]json_value_free done [07:13:03]process_json_proto returns [07:13:03]Send response to host [07:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30518,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:13:03]free response buf [07:13:03]execute_script done [07:13:03]execute_script returns [07:13:03]free content buf [07:13:03]Sock 9.Close socket [07:13:03]Sock 9.Thread stoped [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:13]accept exits with 7 [07:19:13]New connection [07:19:13]New thread 3067346276 created [07:19:13]Thread 3067489636 joined [07:19:13]Waiting for new connection... [07:19:13] Sock 7.Parse request [07:19:13]Sock 7.Check first char [07:19:13]Sock 7.First char is OK [07:19:13]request: POST /json_proto HTTP/1.0 [07:19:13]Method: POST [07:19:13]URL: /json_proto [07:19:13]Method is POST - this is cgi request [07:19:13]url: /json_proto [07:19:13]query_string will be loaded in cgi processing [07:19:13]execute_cgi json_proto POST (null) [07:19:13]execute_cgi path=json_proto method=POST [07:19:13]POST find Content-Length [07:19:13]Host: 172.17.51.3:8080 [07:19:13]Content-Length: 682 [07:19:13]Content-Type: application/json [07:19:13] [07:19:13]POST finish read [07:19:13]Found Content-Length = 682 [07:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:13]execute_script... [07:19:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:19:13]POST & json_proto [07:19:13]process_json_proto [07:19:13]json parsed OK: [07:19:13]protocol is kg_v1.0 [07:19:13]action value=close_receipt [07:19:13]process_action close_receipt [07:19:13]cmd_close_receipt [07:19:13]MH_GetDate [07:19:13]Write to MH i2c: F0 00 00 FE 22 0F [07:19:13]Write i2c OK [07:19:13]MH_I2C_Read... [07:19:13]Read from MH i2c: F0 [07:19:13]MH_I2C_Read... [07:19:13]Read from MH i2c: F0 09 00 [07:19:13]MH_I2C_Read... [07:19:13]Read from MH i2c: F0 09 00 FE 22 00 75 00 16 67 04 C1 95 66 CA [07:19:13]GetLastDocTimeStamp 1729494783 [07:19:13]current date 1729495157 [07:19:13]FM_GetShiftState [07:19:13]SAM_PROTO_GetShiftState [07:19:13]wFMCommunicate request_size=4 [07:19:13]MH_SAM_APDU [07:19:13]CAPDU: 80 13 01 00 [07:19:13]Write to MH i2c: E2 08 00 FF 22 80 13 01 00 00 00 00 00 9E [07:19:13]Write i2c OK [07:19:13]MH_I2C_Read... [07:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:13]Read from MH i2c: E2 [07:19:13]MH_I2C_Read... [07:19:13]Read from MH i2c: E2 0E 00 [07:19:13]MH_I2C_Read... [07:19:13]Read from MH i2c: E2 0E 00 FF 22 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1A [07:19:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:19:13]wFMCommunicate OK [07:19:13]SAM_PROTO_GetShiftState done [07:19:13]FM_GetShiftState done [07:19:13]opened in 1729471058 [07:19:13]opened+sec_in_day 1729557458 [07:19:13]quantity*price = 100015 [07:19:13]sum+1 = 100017 [07:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 16 21.10.2024 07:19 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30519 ФПД: 203850693046777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071917&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30519&fm=203850693046777&tin=02508201610067®Number=0000000000186857&sum=100000 [07:19:14]StoreToDocumentArchive [07:19:14]shift 115 fd 30519 [07:19:14]save to /storage/0115/doc_00030519 [07:19:14]save last doc name /storage/0115/doc_00030519 to /storage/kkm_last_doc_name [07:19:14]save OK [07:19:14]Clear old archive folders... [07:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:19:14]tlvbuf is B6FDB9F0 [07:19:14]SAM_PROTO_ClearQueue [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 09 00 00 [07:19:14]Write to MH i2c: E2 08 00 0C 23 80 09 00 00 00 00 00 00 A1 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 03 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 03 00 0C 23 00 90 00 A3 [07:19:14]RAPDU: 90 00 [07:19:14]wFMCommunicate OK [07:19:14]SAM_PROTO_ClearQueue done [07:19:14]KKMCreateOFDPacket [07:19:14]OFDProtocolAddRootSTLVToBuf [07:19:14]FM_MakeSignedData [07:19:14]FM_MakeSignedData [07:19:14]SAM_PROTO_SignData [07:19:14]wFMCommunicate request_size=4 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 0D 01 02 [07:19:14]Write to MH i2c: E2 08 00 0D 23 80 0D 01 02 00 00 00 00 A9 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:19:14]Read from MH i2c: E2 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 03 00 [07:19:14]MH_I2C_Read... [07:19:14]Read from MH i2c: E2 03 00 0D 23 00 90 00 A4 [07:19:14]RAPDU: 90 00 [07:19:14]wFMCommunicate OK [07:19:14]wFMCommunicate request_size=255 [07:19:14]MH_SAM_APDU [07:19:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 75 00 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 77 00 00 35 04 06 00 B9 [07:19:14]Write to MH i2c: E2 02 01 0E 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 75 00 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 77 00 00 35 04 06 00 B9 00 00 10 [07:19:14]Write i2c OK [07:19:14]MH_I2C_Read... [07:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:15]Read from MH i2c: E2 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [07:19:15]RAPDU: 90 00 [07:19:15]wFMCommunicate OK [07:19:15]wFMCommunicate request_size=10 [07:19:15]MH_SAM_APDU [07:19:15]CAPDU: 80 0D 02 02 05 66 B0 25 71 F9 [07:19:15]Write to MH i2c: E2 0D 00 0F 23 80 0D 02 02 05 00 66 B0 25 71 F9 00 00 5B [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:19:15]Read from MH i2c: E2 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [07:19:15]RAPDU: 90 00 [07:19:15]wFMCommunicate OK [07:19:15]wFMCommunicate request_size=4 [07:19:15]MH_SAM_APDU [07:19:15]CAPDU: 80 0D 03 02 [07:19:15]Write to MH i2c: E2 08 00 10 23 80 0D 03 02 00 00 00 00 AE [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:19:15]Read from MH i2c: E2 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 0B 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 0B 00 10 23 00 05 81 8E 26 D9 5F E4 D5 90 00 DA [07:19:15]RAPDU: 05 81 8E 26 D9 5F E4 D5 90 00 [07:19:15]wFMCommunicate OK [07:19:15]SAM_PROTO_SignData done [07:19:15]FM_MakeSignedData done [07:19:15]CreateOFDProtocolMessage [07:19:15]wFMCommunicate request_size=4 [07:19:15]MH_SAM_APDU [07:19:15]CAPDU: 80 11 00 00 [07:19:15]Write to MH i2c: E2 08 00 11 23 80 11 00 00 00 00 00 00 AE [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:15]Read from MH i2c: E2 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 17 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: E2 17 00 11 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [07:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:19:15]wFMCommunicate OK [07:19:15]CreateOFDProtocolMessage done [07:19:15]OFDSenderStorePacket 30519 [07:19:15]StoreOFDPacket docnum=30519 [07:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 2D 07 01 49 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 75 00 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 77 00 00 35 04 06 00 B9 66 B0 25 71 F9 05 81 8E 26 D9 5F E4 D5 [07:19:15]CheckFolder [07:19:15]dirname=/storage/ofd_packets [07:19:15]CheckFolder done [07:19:15]ProducePacketName [07:19:15]name=ofd_packets/00030519 [07:19:15]NVStorageSaveData ofd_packets/00030519 [07:19:15]File name is /storage/ofd_packets/00030519 [07:19:15]Write 301 bytes [07:19:15]NVStorageSaveData done [07:19:15]OFDSenderStorePacket done [07:19:15]KKMCreateOFDPacket done [07:19:15]NVStorageSaveData kkm_last_timestamp [07:19:15]File name is /storage/kkm_last_timestamp [07:19:15]Write 4 bytes [07:19:15]NVStorageSaveData done [07:19:15]ExternCall_PrintAddStr [07:19:15]wPrintStart [07:19:15]Write to MH i2c: 01 00 00 12 23 35 [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 07 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 07 00 12 23 00 00 00 00 00 FF 0F 4A [07:19:15]RasterBufferAndPrint [07:19:15]line Счет N : (1)342921 [07:19:15]line ИНН: 02508201610067 [07:19:15]line Контрольно-Кассовый Чек [07:19:15]line ПРОДАЖА [07:19:15]line ТРК (МРК, ГНК) : 53 [07:19:15]line Товар: 2710124130 [07:19:15]line Аи-92-К-2 [07:19:15]line 14.950 * 66.90 [07:19:15]line = 1000.16 [07:19:15]line НДС 12% НСП 1% [07:19:15]line > о реализуемом товаре [07:19:15]line ОКРУГЛЕНИЕ: -0.16 [07:19:15]line ИТОГО: 1000.00 [07:19:15]line Внесено: 1000.00 [07:19:15]line СДАЧА: 0.00 [07:19:15]line НСП 1% : 8.85 [07:19:15]line НДС 12% : 106.21 [07:19:15]line Наличными: 1000.00 [07:19:15]line Безнал.: 0.00 [07:19:15]line Место: АЗС № 78 "Партнер Нефть" [07:19:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:19:15]line СНО: Общий режим [07:19:15]line Чек 16 21.10.2024 07:19 [07:19:15]line Смена: 115 ФФД: 1.0 [07:19:15]line ЗНМ: 0300000137 [07:19:15]line РНМ: 0000000000186857 [07:19:15]line Версия ККМ: v1.0 [07:19:15]line ФМ: 0000000002094219 [07:19:15]line ФД: 30519 [07:19:15]line ФПД: 203850693046777 [07:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T071917&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30519&fm=203850693046777&tin=02508201610067®Number=0000000000186857&sum=100000 [07:19:15]OFD Sender: Processing packet 30519 [packets to send 10, broken 9] [07:19:15]ProducePacketName [07:19:15]name=ofd_packets/00030519 [07:19:15]OFD Sender: To server: pG, [07:19:15]CommunicateWithHost lk.salyk.kg:30040 [07:19:15]ConnectInit lk.salyk.kg [07:19:15]written 0, free lines is 4095 [07:19:15]Connected sock=10 [07:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EB 2D 07 01 49 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 75 00 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 77 00 00 35 04 06 00 B9 66 B0 25 71 F9 05 81 8E 26 D9 5F E4 D5 [07:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2B 05 47 00 D8 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 37 77 00 00 F4 03 04 00 F6 AA 15 67 B6 04 01 00 00 A9 97 08 2A 52 BD CD FD [07:19:15]CommunicateWithHost err = 0 [07:19:15]CheckOFDResponse [07:19:15]1017 (14) - 77093643461234 [07:19:15]1041 (16) - 0000000002094219 [07:19:15]1040 (4) - 30519 [07:19:15]1012 (4) - 21.10.2024 01:14 [07:19:15]1206 (1) - 0 [07:19:15]OFD Sender: Remove packet 30519 [07:19:15]ProducePacketName [07:19:15]name=ofd_packets/00030519 [07:19:15]NVStorageDeleteData [07:19:15]Write to MH i2c: 01 00 00 3D 23 60 [07:19:15]Write i2c OK [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 07 00 [07:19:15]MH_I2C_Read... [07:19:15]Read from MH i2c: 01 07 00 3D 23 00 00 00 00 00 ED 0C 60 [07:19:15]RasterBufferAndPrint [07:19:15]line [07:19:15]line [07:19:15]line [07:19:15]line [07:19:15]line [07:19:15]written 0, free lines is 3315 [07:19:16]MH_Cut [07:19:16]Write to MH i2c: D1 01 00 44 23 01 39 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 01 00 [07:19:16]MH_I2C_Read... [07:19:16]Read from MH i2c: D1 01 00 44 23 00 38 [07:19:16]Write to MH i2c: 01 00 00 45 23 68 [07:19:16]Write i2c OK [07:19:16]MH_I2C_Read... [07:19:16]OFD Sender: No OFD packet to send [07:19:16]*** Cut start [07:19:16]*** Partial cut [07:19:16]*** CUTSNS_PIN = 1 [07:19:16]*** CUTSNS_PIN = 0 [07:19:16]*** Brake cut motor [07:19:17]Read from MH i2c: 01 [07:19:17]MH_I2C_Read... [07:19:17]*** Stop cut motor [07:19:17]*** Cut end [07:19:17]Read from MH i2c: 01 07 00 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: 01 07 00 45 23 00 00 00 00 00 FF 0F 7D [07:19:17]process_action close_receipt done [07:19:17]requested_data is exist [07:19:17]produce_requested_data [07:19:17]requested_item fm.sn is exist - process it [07:19:17]wFMCommunicate request_size=4 [07:19:17]MH_SAM_APDU [07:19:17]CAPDU: 80 11 00 00 [07:19:17]Write to MH i2c: E2 08 00 46 23 80 11 00 00 00 00 00 00 E3 [07:19:17]Write i2c OK [07:19:17]MH_I2C_Read... [07:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:19:17]Read from MH i2c: E2 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 17 00 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 17 00 46 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [07:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:19:17]wFMCommunicate OK [07:19:17]requested_item fd.num is exist - process it [07:19:17]SAM_PROTO_GetFieldsCounters [07:19:17]wFMCommunicate request_size=4 [07:19:17]MH_SAM_APDU [07:19:17]CAPDU: 80 13 00 00 [07:19:17]Write to MH i2c: E2 08 00 47 23 80 13 00 00 00 00 00 00 E6 [07:19:17]Write i2c OK [07:19:17]MH_I2C_Read... [07:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:19:17]Read from MH i2c: E2 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 62 00 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 62 00 47 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 77 00 00 0E 04 04 00 73 00 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 5D [07:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 37 77 00 00 0E 04 04 00 73 00 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 [07:19:17]wFMCommunicate OK [07:19:17]SAM_PROTO_GetFieldsCounters done [07:19:17]requested_item shift.num is exist - process it [07:19:17]requested_item shift.opened is exist - process it [07:19:17]req_shift_opened [07:19:17]FM_GetShiftState [07:19:17]SAM_PROTO_GetShiftState [07:19:17]wFMCommunicate request_size=4 [07:19:17]MH_SAM_APDU [07:19:17]CAPDU: 80 13 01 00 [07:19:17]Write to MH i2c: E2 08 00 48 23 80 13 01 00 00 00 00 00 E8 [07:19:17]Write i2c OK [07:19:17]MH_I2C_Read... [07:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:19:17]Read from MH i2c: E2 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 0E 00 [07:19:17]MH_I2C_Read... [07:19:17]Read from MH i2c: E2 0E 00 48 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 64 [07:19:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:19:17]wFMCommunicate OK [07:19:17]SAM_PROTO_GetShiftState done [07:19:17]FM_GetShiftState done [07:19:17]req_shift_opened done [07:19:17]requested_item shift.open_date is exist - process it [07:19:17]req_shift_open_date [07:19:17]req_shift_open_date done [07:19:17]produce_requested_data done [07:19:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30519,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:19:17]process_action_free close_receipt [07:19:17]json_value_free [07:19:17]json_value_free done [07:19:17]process_json_proto returns [07:19:17]Send response to host [07:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30519,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:19:17]free response buf [07:19:17]execute_script done [07:19:17]execute_script returns [07:19:17]free content buf [07:19:17]Sock 7.Close socket [07:19:17]Sock 7.Thread stoped [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32: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: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: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: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]accept exits with 9 [07:43:12]New connection [07:43:12]New thread 3067489636 created [07:43:12]Thread 3067346276 joined [07:43:12]Waiting for new connection... [07:43:12] Sock 9.Parse request [07:43:12]Sock 9.Check first char [07:43:12]Sock 9.First char is OK [07:43:12]request: POST /json_proto HTTP/1.0 [07:43:12]Method: POST [07:43:12]URL: /json_proto [07:43:12]Method is POST - this is cgi request [07:43:12]url: /json_proto [07:43:12]query_string will be loaded in cgi processing [07:43:12]execute_cgi json_proto POST (null) [07:43:12]execute_cgi path=json_proto method=POST [07:43:12]POST find Content-Length [07:43:12]Host: 172.17.51.3:8080 [07:43:12]Content-Length: 849 [07:43:12]Content-Type: application/json [07:43:12] [07:43:12]POST finish read [07:43:12]Found Content-Length = 849 [07:43:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:12]execute_script... [07:43:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:12]POST & json_proto [07:43:12]process_json_proto [07:43:12]json parsed OK: [07:43:12]protocol is kg_v1.0 [07:43:12]action value=close_receipt [07:43:12]process_action close_receipt [07:43:12]cmd_close_receipt [07:43:12]MH_GetDate [07:43:12]Write to MH i2c: F0 00 00 49 23 5B [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: F0 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: F0 09 00 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: F0 09 00 49 23 00 13 06 16 67 04 C1 95 66 BA [07:43:12]GetLastDocTimeStamp 1729495157 [07:43:12]current date 1729496595 [07:43:12]FM_GetShiftState [07:43:12]SAM_PROTO_GetShiftState [07:43:12]wFMCommunicate request_size=4 [07:43:12]MH_SAM_APDU [07:43:12]CAPDU: 80 13 01 00 [07:43:12]Write to MH i2c: E2 08 00 4A 23 80 13 01 00 00 00 00 00 EA [07:43:12]Write i2c OK [07:43:12]MH_I2C_Read... [07:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:12]Read from MH i2c: E2 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 0E 00 [07:43:12]MH_I2C_Read... [07:43:12]Read from MH i2c: E2 0E 00 4A 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 66 [07:43:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:43:12]wFMCommunicate OK [07:43:12]SAM_PROTO_GetShiftState done [07:43:12]FM_GetShiftState done [07:43:12]opened in 1729471058 [07:43:12]opened+sec_in_day 1729557458 [07:43:12]quantity*price = 150076 [07:43:12]sum+1 = 150078 [07:43:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 17 21.10.2024 07:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30520 ФПД: 145170525329387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30520&fm=145170525329387&tin=02508201610067®Number=0000000000186857&sum=150077 [07:43:13]StoreToDocumentArchive [07:43:13]shift 115 fd 30520 [07:43:13]save to /storage/0115/doc_00030520 [07:43:13]save last doc name /storage/0115/doc_00030520 to /storage/kkm_last_doc_name [07:43:13]save OK [07:43:13]Clear old archive folders... [07:43:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:43:13]tlvbuf is 01DB6480 [07:43:13]SAM_PROTO_ClearQueue [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 09 00 00 [07:43:13]Write to MH i2c: E2 08 00 57 23 80 09 00 00 00 00 00 00 EC [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 57 23 00 90 00 EE [07:43:13]RAPDU: 90 00 [07:43:13]wFMCommunicate OK [07:43:13]SAM_PROTO_ClearQueue done [07:43:13]KKMCreateOFDPacket [07:43:13]OFDProtocolAddRootSTLVToBuf [07:43:13]FM_MakeSignedData [07:43:13]FM_MakeSignedData [07:43:13]SAM_PROTO_SignData [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 0D 01 02 [07:43:13]Write to MH i2c: E2 08 00 58 23 80 0D 01 02 00 00 00 00 F4 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 58 23 00 90 00 EF [07:43:13]RAPDU: 90 00 [07:43:13]wFMCommunicate OK [07:43:13]wFMCommunicate request_size=255 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 13 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 77 00 [07:43:13]Write to MH i2c: E2 02 01 59 23 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 13 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 77 00 00 00 05 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [07:43:13]RAPDU: 90 00 [07:43:13]wFMCommunicate OK [07:43:13]wFMCommunicate request_size=16 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 84 08 25 98 17 EB [07:43:13]Write to MH i2c: E2 13 00 5A 23 80 0D 02 02 0B 00 00 35 04 06 00 84 08 25 98 17 EB 00 00 97 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [07:43:13]RAPDU: 90 00 [07:43:13]wFMCommunicate OK [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 0D 03 02 [07:43:13]Write to MH i2c: E2 08 00 5B 23 80 0D 03 02 00 00 00 00 F9 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 0B 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 0B 00 5B 23 00 D8 AE FD 20 70 CF D2 4B 90 00 F9 [07:43:13]RAPDU: D8 AE FD 20 70 CF D2 4B 90 00 [07:43:13]wFMCommunicate OK [07:43:13]SAM_PROTO_SignData done [07:43:13]FM_MakeSignedData done [07:43:13]CreateOFDProtocolMessage [07:43:13]wFMCommunicate request_size=4 [07:43:13]MH_SAM_APDU [07:43:13]CAPDU: 80 11 00 00 [07:43:13]Write to MH i2c: E2 08 00 5C 23 80 11 00 00 00 00 00 00 F9 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:13]Read from MH i2c: E2 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 17 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: E2 17 00 5C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [07:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:43:13]wFMCommunicate OK [07:43:13]CreateOFDProtocolMessage done [07:43:13]OFDSenderStorePacket 30520 [07:43:13]StoreOFDPacket docnum=30520 [07:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 25 FC 0D 01 70 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 13 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 77 00 00 35 04 06 00 84 08 25 98 17 EB D8 AE FD 20 70 CF D2 4B [07:43:13]CheckFolder [07:43:13]dirname=/storage/ofd_packets [07:43:13]CheckFolder done [07:43:13]ProducePacketName [07:43:13]name=ofd_packets/00030520 [07:43:13]NVStorageSaveData ofd_packets/00030520 [07:43:13]File name is /storage/ofd_packets/00030520 [07:43:13]Write 307 bytes [07:43:13]NVStorageSaveData done [07:43:13]OFDSenderStorePacket done [07:43:13]KKMCreateOFDPacket done [07:43:13]NVStorageSaveData kkm_last_timestamp [07:43:13]File name is /storage/kkm_last_timestamp [07:43:13]Write 4 bytes [07:43:13]NVStorageSaveData done [07:43:13]ExternCall_PrintAddStr [07:43:13]wPrintStart [07:43:13]Write to MH i2c: 01 00 00 5D 23 80 [07:43:13]Write i2c OK [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 [07:43:13]MH_I2C_Read... [07:43:13]Read from MH i2c: 01 07 00 5D 23 00 00 00 00 00 FF 0F 95 [07:43:13]RasterBufferAndPrint [07:43:13]line Счет N : (1)342923 [07:43:13]line ИНН: 02508201610067 [07:43:13]line Контрольно-Кассовый Чек [07:43:13]line ПРОДАЖА [07:43:13]line ТРК (МРК, ГНК) : 61 [07:43:13]line Товар: 2710194210 [07:43:13]line D-ENERGY Дт-К-2 [07:43:13]line 19.440 * 77.20 [07:43:13]line = 1500.77 [07:43:13]line НДС 12% НСП 1% [07:43:13]line > о реализуемом товаре [07:43:13]line ИТОГО: 1500.77 [07:43:13]line НСП 1% : 13.28 [07:43:13]line НДС 12% : 159.37 [07:43:13]line Наличными: 0.00 [07:43:13]line Безнал.: 1500.77 [07:43:13]line Место: АЗС № 78 "Партнер Нефть" [07:43:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:43:13]line СНО: Общий режим [07:43:13]line Чек 17 21.10.2024 07:43 [07:43:13]line Смена: 115 ФФД: 1.0 [07:43:13]line ЗНМ: 0300000137 [07:43:13]line РНМ: 0000000000186857 [07:43:13]line Версия ККМ: v1.0 [07:43:13]line Платежная система: АКБ Кыргызстан [07:43:13]line ФМ: 0000000002094219 [07:43:13]line ФД: 30520 [07:43:13]line ФПД: 145170525329387 [07:43:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074315&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30520&fm=145170525329387&tin=02508201610067®Number=0000000000186857&sum=150077 [07:43:14]OFD Sender: Processing packet 30520 [packets to send 10, broken 9] [07:43:14]ProducePacketName [07:43:14]name=ofd_packets/00030520 [07:43:14]OFD Sender: To server: pG, [07:43:14]CommunicateWithHost lk.salyk.kg:30040 [07:43:14]ConnectInit lk.salyk.kg [07:43:14]written 0, free lines is 4095 [07:43:14]Connected sock=10 [07:43:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 25 FC 0D 01 70 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 13 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 77 00 00 35 04 06 00 84 08 25 98 17 EB D8 AE FD 20 70 CF D2 4B [07:43:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 50 D1 47 00 D0 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 38 77 00 00 F4 03 04 00 95 B0 15 67 B6 04 01 00 00 04 25 55 A0 FC 1C 2B 15 [07:43:14]CommunicateWithHost err = 0 [07:43:14]CheckOFDResponse [07:43:14]1017 (14) - 77093643461234 [07:43:14]1041 (16) - 0000000002094219 [07:43:14]1040 (4) - 30520 [07:43:14]1012 (4) - 21.10.2024 01:38 [07:43:14]1206 (1) - 0 [07:43:14]OFD Sender: Remove packet 30520 [07:43:14]ProducePacketName [07:43:14]name=ofd_packets/00030520 [07:43:14]NVStorageDeleteData [07:43:14]Write to MH i2c: 01 00 00 87 23 AA [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: 01 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: 01 07 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: 01 07 00 87 23 00 00 00 00 00 0E 0D CC [07:43:14]RasterBufferAndPrint [07:43:14]line [07:43:14]line [07:43:14]line [07:43:14]line [07:43:14]line [07:43:14]written 0, free lines is 3348 [07:43:14]MH_Cut [07:43:14]Write to MH i2c: D1 01 00 8E 23 01 83 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: D1 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: D1 01 00 [07:43:14]MH_I2C_Read... [07:43:14]Read from MH i2c: D1 01 00 8E 23 00 82 [07:43:14]Write to MH i2c: 01 00 00 8F 23 B2 [07:43:14]Write i2c OK [07:43:14]MH_I2C_Read... [07:43:15]OFD Sender: No OFD packet to send [07:43:15]*** Cut start [07:43:15]*** Partial cut [07:43:15]*** CUTSNS_PIN = 1 [07:43:15]*** CUTSNS_PIN = 0 [07:43:15]*** Brake cut motor [07:43:15]Read from MH i2c: 01 [07:43:15]MH_I2C_Read... [07:43:15]*** Stop cut motor [07:43:15]*** Cut end [07:43:15]Read from MH i2c: 01 07 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: 01 07 00 8F 23 00 00 00 00 00 FF 0F C7 [07:43:15]process_action close_receipt done [07:43:15]requested_data is exist [07:43:15]produce_requested_data [07:43:15]requested_item fm.sn is exist - process it [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 11 00 00 [07:43:15]Write to MH i2c: E2 08 00 90 23 80 11 00 00 00 00 00 00 2D [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:15]Read from MH i2c: E2 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 [07:43:15]MH_I2C_Read... [07:43:15]Read from MH i2c: E2 17 00 90 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [07:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:43:15]wFMCommunicate OK [07:43:15]requested_item fd.num is exist - process it [07:43:15]SAM_PROTO_GetFieldsCounters [07:43:15]wFMCommunicate request_size=4 [07:43:15]MH_SAM_APDU [07:43:15]CAPDU: 80 13 00 00 [07:43:15]Write to MH i2c: E2 08 00 91 23 80 13 00 00 00 00 00 00 30 [07:43:15]Write i2c OK [07:43:15]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 62 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 62 00 91 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 77 00 00 0E 04 04 00 73 00 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 AB [07:43:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 38 77 00 00 0E 04 04 00 73 00 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 [07:43:16]wFMCommunicate OK [07:43:16]SAM_PROTO_GetFieldsCounters done [07:43:16]requested_item shift.num is exist - process it [07:43:16]requested_item shift.opened is exist - process it [07:43:16]req_shift_opened [07:43:16]FM_GetShiftState [07:43:16]SAM_PROTO_GetShiftState [07:43:16]wFMCommunicate request_size=4 [07:43:16]MH_SAM_APDU [07:43:16]CAPDU: 80 13 01 00 [07:43:16]Write to MH i2c: E2 08 00 92 23 80 13 01 00 00 00 00 00 32 [07:43:16]Write i2c OK [07:43:16]MH_I2C_Read... [07:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:16]Read from MH i2c: E2 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 0E 00 [07:43:16]MH_I2C_Read... [07:43:16]Read from MH i2c: E2 0E 00 92 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AE [07:43:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:43:16]wFMCommunicate OK [07:43:16]SAM_PROTO_GetShiftState done [07:43:16]FM_GetShiftState done [07:43:16]req_shift_opened done [07:43:16]requested_item shift.open_date is exist - process it [07:43:16]req_shift_open_date [07:43:16]req_shift_open_date done [07:43:16]produce_requested_data done [07:43:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30520,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:43:16]process_action_free close_receipt [07:43:16]json_value_free [07:43:16]json_value_free done [07:43:16]process_json_proto returns [07:43:16]Send response to host [07:43:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30520,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:43:16]free response buf [07:43:16]execute_script done [07:43:16]execute_script returns [07:43:16]free content buf [07:43:16]Sock 9.Close socket [07:43:16]Sock 9.Thread stoped [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:43:56]accept exits with 7 [07:43:56]New connection [07:43:56]New thread 3067346276 created [07:43:56]Thread 3067489636 joined [07:43:56]Waiting for new connection... [07:43:56] Sock 7.Parse request [07:43:56]Sock 7.Check first char [07:43:56]Sock 7.First char is OK [07:43:56]request: POST /json_proto HTTP/1.0 [07:43:56]Method: POST [07:43:56]URL: /json_proto [07:43:56]Method is POST - this is cgi request [07:43:56]url: /json_proto [07:43:56]query_string will be loaded in cgi processing [07:43:56]execute_cgi json_proto POST (null) [07:43:56]execute_cgi path=json_proto method=POST [07:43:56]POST find Content-Length [07:43:56]Host: 172.17.51.3:8080 [07:43:56]Content-Length: 800 [07:43:56]Content-Type: application/json [07:43:56] [07:43:56]POST finish read [07:43:56]Found Content-Length = 800 [07:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949845", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:56]execute_script... [07:43:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949845", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:56]POST & json_proto [07:43:56]process_json_proto [07:43:56]json parsed OK: [07:43:56]protocol is kg_v1.0 [07:43:56]action value=close_receipt [07:43:56]process_action close_receipt [07:43:56]cmd_close_receipt [07:43:56]MH_GetDate [07:43:56]Write to MH i2c: F0 00 00 93 23 A5 [07:43:56]Write i2c OK [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: F0 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: F0 09 00 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: F0 09 00 93 23 00 3F 06 16 67 04 C1 95 66 30 [07:43:56]GetLastDocTimeStamp 1729496595 [07:43:56]current date 1729496639 [07:43:56]FM_GetShiftState [07:43:56]SAM_PROTO_GetShiftState [07:43:56]wFMCommunicate request_size=4 [07:43:56]MH_SAM_APDU [07:43:56]CAPDU: 80 13 01 00 [07:43:56]Write to MH i2c: E2 08 00 94 23 80 13 01 00 00 00 00 00 34 [07:43:56]Write i2c OK [07:43:56]MH_I2C_Read... [07:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:56]Read from MH i2c: E2 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: E2 0E 00 [07:43:56]MH_I2C_Read... [07:43:56]Read from MH i2c: E2 0E 00 94 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B0 [07:43:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:43:56]wFMCommunicate OK [07:43:56]SAM_PROTO_GetShiftState done [07:43:56]FM_GetShiftState done [07:43:56]opened in 1729471058 [07:43:56]opened+sec_in_day 1729557458 [07:43:56]quantity*price = 0 [07:43:56]sum+1 = 1 [07:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 18 21.10.2024 07:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949845 ФМ: 0000000002094219 ФД: 30521 ФПД: 178566215561605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30521&fm=178566215561605&tin=02508201610067®Number=0000000000186857&sum=0 [07:43:57]StoreToDocumentArchive [07:43:57]shift 115 fd 30521 [07:43:57]save to /storage/0115/doc_00030521 [07:43:57]save last doc name /storage/0115/doc_00030521 to /storage/kkm_last_doc_name [07:43:57]save OK [07:43:57]Clear old archive folders... [07:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:57]tlvbuf is 01E06360 [07:43:57]SAM_PROTO_ClearQueue [07:43:57]wFMCommunicate request_size=4 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 09 00 00 [07:43:57]Write to MH i2c: E2 08 00 A1 23 80 09 00 00 00 00 00 00 36 [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 A1 23 00 90 00 38 [07:43:57]RAPDU: 90 00 [07:43:57]wFMCommunicate OK [07:43:57]SAM_PROTO_ClearQueue done [07:43:57]KKMCreateOFDPacket [07:43:57]OFDProtocolAddRootSTLVToBuf [07:43:57]FM_MakeSignedData [07:43:57]FM_MakeSignedData [07:43:57]SAM_PROTO_SignData [07:43:57]wFMCommunicate request_size=4 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 0D 01 02 [07:43:57]Write to MH i2c: E2 08 00 A2 23 80 0D 01 02 00 00 00 00 3E [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 A2 23 00 90 00 39 [07:43:57]RAPDU: 90 00 [07:43:57]wFMCommunicate OK [07:43:57]wFMCommunicate request_size=255 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3F 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 77 00 00 35 04 06 00 A2 [07:43:57]Write to MH i2c: E2 02 01 A3 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3F 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 77 00 00 35 04 06 00 A2 00 00 51 [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [07:43:57]RAPDU: 90 00 [07:43:57]wFMCommunicate OK [07:43:57]wFMCommunicate request_size=10 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 0D 02 02 05 67 AF D8 F1 85 [07:43:57]Write to MH i2c: E2 0D 00 A4 23 80 0D 02 02 05 00 67 AF D8 F1 85 00 00 AF [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [07:43:57]RAPDU: 90 00 [07:43:57]wFMCommunicate OK [07:43:57]wFMCommunicate request_size=4 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 0D 03 02 [07:43:57]Write to MH i2c: E2 08 00 A5 23 80 0D 03 02 00 00 00 00 43 [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 0B 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 0B 00 A5 23 00 C2 3A B9 38 CF C2 70 95 90 00 C7 [07:43:57]RAPDU: C2 3A B9 38 CF C2 70 95 90 00 [07:43:57]wFMCommunicate OK [07:43:57]SAM_PROTO_SignData done [07:43:57]FM_MakeSignedData done [07:43:57]CreateOFDProtocolMessage [07:43:57]wFMCommunicate request_size=4 [07:43:57]MH_SAM_APDU [07:43:57]CAPDU: 80 11 00 00 [07:43:57]Write to MH i2c: E2 08 00 A6 23 80 11 00 00 00 00 00 00 43 [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:57]Read from MH i2c: E2 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 17 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: E2 17 00 A6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 91 [07:43:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:43:57]wFMCommunicate OK [07:43:57]CreateOFDProtocolMessage done [07:43:57]OFDSenderStorePacket 30521 [07:43:57]StoreOFDPacket docnum=30521 [07:43:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 EC 07 01 CF 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3F 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 77 00 00 35 04 06 00 A2 67 AF D8 F1 85 C2 3A B9 38 CF C2 70 95 [07:43:57]CheckFolder [07:43:57]dirname=/storage/ofd_packets [07:43:57]CheckFolder done [07:43:57]ProducePacketName [07:43:57]name=ofd_packets/00030521 [07:43:57]NVStorageSaveData ofd_packets/00030521 [07:43:57]File name is /storage/ofd_packets/00030521 [07:43:57]Write 301 bytes [07:43:57]NVStorageSaveData done [07:43:57]OFDSenderStorePacket done [07:43:57]KKMCreateOFDPacket done [07:43:57]NVStorageSaveData kkm_last_timestamp [07:43:57]File name is /storage/kkm_last_timestamp [07:43:57]Write 4 bytes [07:43:57]NVStorageSaveData done [07:43:57]ExternCall_PrintAddStr [07:43:57]wPrintStart [07:43:57]Write to MH i2c: 01 00 00 A7 23 CA [07:43:57]Write i2c OK [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: 01 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: 01 07 00 [07:43:57]MH_I2C_Read... [07:43:57]Read from MH i2c: 01 07 00 A7 23 00 00 00 00 00 FF 0F DF [07:43:57]RasterBufferAndPrint [07:43:57]line Счет N : (1)342924 [07:43:57]line ИНН: 02508201610067 [07:43:57]line Контрольно-Кассовый Чек [07:43:57]line ПРОДАЖА [07:43:57]line ТРК (МРК, ГНК) : 33 [07:43:57]line Товар: 2710124130 [07:43:57]line Аи-92-К-2 [07:43:57]line 20.000 * 0.00 [07:43:57]line = 0.00 [07:43:57]line НДС 12% НСП 1% [07:43:57]line > о реализуемом товаре [07:43:57]line ИТОГО: 0.00 [07:43:57]line НСП 1% : 0.00 [07:43:57]line НДС 12% : 0.00 [07:43:57]line Наличными: 0.00 [07:43:57]line Безнал.: 0.00 [07:43:57]line Место: АЗС № 78 "Партнер Нефть" [07:43:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:43:57]line СНО: Общий режим [07:43:57]line Чек 18 21.10.2024 07:43 [07:43:57]line Смена: 115 ФФД: 1.0 [07:43:57]line ЗНМ: 0300000137 [07:43:57]line РНМ: 0000000000186857 [07:43:57]line Версия ККМ: v1.0 [07:43:57]line Талоны: Топливные Талоны [07:43:57]line 3949845 [07:43:57]line ФМ: 0000000002094219 [07:43:57]line ФД: 30521 [07:43:57]line ФПД: 178566215561605 [07:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074359&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30521&fm=178566215561605&tin=02508201610067®Number=0000000000186857&sum=0 [07:43:57]written 0, free lines is 4095 [07:43:57]OFD Sender: Processing packet 30521 [packets to send 10, broken 9] [07:43:57]ProducePacketName [07:43:57]name=ofd_packets/00030521 [07:43:57]OFD Sender: To server: pG, [07:43:57]CommunicateWithHost lk.salyk.kg:30040 [07:43:57]ConnectInit lk.salyk.kg [07:43:57]Connected sock=10 [07:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 EC 07 01 CF 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 3F 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 77 00 00 35 04 06 00 A2 67 AF D8 F1 85 C2 3A B9 38 CF C2 70 95 [07:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B9 10 47 00 F9 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 39 77 00 00 F4 03 04 00 C0 B0 15 67 B6 04 01 00 00 AB AF 8D 18 84 11 70 1C [07:43:58]CommunicateWithHost err = 0 [07:43:58]CheckOFDResponse [07:43:58]1017 (14) - 77093643461234 [07:43:58]1041 (16) - 0000000002094219 [07:43:58]1040 (4) - 30521 [07:43:58]1012 (4) - 21.10.2024 01:39 [07:43:58]1206 (1) - 0 [07:43:58]OFD Sender: Remove packet 30521 [07:43:58]ProducePacketName [07:43:58]name=ofd_packets/00030521 [07:43:58]NVStorageDeleteData [07:43:58]Write to MH i2c: 01 00 00 D1 23 F4 [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: 01 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: 01 07 00 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: 01 07 00 D1 23 00 00 00 00 00 0B 0D 13 [07:43:58]RasterBufferAndPrint [07:43:58]line [07:43:58]line [07:43:58]line [07:43:58]line [07:43:58]line [07:43:58]written 0, free lines is 3346 [07:43:58]MH_Cut [07:43:58]Write to MH i2c: D1 01 00 D8 23 01 CD [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: D1 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: D1 01 00 [07:43:58]MH_I2C_Read... [07:43:58]Read from MH i2c: D1 01 00 D8 23 00 CC [07:43:58]Write to MH i2c: 01 00 00 D9 23 FC [07:43:58]Write i2c OK [07:43:58]MH_I2C_Read... [07:43:58]OFD Sender: No OFD packet to send [07:43:58]*** Cut start [07:43:58]*** Partial cut [07:43:58]*** CUTSNS_PIN = 1 [07:43:58]*** CUTSNS_PIN = 0 [07:43:59]*** Brake cut motor [07:43:59]Read from MH i2c: 01 [07:43:59]MH_I2C_Read... [07:43:59]*** Stop cut motor [07:43:59]*** Cut end [07:43:59]Read from MH i2c: 01 07 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: 01 07 00 D9 23 00 00 00 00 00 FF 0F 11 [07:43:59]process_action close_receipt done [07:43:59]requested_data is exist [07:43:59]produce_requested_data [07:43:59]requested_item fm.sn is exist - process it [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 11 00 00 [07:43:59]Write to MH i2c: E2 08 00 DA 23 80 11 00 00 00 00 00 00 77 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 17 00 DA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [07:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:43:59]wFMCommunicate OK [07:43:59]requested_item fd.num is exist - process it [07:43:59]SAM_PROTO_GetFieldsCounters [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 13 00 00 [07:43:59]Write to MH i2c: E2 08 00 DB 23 80 13 00 00 00 00 00 00 7A [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 62 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 62 00 DB 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 77 00 00 0E 04 04 00 73 00 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 F9 [07:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 39 77 00 00 0E 04 04 00 73 00 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 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_GetFieldsCounters done [07:43:59]requested_item shift.num is exist - process it [07:43:59]requested_item shift.opened is exist - process it [07:43:59]req_shift_opened [07:43:59]FM_GetShiftState [07:43:59]SAM_PROTO_GetShiftState [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 13 01 00 [07:43:59]Write to MH i2c: E2 08 00 DC 23 80 13 01 00 00 00 00 00 7C [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 DC 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F8 [07:43:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_GetShiftState done [07:43:59]FM_GetShiftState done [07:43:59]req_shift_opened done [07:43:59]requested_item shift.open_date is exist - process it [07:43:59]req_shift_open_date [07:43:59]req_shift_open_date done [07:43:59]produce_requested_data done [07:43:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30521,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:43:59]process_action_free close_receipt [07:43:59]json_value_free [07:43:59]json_value_free done [07:43:59]process_json_proto returns [07:43:59]Send response to host [07:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30521,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:43:59]free response buf [07:43:59]execute_script done [07:43:59]execute_script returns [07:43:59]free content buf [07:43:59]Sock 7.Close socket [07:43:59]Sock 7.Thread stoped [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:46]accept exits with 9 [07:44:46]New connection [07:44:46]New thread 3067489636 created [07:44:46]Thread 3067346276 joined [07:44:46]Waiting for new connection... [07:44:46] Sock 9.Parse request [07:44:46]Sock 9.Check first char [07:44:46]Sock 9.First char is OK [07:44:46]request: POST /json_proto HTTP/1.0 [07:44:46]Method: POST [07:44:46]URL: /json_proto [07:44:46]Method is POST - this is cgi request [07:44:46]url: /json_proto [07:44:46]query_string will be loaded in cgi processing [07:44:46]execute_cgi json_proto POST (null) [07:44:46]execute_cgi path=json_proto method=POST [07:44:46]POST find Content-Length [07:44:46]Host: 172.17.51.3:8080 [07:44:46]Content-Length: 677 [07:44:46]Content-Type: application/json [07:44:46] [07:44:46]POST finish read [07:44:46]Found Content-Length = 677 [07:44:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:46]execute_script... [07:44:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:44:46]POST & json_proto [07:44:46]process_json_proto [07:44:46]json parsed OK: [07:44:46]protocol is kg_v1.0 [07:44:46]action value=close_receipt [07:44:46]process_action close_receipt [07:44:46]cmd_close_receipt [07:44:46]MH_GetDate [07:44:46]Write to MH i2c: F0 00 00 DD 23 EF [07:44:46]Write i2c OK [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 09 00 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: F0 09 00 DD 23 00 72 06 16 67 04 C1 95 66 AD [07:44:46]GetLastDocTimeStamp 1729496639 [07:44:46]current date 1729496690 [07:44:46]FM_GetShiftState [07:44:46]SAM_PROTO_GetShiftState [07:44:46]wFMCommunicate request_size=4 [07:44:46]MH_SAM_APDU [07:44:46]CAPDU: 80 13 01 00 [07:44:46]Write to MH i2c: E2 08 00 DE 23 80 13 01 00 00 00 00 00 7E [07:44:46]Write i2c OK [07:44:46]MH_I2C_Read... [07:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:46]Read from MH i2c: E2 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: E2 0E 00 [07:44:46]MH_I2C_Read... [07:44:46]Read from MH i2c: E2 0E 00 DE 23 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FA [07:44:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:44:46]wFMCommunicate OK [07:44:46]SAM_PROTO_GetShiftState done [07:44:46]FM_GetShiftState done [07:44:46]opened in 1729471058 [07:44:46]opened+sec_in_day 1729557458 [07:44:46]quantity*price = 40068 [07:44:46]sum+1 = 40069 [07:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 19 21.10.2024 07:44 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30522 ФПД: 56055489088613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30522&fm=56055489088613&tin=02508201610067®Number=0000000000186857&sum=40000 [07:44:47]StoreToDocumentArchive [07:44:47]shift 115 fd 30522 [07:44:47]save to /storage/0115/doc_00030522 [07:44:47]save last doc name /storage/0115/doc_00030522 to /storage/kkm_last_doc_name [07:44:47]save OK [07:44:47]Clear old archive folders... [07:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:47]tlvbuf is 01DEAC00 [07:44:47]SAM_PROTO_ClearQueue [07:44:47]wFMCommunicate request_size=4 [07:44:47]MH_SAM_APDU [07:44:47]CAPDU: 80 09 00 00 [07:44:47]Write to MH i2c: E2 08 00 EB 23 80 09 00 00 00 00 00 00 80 [07:44:47]Write i2c OK [07:44:47]MH_I2C_Read... [07:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:47]Read from MH i2c: E2 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 EB 23 00 90 00 82 [07:44:47]RAPDU: 90 00 [07:44:47]wFMCommunicate OK [07:44:47]SAM_PROTO_ClearQueue done [07:44:47]KKMCreateOFDPacket [07:44:47]OFDProtocolAddRootSTLVToBuf [07:44:47]FM_MakeSignedData [07:44:47]FM_MakeSignedData [07:44:47]SAM_PROTO_SignData [07:44:47]wFMCommunicate request_size=4 [07:44:47]MH_SAM_APDU [07:44:47]CAPDU: 80 0D 01 02 [07:44:47]Write to MH i2c: E2 08 00 EC 23 80 0D 01 02 00 00 00 00 88 [07:44:47]Write i2c OK [07:44:47]MH_I2C_Read... [07:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:47]Read from MH i2c: E2 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 EC 23 00 90 00 83 [07:44:47]RAPDU: 90 00 [07:44:47]wFMCommunicate OK [07:44:47]wFMCommunicate request_size=255 [07:44:47]MH_SAM_APDU [07:44:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 77 00 00 35 04 06 00 32 [07:44:47]Write to MH i2c: E2 02 01 ED 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 77 00 00 35 04 06 00 32 00 00 27 [07:44:47]Write i2c OK [07:44:47]MH_I2C_Read... [07:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:47]Read from MH i2c: E2 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 [07:44:47]MH_I2C_Read... [07:44:47]Read from MH i2c: E2 03 00 ED 23 00 90 00 84 [07:44:47]RAPDU: 90 00 [07:44:47]wFMCommunicate OK [07:44:47]wFMCommunicate request_size=10 [07:44:47]MH_SAM_APDU [07:44:47]CAPDU: 80 0D 02 02 05 FB 6F 83 CC 65 [07:44:47]Write to MH i2c: E2 0D 00 EE 23 80 0D 02 02 05 00 FB 6F 83 CC 65 00 00 B3 [07:44:47]Write i2c OK [07:44:47]MH_I2C_Read... [07:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:48]Read from MH i2c: E2 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 03 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [07:44:48]RAPDU: 90 00 [07:44:48]wFMCommunicate OK [07:44:48]wFMCommunicate request_size=4 [07:44:48]MH_SAM_APDU [07:44:48]CAPDU: 80 0D 03 02 [07:44:48]Write to MH i2c: E2 08 00 EF 23 80 0D 03 02 00 00 00 00 8D [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:48]Read from MH i2c: E2 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 0B 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 0B 00 EF 23 00 9E 7B 28 05 48 8C 43 26 90 00 11 [07:44:48]RAPDU: 9E 7B 28 05 48 8C 43 26 90 00 [07:44:48]wFMCommunicate OK [07:44:48]SAM_PROTO_SignData done [07:44:48]FM_MakeSignedData done [07:44:48]CreateOFDProtocolMessage [07:44:48]wFMCommunicate request_size=4 [07:44:48]MH_SAM_APDU [07:44:48]CAPDU: 80 11 00 00 [07:44:48]Write to MH i2c: E2 08 00 F0 23 80 11 00 00 00 00 00 00 8D [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:48]Read from MH i2c: E2 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 17 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: E2 17 00 F0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [07:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:44:48]wFMCommunicate OK [07:44:48]CreateOFDProtocolMessage done [07:44:48]OFDSenderStorePacket 30522 [07:44:48]StoreOFDPacket docnum=30522 [07:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 BB 07 01 18 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 77 00 00 35 04 06 00 32 FB 6F 83 CC 65 9E 7B 28 05 48 8C 43 26 [07:44:48]CheckFolder [07:44:48]dirname=/storage/ofd_packets [07:44:48]CheckFolder done [07:44:48]ProducePacketName [07:44:48]name=ofd_packets/00030522 [07:44:48]NVStorageSaveData ofd_packets/00030522 [07:44:48]File name is /storage/ofd_packets/00030522 [07:44:48]Write 301 bytes [07:44:48]NVStorageSaveData done [07:44:48]OFDSenderStorePacket done [07:44:48]KKMCreateOFDPacket done [07:44:48]NVStorageSaveData kkm_last_timestamp [07:44:48]File name is /storage/kkm_last_timestamp [07:44:48]Write 4 bytes [07:44:48]NVStorageSaveData done [07:44:48]ExternCall_PrintAddStr [07:44:48]wPrintStart [07:44:48]Write to MH i2c: 01 00 00 F1 23 14 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 07 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 07 00 F1 23 00 00 00 00 00 FF 0F 29 [07:44:48]RasterBufferAndPrint [07:44:48]line Счет N : (1)342925 [07:44:48]line ИНН: 02508201610067 [07:44:48]line Контрольно-Кассовый Чек [07:44:48]line ПРОДАЖА [07:44:48]line ТРК (МРК, ГНК) : 42 [07:44:48]line Товар: 2710124500 [07:44:48]line Аи-95-К-3 [07:44:48]line 5.400 * 74.20 [07:44:48]line = 400.68 [07:44:48]line НДС 12% НСП 1% [07:44:48]line > о реализуемом товаре [07:44:48]line ОКРУГЛЕНИЕ: -0.68 [07:44:48]line ИТОГО: 400.00 [07:44:48]line Внесено: 400.00 [07:44:48]line СДАЧА: 0.00 [07:44:48]line НСП 1% : 3.55 [07:44:48]line НДС 12% : 42.55 [07:44:48]line Наличными: 400.00 [07:44:48]line Безнал.: 0.00 [07:44:48]line Место: АЗС № 78 "Партнер Нефть" [07:44:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [07:44:48]line СНО: Общий режим [07:44:48]line Чек 19 21.10.2024 07:44 [07:44:48]line Смена: 115 ФФД: 1.0 [07:44:48]line ЗНМ: 0300000137 [07:44:48]line РНМ: 0000000000186857 [07:44:48]line Версия ККМ: v1.0 [07:44:48]line ФМ: 0000000002094219 [07:44:48]line ФД: 30522 [07:44:48]line ФПД: 56055489088613 [07:44:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30522&fm=56055489088613&tin=02508201610067®Number=0000000000186857&sum=40000 [07:44:48]OFD Sender: Processing packet 30522 [packets to send 10, broken 9] [07:44:48]ProducePacketName [07:44:48]name=ofd_packets/00030522 [07:44:48]OFD Sender: To server: pG, [07:44:48]CommunicateWithHost lk.salyk.kg:30040 [07:44:48]ConnectInit lk.salyk.kg [07:44:48]written 0, free lines is 4095 [07:44:48]Connected sock=10 [07:44:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 BB 07 01 18 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 72 06 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 77 00 00 35 04 06 00 32 FB 6F 83 CC 65 9E 7B 28 05 48 8C 43 26 [07:44:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F4 D0 47 00 E9 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3A 77 00 00 F4 03 04 00 F3 B0 15 67 B6 04 01 00 00 E1 65 6A FC 5D 9F 92 C3 [07:44:48]CommunicateWithHost err = 0 [07:44:48]CheckOFDResponse [07:44:48]1017 (14) - 77093643461234 [07:44:48]1041 (16) - 0000000002094219 [07:44:48]1040 (4) - 30522 [07:44:48]1012 (4) - 21.10.2024 01:40 [07:44:48]1206 (1) - 0 [07:44:48]OFD Sender: Remove packet 30522 [07:44:48]ProducePacketName [07:44:48]name=ofd_packets/00030522 [07:44:48]NVStorageDeleteData [07:44:48]Write to MH i2c: 01 00 00 1C 24 40 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 07 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 F1 0C 44 [07:44:48]RasterBufferAndPrint [07:44:48]line [07:44:48]line [07:44:48]line [07:44:48]line [07:44:48]line [07:44:48]written 0, free lines is 3319 [07:44:48]MH_Cut [07:44:48]Write to MH i2c: D1 01 00 23 24 01 19 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: D1 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: D1 01 00 [07:44:48]MH_I2C_Read... [07:44:48]Read from MH i2c: D1 01 00 23 24 00 18 [07:44:48]Write to MH i2c: 01 00 00 24 24 48 [07:44:48]Write i2c OK [07:44:48]MH_I2C_Read... [07:44:49]OFD Sender: No OFD packet to send [07:44:49]*** Cut start [07:44:49]*** Partial cut [07:44:49]*** CUTSNS_PIN = 1 [07:44:49]*** CUTSNS_PIN = 0 [07:44:49]*** Brake cut motor [07:44:50]Read from MH i2c: 01 [07:44:50]MH_I2C_Read... [07:44:50]*** Stop cut motor [07:44:50]*** Cut end [07:44:50]Read from MH i2c: 01 07 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: 01 07 00 24 24 00 00 00 00 00 FF 0F 5D [07:44:50]process_action close_receipt done [07:44:50]requested_data is exist [07:44:50]produce_requested_data [07:44:50]requested_item fm.sn is exist - process it [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 11 00 00 [07:44:50]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 17 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [07:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [07:44:50]wFMCommunicate OK [07:44:50]requested_item fd.num is exist - process it [07:44:50]SAM_PROTO_GetFieldsCounters [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 13 00 00 [07:44:50]Write to MH i2c: E2 08 00 26 24 80 13 00 00 00 00 00 00 C6 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 62 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 62 00 26 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 77 00 00 0E 04 04 00 73 00 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 49 [07:44:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3A 77 00 00 0E 04 04 00 73 00 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 [07:44:50]wFMCommunicate OK [07:44:50]SAM_PROTO_GetFieldsCounters done [07:44:50]requested_item shift.num is exist - process it [07:44:50]requested_item shift.opened is exist - process it [07:44:50]req_shift_opened [07:44:50]FM_GetShiftState [07:44:50]SAM_PROTO_GetShiftState [07:44:50]wFMCommunicate request_size=4 [07:44:50]MH_SAM_APDU [07:44:50]CAPDU: 80 13 01 00 [07:44:50]Write to MH i2c: E2 08 00 27 24 80 13 01 00 00 00 00 00 C8 [07:44:50]Write i2c OK [07:44:50]MH_I2C_Read... [07:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:50]Read from MH i2c: E2 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0E 00 [07:44:50]MH_I2C_Read... [07:44:50]Read from MH i2c: E2 0E 00 27 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 44 [07:44:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [07:44:50]wFMCommunicate OK [07:44:50]SAM_PROTO_GetShiftState done [07:44:50]FM_GetShiftState done [07:44:50]req_shift_opened done [07:44:50]requested_item shift.open_date is exist - process it [07:44:50]req_shift_open_date [07:44:50]req_shift_open_date done [07:44:50]produce_requested_data done [07:44:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30522,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [07:44:50]process_action_free close_receipt [07:44:50]json_value_free [07:44:50]json_value_free done [07:44:50]process_json_proto returns [07:44:50]Send response to host [07:44:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30522,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [07:44:50]free response buf [07:44:50]execute_script done [07:44:50]execute_script returns [07:44:50]free content buf [07:44:50]Sock 9.Close socket [07:44:50]Sock 9.Thread stoped [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:37]accept exits with 7 [08:04:37]New connection [08:04:37]New thread 3067346276 created [08:04:37]Thread 3067489636 joined [08:04:37]Waiting for new connection... [08:04:37] Sock 7.Parse request [08:04:37]Sock 7.Check first char [08:04:37]Sock 7.First char is OK [08:04:37]request: POST /json_proto HTTP/1.0 [08:04:37]Method: POST [08:04:37]URL: /json_proto [08:04:37]Method is POST - this is cgi request [08:04:37]url: /json_proto [08:04:37]query_string will be loaded in cgi processing [08:04:37]execute_cgi json_proto POST (null) [08:04:37]execute_cgi path=json_proto method=POST [08:04:37]POST find Content-Length [08:04:37]Host: 172.17.51.3:8080 [08:04:37]Content-Length: 843 [08:04:37]Content-Type: application/json [08:04:37] [08:04:37]POST finish read [08:04:37]Found Content-Length = 843 [08:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:37]execute_script... [08:04:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 53.910, "sum" : 4000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:37]POST & json_proto [08:04:37]process_json_proto [08:04:37]json parsed OK: [08:04:37]protocol is kg_v1.0 [08:04:37]action value=close_receipt [08:04:37]process_action close_receipt [08:04:37]cmd_close_receipt [08:04:37]MH_GetDate [08:04:37]Write to MH i2c: F0 00 00 28 24 3B [08:04:37]Write i2c OK [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: F0 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: F0 09 00 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: F0 09 00 28 24 00 19 0B 16 67 04 C1 95 66 A5 [08:04:37]GetLastDocTimeStamp 1729496690 [08:04:37]current date 1729497881 [08:04:37]FM_GetShiftState [08:04:37]SAM_PROTO_GetShiftState [08:04:37]wFMCommunicate request_size=4 [08:04:37]MH_SAM_APDU [08:04:37]CAPDU: 80 13 01 00 [08:04:37]Write to MH i2c: E2 08 00 29 24 80 13 01 00 00 00 00 00 CA [08:04:37]Write i2c OK [08:04:37]MH_I2C_Read... [08:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:37]Read from MH i2c: E2 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 0E 00 [08:04:37]MH_I2C_Read... [08:04:37]Read from MH i2c: E2 0E 00 29 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 46 [08:04:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:04:37]wFMCommunicate OK [08:04:37]SAM_PROTO_GetShiftState done [08:04:37]FM_GetShiftState done [08:04:37]opened in 1729471058 [08:04:37]opened+sec_in_day 1729557458 [08:04:37]quantity*price = 400012 [08:04:37]sum+1 = 400013 [08:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.12 НСП 1% : 35.40 НДС 12% : 424.79 Наличными: 0.00 Безнал.: 4000.12 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 20 21.10.2024 08:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30523 ФПД: 250043275421004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080441&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30523&fm=250043275421004&tin=02508201610067®Number=0000000000186857&sum=400012 [08:04:38]StoreToDocumentArchive [08:04:38]shift 115 fd 30523 [08:04:38]save to /storage/0115/doc_00030523 [08:04:38]save last doc name /storage/0115/doc_00030523 to /storage/kkm_last_doc_name [08:04:38]save OK [08:04:38]Clear old archive folders... [08:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:38]tlvbuf is 01E0BFB0 [08:04:38]SAM_PROTO_ClearQueue [08:04:38]wFMCommunicate request_size=4 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 09 00 00 [08:04:38]Write to MH i2c: E2 08 00 36 24 80 09 00 00 00 00 00 00 CC [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 36 24 00 90 00 CE [08:04:38]RAPDU: 90 00 [08:04:38]wFMCommunicate OK [08:04:38]SAM_PROTO_ClearQueue done [08:04:38]KKMCreateOFDPacket [08:04:38]OFDProtocolAddRootSTLVToBuf [08:04:38]FM_MakeSignedData [08:04:38]FM_MakeSignedData [08:04:38]SAM_PROTO_SignData [08:04:38]wFMCommunicate request_size=4 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 0D 01 02 [08:04:38]Write to MH i2c: E2 08 00 37 24 80 0D 01 02 00 00 00 00 D4 [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:38]Read from MH i2c: E2 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 [08:04:38]MH_I2C_Read... [08:04:38]Read from MH i2c: E2 03 00 37 24 00 90 00 CF [08:04:38]RAPDU: 90 00 [08:04:38]wFMCommunicate OK [08:04:38]wFMCommunicate request_size=255 [08:04:38]MH_SAM_APDU [08:04:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 19 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 77 00 00 35 04 06 00 E3 [08:04:38]Write to MH i2c: E2 02 01 38 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 19 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 77 00 00 35 04 06 00 E3 00 00 9B [08:04:38]Write i2c OK [08:04:38]MH_I2C_Read... [08:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:39]Read from MH i2c: E2 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 03 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 03 00 38 24 00 90 00 D0 [08:04:39]RAPDU: 90 00 [08:04:39]wFMCommunicate OK [08:04:39]wFMCommunicate request_size=10 [08:04:39]MH_SAM_APDU [08:04:39]CAPDU: 80 0D 02 02 05 69 BC 9C 25 4C [08:04:39]Write to MH i2c: E2 0D 00 39 24 80 0D 02 02 05 00 69 BC 9C 25 4C 00 00 13 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:39]Read from MH i2c: E2 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 03 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [08:04:39]RAPDU: 90 00 [08:04:39]wFMCommunicate OK [08:04:39]wFMCommunicate request_size=4 [08:04:39]MH_SAM_APDU [08:04:39]CAPDU: 80 0D 03 02 [08:04:39]Write to MH i2c: E2 08 00 3A 24 80 0D 03 02 00 00 00 00 D9 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:39]Read from MH i2c: E2 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 0B 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 0B 00 3A 24 00 74 FF AC 5E BC 1F 8C 2A 90 00 E8 [08:04:39]RAPDU: 74 FF AC 5E BC 1F 8C 2A 90 00 [08:04:39]wFMCommunicate OK [08:04:39]SAM_PROTO_SignData done [08:04:39]FM_MakeSignedData done [08:04:39]CreateOFDProtocolMessage [08:04:39]wFMCommunicate request_size=4 [08:04:39]MH_SAM_APDU [08:04:39]CAPDU: 80 11 00 00 [08:04:39]Write to MH i2c: E2 08 00 3B 24 80 11 00 00 00 00 00 00 D9 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:39]Read from MH i2c: E2 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 17 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: E2 17 00 3B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [08:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:04:39]wFMCommunicate OK [08:04:39]CreateOFDProtocolMessage done [08:04:39]OFDSenderStorePacket 30523 [08:04:39]StoreOFDPacket docnum=30523 [08:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 87 59 07 01 2D 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 19 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 77 00 00 35 04 06 00 E3 69 BC 9C 25 4C 74 FF AC 5E BC 1F 8C 2A [08:04:39]CheckFolder [08:04:39]dirname=/storage/ofd_packets [08:04:39]CheckFolder done [08:04:39]ProducePacketName [08:04:39]name=ofd_packets/00030523 [08:04:39]NVStorageSaveData ofd_packets/00030523 [08:04:39]File name is /storage/ofd_packets/00030523 [08:04:39]Write 301 bytes [08:04:39]NVStorageSaveData done [08:04:39]OFDSenderStorePacket done [08:04:39]KKMCreateOFDPacket done [08:04:39]NVStorageSaveData kkm_last_timestamp [08:04:39]File name is /storage/kkm_last_timestamp [08:04:39]Write 4 bytes [08:04:39]NVStorageSaveData done [08:04:39]ExternCall_PrintAddStr [08:04:39]wPrintStart [08:04:39]Write to MH i2c: 01 00 00 3C 24 60 [08:04:39]Write i2c OK [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 07 00 [08:04:39]MH_I2C_Read... [08:04:39]Read from MH i2c: 01 07 00 3C 24 00 00 00 00 00 FF 0F 75 [08:04:39]RasterBufferAndPrint [08:04:39]line Счет N : (1)342926 [08:04:39]line ИНН: 02508201610067 [08:04:39]line Контрольно-Кассовый Чек [08:04:39]line ПРОДАЖА [08:04:39]line ТРК (МРК, ГНК) : 52 [08:04:39]line Товар: 2710124500 [08:04:39]line Аи-95-К-3 [08:04:39]line 53.910 * 74.20 [08:04:39]line = 4000.12 [08:04:39]line НДС 12% НСП 1% [08:04:39]line > о реализуемом товаре [08:04:39]line ИТОГО: 4000.12 [08:04:39]line НСП 1% : 35.40 [08:04:39]line НДС 12% : 424.79 [08:04:39]line Наличными: 0.00 [08:04:39]line Безнал.: 4000.12 [08:04:39]line Место: АЗС № 78 "Партнер Нефть" [08:04:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:04:39]line СНО: Общий режим [08:04:39]line Чек 20 21.10.2024 08:04 [08:04:39]line Смена: 115 ФФД: 1.0 [08:04:39]line ЗНМ: 0300000137 [08:04:39]line РНМ: 0000000000186857 [08:04:39]line Версия ККМ: v1.0 [08:04:39]line Платежная система: АКБ Кыргызстан [08:04:39]line ФМ: 0000000002094219 [08:04:39]line ФД: 30523 [08:04:39]line ФПД: 250043275421004 [08:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080441&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30523&fm=250043275421004&tin=02508201610067®Number=0000000000186857&sum=400012 [08:04:39]OFD Sender: Processing packet 30523 [packets to send 10, broken 9] [08:04:39]ProducePacketName [08:04:39]name=ofd_packets/00030523 [08:04:39]OFD Sender: To server: pG, [08:04:39]CommunicateWithHost lk.salyk.kg:30040 [08:04:39]ConnectInit lk.salyk.kg [08:04:39]written 0, free lines is 4095 [08:04:39]Connected sock=10 [08:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 87 59 07 01 2D 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 96 D2 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 19 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3B 77 00 00 35 04 06 00 E3 69 BC 9C 25 4C 74 FF AC 5E BC 1F 8C 2A [08:04:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 98 AB 47 00 99 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 32 30 39 34 32 31 39 10 04 04 00 3B 77 00 00 F4 03 04 00 9A B5 15 67 B6 04 01 00 00 18 95 D2 E4 D8 05 D3 9D [08:04:40]CommunicateWithHost err = 0 [08:04:40]CheckOFDResponse [08:04:40]1017 (14) - 77093643461234 [08:04:40]1041 (16) - 0000000002094219 [08:04:40]1040 (4) - 30523 [08:04:40]1012 (4) - 21.10.2024 01:59 [08:04:40]1206 (1) - 0 [08:04:40]OFD Sender: Remove packet 30523 [08:04:40]ProducePacketName [08:04:40]name=ofd_packets/00030523 [08:04:40]NVStorageDeleteData [08:04:40]Write to MH i2c: 01 00 00 66 24 8A [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: 01 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: 01 07 00 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: 01 07 00 66 24 00 00 00 00 00 0C 0D AA [08:04:40]RasterBufferAndPrint [08:04:40]line [08:04:40]line [08:04:40]line [08:04:40]line [08:04:40]line [08:04:40]written 0, free lines is 3348 [08:04:40]MH_Cut [08:04:40]Write to MH i2c: D1 01 00 6D 24 01 63 [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: D1 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: D1 01 00 [08:04:40]MH_I2C_Read... [08:04:40]Read from MH i2c: D1 01 00 6D 24 00 62 [08:04:40]Write to MH i2c: 01 00 00 6E 24 92 [08:04:40]Write i2c OK [08:04:40]MH_I2C_Read... [08:04:40]OFD Sender: No OFD packet to send [08:04:40]*** Cut start [08:04:40]*** Partial cut [08:04:40]*** CUTSNS_PIN = 1 [08:04:40]*** CUTSNS_PIN = 0 [08:04:41]*** Brake cut motor [08:04:41]Read from MH i2c: 01 [08:04:41]MH_I2C_Read... [08:04:41]*** Stop cut motor [08:04:41]*** Cut end [08:04:41]Read from MH i2c: 01 07 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 FF 0F A7 [08:04:41]process_action close_receipt done [08:04:41]requested_data is exist [08:04:41]produce_requested_data [08:04:41]requested_item fm.sn is exist - process it [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 11 00 00 [08:04:41]Write to MH i2c: E2 08 00 6F 24 80 11 00 00 00 00 00 00 0D [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:41]Read from MH i2c: E2 17 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 17 00 6F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [08:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:04:41]wFMCommunicate OK [08:04:41]requested_item fd.num is exist - process it [08:04:41]SAM_PROTO_GetFieldsCounters [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 13 00 00 [08:04:41]Write to MH i2c: E2 08 00 70 24 80 13 00 00 00 00 00 00 10 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 62 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 62 00 70 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 77 00 00 0E 04 04 00 73 00 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 97 [08:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:41]wFMCommunicate OK [08:04:41]SAM_PROTO_GetFieldsCounters done [08:04:41]requested_item shift.num is exist - process it [08:04:41]requested_item shift.opened is exist - process it [08:04:41]req_shift_opened [08:04:41]FM_GetShiftState [08:04:41]SAM_PROTO_GetShiftState [08:04:41]wFMCommunicate request_size=4 [08:04:41]MH_SAM_APDU [08:04:41]CAPDU: 80 13 01 00 [08:04:41]Write to MH i2c: E2 08 00 71 24 80 13 01 00 00 00 00 00 12 [08:04:41]Write i2c OK [08:04:41]MH_I2C_Read... [08:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:41]Read from MH i2c: E2 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 0E 00 [08:04:41]MH_I2C_Read... [08:04:41]Read from MH i2c: E2 0E 00 71 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8E [08:04:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:04:41]wFMCommunicate OK [08:04:41]SAM_PROTO_GetShiftState done [08:04:41]FM_GetShiftState done [08:04:41]req_shift_opened done [08:04:41]requested_item shift.open_date is exist - process it [08:04:41]req_shift_open_date [08:04:41]req_shift_open_date done [08:04:41]produce_requested_data done [08:04:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30523,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:04:41]process_action_free close_receipt [08:04:41]json_value_free [08:04:41]json_value_free done [08:04:41]process_json_proto returns [08:04:41]Send response to host [08:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30523,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:04:41]free response buf [08:04:41]execute_script done [08:04:41]execute_script returns [08:04:41]free content buf [08:04:41]Sock 7.Close socket [08:04:41]Sock 7.Thread stoped [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:14]accept exits with 9 [08:06:14]New connection [08:06:14]New thread 3067489636 created [08:06:14]Thread 3067346276 joined [08:06:14]Waiting for new connection... [08:06:14] Sock 9.Parse request [08:06:14]Sock 9.Check first char [08:06:14]Sock 9.First char is OK [08:06:14]request: POST /json_proto HTTP/1.0 [08:06:14]Method: POST [08:06:14]URL: /json_proto [08:06:14]Method is POST - this is cgi request [08:06:14]url: /json_proto [08:06:14]query_string will be loaded in cgi processing [08:06:14]execute_cgi json_proto POST (null) [08:06:14]execute_cgi path=json_proto method=POST [08:06:14]POST find Content-Length [08:06:14]Host: 172.17.51.3:8080 [08:06:14]Content-Length: 688 [08:06:14]Content-Type: application/json [08:06:14] [08:06:14]POST finish read [08:06:14]Found Content-Length = 688 [08:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:14]execute_script... [08:06:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:14]POST & json_proto [08:06:14]process_json_proto [08:06:14]json parsed OK: [08:06:14]protocol is kg_v1.0 [08:06:14]action value=close_receipt [08:06:14]process_action close_receipt [08:06:14]cmd_close_receipt [08:06:14]MH_GetDate [08:06:14]Write to MH i2c: F0 00 00 72 24 85 [08:06:14]Write i2c OK [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: F0 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: F0 09 00 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: F0 09 00 72 24 00 79 0B 16 67 04 C1 95 66 4F [08:06:14]GetLastDocTimeStamp 1729497881 [08:06:14]current date 1729497977 [08:06:14]FM_GetShiftState [08:06:14]SAM_PROTO_GetShiftState [08:06:14]wFMCommunicate request_size=4 [08:06:14]MH_SAM_APDU [08:06:14]CAPDU: 80 13 01 00 [08:06:14]Write to MH i2c: E2 08 00 73 24 80 13 01 00 00 00 00 00 14 [08:06:14]Write i2c OK [08:06:14]MH_I2C_Read... [08:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:14]Read from MH i2c: E2 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 0E 00 [08:06:14]MH_I2C_Read... [08:06:14]Read from MH i2c: E2 0E 00 73 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 90 [08:06:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:06:14]wFMCommunicate OK [08:06:14]SAM_PROTO_GetShiftState done [08:06:14]FM_GetShiftState done [08:06:14]opened in 1729471058 [08:06:14]opened+sec_in_day 1729557458 [08:06:14]quantity*price = 100051 [08:06:14]sum+1 = 100052 [08:06:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 21 21.10.2024 08:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30524 ФПД: 41197828487873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080617&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30524&fm=41197828487873&tin=02508201610067®Number=0000000000186857&sum=100000 [08:06:15]StoreToDocumentArchive [08:06:15]shift 115 fd 30524 [08:06:15]save to /storage/0115/doc_00030524 [08:06:15]save last doc name /storage/0115/doc_00030524 to /storage/kkm_last_doc_name [08:06:15]save OK [08:06:15]Clear old archive folders... [08:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:06:15]tlvbuf is 01DEA1C0 [08:06:15]SAM_PROTO_ClearQueue [08:06:15]wFMCommunicate request_size=4 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 09 00 00 [08:06:15]Write to MH i2c: E2 08 00 80 24 80 09 00 00 00 00 00 00 16 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 80 24 00 90 00 18 [08:06:15]RAPDU: 90 00 [08:06:15]wFMCommunicate OK [08:06:15]SAM_PROTO_ClearQueue done [08:06:15]KKMCreateOFDPacket [08:06:15]OFDProtocolAddRootSTLVToBuf [08:06:15]FM_MakeSignedData [08:06:15]FM_MakeSignedData [08:06:15]SAM_PROTO_SignData [08:06:15]wFMCommunicate request_size=4 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 0D 01 02 [08:06:15]Write to MH i2c: E2 08 00 81 24 80 0D 01 02 00 00 00 00 1E [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 81 24 00 90 00 19 [08:06:15]RAPDU: 90 00 [08:06:15]wFMCommunicate OK [08:06:15]wFMCommunicate request_size=255 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 77 00 [08:06:15]Write to MH i2c: E2 02 01 82 24 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 77 00 00 00 B4 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 82 24 00 90 00 1A [08:06:15]RAPDU: 90 00 [08:06:15]wFMCommunicate OK [08:06:15]wFMCommunicate request_size=16 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 78 1D EE BA C1 [08:06:15]Write to MH i2c: E2 13 00 83 24 80 0D 02 02 0B 00 00 35 04 06 00 25 78 1D EE BA C1 00 00 99 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]OFD Sender: No OFD packet to send [08:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [08:06:15]RAPDU: 90 00 [08:06:15]wFMCommunicate OK [08:06:15]wFMCommunicate request_size=4 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 0D 03 02 [08:06:15]Write to MH i2c: E2 08 00 84 24 80 0D 03 02 00 00 00 00 23 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 0B 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 0B 00 84 24 00 A9 19 15 60 3C 56 6C 6F 90 00 C8 [08:06:15]RAPDU: A9 19 15 60 3C 56 6C 6F 90 00 [08:06:15]wFMCommunicate OK [08:06:15]SAM_PROTO_SignData done [08:06:15]FM_MakeSignedData done [08:06:15]CreateOFDProtocolMessage [08:06:15]wFMCommunicate request_size=4 [08:06:15]MH_SAM_APDU [08:06:15]CAPDU: 80 11 00 00 [08:06:15]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:15]Read from MH i2c: E2 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 17 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [08:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:15]wFMCommunicate OK [08:06:15]CreateOFDProtocolMessage done [08:06:15]OFDSenderStorePacket 30524 [08:06:15]StoreOFDPacket docnum=30524 [08:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 29 1D 0D 01 55 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 77 00 00 35 04 06 00 25 78 1D EE BA C1 A9 19 15 60 3C 56 6C 6F [08:06:15]CheckFolder [08:06:15]dirname=/storage/ofd_packets [08:06:15]CheckFolder done [08:06:15]ProducePacketName [08:06:15]name=ofd_packets/00030524 [08:06:15]NVStorageSaveData ofd_packets/00030524 [08:06:15]File name is /storage/ofd_packets/00030524 [08:06:15]Write 307 bytes [08:06:15]NVStorageSaveData done [08:06:15]OFDSenderStorePacket done [08:06:15]KKMCreateOFDPacket done [08:06:15]NVStorageSaveData kkm_last_timestamp [08:06:15]File name is /storage/kkm_last_timestamp [08:06:15]Write 4 bytes [08:06:15]NVStorageSaveData done [08:06:15]ExternCall_PrintAddStr [08:06:15]wPrintStart [08:06:15]Write to MH i2c: 01 00 00 86 24 AA [08:06:15]Write i2c OK [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 07 00 [08:06:15]MH_I2C_Read... [08:06:15]Read from MH i2c: 01 07 00 86 24 00 00 00 00 00 FF 0F BF [08:06:15]RasterBufferAndPrint [08:06:15]line Счет N : (1)342927 [08:06:15]line ИНН: 02508201610067 [08:06:15]line Контрольно-Кассовый Чек [08:06:15]line ПРОДАЖА [08:06:15]line ТРК (МРК, ГНК) : 61 [08:06:15]line Товар: 2710194210 [08:06:15]line D-ENERGY Дт-К-2 [08:06:15]line 12.960 * 77.20 [08:06:15]line = 1000.51 [08:06:15]line НДС 12% НСП 1% [08:06:15]line > о реализуемом товаре [08:06:15]line ОКРУГЛЕНИЕ: -0.51 [08:06:15]line ИТОГО: 1000.00 [08:06:15]line Внесено: 1000.00 [08:06:15]line СДАЧА: 0.00 [08:06:15]line НСП 1% : 8.85 [08:06:15]line НДС 12% : 106.25 [08:06:15]line Наличными: 1000.00 [08:06:15]line Безнал.: 0.00 [08:06:15]line Место: АЗС № 78 "Партнер Нефть" [08:06:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:06:15]line СНО: Общий режим [08:06:15]line Чек 21 21.10.2024 08:06 [08:06:15]line Смена: 115 ФФД: 1.0 [08:06:15]line ЗНМ: 0300000137 [08:06:15]line РНМ: 0000000000186857 [08:06:15]line Версия ККМ: v1.0 [08:06:15]line ФМ: 0000000002094219 [08:06:15]line ФД: 30524 [08:06:15]line ФПД: 41197828487873 [08:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080617&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30524&fm=41197828487873&tin=02508201610067®Number=0000000000186857&sum=100000 [08:06:16]OFD Sender: Processing packet 30524 [packets to send 10, broken 9] [08:06:16]ProducePacketName [08:06:16]name=ofd_packets/00030524 [08:06:16]OFD Sender: To server: pG, [08:06:16]CommunicateWithHost lk.salyk.kg:30040 [08:06:16]ConnectInit lk.salyk.kg [08:06:16]written 0, free lines is 4095 [08:06:16]Connected sock=10 [08:06:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 29 1D 0D 01 55 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 79 0B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 77 00 00 35 04 06 00 25 78 1D EE BA C1 A9 19 15 60 3C 56 6C 6F [08:06:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F4 61 47 00 F6 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3C 77 00 00 F4 03 04 00 FB B5 15 67 B6 04 01 00 00 71 19 29 15 6C 59 8A 22 [08:06:16]CommunicateWithHost err = 0 [08:06:16]CheckOFDResponse [08:06:16]1017 (14) - 77093643461234 [08:06:16]1041 (16) - 0000000002094219 [08:06:16]1040 (4) - 30524 [08:06:16]1012 (4) - 21.10.2024 02:01 [08:06:16]1206 (1) - 0 [08:06:16]OFD Sender: Remove packet 30524 [08:06:16]ProducePacketName [08:06:16]name=ofd_packets/00030524 [08:06:16]NVStorageDeleteData [08:06:16]Write to MH i2c: 01 00 00 B1 24 D5 [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 07 00 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: 01 07 00 B1 24 00 00 00 00 00 F5 0C DD [08:06:16]RasterBufferAndPrint [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]line [08:06:16]written 0, free lines is 3323 [08:06:16]MH_Cut [08:06:16]Write to MH i2c: D1 01 00 B8 24 01 AE [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 01 00 [08:06:16]MH_I2C_Read... [08:06:16]Read from MH i2c: D1 01 00 B8 24 00 AD [08:06:16]Write to MH i2c: 01 00 00 B9 24 DD [08:06:16]Write i2c OK [08:06:16]MH_I2C_Read... [08:06:16]OFD Sender: No OFD packet to send [08:06:17]*** Cut start [08:06:17]*** Partial cut [08:06:17]*** CUTSNS_PIN = 1 [08:06:17]*** CUTSNS_PIN = 0 [08:06:17]*** Brake cut motor [08:06:17]Read from MH i2c: 01 [08:06:17]MH_I2C_Read... [08:06:17]*** Stop cut motor [08:06:17]*** Cut end [08:06:17]Read from MH i2c: 01 07 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: 01 07 00 B9 24 00 00 00 00 00 FF 0F F2 [08:06:17]process_action close_receipt done [08:06:17]requested_data is exist [08:06:17]produce_requested_data [08:06:17]requested_item fm.sn is exist - process it [08:06:17]wFMCommunicate request_size=4 [08:06:17]MH_SAM_APDU [08:06:17]CAPDU: 80 11 00 00 [08:06:17]Write to MH i2c: E2 08 00 BA 24 80 11 00 00 00 00 00 00 58 [08:06:17]Write i2c OK [08:06:17]MH_I2C_Read... [08:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:17]Read from MH i2c: E2 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 17 00 [08:06:17]MH_I2C_Read... [08:06:17]Read from MH i2c: E2 17 00 BA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [08:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:06:17]wFMCommunicate OK [08:06:17]requested_item fd.num is exist - process it [08:06:17]SAM_PROTO_GetFieldsCounters [08:06:17]wFMCommunicate request_size=4 [08:06:17]MH_SAM_APDU [08:06:17]CAPDU: 80 13 00 00 [08:06:17]Write to MH i2c: E2 08 00 BB 24 80 13 00 00 00 00 00 00 5B [08:06:17]Write i2c OK [08:06:17]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 62 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 62 00 BB 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 77 00 00 0E 04 04 00 73 00 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 E6 [08:06:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3C 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:18]wFMCommunicate OK [08:06:18]SAM_PROTO_GetFieldsCounters done [08:06:18]requested_item shift.num is exist - process it [08:06:18]requested_item shift.opened is exist - process it [08:06:18]req_shift_opened [08:06:18]FM_GetShiftState [08:06:18]SAM_PROTO_GetShiftState [08:06:18]wFMCommunicate request_size=4 [08:06:18]MH_SAM_APDU [08:06:18]CAPDU: 80 13 01 00 [08:06:18]Write to MH i2c: E2 08 00 BC 24 80 13 01 00 00 00 00 00 5D [08:06:18]Write i2c OK [08:06:18]MH_I2C_Read... [08:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:18]Read from MH i2c: E2 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 0E 00 [08:06:18]MH_I2C_Read... [08:06:18]Read from MH i2c: E2 0E 00 BC 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D9 [08:06:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:06:18]wFMCommunicate OK [08:06:18]SAM_PROTO_GetShiftState done [08:06:18]FM_GetShiftState done [08:06:18]req_shift_opened done [08:06:18]requested_item shift.open_date is exist - process it [08:06:18]req_shift_open_date [08:06:18]req_shift_open_date done [08:06:18]produce_requested_data done [08:06:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30524,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:06:18]process_action_free close_receipt [08:06:18]json_value_free [08:06:18]json_value_free done [08:06:18]process_json_proto returns [08:06:18]Send response to host [08:06:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30524,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:06:18]free response buf [08:06:18]execute_script done [08:06:18]execute_script returns [08:06:18]free content buf [08:06:18]Sock 9.Close socket [08:06:18]Sock 9.Thread stoped [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:45]accept exits with 7 [08:10:45]New connection [08:10:45]New thread 3067346276 created [08:10:45]Thread 3067489636 joined [08:10:45]Waiting for new connection... [08:10:45] Sock 7.Parse request [08:10:45]Sock 7.Check first char [08:10:45]Sock 7.First char is OK [08:10:45]request: POST /json_proto HTTP/1.0 [08:10:45]Method: POST [08:10:45]URL: /json_proto [08:10:45]Method is POST - this is cgi request [08:10:45]url: /json_proto [08:10:45]query_string will be loaded in cgi processing [08:10:45]execute_cgi json_proto POST (null) [08:10:45]execute_cgi path=json_proto method=POST [08:10:45]POST find Content-Length [08:10:45]Host: 172.17.51.3:8080 [08:10:45]Content-Length: 754 [08:10:45]Content-Type: application/json [08:10:45] [08:10:45]POST finish read [08:10:45]Found Content-Length = 754 [08:10:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:45]execute_script... [08:10:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118642", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:45]POST & json_proto [08:10:45]process_json_proto [08:10:45]json parsed OK: [08:10:45]protocol is kg_v1.0 [08:10:45]action value=close_receipt [08:10:45]process_action close_receipt [08:10:45]cmd_close_receipt [08:10:45]MH_GetDate [08:10:45]Write to MH i2c: F0 00 00 BD 24 D0 [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: F0 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: F0 09 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: F0 09 00 BD 24 00 89 0C 16 67 04 C1 95 66 AB [08:10:45]GetLastDocTimeStamp 1729497977 [08:10:45]current date 1729498249 [08:10:45]FM_GetShiftState [08:10:45]SAM_PROTO_GetShiftState [08:10:45]wFMCommunicate request_size=4 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 13 01 00 [08:10:45]Write to MH i2c: E2 08 00 BE 24 80 13 01 00 00 00 00 00 5F [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0E 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0E 00 BE 24 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DB [08:10:45]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:10:45]wFMCommunicate OK [08:10:45]SAM_PROTO_GetShiftState done [08:10:45]FM_GetShiftState done [08:10:45]opened in 1729471058 [08:10:45]opened+sec_in_day 1729557458 [08:10:45]quantity*price = 0 [08:10:45]sum+1 = 1 [08:10:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 22 21.10.2024 08:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30118642 ФМ: 0000000002094219 ФД: 30525 ФПД: 124263756576240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30525&fm=124263756576240&tin=02508201610067®Number=0000000000186857&sum=0 [08:10:46]StoreToDocumentArchive [08:10:46]shift 115 fd 30525 [08:10:46]save to /storage/0115/doc_00030525 [08:10:46]save last doc name /storage/0115/doc_00030525 to /storage/kkm_last_doc_name [08:10:46]save OK [08:10:46]Clear old archive folders... [08:10:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:46]tlvbuf is 01E56270 [08:10:46]SAM_PROTO_ClearQueue [08:10:46]wFMCommunicate request_size=4 [08:10:46]MH_SAM_APDU [08:10:46]CAPDU: 80 09 00 00 [08:10:46]Write to MH i2c: E2 08 00 CB 24 80 09 00 00 00 00 00 00 61 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:46]Read from MH i2c: E2 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 03 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 03 00 CB 24 00 90 00 63 [08:10:46]RAPDU: 90 00 [08:10:46]wFMCommunicate OK [08:10:46]SAM_PROTO_ClearQueue done [08:10:46]KKMCreateOFDPacket [08:10:46]OFDProtocolAddRootSTLVToBuf [08:10:46]FM_MakeSignedData [08:10:46]FM_MakeSignedData [08:10:46]SAM_PROTO_SignData [08:10:46]wFMCommunicate request_size=4 [08:10:46]MH_SAM_APDU [08:10:46]CAPDU: 80 0D 01 02 [08:10:46]Write to MH i2c: E2 08 00 CC 24 80 0D 01 02 00 00 00 00 69 [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:46]Read from MH i2c: E2 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 03 00 [08:10:46]MH_I2C_Read... [08:10:46]Read from MH i2c: E2 03 00 CC 24 00 90 00 64 [08:10:46]RAPDU: 90 00 [08:10:46]wFMCommunicate OK [08:10:46]wFMCommunicate request_size=255 [08:10:46]MH_SAM_APDU [08:10:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 89 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 77 00 00 35 04 06 00 71 [08:10:46]Write to MH i2c: E2 02 01 CD 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 89 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 77 00 00 35 04 06 00 71 00 00 DA [08:10:46]Write i2c OK [08:10:46]MH_I2C_Read... [08:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:47]Read from MH i2c: E2 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 03 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 03 00 CD 24 00 90 00 65 [08:10:47]RAPDU: 90 00 [08:10:47]wFMCommunicate OK [08:10:47]wFMCommunicate request_size=10 [08:10:47]MH_SAM_APDU [08:10:47]CAPDU: 80 0D 02 02 05 04 69 11 B5 F0 [08:10:47]Write to MH i2c: E2 0D 00 CE 24 80 0D 02 02 05 00 04 69 11 B5 F0 00 00 99 [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]OFD Sender: No OFD packet to send [08:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:47]Read from MH i2c: E2 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 03 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [08:10:47]RAPDU: 90 00 [08:10:47]wFMCommunicate OK [08:10:47]wFMCommunicate request_size=4 [08:10:47]MH_SAM_APDU [08:10:47]CAPDU: 80 0D 03 02 [08:10:47]Write to MH i2c: E2 08 00 CF 24 80 0D 03 02 00 00 00 00 6E [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:47]Read from MH i2c: E2 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 0B 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 0B 00 CF 24 00 4B FA 71 FA 6B F3 4B FB 90 00 C3 [08:10:47]RAPDU: 4B FA 71 FA 6B F3 4B FB 90 00 [08:10:47]wFMCommunicate OK [08:10:47]SAM_PROTO_SignData done [08:10:47]FM_MakeSignedData done [08:10:47]CreateOFDProtocolMessage [08:10:47]wFMCommunicate request_size=4 [08:10:47]MH_SAM_APDU [08:10:47]CAPDU: 80 11 00 00 [08:10:47]Write to MH i2c: E2 08 00 D0 24 80 11 00 00 00 00 00 00 6E [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:47]Read from MH i2c: E2 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 17 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: E2 17 00 D0 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [08:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:10:47]wFMCommunicate OK [08:10:47]CreateOFDProtocolMessage done [08:10:47]OFDSenderStorePacket 30525 [08:10:47]StoreOFDPacket docnum=30525 [08:10:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 A9 07 01 8F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 89 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 77 00 00 35 04 06 00 71 04 69 11 B5 F0 4B FA 71 FA 6B F3 4B FB [08:10:47]CheckFolder [08:10:47]dirname=/storage/ofd_packets [08:10:47]CheckFolder done [08:10:47]ProducePacketName [08:10:47]name=ofd_packets/00030525 [08:10:47]NVStorageSaveData ofd_packets/00030525 [08:10:47]File name is /storage/ofd_packets/00030525 [08:10:47]Write 301 bytes [08:10:47]NVStorageSaveData done [08:10:47]OFDSenderStorePacket done [08:10:47]KKMCreateOFDPacket done [08:10:47]NVStorageSaveData kkm_last_timestamp [08:10:47]File name is /storage/kkm_last_timestamp [08:10:47]Write 4 bytes [08:10:47]NVStorageSaveData done [08:10:47]ExternCall_PrintAddStr [08:10:47]wPrintStart [08:10:47]Write to MH i2c: 01 00 00 D1 24 F5 [08:10:47]Write i2c OK [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: 01 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: 01 07 00 [08:10:47]MH_I2C_Read... [08:10:47]Read from MH i2c: 01 07 00 D1 24 00 00 00 00 00 FF 0F 0A [08:10:47]RasterBufferAndPrint [08:10:47]line Счет N : (1)342928 [08:10:47]line ИНН: 02508201610067 [08:10:47]line Контрольно-Кассовый Чек [08:10:47]line ПРОДАЖА [08:10:47]line ТРК (МРК, ГНК) : 43 [08:10:47]line Товар: 2710124130 [08:10:47]line Аи-92-К-2 [08:10:47]line 30.000 * 0.00 [08:10:47]line = 0.00 [08:10:47]line НДС 12% НСП 1% [08:10:47]line > о реализуемом товаре [08:10:47]line ИТОГО: 0.00 [08:10:47]line НСП 1% : 0.00 [08:10:47]line НДС 12% : 0.00 [08:10:47]line Наличными: 0.00 [08:10:47]line Безнал.: 0.00 [08:10:47]line Место: АЗС № 78 "Партнер Нефть" [08:10:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:10:47]line СНО: Общий режим [08:10:47]line Чек 22 21.10.2024 08:10 [08:10:47]line Смена: 115 ФФД: 1.0 [08:10:47]line ЗНМ: 0300000137 [08:10:47]line РНМ: 0000000000186857 [08:10:47]line Версия ККМ: v1.0 [08:10:47]line Талоны: ТК ГПНА Online [08:10:47]line 30118642 [08:10:47]line ФМ: 0000000002094219 [08:10:47]line ФД: 30525 [08:10:47]line ФПД: 124263756576240 [08:10:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30525&fm=124263756576240&tin=02508201610067®Number=0000000000186857&sum=0 [08:10:47]OFD Sender: Processing packet 30525 [packets to send 10, broken 9] [08:10:47]ProducePacketName [08:10:47]name=ofd_packets/00030525 [08:10:47]OFD Sender: To server: pG, [08:10:47]CommunicateWithHost lk.salyk.kg:30040 [08:10:47]ConnectInit lk.salyk.kg [08:10:47]written 0, free lines is 4095 [08:10:47]Connected sock=11 [08:10:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 A9 07 01 8F 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 89 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 77 00 00 35 04 06 00 71 04 69 11 B5 F0 4B FA 71 FA 6B F3 4B FB [08:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A8 13 47 00 99 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3D 77 00 00 F4 03 04 00 0A B7 15 67 B6 04 01 00 00 14 2F 2D 16 2C 50 3E AC [08:10:47]CommunicateWithHost err = 0 [08:10:47]CheckOFDResponse [08:10:47]1017 (14) - 77093643461234 [08:10:47]1041 (16) - 0000000002094219 [08:10:47]1040 (4) - 30525 [08:10:47]1012 (4) - 21.10.2024 02:06 [08:10:47]1206 (1) - 0 [08:10:47]OFD Sender: Remove packet 30525 [08:10:47]ProducePacketName [08:10:47]name=ofd_packets/00030525 [08:10:47]NVStorageDeleteData [08:10:48]Write to MH i2c: 01 00 00 FB 24 1F [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 07 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: 01 07 00 FB 24 00 00 00 00 00 F9 0C 2B [08:10:48]RasterBufferAndPrint [08:10:48]line [08:10:48]line [08:10:48]line [08:10:48]line [08:10:48]line [08:10:48]written 0, free lines is 3327 [08:10:48]MH_Cut [08:10:48]Write to MH i2c: D1 01 00 02 25 01 F9 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: D1 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: D1 01 00 [08:10:48]MH_I2C_Read... [08:10:48]Read from MH i2c: D1 01 00 02 25 00 F8 [08:10:48]Write to MH i2c: 01 00 00 03 25 28 [08:10:48]Write i2c OK [08:10:48]MH_I2C_Read... [08:10:48]OFD Sender: No OFD packet to send [08:10:48]*** Cut start [08:10:48]*** Partial cut [08:10:48]*** CUTSNS_PIN = 1 [08:10:48]*** CUTSNS_PIN = 0 [08:10:48]*** Brake cut motor [08:10:49]Read from MH i2c: 01 [08:10:49]MH_I2C_Read... [08:10:49]*** Stop cut motor [08:10:49]*** Cut end [08:10:49]Read from MH i2c: 01 07 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: 01 07 00 03 25 00 00 00 00 00 FF 0F 3D [08:10:49]process_action close_receipt done [08:10:49]requested_data is exist [08:10:49]produce_requested_data [08:10:49]requested_item fm.sn is exist - process it [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 11 00 00 [08:10:49]Write to MH i2c: E2 08 00 04 25 80 11 00 00 00 00 00 00 A3 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 17 00 04 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [08:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:10:49]wFMCommunicate OK [08:10:49]requested_item fd.num is exist - process it [08:10:49]SAM_PROTO_GetFieldsCounters [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 00 00 [08:10:49]Write to MH i2c: E2 08 00 05 25 80 13 00 00 00 00 00 00 A6 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 62 00 05 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 77 00 00 0E 04 04 00 73 00 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 35 [08:10:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetFieldsCounters done [08:10:49]requested_item shift.num is exist - process it [08:10:49]requested_item shift.opened is exist - process it [08:10:49]req_shift_opened [08:10:49]FM_GetShiftState [08:10:49]SAM_PROTO_GetShiftState [08:10:49]wFMCommunicate request_size=4 [08:10:49]MH_SAM_APDU [08:10:49]CAPDU: 80 13 01 00 [08:10:49]Write to MH i2c: E2 08 00 06 25 80 13 01 00 00 00 00 00 A8 [08:10:49]Write i2c OK [08:10:49]MH_I2C_Read... [08:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:49]Read from MH i2c: E2 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 [08:10:49]MH_I2C_Read... [08:10:49]Read from MH i2c: E2 0E 00 06 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 24 [08:10:49]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:10:49]wFMCommunicate OK [08:10:49]SAM_PROTO_GetShiftState done [08:10:49]FM_GetShiftState done [08:10:49]req_shift_opened done [08:10:49]requested_item shift.open_date is exist - process it [08:10:49]req_shift_open_date [08:10:49]req_shift_open_date done [08:10:49]produce_requested_data done [08:10:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30525,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:10:49]process_action_free close_receipt [08:10:49]json_value_free [08:10:49]json_value_free done [08:10:49]process_json_proto returns [08:10:49]Send response to host [08:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30525,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:10:49]free response buf [08:10:49]execute_script done [08:10:49]execute_script returns [08:10:49]free content buf [08:10:49]Sock 7.Close socket [08:10:49]Sock 7.Thread stoped [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:08]accept exits with 9 [08:11:08]New connection [08:11:08]New thread 3067489636 created [08:11:08]Thread 3067346276 joined [08:11:08]Waiting for new connection... [08:11:08] Sock 9.Parse request [08:11:08]Sock 9.Check first char [08:11:08]Sock 9.First char is OK [08:11:08]request: POST /json_proto HTTP/1.0 [08:11:08]Method: POST [08:11:08]URL: /json_proto [08:11:08]Method is POST - this is cgi request [08:11:08]url: /json_proto [08:11:08]query_string will be loaded in cgi processing [08:11:08]execute_cgi json_proto POST (null) [08:11:08]execute_cgi path=json_proto method=POST [08:11:08]POST find Content-Length [08:11:08]Host: 172.17.51.3:8080 [08:11:08]Content-Length: 677 [08:11:08]Content-Type: application/json [08:11:08] [08:11:08]POST finish read [08:11:08]Found Content-Length = 677 [08:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:08]execute_script... [08:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.850, "sum" : 190.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 190.00, "total" : 190.00, "payments": [ { "type": 0, "sum" : 190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:11:08]POST & json_proto [08:11:08]process_json_proto [08:11:08]json parsed OK: [08:11:08]protocol is kg_v1.0 [08:11:08]action value=close_receipt [08:11:08]process_action close_receipt [08:11:08]cmd_close_receipt [08:11:08]MH_GetDate [08:11:08]Write to MH i2c: F0 00 00 07 25 1B [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 09 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: F0 09 00 07 25 00 A0 0C 16 67 04 C1 95 66 0D [08:11:08]GetLastDocTimeStamp 1729498249 [08:11:08]current date 1729498272 [08:11:08]FM_GetShiftState [08:11:08]SAM_PROTO_GetShiftState [08:11:08]wFMCommunicate request_size=4 [08:11:08]MH_SAM_APDU [08:11:08]CAPDU: 80 13 01 00 [08:11:08]Write to MH i2c: E2 08 00 08 25 80 13 01 00 00 00 00 00 AA [08:11:08]Write i2c OK [08:11:08]MH_I2C_Read... [08:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:08]Read from MH i2c: E2 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: E2 0E 00 [08:11:08]MH_I2C_Read... [08:11:08]Read from MH i2c: E2 0E 00 08 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 26 [08:11:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:11:08]wFMCommunicate OK [08:11:08]SAM_PROTO_GetShiftState done [08:11:08]FM_GetShiftState done [08:11:08]opened in 1729471058 [08:11:08]opened+sec_in_day 1729557458 [08:11:08]quantity*price = 19066 [08:11:08]sum+1 = 19068 [08:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 190.00 Внесено: 190.00 СДАЧА: 0.00 НСП 1% : 1.69 НДС 12% : 20.25 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 23 21.10.2024 08:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30526 ФПД: 79869431490057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081112&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30526&fm=79869431490057&tin=02508201610067®Number=0000000000186857&sum=19000 [08:11:09]StoreToDocumentArchive [08:11:09]shift 115 fd 30526 [08:11:09]save to /storage/0115/doc_00030526 [08:11:09]save last doc name /storage/0115/doc_00030526 to /storage/kkm_last_doc_name [08:11:09]save OK [08:11:09]Clear old archive folders... [08:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:11:09]tlvbuf is 01E06860 [08:11:09]SAM_PROTO_ClearQueue [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 09 00 00 [08:11:09]Write to MH i2c: E2 08 00 15 25 80 09 00 00 00 00 00 00 AC [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 15 25 00 90 00 AE [08:11:09]RAPDU: 90 00 [08:11:09]wFMCommunicate OK [08:11:09]SAM_PROTO_ClearQueue done [08:11:09]KKMCreateOFDPacket [08:11:09]OFDProtocolAddRootSTLVToBuf [08:11:09]FM_MakeSignedData [08:11:09]FM_MakeSignedData [08:11:09]SAM_PROTO_SignData [08:11:09]wFMCommunicate request_size=4 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 0D 01 02 [08:11:09]Write to MH i2c: E2 08 00 16 25 80 0D 01 02 00 00 00 00 B4 [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:09]Read from MH i2c: E2 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 [08:11:09]MH_I2C_Read... [08:11:09]Read from MH i2c: E2 03 00 16 25 00 90 00 AF [08:11:09]RAPDU: 90 00 [08:11:09]wFMCommunicate OK [08:11:09]wFMCommunicate request_size=255 [08:11:09]MH_SAM_APDU [08:11:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 17 00 00 00 F4 03 04 00 A0 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 77 00 00 35 04 06 00 48 [08:11:09]Write to MH i2c: E2 02 01 17 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 17 00 00 00 F4 03 04 00 A0 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 77 00 00 35 04 06 00 48 00 00 3B [08:11:09]Write i2c OK [08:11:09]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 17 25 00 90 00 B0 [08:11:10]RAPDU: 90 00 [08:11:10]wFMCommunicate OK [08:11:10]wFMCommunicate request_size=10 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 0D 02 02 05 A4 0D 17 A6 09 [08:11:10]Write to MH i2c: E2 0D 00 18 25 80 0D 02 02 05 00 A4 0D 17 A6 09 00 00 38 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 03 00 18 25 00 90 00 B1 [08:11:10]RAPDU: 90 00 [08:11:10]wFMCommunicate OK [08:11:10]wFMCommunicate request_size=4 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 0D 03 02 [08:11:10]Write to MH i2c: E2 08 00 19 25 80 0D 03 02 00 00 00 00 B9 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 0B 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 0B 00 19 25 00 C2 37 13 E2 67 33 1C F5 90 00 53 [08:11:10]RAPDU: C2 37 13 E2 67 33 1C F5 90 00 [08:11:10]wFMCommunicate OK [08:11:10]SAM_PROTO_SignData done [08:11:10]FM_MakeSignedData done [08:11:10]CreateOFDProtocolMessage [08:11:10]wFMCommunicate request_size=4 [08:11:10]MH_SAM_APDU [08:11:10]CAPDU: 80 11 00 00 [08:11:10]Write to MH i2c: E2 08 00 1A 25 80 11 00 00 00 00 00 00 B9 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:10]Read from MH i2c: E2 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 17 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: E2 17 00 1A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [08:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:11:10]wFMCommunicate OK [08:11:10]CreateOFDProtocolMessage done [08:11:10]OFDSenderStorePacket 30526 [08:11:10]StoreOFDPacket docnum=30526 [08:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A6 59 07 01 63 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 17 00 00 00 F4 03 04 00 A0 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 77 00 00 35 04 06 00 48 A4 0D 17 A6 09 C2 37 13 E2 67 33 1C F5 [08:11:10]CheckFolder [08:11:10]dirname=/storage/ofd_packets [08:11:10]CheckFolder done [08:11:10]ProducePacketName [08:11:10]name=ofd_packets/00030526 [08:11:10]NVStorageSaveData ofd_packets/00030526 [08:11:10]File name is /storage/ofd_packets/00030526 [08:11:10]Write 301 bytes [08:11:10]NVStorageSaveData done [08:11:10]OFDSenderStorePacket done [08:11:10]KKMCreateOFDPacket done [08:11:10]NVStorageSaveData kkm_last_timestamp [08:11:10]File name is /storage/kkm_last_timestamp [08:11:10]Write 4 bytes [08:11:10]NVStorageSaveData done [08:11:10]ExternCall_PrintAddStr [08:11:10]wPrintStart [08:11:10]Write to MH i2c: 01 00 00 1B 25 40 [08:11:10]Write i2c OK [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 07 00 [08:11:10]MH_I2C_Read... [08:11:10]Read from MH i2c: 01 07 00 1B 25 00 00 00 00 00 FF 0F 55 [08:11:10]RasterBufferAndPrint [08:11:10]line Счет N : (1)342929 [08:11:10]line ИНН: 02508201610067 [08:11:10]line Контрольно-Кассовый Чек [08:11:10]line ПРОДАЖА [08:11:10]line ТРК (МРК, ГНК) : 63 [08:11:10]line Товар: 2710124130 [08:11:10]line Аи-92-К-2 [08:11:10]line 2.850 * 66.90 [08:11:10]line = 190.67 [08:11:10]line НДС 12% НСП 1% [08:11:10]line > о реализуемом товаре [08:11:10]line ОКРУГЛЕНИЕ: -0.67 [08:11:10]line ИТОГО: 190.00 [08:11:10]line Внесено: 190.00 [08:11:10]line СДАЧА: 0.00 [08:11:10]line НСП 1% : 1.69 [08:11:10]line НДС 12% : 20.25 [08:11:10]line Наличными: 190.00 [08:11:10]line Безнал.: 0.00 [08:11:10]line Место: АЗС № 78 "Партнер Нефть" [08:11:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:11:10]line СНО: Общий режим [08:11:10]line Чек 23 21.10.2024 08:11 [08:11:10]line Смена: 115 ФФД: 1.0 [08:11:10]line ЗНМ: 0300000137 [08:11:10]line РНМ: 0000000000186857 [08:11:10]line Версия ККМ: v1.0 [08:11:10]line ФМ: 0000000002094219 [08:11:10]line ФД: 30526 [08:11:10]line ФПД: 79869431490057 [08:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081112&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30526&fm=79869431490057&tin=02508201610067®Number=0000000000186857&sum=19000 [08:11:10]OFD Sender: Processing packet 30526 [packets to send 10, broken 9] [08:11:10]ProducePacketName [08:11:10]name=ofd_packets/00030526 [08:11:10]OFD Sender: To server: pG, [08:11:10]CommunicateWithHost lk.salyk.kg:30040 [08:11:10]ConnectInit lk.salyk.kg [08:11:10]written 0, free lines is 4095 [08:11:10]Connected sock=7 [08:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A6 59 07 01 63 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 22 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 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 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 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 17 00 00 00 F4 03 04 00 A0 0C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 77 00 00 35 04 06 00 48 A4 0D 17 A6 09 C2 37 13 E2 67 33 1C F5 [08:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1C DA 47 00 D6 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3E 77 00 00 F4 03 04 00 21 B7 15 67 B6 04 01 00 00 3F F8 49 EA F8 FB 88 59 [08:11:11]CommunicateWithHost err = 0 [08:11:11]CheckOFDResponse [08:11:11]1017 (14) - 77093643461234 [08:11:11]1041 (16) - 0000000002094219 [08:11:11]1040 (4) - 30526 [08:11:11]1012 (4) - 21.10.2024 02:06 [08:11:11]1206 (1) - 0 [08:11:11]OFD Sender: Remove packet 30526 [08:11:11]ProducePacketName [08:11:11]name=ofd_packets/00030526 [08:11:11]NVStorageDeleteData [08:11:11]Write to MH i2c: 01 00 00 46 25 6B [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 07 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 F0 0C 6E [08:11:11]RasterBufferAndPrint [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]line [08:11:11]written 0, free lines is 3318 [08:11:11]MH_Cut [08:11:11]Write to MH i2c: D1 01 00 4D 25 01 44 [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 01 00 [08:11:11]MH_I2C_Read... [08:11:11]Read from MH i2c: D1 01 00 4D 25 00 43 [08:11:11]Write to MH i2c: 01 00 00 4E 25 73 [08:11:11]Write i2c OK [08:11:11]MH_I2C_Read... [08:11:11]OFD Sender: No OFD packet to send [08:11:11]*** Cut start [08:11:11]*** Partial cut [08:11:11]*** CUTSNS_PIN = 1 [08:11:11]*** CUTSNS_PIN = 0 [08:11:12]*** Brake cut motor [08:11:12]Read from MH i2c: 01 [08:11:12]MH_I2C_Read... [08:11:12]*** Stop cut motor [08:11:12]*** Cut end [08:11:12]Read from MH i2c: 01 07 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: 01 07 00 4E 25 00 00 00 00 00 FF 0F 88 [08:11:12]process_action close_receipt done [08:11:12]requested_data is exist [08:11:12]produce_requested_data [08:11:12]requested_item fm.sn is exist - process it [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 11 00 00 [08:11:12]Write to MH i2c: E2 08 00 4F 25 80 11 00 00 00 00 00 00 EE [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 17 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 17 00 4F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [08:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:11:12]wFMCommunicate OK [08:11:12]requested_item fd.num is exist - process it [08:11:12]SAM_PROTO_GetFieldsCounters [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 13 00 00 [08:11:12]Write to MH i2c: E2 08 00 50 25 80 13 00 00 00 00 00 00 F1 [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 62 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 62 00 50 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 77 00 00 0E 04 04 00 73 00 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 84 [08:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:12]wFMCommunicate OK [08:11:12]SAM_PROTO_GetFieldsCounters done [08:11:12]requested_item shift.num is exist - process it [08:11:12]requested_item shift.opened is exist - process it [08:11:12]req_shift_opened [08:11:12]FM_GetShiftState [08:11:12]SAM_PROTO_GetShiftState [08:11:12]wFMCommunicate request_size=4 [08:11:12]MH_SAM_APDU [08:11:12]CAPDU: 80 13 01 00 [08:11:12]Write to MH i2c: E2 08 00 51 25 80 13 01 00 00 00 00 00 F3 [08:11:12]Write i2c OK [08:11:12]MH_I2C_Read... [08:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:12]Read from MH i2c: E2 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 0E 00 [08:11:12]MH_I2C_Read... [08:11:12]Read from MH i2c: E2 0E 00 51 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6F [08:11:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:11:12]wFMCommunicate OK [08:11:12]SAM_PROTO_GetShiftState done [08:11:12]FM_GetShiftState done [08:11:12]req_shift_opened done [08:11:12]requested_item shift.open_date is exist - process it [08:11:12]req_shift_open_date [08:11:12]req_shift_open_date done [08:11:12]produce_requested_data done [08:11:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30526,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:11:12]process_action_free close_receipt [08:11:12]json_value_free [08:11:12]json_value_free done [08:11:12]process_json_proto returns [08:11:12]Send response to host [08:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30526,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:11:12]free response buf [08:11:12]execute_script done [08:11:12]execute_script returns [08:11:12]free content buf [08:11:12]Sock 9.Close socket [08:11:12]Sock 9.Thread stoped [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:40]accept exits with 10 [08:13:40]New connection [08:13:40]New thread 3067346276 created [08:13:40]Thread 3067489636 joined [08:13:40]Waiting for new connection... [08:13:40] Sock 10.Parse request [08:13:40]Sock 10.Check first char [08:13:40]Sock 10.First char is OK [08:13:40]request: POST /json_proto HTTP/1.0 [08:13:40]Method: POST [08:13:40]URL: /json_proto [08:13:40]Method is POST - this is cgi request [08:13:40]url: /json_proto [08:13:40]query_string will be loaded in cgi processing [08:13:40]execute_cgi json_proto POST (null) [08:13:40]execute_cgi path=json_proto method=POST [08:13:40]POST find Content-Length [08:13:40]Host: 172.17.51.3:8080 [08:13:40]Content-Length: 677 [08:13:40]Content-Type: application/json [08:13:40] [08:13:40]POST finish read [08:13:40]Found Content-Length = 677 [08:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:40]execute_script... [08:13:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:40]POST & json_proto [08:13:40]process_json_proto [08:13:40]json parsed OK: [08:13:40]protocol is kg_v1.0 [08:13:40]action value=close_receipt [08:13:40]process_action close_receipt [08:13:40]cmd_close_receipt [08:13:40]MH_GetDate [08:13:40]Write to MH i2c: F0 00 00 52 25 66 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 09 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 09 00 52 25 00 38 0D 16 67 04 C1 95 66 F1 [08:13:40]GetLastDocTimeStamp 1729498272 [08:13:40]current date 1729498424 [08:13:40]FM_GetShiftState [08:13:40]SAM_PROTO_GetShiftState [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 01 00 [08:13:40]Write to MH i2c: E2 08 00 53 25 80 13 01 00 00 00 00 00 F5 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 53 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 71 [08:13:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetShiftState done [08:13:40]FM_GetShiftState done [08:13:40]opened in 1729471058 [08:13:40]opened+sec_in_day 1729557458 [08:13:40]quantity*price = 50041 [08:13:40]sum+1 = 50042 [08:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 24 21.10.2024 08:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30527 ФПД: 5327504672628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30527&fm=5327504672628&tin=02508201610067®Number=0000000000186857&sum=50000 [08:13:41]StoreToDocumentArchive [08:13:41]shift 115 fd 30527 [08:13:41]save to /storage/0115/doc_00030527 [08:13:41]save last doc name /storage/0115/doc_00030527 to /storage/kkm_last_doc_name [08:13:41]save OK [08:13:41]Clear old archive folders... [08:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:41]tlvbuf is 01E562F0 [08:13:41]SAM_PROTO_ClearQueue [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 09 00 00 [08:13:41]Write to MH i2c: E2 08 00 60 25 80 09 00 00 00 00 00 00 F7 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 60 25 00 90 00 F9 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_ClearQueue done [08:13:41]KKMCreateOFDPacket [08:13:41]OFDProtocolAddRootSTLVToBuf [08:13:41]FM_MakeSignedData [08:13:41]FM_MakeSignedData [08:13:41]SAM_PROTO_SignData [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 01 02 [08:13:41]Write to MH i2c: E2 08 00 61 25 80 0D 01 02 00 00 00 00 FF [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 61 25 00 90 00 FA [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=255 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 77 00 00 35 04 06 00 04 [08:13:41]Write to MH i2c: E2 02 01 62 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 77 00 00 35 04 06 00 04 00 00 97 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]OFD Sender: No OFD packet to send [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 62 25 00 90 00 FB [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=10 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 02 02 05 D8 68 06 07 74 [08:13:41]Write to MH i2c: E2 0D 00 63 25 80 0D 02 02 05 00 D8 68 06 07 74 00 00 CD [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 63 25 00 90 00 FC [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 03 02 [08:13:41]Write to MH i2c: E2 08 00 64 25 80 0D 03 02 00 00 00 00 04 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 64 25 00 42 2D 0E DD 00 CF 8B 5B 90 00 14 [08:13:41]RAPDU: 42 2D 0E DD 00 CF 8B 5B 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_SignData done [08:13:41]FM_MakeSignedData done [08:13:41]CreateOFDProtocolMessage [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 11 00 00 [08:13:41]Write to MH i2c: E2 08 00 65 25 80 11 00 00 00 00 00 00 04 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 65 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [08:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:13:41]wFMCommunicate OK [08:13:41]CreateOFDProtocolMessage done [08:13:41]OFDSenderStorePacket 30527 [08:13:41]StoreOFDPacket docnum=30527 [08:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 2D 07 01 2B 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 77 00 00 35 04 06 00 04 D8 68 06 07 74 42 2D 0E DD 00 CF 8B 5B [08:13:41]CheckFolder [08:13:41]dirname=/storage/ofd_packets [08:13:41]CheckFolder done [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00030527 [08:13:41]NVStorageSaveData ofd_packets/00030527 [08:13:41]File name is /storage/ofd_packets/00030527 [08:13:41]Write 301 bytes [08:13:41]NVStorageSaveData done [08:13:41]OFDSenderStorePacket done [08:13:41]KKMCreateOFDPacket done [08:13:41]NVStorageSaveData kkm_last_timestamp [08:13:41]File name is /storage/kkm_last_timestamp [08:13:41]Write 4 bytes [08:13:41]NVStorageSaveData done [08:13:41]ExternCall_PrintAddStr [08:13:41]wPrintStart [08:13:41]Write to MH i2c: 01 00 00 66 25 8B [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 66 25 00 00 00 00 00 FF 0F A0 [08:13:41]RasterBufferAndPrint [08:13:41]line Счет N : (1)342930 [08:13:42]line ИНН: 02508201610067 [08:13:42]line Контрольно-Кассовый Чек [08:13:42]line ПРОДАЖА [08:13:42]line ТРК (МРК, ГНК) : 53 [08:13:42]line Товар: 2710124130 [08:13:42]line Аи-92-К-2 [08:13:42]line 7.480 * 66.90 [08:13:42]line = 500.41 [08:13:42]line НДС 12% НСП 1% [08:13:42]line > о реализуемом товаре [08:13:42]line ОКРУГЛЕНИЕ: -0.41 [08:13:42]line ИТОГО: 500.00 [08:13:42]line Внесено: 500.00 [08:13:42]line СДАЧА: 0.00 [08:13:42]line НСП 1% : 4.43 [08:13:42]line НДС 12% : 53.14 [08:13:42]line Наличными: 500.00 [08:13:42]line Безнал.: 0.00 [08:13:42]line Место: АЗС № 78 "Партнер Нефть" [08:13:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:13:42]line СНО: Общий режим [08:13:42]line Чек 24 21.10.2024 08:13 [08:13:42]line Смена: 115 ФФД: 1.0 [08:13:42]line ЗНМ: 0300000137 [08:13:42]line РНМ: 0000000000186857 [08:13:42]line Версия ККМ: v1.0 [08:13:42]line ФМ: 0000000002094219 [08:13:42]line ФД: 30527 [08:13:42]line ФПД: 5327504672628 [08:13:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081344&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30527&fm=5327504672628&tin=02508201610067®Number=0000000000186857&sum=50000 [08:13:42]written 0, free lines is 4095 [08:13:42]OFD Sender: Processing packet 30527 [packets to send 10, broken 9] [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00030527 [08:13:42]OFD Sender: To server: pG, [08:13:42]CommunicateWithHost lk.salyk.kg:30040 [08:13:42]ConnectInit lk.salyk.kg [08:13:42]Connected sock=9 [08:13:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 2D 07 01 2B 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 38 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 77 00 00 35 04 06 00 04 D8 68 06 07 74 42 2D 0E DD 00 CF 8B 5B [08:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FA 42 47 00 5A 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 3F 77 00 00 F4 03 04 00 B9 B7 15 67 B6 04 01 00 00 33 24 49 7A 7C 9F B0 F4 [08:13:42]CommunicateWithHost err = 0 [08:13:42]CheckOFDResponse [08:13:42]1017 (14) - 77093643461234 [08:13:42]1041 (16) - 0000000002094219 [08:13:42]1040 (4) - 30527 [08:13:42]1012 (4) - 21.10.2024 02:08 [08:13:42]1206 (1) - 0 [08:13:42]OFD Sender: Remove packet 30527 [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00030527 [08:13:42]NVStorageDeleteData [08:13:42]Write to MH i2c: 01 00 00 91 25 B6 [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 91 25 00 00 00 00 00 E4 0C AD [08:13:42]RasterBufferAndPrint [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]written 0, free lines is 3306 [08:13:42]MH_Cut [08:13:42]Write to MH i2c: D1 01 00 98 25 01 8F [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 98 25 00 8E [08:13:42]Write to MH i2c: 01 00 00 99 25 BE [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]OFD Sender: No OFD packet to send [08:13:43]*** Cut start [08:13:43]*** Partial cut [08:13:43]*** CUTSNS_PIN = 1 [08:13:43]*** CUTSNS_PIN = 0 [08:13:43]*** Brake cut motor [08:13:43]Read from MH i2c: 01 [08:13:43]MH_I2C_Read... [08:13:43]*** Stop cut motor [08:13:43]*** Cut end [08:13:43]Read from MH i2c: 01 07 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 07 00 99 25 00 00 00 00 00 FF 0F D3 [08:13:43]process_action close_receipt done [08:13:43]requested_data is exist [08:13:43]produce_requested_data [08:13:43]requested_item fm.sn is exist - process it [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 11 00 00 [08:13:43]Write to MH i2c: E2 08 00 9A 25 80 11 00 00 00 00 00 00 39 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 9A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [08:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:13:43]wFMCommunicate OK [08:13:43]requested_item fd.num is exist - process it [08:13:43]SAM_PROTO_GetFieldsCounters [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 00 00 [08:13:43]Write to MH i2c: E2 08 00 9B 25 80 13 00 00 00 00 00 00 3C [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 9B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 77 00 00 0E 04 04 00 73 00 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 D3 [08:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 3F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetFieldsCounters done [08:13:43]requested_item shift.num is exist - process it [08:13:43]requested_item shift.opened is exist - process it [08:13:43]req_shift_opened [08:13:43]FM_GetShiftState [08:13:43]SAM_PROTO_GetShiftState [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 01 00 [08:13:43]Write to MH i2c: E2 08 00 9C 25 80 13 01 00 00 00 00 00 3E [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 9C 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BA [08:13:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetShiftState done [08:13:43]FM_GetShiftState done [08:13:43]req_shift_opened done [08:13:43]requested_item shift.open_date is exist - process it [08:13:43]req_shift_open_date [08:13:43]req_shift_open_date done [08:13:43]produce_requested_data done [08:13:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30527,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:13:43]process_action_free close_receipt [08:13:43]json_value_free [08:13:43]json_value_free done [08:13:43]process_json_proto returns [08:13:43]Send response to host [08:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30527,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:13:43]free response buf [08:13:43]execute_script done [08:13:43]execute_script returns [08:13:43]free content buf [08:13:43]Sock 10.Close socket [08:13:43]Sock 10.Thread stoped [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:13:59]accept exits with 7 [08:13:59]New connection [08:13:59]New thread 3067489636 created [08:13:59]Thread 3067346276 joined [08:13:59]Waiting for new connection... [08:13:59] Sock 7.Parse request [08:13:59]Sock 7.Check first char [08:13:59]Sock 7.First char is OK [08:13:59]request: POST /json_proto HTTP/1.0 [08:13:59]Method: POST [08:13:59]URL: /json_proto [08:13:59]Method is POST - this is cgi request [08:13:59]url: /json_proto [08:13:59]query_string will be loaded in cgi processing [08:13:59]execute_cgi json_proto POST (null) [08:13:59]execute_cgi path=json_proto method=POST [08:13:59]POST find Content-Length [08:13:59]Host: 172.17.51.3:8080 [08:13:59]Content-Length: 677 [08:13:59]Content-Type: application/json [08:13:59] [08:13:59]POST finish read [08:13:59]Found Content-Length = 677 [08:13:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:59]execute_script... [08:13:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:59]POST & json_proto [08:13:59]process_json_proto [08:13:59]json parsed OK: [08:13:59]protocol is kg_v1.0 [08:13:59]action value=close_receipt [08:13:59]process_action close_receipt [08:13:59]cmd_close_receipt [08:13:59]MH_GetDate [08:13:59]Write to MH i2c: F0 00 00 9D 25 B1 [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: F0 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: F0 09 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: F0 09 00 9D 25 00 4A 0D 16 67 04 C1 95 66 4E [08:13:59]GetLastDocTimeStamp 1729498424 [08:13:59]current date 1729498442 [08:13:59]FM_GetShiftState [08:13:59]SAM_PROTO_GetShiftState [08:13:59]wFMCommunicate request_size=4 [08:13:59]MH_SAM_APDU [08:13:59]CAPDU: 80 13 01 00 [08:13:59]Write to MH i2c: E2 08 00 9E 25 80 13 01 00 00 00 00 00 40 [08:13:59]Write i2c OK [08:13:59]MH_I2C_Read... [08:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:59]Read from MH i2c: E2 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 0E 00 [08:13:59]MH_I2C_Read... [08:13:59]Read from MH i2c: E2 0E 00 9E 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BC [08:13:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:13:59]wFMCommunicate OK [08:13:59]SAM_PROTO_GetShiftState done [08:13:59]FM_GetShiftState done [08:13:59]opened in 1729471058 [08:13:59]opened+sec_in_day 1729557458 [08:13:59]quantity*price = 20003 [08:13:59]sum+1 = 20004 [08:13:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 25 21.10.2024 08:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30528 ФПД: 181507707984021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081402&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30528&fm=181507707984021&tin=02508201610067®Number=0000000000186857&sum=20000 [08:14:00]StoreToDocumentArchive [08:14:00]shift 115 fd 30528 [08:14:00]save to /storage/0115/doc_00030528 [08:14:00]save last doc name /storage/0115/doc_00030528 to /storage/kkm_last_doc_name [08:14:00]save OK [08:14:00]Clear old archive folders... [08:14:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:00]tlvbuf is B6F5D610 [08:14:00]SAM_PROTO_ClearQueue [08:14:00]wFMCommunicate request_size=4 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 09 00 00 [08:14:00]Write to MH i2c: E2 08 00 AB 25 80 09 00 00 00 00 00 00 42 [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [08:14:00]RAPDU: 90 00 [08:14:00]wFMCommunicate OK [08:14:00]SAM_PROTO_ClearQueue done [08:14:00]KKMCreateOFDPacket [08:14:00]OFDProtocolAddRootSTLVToBuf [08:14:00]FM_MakeSignedData [08:14:00]FM_MakeSignedData [08:14:00]SAM_PROTO_SignData [08:14:00]wFMCommunicate request_size=4 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 0D 01 02 [08:14:00]Write to MH i2c: E2 08 00 AC 25 80 0D 01 02 00 00 00 00 4A [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [08:14:00]RAPDU: 90 00 [08:14:00]wFMCommunicate OK [08:14:00]wFMCommunicate request_size=255 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 19 00 00 00 F4 03 04 00 4A 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 77 00 00 35 04 06 00 A5 [08:14:00]Write to MH i2c: E2 02 01 AD 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 19 00 00 00 F4 03 04 00 4A 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 77 00 00 35 04 06 00 A5 00 00 59 [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [08:14:00]RAPDU: 90 00 [08:14:00]wFMCommunicate OK [08:14:00]wFMCommunicate request_size=10 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 0D 02 02 05 14 8E 75 58 95 [08:14:00]Write to MH i2c: E2 0D 00 AE 25 80 0D 02 02 05 00 14 8E 75 58 95 00 00 5B [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 03 00 AE 25 00 90 00 47 [08:14:00]RAPDU: 90 00 [08:14:00]wFMCommunicate OK [08:14:00]wFMCommunicate request_size=4 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 0D 03 02 [08:14:00]Write to MH i2c: E2 08 00 AF 25 80 0D 03 02 00 00 00 00 4F [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 0B 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 0B 00 AF 25 00 D2 60 9F C3 3C 28 23 4C 90 00 B7 [08:14:00]RAPDU: D2 60 9F C3 3C 28 23 4C 90 00 [08:14:00]wFMCommunicate OK [08:14:00]SAM_PROTO_SignData done [08:14:00]FM_MakeSignedData done [08:14:00]CreateOFDProtocolMessage [08:14:00]wFMCommunicate request_size=4 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 11 00 00 [08:14:00]Write to MH i2c: E2 08 00 B0 25 80 11 00 00 00 00 00 00 4F [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 17 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 17 00 B0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [08:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:14:00]wFMCommunicate OK [08:14:00]CreateOFDProtocolMessage done [08:14:00]OFDSenderStorePacket 30528 [08:14:00]StoreOFDPacket docnum=30528 [08:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 48 DB 07 01 B2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 19 00 00 00 F4 03 04 00 4A 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 77 00 00 35 04 06 00 A5 14 8E 75 58 95 D2 60 9F C3 3C 28 23 4C [08:14:00]CheckFolder [08:14:00]dirname=/storage/ofd_packets [08:14:00]CheckFolder done [08:14:00]ProducePacketName [08:14:00]name=ofd_packets/00030528 [08:14:00]NVStorageSaveData ofd_packets/00030528 [08:14:00]File name is /storage/ofd_packets/00030528 [08:14:00]Write 301 bytes [08:14:00]NVStorageSaveData done [08:14:00]OFDSenderStorePacket done [08:14:00]KKMCreateOFDPacket done [08:14:00]NVStorageSaveData kkm_last_timestamp [08:14:00]File name is /storage/kkm_last_timestamp [08:14:00]Write 4 bytes [08:14:00]NVStorageSaveData done [08:14:00]ExternCall_PrintAddStr [08:14:00]wPrintStart [08:14:00]Write to MH i2c: 01 00 00 B1 25 D6 [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: 01 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: 01 07 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 FF 0F EB [08:14:00]RasterBufferAndPrint [08:14:00]line Счет N : (1)342931 [08:14:00]line ИНН: 02508201610067 [08:14:00]line Контрольно-Кассовый Чек [08:14:00]line ПРОДАЖА [08:14:00]line ТРК (МРК, ГНК) : 63 [08:14:00]line Товар: 2710124130 [08:14:00]line Аи-92-К-2 [08:14:00]line 2.990 * 66.90 [08:14:00]line = 200.03 [08:14:00]line НДС 12% НСП 1% [08:14:00]line > о реализуемом товаре [08:14:00]line ОКРУГЛЕНИЕ: -0.03 [08:14:00]line ИТОГО: 200.00 [08:14:00]line Внесено: 200.00 [08:14:00]line СДАЧА: 0.00 [08:14:00]line НСП 1% : 1.77 [08:14:00]line НДС 12% : 21.24 [08:14:00]line Наличными: 200.00 [08:14:00]line Безнал.: 0.00 [08:14:00]line Место: АЗС № 78 "Партнер Нефть" [08:14:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:14:00]line СНО: Общий режим [08:14:00]line Чек 25 21.10.2024 08:14 [08:14:00]line Смена: 115 ФФД: 1.0 [08:14:00]line ЗНМ: 0300000137 [08:14:00]line РНМ: 0000000000186857 [08:14:00]line Версия ККМ: v1.0 [08:14:00]line ФМ: 0000000002094219 [08:14:00]line ФД: 30528 [08:14:00]line ФПД: 181507707984021 [08:14:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081402&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30528&fm=181507707984021&tin=02508201610067®Number=0000000000186857&sum=20000 [08:14:01]OFD Sender: Processing packet 30528 [packets to send 10, broken 9] [08:14:01]ProducePacketName [08:14:01]name=ofd_packets/00030528 [08:14:01]OFD Sender: To server: pG, [08:14:01]CommunicateWithHost lk.salyk.kg:30040 [08:14:01]ConnectInit lk.salyk.kg [08:14:01]written 0, free lines is 4095 [08:14:01]Connected sock=10 [08:14:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 48 DB 07 01 B2 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 19 00 00 00 F4 03 04 00 4A 0D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 77 00 00 35 04 06 00 A5 14 8E 75 58 95 D2 60 9F C3 3C 28 23 4C [08:14:01]Write to MH i2c: 01 00 00 DC 25 01 [08:14:01]Write i2c OK [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: 01 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: 01 07 00 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: 01 07 00 DC 25 00 00 00 00 00 F3 0C 07 [08:14:01]RasterBufferAndPrint [08:14:01]line [08:14:01]line [08:14:01]line [08:14:01]line [08:14:01]line [08:14:01]written 0, free lines is 3321 [08:14:01]MH_Cut [08:14:01]Write to MH i2c: D1 01 00 E3 25 01 DA [08:14:01]Write i2c OK [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: D1 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: D1 01 00 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: D1 01 00 E3 25 00 D9 [08:14:01]Write to MH i2c: 01 00 00 E4 25 09 [08:14:01]Write i2c OK [08:14:01]MH_I2C_Read... [08:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D2 9A 47 00 48 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 40 77 00 00 F4 03 04 00 CC B7 15 67 B6 04 01 00 00 7C 50 57 72 44 30 CD 0A [08:14:01]CommunicateWithHost err = 0 [08:14:01]CheckOFDResponse [08:14:01]1017 (14) - 77093643461234 [08:14:01]1041 (16) - 0000000002094219 [08:14:01]1040 (4) - 30528 [08:14:01]1012 (4) - 21.10.2024 02:09 [08:14:01]1206 (1) - 0 [08:14:01]OFD Sender: Remove packet 30528 [08:14:01]ProducePacketName [08:14:01]name=ofd_packets/00030528 [08:14:01]NVStorageDeleteData [08:14:02]OFD Sender: No OFD packet to send [08:14:02]*** Cut start [08:14:02]*** Partial cut [08:14:02]*** CUTSNS_PIN = 1 [08:14:02]*** CUTSNS_PIN = 0 [08:14:02]*** Brake cut motor [08:14:02]Read from MH i2c: 01 [08:14:02]MH_I2C_Read... [08:14:02]*** Stop cut motor [08:14:02]*** Cut end [08:14:02]Read from MH i2c: 01 07 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 07 00 E4 25 00 00 00 00 00 FF 0F 1E [08:14:02]process_action close_receipt done [08:14:02]requested_data is exist [08:14:02]produce_requested_data [08:14:02]requested_item fm.sn is exist - process it [08:14:02]wFMCommunicate request_size=4 [08:14:02]MH_SAM_APDU [08:14:02]CAPDU: 80 11 00 00 [08:14:02]Write to MH i2c: E2 08 00 E5 25 80 11 00 00 00 00 00 00 84 [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:03]Read from MH i2c: E2 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 17 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 17 00 E5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [08:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:14:03]wFMCommunicate OK [08:14:03]requested_item fd.num is exist - process it [08:14:03]SAM_PROTO_GetFieldsCounters [08:14:03]wFMCommunicate request_size=4 [08:14:03]MH_SAM_APDU [08:14:03]CAPDU: 80 13 00 00 [08:14:03]Write to MH i2c: E2 08 00 E6 25 80 13 00 00 00 00 00 00 87 [08:14:03]Write i2c OK [08:14:03]MH_I2C_Read... [08:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:03]Read from MH i2c: E2 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 62 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 62 00 E6 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 77 00 00 0E 04 04 00 73 00 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 22 [08:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 40 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:03]wFMCommunicate OK [08:14:03]SAM_PROTO_GetFieldsCounters done [08:14:03]requested_item shift.num is exist - process it [08:14:03]requested_item shift.opened is exist - process it [08:14:03]req_shift_opened [08:14:03]FM_GetShiftState [08:14:03]SAM_PROTO_GetShiftState [08:14:03]wFMCommunicate request_size=4 [08:14:03]MH_SAM_APDU [08:14:03]CAPDU: 80 13 01 00 [08:14:03]Write to MH i2c: E2 08 00 E7 25 80 13 01 00 00 00 00 00 89 [08:14:03]Write i2c OK [08:14:03]MH_I2C_Read... [08:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:03]Read from MH i2c: E2 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 0E 00 [08:14:03]MH_I2C_Read... [08:14:03]Read from MH i2c: E2 0E 00 E7 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 05 [08:14:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:14:03]wFMCommunicate OK [08:14:03]SAM_PROTO_GetShiftState done [08:14:03]FM_GetShiftState done [08:14:03]req_shift_opened done [08:14:03]requested_item shift.open_date is exist - process it [08:14:03]req_shift_open_date [08:14:03]req_shift_open_date done [08:14:03]produce_requested_data done [08:14:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30528,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:14:03]process_action_free close_receipt [08:14:03]json_value_free [08:14:03]json_value_free done [08:14:03]process_json_proto returns [08:14:03]Send response to host [08:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30528,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:14:03]free response buf [08:14:03]execute_script done [08:14:03]execute_script returns [08:14:03]free content buf [08:14:03]Sock 7.Close socket [08:14:03]Sock 7.Thread stoped [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:35]accept exits with 9 [08:20:35]New connection [08:20:35]New thread 3067346276 created [08:20:35]Thread 3067489636 joined [08:20:35]Waiting for new connection... [08:20:35] Sock 9.Parse request [08:20:35]Sock 9.Check first char [08:20:35]Sock 9.First char is OK [08:20:35]request: POST /json_proto HTTP/1.0 [08:20:35]Method: POST [08:20:35]URL: /json_proto [08:20:35]Method is POST - this is cgi request [08:20:35]url: /json_proto [08:20:35]query_string will be loaded in cgi processing [08:20:35]execute_cgi json_proto POST (null) [08:20:35]execute_cgi path=json_proto method=POST [08:20:35]POST find Content-Length [08:20:35]Host: 172.17.51.3:8080 [08:20:35]Content-Length: 682 [08:20:35]Content-Type: application/json [08:20:35] [08:20:35]POST finish read [08:20:35]Found Content-Length = 682 [08:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:35]execute_script... [08:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:35]POST & json_proto [08:20:35]process_json_proto [08:20:35]json parsed OK: [08:20:35]protocol is kg_v1.0 [08:20:35]action value=close_receipt [08:20:35]process_action close_receipt [08:20:35]cmd_close_receipt [08:20:35]MH_GetDate [08:20:35]Write to MH i2c: F0 00 00 E8 25 FC [08:20:35]Write i2c OK [08:20:35]MH_I2C_Read... [08:20:35]Read from MH i2c: F0 [08:20:35]MH_I2C_Read... [08:20:35]Read from MH i2c: F0 09 00 [08:20:35]MH_I2C_Read... [08:20:35]Read from MH i2c: F0 09 00 E8 25 00 D6 0E 16 67 04 C1 95 66 26 [08:20:35]GetLastDocTimeStamp 1729498442 [08:20:35]current date 1729498838 [08:20:35]FM_GetShiftState [08:20:35]SAM_PROTO_GetShiftState [08:20:35]wFMCommunicate request_size=4 [08:20:35]MH_SAM_APDU [08:20:35]CAPDU: 80 13 01 00 [08:20:35]Write to MH i2c: E2 08 00 E9 25 80 13 01 00 00 00 00 00 8B [08:20:35]Write i2c OK [08:20:35]MH_I2C_Read... [08:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:35]Read from MH i2c: E2 [08:20:35]MH_I2C_Read... [08:20:35]Read from MH i2c: E2 0E 00 [08:20:35]MH_I2C_Read... [08:20:35]Read from MH i2c: E2 0E 00 E9 25 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 07 [08:20:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:35]wFMCommunicate OK [08:20:35]SAM_PROTO_GetShiftState done [08:20:35]FM_GetShiftState done [08:20:35]opened in 1729471058 [08:20:35]opened+sec_in_day 1729557458 [08:20:35]quantity*price = 100015 [08:20:35]sum+1 = 100017 [08:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 26 21.10.2024 08:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30529 ФПД: 150652424674844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082039&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30529&fm=150652424674844&tin=02508201610067®Number=0000000000186857&sum=100000 [08:20:36]StoreToDocumentArchive [08:20:36]shift 115 fd 30529 [08:20:36]save to /storage/0115/doc_00030529 [08:20:36]save last doc name /storage/0115/doc_00030529 to /storage/kkm_last_doc_name [08:20:36]save OK [08:20:36]Clear old archive folders... [08:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:36]tlvbuf is 01E56380 [08:20:36]SAM_PROTO_ClearQueue [08:20:36]wFMCommunicate request_size=4 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 09 00 00 [08:20:36]Write to MH i2c: E2 08 00 F6 25 80 09 00 00 00 00 00 00 8D [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 F6 25 00 90 00 8F [08:20:36]RAPDU: 90 00 [08:20:36]wFMCommunicate OK [08:20:36]SAM_PROTO_ClearQueue done [08:20:36]KKMCreateOFDPacket [08:20:36]OFDProtocolAddRootSTLVToBuf [08:20:36]FM_MakeSignedData [08:20:36]FM_MakeSignedData [08:20:36]SAM_PROTO_SignData [08:20:36]wFMCommunicate request_size=4 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 0D 01 02 [08:20:36]Write to MH i2c: E2 08 00 F7 25 80 0D 01 02 00 00 00 00 95 [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 F7 25 00 90 00 90 [08:20:36]RAPDU: 90 00 [08:20:36]wFMCommunicate OK [08:20:36]wFMCommunicate request_size=255 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 77 00 00 35 04 06 00 89 [08:20:36]Write to MH i2c: E2 02 01 F8 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 77 00 00 35 04 06 00 89 00 00 50 [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 F8 25 00 90 00 91 [08:20:36]RAPDU: 90 00 [08:20:36]wFMCommunicate OK [08:20:36]wFMCommunicate request_size=10 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 0D 02 02 05 04 80 41 DE 1C [08:20:36]Write to MH i2c: E2 0D 00 F9 25 80 0D 02 02 05 00 04 80 41 DE 1C 00 00 61 [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 03 00 F9 25 00 90 00 92 [08:20:36]RAPDU: 90 00 [08:20:36]wFMCommunicate OK [08:20:36]wFMCommunicate request_size=4 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 0D 03 02 [08:20:36]Write to MH i2c: E2 08 00 FA 25 80 0D 03 02 00 00 00 00 9A [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 0B 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 0B 00 FA 25 00 D0 8A B6 BD DF 0E 37 65 90 00 F1 [08:20:36]RAPDU: D0 8A B6 BD DF 0E 37 65 90 00 [08:20:36]wFMCommunicate OK [08:20:36]SAM_PROTO_SignData done [08:20:36]FM_MakeSignedData done [08:20:36]CreateOFDProtocolMessage [08:20:36]wFMCommunicate request_size=4 [08:20:36]MH_SAM_APDU [08:20:36]CAPDU: 80 11 00 00 [08:20:36]Write to MH i2c: E2 08 00 FB 25 80 11 00 00 00 00 00 00 9A [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:36]Read from MH i2c: E2 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 17 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: E2 17 00 FB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [08:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:36]wFMCommunicate OK [08:20:36]CreateOFDProtocolMessage done [08:20:36]OFDSenderStorePacket 30529 [08:20:36]StoreOFDPacket docnum=30529 [08:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 64 07 01 64 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 77 00 00 35 04 06 00 89 04 80 41 DE 1C D0 8A B6 BD DF 0E 37 65 [08:20:36]CheckFolder [08:20:36]dirname=/storage/ofd_packets [08:20:36]CheckFolder done [08:20:36]ProducePacketName [08:20:36]name=ofd_packets/00030529 [08:20:36]NVStorageSaveData ofd_packets/00030529 [08:20:36]File name is /storage/ofd_packets/00030529 [08:20:36]Write 301 bytes [08:20:36]NVStorageSaveData done [08:20:36]OFDSenderStorePacket done [08:20:36]KKMCreateOFDPacket done [08:20:36]NVStorageSaveData kkm_last_timestamp [08:20:36]File name is /storage/kkm_last_timestamp [08:20:36]Write 4 bytes [08:20:36]NVStorageSaveData done [08:20:36]ExternCall_PrintAddStr [08:20:36]wPrintStart [08:20:36]Write to MH i2c: 01 00 00 FC 25 21 [08:20:36]Write i2c OK [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: 01 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: 01 07 00 [08:20:36]MH_I2C_Read... [08:20:36]Read from MH i2c: 01 07 00 FC 25 00 00 00 00 00 FF 0F 36 [08:20:36]RasterBufferAndPrint [08:20:36]line Счет N : (1)342932 [08:20:36]line ИНН: 02508201610067 [08:20:36]line Контрольно-Кассовый Чек [08:20:36]line ПРОДАЖА [08:20:36]line ТРК (МРК, ГНК) : 53 [08:20:36]line Товар: 2710124130 [08:20:36]line Аи-92-К-2 [08:20:36]line 14.950 * 66.90 [08:20:36]line = 1000.16 [08:20:36]line НДС 12% НСП 1% [08:20:36]line > о реализуемом товаре [08:20:36]line ОКРУГЛЕНИЕ: -0.16 [08:20:36]line ИТОГО: 1000.00 [08:20:36]line Внесено: 1000.00 [08:20:36]line СДАЧА: 0.00 [08:20:36]line НСП 1% : 8.85 [08:20:36]line НДС 12% : 106.21 [08:20:36]line Наличными: 1000.00 [08:20:36]line Безнал.: 0.00 [08:20:36]line Место: АЗС № 78 "Партнер Нефть" [08:20:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:20:36]line СНО: Общий режим [08:20:36]line Чек 26 21.10.2024 08:20 [08:20:36]line Смена: 115 ФФД: 1.0 [08:20:36]line ЗНМ: 0300000137 [08:20:36]line РНМ: 0000000000186857 [08:20:36]line Версия ККМ: v1.0 [08:20:36]line ФМ: 0000000002094219 [08:20:36]line ФД: 30529 [08:20:36]line ФПД: 150652424674844 [08:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082039&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30529&fm=150652424674844&tin=02508201610067®Number=0000000000186857&sum=100000 [08:20:37]OFD Sender: Processing packet 30529 [packets to send 10, broken 9] [08:20:37]ProducePacketName [08:20:37]name=ofd_packets/00030529 [08:20:37]OFD Sender: To server: pG, [08:20:37]CommunicateWithHost lk.salyk.kg:30040 [08:20:37]ConnectInit lk.salyk.kg [08:20:37]written 0, free lines is 4095 [08:20:37]Connected sock=10 [08:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 64 07 01 64 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 D7 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 41 77 00 00 35 04 06 00 89 04 80 41 DE 1C D0 8A B6 BD DF 0E 37 65 [08:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 51 46 47 00 0C 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 32 30 39 34 32 31 39 10 04 04 00 41 77 00 00 F4 03 04 00 58 B9 15 67 B6 04 01 00 00 52 4A 80 72 F8 8A 88 5D [08:20:37]CommunicateWithHost err = 0 [08:20:37]CheckOFDResponse [08:20:37]1017 (14) - 77093643461234 [08:20:37]1041 (16) - 0000000002094219 [08:20:37]1040 (4) - 30529 [08:20:37]1012 (4) - 21.10.2024 02:15 [08:20:37]1206 (1) - 0 [08:20:37]OFD Sender: Remove packet 30529 [08:20:37]ProducePacketName [08:20:37]name=ofd_packets/00030529 [08:20:37]NVStorageDeleteData [08:20:37]Write to MH i2c: 01 00 00 27 26 4D [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: 01 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: 01 07 00 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: 01 07 00 27 26 00 00 00 00 00 F5 0C 55 [08:20:37]RasterBufferAndPrint [08:20:37]line [08:20:37]line [08:20:37]line [08:20:37]line [08:20:37]line [08:20:37]written 0, free lines is 3324 [08:20:37]MH_Cut [08:20:37]Write to MH i2c: D1 01 00 2E 26 01 26 [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: D1 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: D1 01 00 [08:20:37]MH_I2C_Read... [08:20:37]Read from MH i2c: D1 01 00 2E 26 00 25 [08:20:37]Write to MH i2c: 01 00 00 2F 26 55 [08:20:37]Write i2c OK [08:20:37]MH_I2C_Read... [08:20:38]OFD Sender: No OFD packet to send [08:20:38]*** Cut start [08:20:38]*** Partial cut [08:20:38]*** CUTSNS_PIN = 1 [08:20:38]*** CUTSNS_PIN = 0 [08:20:38]*** Brake cut motor [08:20:38]Read from MH i2c: 01 [08:20:38]MH_I2C_Read... [08:20:38]*** Stop cut motor [08:20:38]*** Cut end [08:20:38]Read from MH i2c: 01 07 00 [08:20:38]MH_I2C_Read... [08:20:38]Read from MH i2c: 01 07 00 2F 26 00 00 00 00 00 FF 0F 6A [08:20:38]process_action close_receipt done [08:20:38]requested_data is exist [08:20:38]produce_requested_data [08:20:38]requested_item fm.sn is exist - process it [08:20:38]wFMCommunicate request_size=4 [08:20:38]MH_SAM_APDU [08:20:38]CAPDU: 80 11 00 00 [08:20:38]Write to MH i2c: E2 08 00 30 26 80 11 00 00 00 00 00 00 D0 [08:20:38]Write i2c OK [08:20:38]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 17 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 17 00 30 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [08:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:39]wFMCommunicate OK [08:20:39]requested_item fd.num is exist - process it [08:20:39]SAM_PROTO_GetFieldsCounters [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 00 00 [08:20:39]Write to MH i2c: E2 08 00 31 26 80 13 00 00 00 00 00 00 D3 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 62 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 62 00 31 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 77 00 00 0E 04 04 00 73 00 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 72 [08:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 41 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetFieldsCounters done [08:20:39]requested_item shift.num is exist - process it [08:20:39]requested_item shift.opened is exist - process it [08:20:39]req_shift_opened [08:20:39]FM_GetShiftState [08:20:39]SAM_PROTO_GetShiftState [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 01 00 [08:20:39]Write to MH i2c: E2 08 00 32 26 80 13 01 00 00 00 00 00 D5 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 32 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 51 [08:20:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetShiftState done [08:20:39]FM_GetShiftState done [08:20:39]req_shift_opened done [08:20:39]requested_item shift.open_date is exist - process it [08:20:39]req_shift_open_date [08:20:39]req_shift_open_date done [08:20:39]produce_requested_data done [08:20:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30529,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:20:39]process_action_free close_receipt [08:20:39]json_value_free [08:20:39]json_value_free done [08:20:39]process_json_proto returns [08:20:39]Send response to host [08:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30529,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:20:39]free response buf [08:20:39]execute_script done [08:20:39]execute_script returns [08:20:39]free content buf [08:20:39]Sock 9.Close socket [08:20:39]Sock 9.Thread stoped [08:20:39]accept exits with 7 [08:20:39]New connection [08:20:39]New thread 3067489636 created [08:20:39]Thread 3067346276 joined [08:20:39]Waiting for new connection... [08:20:39] Sock 7.Parse request [08:20:39]Sock 7.Check first char [08:20:39]Sock 7.First char is OK [08:20:39]request: POST /json_proto HTTP/1.0 [08:20:39]Method: POST [08:20:39]URL: /json_proto [08:20:39]Method is POST - this is cgi request [08:20:39]url: /json_proto [08:20:39]query_string will be loaded in cgi processing [08:20:39]execute_cgi json_proto POST (null) [08:20:39]execute_cgi path=json_proto method=POST [08:20:39]POST find Content-Length [08:20:39]Host: 172.17.51.3:8080 [08:20:39]Content-Length: 841 [08:20:39]Content-Type: application/json [08:20:39] [08:20:39]POST finish read [08:20:39]Found Content-Length = 841 [08:20:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]execute_script... [08:20:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:39]POST & json_proto [08:20:39]process_json_proto [08:20:39]json parsed OK: [08:20:39]protocol is kg_v1.0 [08:20:39]action value=close_receipt [08:20:39]process_action close_receipt [08:20:39]cmd_close_receipt [08:20:39]MH_GetDate [08:20:39]Write to MH i2c: F0 00 00 33 26 48 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: F0 09 00 33 26 00 DB 0E 16 67 04 C1 95 66 77 [08:20:39]GetLastDocTimeStamp 1729498839 [08:20:39]current date 1729498843 [08:20:39]FM_GetShiftState [08:20:39]SAM_PROTO_GetShiftState [08:20:39]wFMCommunicate request_size=4 [08:20:39]MH_SAM_APDU [08:20:39]CAPDU: 80 13 01 00 [08:20:39]Write to MH i2c: E2 08 00 34 26 80 13 01 00 00 00 00 00 D7 [08:20:39]Write i2c OK [08:20:39]MH_I2C_Read... [08:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:39]Read from MH i2c: E2 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 [08:20:39]MH_I2C_Read... [08:20:39]Read from MH i2c: E2 0E 00 34 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 53 [08:20:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:39]wFMCommunicate OK [08:20:39]SAM_PROTO_GetShiftState done [08:20:39]FM_GetShiftState done [08:20:39]opened in 1729471058 [08:20:39]opened+sec_in_day 1729557458 [08:20:39]quantity*price = 70044 [08:20:39]sum+1 = 70045 [08:20:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 27 21.10.2024 08:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30530 ФПД: 232536607483876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082043&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30530&fm=232536607483876&tin=02508201610067®Number=0000000000186857&sum=70044 [08:20:40]StoreToDocumentArchive [08:20:40]shift 115 fd 30530 [08:20:40]save to /storage/0115/doc_00030530 [08:20:40]save last doc name /storage/0115/doc_00030530 to /storage/kkm_last_doc_name [08:20:40]save OK [08:20:40]Clear old archive folders... [08:20:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:40]tlvbuf is 01E8FA50 [08:20:40]SAM_PROTO_ClearQueue [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 09 00 00 [08:20:40]Write to MH i2c: E2 08 00 41 26 80 09 00 00 00 00 00 00 D9 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 41 26 00 90 00 DB [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]SAM_PROTO_ClearQueue done [08:20:40]KKMCreateOFDPacket [08:20:40]OFDProtocolAddRootSTLVToBuf [08:20:40]FM_MakeSignedData [08:20:40]FM_MakeSignedData [08:20:40]SAM_PROTO_SignData [08:20:40]wFMCommunicate request_size=4 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 0D 01 02 [08:20:40]Write to MH i2c: E2 08 00 42 26 80 0D 01 02 00 00 00 00 E1 [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:40]Read from MH i2c: E2 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 [08:20:40]MH_I2C_Read... [08:20:40]Read from MH i2c: E2 03 00 42 26 00 90 00 DC [08:20:40]RAPDU: 90 00 [08:20:40]wFMCommunicate OK [08:20:40]wFMCommunicate request_size=255 [08:20:40]MH_SAM_APDU [08:20:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 77 00 00 35 04 06 00 D3 [08:20:40]Write to MH i2c: E2 02 01 43 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 77 00 00 35 04 06 00 D3 00 00 5A [08:20:40]Write i2c OK [08:20:40]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 43 26 00 90 00 DD [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=10 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 02 02 05 7D A5 E2 E7 E4 [08:20:41]Write to MH i2c: E2 0D 00 44 26 80 0D 02 02 05 00 7D A5 E2 E7 E4 00 00 BD [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [08:20:41]RAPDU: 90 00 [08:20:41]wFMCommunicate OK [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 0D 03 02 [08:20:41]Write to MH i2c: E2 08 00 45 26 80 0D 03 02 00 00 00 00 E6 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 0B 00 45 26 00 45 1D 94 36 9B 6B 93 5C 90 00 08 [08:20:41]RAPDU: 45 1D 94 36 9B 6B 93 5C 90 00 [08:20:41]wFMCommunicate OK [08:20:41]SAM_PROTO_SignData done [08:20:41]FM_MakeSignedData done [08:20:41]CreateOFDProtocolMessage [08:20:41]wFMCommunicate request_size=4 [08:20:41]MH_SAM_APDU [08:20:41]CAPDU: 80 11 00 00 [08:20:41]Write to MH i2c: E2 08 00 46 26 80 11 00 00 00 00 00 00 E6 [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:41]Read from MH i2c: E2 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: E2 17 00 46 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [08:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:41]wFMCommunicate OK [08:20:41]CreateOFDProtocolMessage done [08:20:41]OFDSenderStorePacket 30530 [08:20:41]StoreOFDPacket docnum=30530 [08:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 58 0D 07 01 50 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 77 00 00 35 04 06 00 D3 7D A5 E2 E7 E4 45 1D 94 36 9B 6B 93 5C [08:20:41]CheckFolder [08:20:41]dirname=/storage/ofd_packets [08:20:41]CheckFolder done [08:20:41]ProducePacketName [08:20:41]name=ofd_packets/00030530 [08:20:41]NVStorageSaveData ofd_packets/00030530 [08:20:41]File name is /storage/ofd_packets/00030530 [08:20:41]Write 301 bytes [08:20:41]NVStorageSaveData done [08:20:41]OFDSenderStorePacket done [08:20:41]KKMCreateOFDPacket done [08:20:41]NVStorageSaveData kkm_last_timestamp [08:20:41]File name is /storage/kkm_last_timestamp [08:20:41]Write 4 bytes [08:20:41]NVStorageSaveData done [08:20:41]ExternCall_PrintAddStr [08:20:41]wPrintStart [08:20:41]Write to MH i2c: 01 00 00 47 26 6D [08:20:41]Write i2c OK [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 [08:20:41]MH_I2C_Read... [08:20:41]Read from MH i2c: 01 07 00 47 26 00 00 00 00 00 FF 0F 82 [08:20:41]RasterBufferAndPrint [08:20:41]line Счет N : (1)342933 [08:20:41]line ИНН: 02508201610067 [08:20:41]line Контрольно-Кассовый Чек [08:20:41]line ПРОДАЖА [08:20:41]line ТРК (МРК, ГНК) : 63 [08:20:41]line Товар: 2710124130 [08:20:41]line Аи-92-К-2 [08:20:41]line 10.470 * 66.90 [08:20:42]line = 700.44 [08:20:42]line НДС 12% НСП 1% [08:20:42]line > о реализуемом товаре [08:20:42]line ИТОГО: 700.44 [08:20:42]line НСП 1% : 6.20 [08:20:42]line НДС 12% : 74.38 [08:20:42]line Наличными: 0.00 [08:20:42]line Безнал.: 700.44 [08:20:42]line Место: АЗС № 78 "Партнер Нефть" [08:20:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:20:42]line СНО: Общий режим [08:20:42]line Чек 27 21.10.2024 08:20 [08:20:42]line Смена: 115 ФФД: 1.0 [08:20:42]line ЗНМ: 0300000137 [08:20:42]line РНМ: 0000000000186857 [08:20:42]line Версия ККМ: v1.0 [08:20:42]line Платежная система: АКБ Кыргызстан [08:20:42]line ФМ: 0000000002094219 [08:20:42]line ФД: 30530 [08:20:42]line ФПД: 232536607483876 [08:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082043&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30530&fm=232536607483876&tin=02508201610067®Number=0000000000186857&sum=70044 [08:20:42]OFD Sender: Processing packet 30530 [packets to send 10, broken 9] [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00030530 [08:20:42]OFD Sender: To server: pG, [08:20:42]CommunicateWithHost lk.salyk.kg:30040 [08:20:42]ConnectInit lk.salyk.kg [08:20:42]written 0, free lines is 4095 [08:20:42]Connected sock=9 [08:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 58 0D 07 01 50 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 DB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 42 77 00 00 35 04 06 00 D3 7D A5 E2 E7 E4 45 1D 94 36 9B 6B 93 5C [08:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D9 15 47 00 1E 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 32 30 39 34 32 31 39 10 04 04 00 42 77 00 00 F4 03 04 00 5D B9 15 67 B6 04 01 00 00 58 53 F1 73 D2 4F 14 F1 [08:20:42]CommunicateWithHost err = 0 [08:20:42]CheckOFDResponse [08:20:42]1017 (14) - 77093643461234 [08:20:42]1041 (16) - 0000000002094219 [08:20:42]1040 (4) - 30530 [08:20:42]1012 (4) - 21.10.2024 02:15 [08:20:42]1206 (1) - 0 [08:20:42]OFD Sender: Remove packet 30530 [08:20:42]ProducePacketName [08:20:42]name=ofd_packets/00030530 [08:20:42]NVStorageDeleteData [08:20:42]Write to MH i2c: 01 00 00 71 26 97 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: 01 07 00 71 26 00 00 00 00 00 0C 0D B7 [08:20:42]RasterBufferAndPrint [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]line [08:20:42]written 0, free lines is 3353 [08:20:42]MH_Cut [08:20:42]Write to MH i2c: D1 01 00 78 26 01 70 [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 [08:20:42]MH_I2C_Read... [08:20:42]Read from MH i2c: D1 01 00 78 26 00 6F [08:20:42]Write to MH i2c: 01 00 00 79 26 9F [08:20:42]Write i2c OK [08:20:42]MH_I2C_Read... [08:20:42]OFD Sender: No OFD packet to send [08:20:43]*** Cut start [08:20:43]*** Partial cut [08:20:43]*** CUTSNS_PIN = 1 [08:20:43]*** CUTSNS_PIN = 0 [08:20:43]*** Brake cut motor [08:20:43]Read from MH i2c: 01 [08:20:43]MH_I2C_Read... [08:20:43]*** Stop cut motor [08:20:43]*** Cut end [08:20:43]Read from MH i2c: 01 07 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: 01 07 00 79 26 00 00 00 00 00 FF 0F B4 [08:20:43]process_action close_receipt done [08:20:43]requested_data is exist [08:20:43]produce_requested_data [08:20:43]requested_item fm.sn is exist - process it [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 11 00 00 [08:20:43]Write to MH i2c: E2 08 00 7A 26 80 11 00 00 00 00 00 00 1A [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 17 00 7A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [08:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:43]wFMCommunicate OK [08:20:43]requested_item fd.num is exist - process it [08:20:43]SAM_PROTO_GetFieldsCounters [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 00 00 [08:20:43]Write to MH i2c: E2 08 00 7B 26 80 13 00 00 00 00 00 00 1D [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:43]Read from MH i2c: E2 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 [08:20:43]MH_I2C_Read... [08:20:43]Read from MH i2c: E2 62 00 7B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 77 00 00 0E 04 04 00 73 00 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 C0 [08:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 42 77 00 00 0E 04 04 00 73 00 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:20:43]wFMCommunicate OK [08:20:43]SAM_PROTO_GetFieldsCounters done [08:20:43]requested_item shift.num is exist - process it [08:20:43]requested_item shift.opened is exist - process it [08:20:43]req_shift_opened [08:20:43]FM_GetShiftState [08:20:43]SAM_PROTO_GetShiftState [08:20:43]wFMCommunicate request_size=4 [08:20:43]MH_SAM_APDU [08:20:43]CAPDU: 80 13 01 00 [08:20:43]Write to MH i2c: E2 08 00 7C 26 80 13 01 00 00 00 00 00 1F [08:20:43]Write i2c OK [08:20:43]MH_I2C_Read... [08:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:44]Read from MH i2c: E2 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 0E 00 [08:20:44]MH_I2C_Read... [08:20:44]Read from MH i2c: E2 0E 00 7C 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9B [08:20:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:44]wFMCommunicate OK [08:20:44]SAM_PROTO_GetShiftState done [08:20:44]FM_GetShiftState done [08:20:44]req_shift_opened done [08:20:44]requested_item shift.open_date is exist - process it [08:20:44]req_shift_open_date [08:20:44]req_shift_open_date done [08:20:44]produce_requested_data done [08:20:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30530,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:20:44]process_action_free close_receipt [08:20:44]json_value_free [08:20:44]json_value_free done [08:20:44]process_json_proto returns [08:20:44]Send response to host [08:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30530,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:20:44]free response buf [08:20:44]execute_script done [08:20:44]execute_script returns [08:20:44]free content buf [08:20:44]Sock 7.Close socket [08:20:44]Sock 7.Thread stoped [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:55]accept exits with 10 [08:20:55]New connection [08:20:55]New thread 3067346276 created [08:20:55]Thread 3067489636 joined [08:20:55]Waiting for new connection... [08:20:55] Sock 10.Parse request [08:20:55]Sock 10.Check first char [08:20:55]Sock 10.First char is OK [08:20:55]request: POST /json_proto HTTP/1.0 [08:20:55]Method: POST [08:20:55]URL: /json_proto [08:20:55]Method is POST - this is cgi request [08:20:55]url: /json_proto [08:20:55]query_string will be loaded in cgi processing [08:20:55]execute_cgi json_proto POST (null) [08:20:55]execute_cgi path=json_proto method=POST [08:20:55]POST find Content-Length [08:20:55]Host: 172.17.51.3:8080 [08:20:55]Content-Length: 678 [08:20:55]Content-Type: application/json [08:20:55] [08:20:55]POST finish read [08:20:55]Found Content-Length = 678 [08:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:55]execute_script... [08:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:55]POST & json_proto [08:20:55]process_json_proto [08:20:55]json parsed OK: [08:20:55]protocol is kg_v1.0 [08:20:55]action value=close_receipt [08:20:55]process_action close_receipt [08:20:55]cmd_close_receipt [08:20:55]MH_GetDate [08:20:55]Write to MH i2c: F0 00 00 7D 26 92 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: F0 09 00 7D 26 00 EB 0E 16 67 04 C1 95 66 D1 [08:20:55]GetLastDocTimeStamp 1729498843 [08:20:55]current date 1729498859 [08:20:55]FM_GetShiftState [08:20:55]SAM_PROTO_GetShiftState [08:20:55]wFMCommunicate request_size=4 [08:20:55]MH_SAM_APDU [08:20:55]CAPDU: 80 13 01 00 [08:20:55]Write to MH i2c: E2 08 00 7E 26 80 13 01 00 00 00 00 00 21 [08:20:55]Write i2c OK [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 [08:20:55]MH_I2C_Read... [08:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:55]Read from MH i2c: E2 0E 00 [08:20:55]MH_I2C_Read... [08:20:55]Read from MH i2c: E2 0E 00 7E 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9D [08:20:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:55]wFMCommunicate OK [08:20:55]SAM_PROTO_GetShiftState done [08:20:55]FM_GetShiftState done [08:20:55]opened in 1729471058 [08:20:55]opened+sec_in_day 1729557458 [08:20:55]quantity*price = 70044 [08:20:55]sum+1 = 70045 [08:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 28 21.10.2024 08:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30531 ФПД: 26156089593933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082059&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30531&fm=26156089593933&tin=02508201610067®Number=0000000000186857&sum=70000 [08:20:56]StoreToDocumentArchive [08:20:56]shift 115 fd 30531 [08:20:56]save to /storage/0115/doc_00030531 [08:20:56]save last doc name /storage/0115/doc_00030531 to /storage/kkm_last_doc_name [08:20:56]save OK [08:20:56]Clear old archive folders... [08:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:56]tlvbuf is 01E0C9B0 [08:20:56]SAM_PROTO_ClearQueue [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 09 00 00 [08:20:56]Write to MH i2c: E2 08 00 8B 26 80 09 00 00 00 00 00 00 23 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 8B 26 00 90 00 25 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]SAM_PROTO_ClearQueue done [08:20:56]KKMCreateOFDPacket [08:20:56]OFDProtocolAddRootSTLVToBuf [08:20:56]FM_MakeSignedData [08:20:56]FM_MakeSignedData [08:20:56]SAM_PROTO_SignData [08:20:56]wFMCommunicate request_size=4 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 01 02 [08:20:56]Write to MH i2c: E2 08 00 8C 26 80 0D 01 02 00 00 00 00 2B [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:56]Read from MH i2c: E2 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 [08:20:56]MH_I2C_Read... [08:20:56]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [08:20:56]RAPDU: 90 00 [08:20:56]wFMCommunicate OK [08:20:56]wFMCommunicate request_size=255 [08:20:56]MH_SAM_APDU [08:20:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 77 00 00 35 04 06 00 17 [08:20:56]Write to MH i2c: E2 02 01 8D 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 77 00 00 35 04 06 00 17 00 00 A2 [08:20:56]Write i2c OK [08:20:56]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [08:20:57]RAPDU: 90 00 [08:20:57]wFMCommunicate OK [08:20:57]wFMCommunicate request_size=10 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 0D 02 02 05 C9 F0 6D D0 4D [08:20:57]Write to MH i2c: E2 0D 00 8E 26 80 0D 02 02 05 00 C9 F0 6D D0 4D 00 00 7B [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [08:20:57]RAPDU: 90 00 [08:20:57]wFMCommunicate OK [08:20:57]wFMCommunicate request_size=4 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 0D 03 02 [08:20:57]Write to MH i2c: E2 08 00 8F 26 80 0D 03 02 00 00 00 00 30 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 0B 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 0B 00 8F 26 00 8C 4C 4E C4 FA 7C 20 60 90 00 11 [08:20:57]RAPDU: 8C 4C 4E C4 FA 7C 20 60 90 00 [08:20:57]wFMCommunicate OK [08:20:57]SAM_PROTO_SignData done [08:20:57]FM_MakeSignedData done [08:20:57]CreateOFDProtocolMessage [08:20:57]wFMCommunicate request_size=4 [08:20:57]MH_SAM_APDU [08:20:57]CAPDU: 80 11 00 00 [08:20:57]Write to MH i2c: E2 08 00 90 26 80 11 00 00 00 00 00 00 30 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:57]Read from MH i2c: E2 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 17 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: E2 17 00 90 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [08:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:57]wFMCommunicate OK [08:20:57]CreateOFDProtocolMessage done [08:20:57]OFDSenderStorePacket 30531 [08:20:57]StoreOFDPacket docnum=30531 [08:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 53 33 07 01 D3 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 77 00 00 35 04 06 00 17 C9 F0 6D D0 4D 8C 4C 4E C4 FA 7C 20 60 [08:20:57]CheckFolder [08:20:57]dirname=/storage/ofd_packets [08:20:57]CheckFolder done [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00030531 [08:20:57]NVStorageSaveData ofd_packets/00030531 [08:20:57]File name is /storage/ofd_packets/00030531 [08:20:57]Write 301 bytes [08:20:57]NVStorageSaveData done [08:20:57]OFDSenderStorePacket done [08:20:57]KKMCreateOFDPacket done [08:20:57]NVStorageSaveData kkm_last_timestamp [08:20:57]File name is /storage/kkm_last_timestamp [08:20:57]Write 4 bytes [08:20:57]NVStorageSaveData done [08:20:57]ExternCall_PrintAddStr [08:20:57]wPrintStart [08:20:57]Write to MH i2c: 01 00 00 91 26 B7 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 91 26 00 00 00 00 00 FF 0F CC [08:20:57]RasterBufferAndPrint [08:20:57]line Счет N : (1)342934 [08:20:57]line ИНН: 02508201610067 [08:20:57]line Контрольно-Кассовый Чек [08:20:57]line ПРОДАЖА [08:20:57]line ТРК (МРК, ГНК) : 43 [08:20:57]line Товар: 2710124130 [08:20:57]line Аи-92-К-2 [08:20:57]line 10.470 * 66.90 [08:20:57]line = 700.44 [08:20:57]line НДС 12% НСП 1% [08:20:57]line > о реализуемом товаре [08:20:57]line ОКРУГЛЕНИЕ: -0.44 [08:20:57]line ИТОГО: 700.00 [08:20:57]line Внесено: 700.00 [08:20:57]line СДАЧА: 0.00 [08:20:57]line НСП 1% : 6.20 [08:20:57]line НДС 12% : 74.38 [08:20:57]line Наличными: 700.00 [08:20:57]line Безнал.: 0.00 [08:20:57]line Место: АЗС № 78 "Партнер Нефть" [08:20:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:20:57]line СНО: Общий режим [08:20:57]line Чек 28 21.10.2024 08:20 [08:20:57]line Смена: 115 ФФД: 1.0 [08:20:57]line ЗНМ: 0300000137 [08:20:57]line РНМ: 0000000000186857 [08:20:57]line Версия ККМ: v1.0 [08:20:57]line ФМ: 0000000002094219 [08:20:57]line ФД: 30531 [08:20:57]line ФПД: 26156089593933 [08:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082059&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30531&fm=26156089593933&tin=02508201610067®Number=0000000000186857&sum=70000 [08:20:57]written 0, free lines is 4095 [08:20:57]OFD Sender: Processing packet 30531 [packets to send 10, broken 9] [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00030531 [08:20:57]OFD Sender: To server: pG, [08:20:57]CommunicateWithHost lk.salyk.kg:30040 [08:20:57]ConnectInit lk.salyk.kg [08:20:57]Connected sock=9 [08:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 53 33 07 01 D3 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 EB 0E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 77 00 00 35 04 06 00 17 C9 F0 6D D0 4D 8C 4C 4E C4 FA 7C 20 60 [08:20:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 90 47 47 00 22 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 43 77 00 00 F4 03 04 00 6C B9 15 67 B6 04 01 00 00 DE E2 D1 D1 32 CD 52 F2 [08:20:57]CommunicateWithHost err = 0 [08:20:57]CheckOFDResponse [08:20:57]1017 (14) - 77093643461234 [08:20:57]1041 (16) - 0000000002094219 [08:20:57]1040 (4) - 30531 [08:20:57]1012 (4) - 21.10.2024 02:16 [08:20:57]1206 (1) - 0 [08:20:57]OFD Sender: Remove packet 30531 [08:20:57]ProducePacketName [08:20:57]name=ofd_packets/00030531 [08:20:57]NVStorageDeleteData [08:20:57]Write to MH i2c: 01 00 00 BC 26 E2 [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: 01 07 00 BC 26 00 00 00 00 00 F7 0C EC [08:20:57]RasterBufferAndPrint [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]line [08:20:57]written 0, free lines is 3334 [08:20:57]MH_Cut [08:20:57]Write to MH i2c: D1 01 00 C3 26 01 BB [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 [08:20:57]MH_I2C_Read... [08:20:57]Read from MH i2c: D1 01 00 C3 26 00 BA [08:20:57]Write to MH i2c: 01 00 00 C4 26 EA [08:20:57]Write i2c OK [08:20:57]MH_I2C_Read... [08:20:58]OFD Sender: No OFD packet to send [08:20:58]*** Cut start [08:20:58]*** Partial cut [08:20:58]*** CUTSNS_PIN = 1 [08:20:58]*** CUTSNS_PIN = 0 [08:20:58]*** Brake cut motor [08:20:59]Read from MH i2c: 01 [08:20:59]MH_I2C_Read... [08:20:59]*** Stop cut motor [08:20:59]*** Cut end [08:20:59]Read from MH i2c: 01 07 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: 01 07 00 C4 26 00 00 00 00 00 FF 0F FF [08:20:59]process_action close_receipt done [08:20:59]requested_data is exist [08:20:59]produce_requested_data [08:20:59]requested_item fm.sn is exist - process it [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 11 00 00 [08:20:59]Write to MH i2c: E2 08 00 C5 26 80 11 00 00 00 00 00 00 65 [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 17 00 C5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [08:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:20:59]wFMCommunicate OK [08:20:59]requested_item fd.num is exist - process it [08:20:59]SAM_PROTO_GetFieldsCounters [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 00 00 [08:20:59]Write to MH i2c: E2 08 00 C6 26 80 13 00 00 00 00 00 00 68 [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 62 00 C6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 77 00 00 0E 04 04 00 73 00 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 0F [08:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 43 77 00 00 0E 04 04 00 73 00 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:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetFieldsCounters done [08:20:59]requested_item shift.num is exist - process it [08:20:59]requested_item shift.opened is exist - process it [08:20:59]req_shift_opened [08:20:59]FM_GetShiftState [08:20:59]SAM_PROTO_GetShiftState [08:20:59]wFMCommunicate request_size=4 [08:20:59]MH_SAM_APDU [08:20:59]CAPDU: 80 13 01 00 [08:20:59]Write to MH i2c: E2 08 00 C7 26 80 13 01 00 00 00 00 00 6A [08:20:59]Write i2c OK [08:20:59]MH_I2C_Read... [08:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:59]Read from MH i2c: E2 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 [08:20:59]MH_I2C_Read... [08:20:59]Read from MH i2c: E2 0E 00 C7 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E6 [08:20:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:20:59]wFMCommunicate OK [08:20:59]SAM_PROTO_GetShiftState done [08:20:59]FM_GetShiftState done [08:20:59]req_shift_opened done [08:20:59]requested_item shift.open_date is exist - process it [08:20:59]req_shift_open_date [08:20:59]req_shift_open_date done [08:20:59]produce_requested_data done [08:20:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30531,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:20:59]process_action_free close_receipt [08:20:59]json_value_free [08:20:59]json_value_free done [08:20:59]process_json_proto returns [08:20:59]Send response to host [08:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30531,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:20:59]free response buf [08:20:59]execute_script done [08:20:59]execute_script returns [08:20:59]free content buf [08:20:59]Sock 10.Close socket [08:20:59]Sock 10.Thread stoped [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:12]accept exits with 7 [08:25:12]New connection [08:25:12]New thread 3067489636 created [08:25:12]Thread 3067346276 joined [08:25:12]Waiting for new connection... [08:25:12] Sock 7.Parse request [08:25:12]Sock 7.Check first char [08:25:12]Sock 7.First char is OK [08:25:12]request: POST /json_proto HTTP/1.0 [08:25:12]Method: POST [08:25:12]URL: /json_proto [08:25:12]Method is POST - this is cgi request [08:25:12]url: /json_proto [08:25:12]query_string will be loaded in cgi processing [08:25:12]execute_cgi json_proto POST (null) [08:25:12]execute_cgi path=json_proto method=POST [08:25:12]POST find Content-Length [08:25:12]Host: 172.17.51.3:8080 [08:25:12]Content-Length: 677 [08:25:12]Content-Type: application/json [08:25:12] [08:25:12]POST finish read [08:25:12]Found Content-Length = 677 [08:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:12]execute_script... [08:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:12]POST & json_proto [08:25:12]process_json_proto [08:25:12]json parsed OK: [08:25:12]protocol is kg_v1.0 [08:25:12]action value=close_receipt [08:25:12]process_action close_receipt [08:25:12]cmd_close_receipt [08:25:12]MH_GetDate [08:25:12]Write to MH i2c: F0 00 00 C8 26 DD [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 09 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 09 00 C8 26 00 EC 0F 16 67 04 C1 95 66 1E [08:25:12]GetLastDocTimeStamp 1729498859 [08:25:12]current date 1729499116 [08:25:12]FM_GetShiftState [08:25:12]SAM_PROTO_GetShiftState [08:25:12]wFMCommunicate request_size=4 [08:25:12]MH_SAM_APDU [08:25:12]CAPDU: 80 13 01 00 [08:25:12]Write to MH i2c: E2 08 00 C9 26 80 13 01 00 00 00 00 00 6C [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:12]Read from MH i2c: E2 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 0E 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 0E 00 C9 26 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E8 [08:25:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:25:12]wFMCommunicate OK [08:25:12]SAM_PROTO_GetShiftState done [08:25:12]FM_GetShiftState done [08:25:12]opened in 1729471058 [08:25:12]opened+sec_in_day 1729557458 [08:25:12]quantity*price = 50041 [08:25:12]sum+1 = 50042 [08:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 29 21.10.2024 08:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30532 ФПД: 247956083878537 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30532&fm=247956083878537&tin=02508201610067®Number=0000000000186857&sum=50000 [08:25:13]StoreToDocumentArchive [08:25:13]shift 115 fd 30532 [08:25:13]save to /storage/0115/doc_00030532 [08:25:13]save last doc name /storage/0115/doc_00030532 to /storage/kkm_last_doc_name [08:25:13]save OK [08:25:13]Clear old archive folders... [08:25:13]OFD Sender: No OFD packet to send [08:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:13]tlvbuf is 01E0C500 [08:25:13]SAM_PROTO_ClearQueue [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 09 00 00 [08:25:13]Write to MH i2c: E2 08 00 D6 26 80 09 00 00 00 00 00 00 6E [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 D6 26 00 90 00 70 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]SAM_PROTO_ClearQueue done [08:25:13]KKMCreateOFDPacket [08:25:13]OFDProtocolAddRootSTLVToBuf [08:25:13]FM_MakeSignedData [08:25:13]FM_MakeSignedData [08:25:13]SAM_PROTO_SignData [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 01 02 [08:25:13]Write to MH i2c: E2 08 00 D7 26 80 0D 01 02 00 00 00 00 76 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 D7 26 00 90 00 71 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=255 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EC 0F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 77 00 00 35 04 06 00 E1 [08:25:13]Write to MH i2c: E2 02 01 D8 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EC 0F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 77 00 00 35 04 06 00 E1 00 00 AB [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=10 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 02 02 05 83 C6 4C AA 89 [08:25:13]Write to MH i2c: E2 0D 00 D9 26 80 0D 02 02 05 00 83 C6 4C AA 89 00 00 4B [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 03 02 [08:25:13]Write to MH i2c: E2 08 00 DA 26 80 0D 03 02 00 00 00 00 7B [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:14]Read from MH i2c: E2 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0B 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0B 00 DA 26 00 7C 2E 2D 53 3C E9 CD 71 90 00 09 [08:25:14]RAPDU: 7C 2E 2D 53 3C E9 CD 71 90 00 [08:25:14]wFMCommunicate OK [08:25:14]SAM_PROTO_SignData done [08:25:14]FM_MakeSignedData done [08:25:14]CreateOFDProtocolMessage [08:25:14]wFMCommunicate request_size=4 [08:25:14]MH_SAM_APDU [08:25:14]CAPDU: 80 11 00 00 [08:25:14]Write to MH i2c: E2 08 00 DB 26 80 11 00 00 00 00 00 00 7B [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:14]Read from MH i2c: E2 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 17 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 17 00 DB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [08:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:25:14]wFMCommunicate OK [08:25:14]CreateOFDProtocolMessage done [08:25:14]OFDSenderStorePacket 30532 [08:25:14]StoreOFDPacket docnum=30532 [08:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 FE 07 01 3E 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EC 0F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 77 00 00 35 04 06 00 E1 83 C6 4C AA 89 7C 2E 2D 53 3C E9 CD 71 [08:25:14]CheckFolder [08:25:14]dirname=/storage/ofd_packets [08:25:14]CheckFolder done [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00030532 [08:25:14]NVStorageSaveData ofd_packets/00030532 [08:25:14]File name is /storage/ofd_packets/00030532 [08:25:14]Write 301 bytes [08:25:14]NVStorageSaveData done [08:25:14]OFDSenderStorePacket done [08:25:14]KKMCreateOFDPacket done [08:25:14]NVStorageSaveData kkm_last_timestamp [08:25:14]File name is /storage/kkm_last_timestamp [08:25:14]Write 4 bytes [08:25:14]NVStorageSaveData done [08:25:14]ExternCall_PrintAddStr [08:25:14]wPrintStart [08:25:14]Write to MH i2c: 01 00 00 DC 26 02 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 DC 26 00 00 00 00 00 FF 0F 17 [08:25:14]RasterBufferAndPrint [08:25:14]line Счет N : (1)342935 [08:25:14]line ИНН: 02508201610067 [08:25:14]line Контрольно-Кассовый Чек [08:25:14]line ПРОДАЖА [08:25:14]line ТРК (МРК, ГНК) : 63 [08:25:14]line Товар: 2710124130 [08:25:14]line Аи-92-К-2 [08:25:14]line 7.480 * 66.90 [08:25:14]line = 500.41 [08:25:14]line НДС 12% НСП 1% [08:25:14]line > о реализуемом товаре [08:25:14]line ОКРУГЛЕНИЕ: -0.41 [08:25:14]line ИТОГО: 500.00 [08:25:14]line Внесено: 500.00 [08:25:14]line СДАЧА: 0.00 [08:25:14]line НСП 1% : 4.43 [08:25:14]line НДС 12% : 53.14 [08:25:14]line Наличными: 500.00 [08:25:14]line Безнал.: 0.00 [08:25:14]line Место: АЗС № 78 "Партнер Нефть" [08:25:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:25:14]line СНО: Общий режим [08:25:14]line Чек 29 21.10.2024 08:25 [08:25:14]line Смена: 115 ФФД: 1.0 [08:25:14]line ЗНМ: 0300000137 [08:25:14]line РНМ: 0000000000186857 [08:25:14]line Версия ККМ: v1.0 [08:25:14]line ФМ: 0000000002094219 [08:25:14]line ФД: 30532 [08:25:14]line ФПД: 247956083878537 [08:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082516&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30532&fm=247956083878537&tin=02508201610067®Number=0000000000186857&sum=50000 [08:25:14]OFD Sender: Processing packet 30532 [packets to send 10, broken 9] [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00030532 [08:25:14]OFD Sender: To server: pG, [08:25:14]CommunicateWithHost lk.salyk.kg:30040 [08:25:14]ConnectInit lk.salyk.kg [08:25:14]written 0, free lines is 4095 [08:25:14]Connected sock=11 [08:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 FE 07 01 3E 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EC 0F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 77 00 00 35 04 06 00 E1 83 C6 4C AA 89 7C 2E 2D 53 3C E9 CD 71 [08:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 19 B3 47 00 E5 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 44 77 00 00 F4 03 04 00 6D BA 15 67 B6 04 01 00 00 43 A0 D7 FD F5 E8 FE 15 [08:25:14]CommunicateWithHost err = 0 [08:25:14]CheckOFDResponse [08:25:14]1017 (14) - 77093643461234 [08:25:14]1041 (16) - 0000000002094219 [08:25:14]1040 (4) - 30532 [08:25:14]1012 (4) - 21.10.2024 02:20 [08:25:14]1206 (1) - 0 [08:25:14]OFD Sender: Remove packet 30532 [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00030532 [08:25:14]NVStorageDeleteData [08:25:14]Write to MH i2c: 01 00 00 07 27 2E [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 07 27 00 00 00 00 00 ED 0C 2E [08:25:14]RasterBufferAndPrint [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]written 0, free lines is 3315 [08:25:14]MH_Cut [08:25:14]Write to MH i2c: D1 01 00 0E 27 01 07 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 01 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 01 00 0E 27 00 06 [08:25:14]Write to MH i2c: 01 00 00 0F 27 36 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:15]OFD Sender: No OFD packet to send [08:25:15]*** Cut start [08:25:15]*** Partial cut [08:25:15]*** CUTSNS_PIN = 1 [08:25:15]*** CUTSNS_PIN = 0 [08:25:15]*** Brake cut motor [08:25:16]Read from MH i2c: 01 [08:25:16]MH_I2C_Read... [08:25:16]*** Stop cut motor [08:25:16]*** Cut end [08:25:16]Read from MH i2c: 01 07 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 0F 27 00 00 00 00 00 FF 0F 4B [08:25:16]process_action close_receipt done [08:25:16]requested_data is exist [08:25:16]produce_requested_data [08:25:16]requested_item fm.sn is exist - process it [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 11 00 00 [08:25:16]Write to MH i2c: E2 08 00 10 27 80 11 00 00 00 00 00 00 B1 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 10 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [08:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:25:16]wFMCommunicate OK [08:25:16]requested_item fd.num is exist - process it [08:25:16]SAM_PROTO_GetFieldsCounters [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 13 00 00 [08:25:16]Write to MH i2c: E2 08 00 11 27 80 13 00 00 00 00 00 00 B4 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 62 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 62 00 11 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 77 00 00 0E 04 04 00 73 00 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 5F [08:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 44 77 00 00 0E 04 04 00 73 00 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:25:16]wFMCommunicate OK [08:25:16]SAM_PROTO_GetFieldsCounters done [08:25:16]requested_item shift.num is exist - process it [08:25:16]requested_item shift.opened is exist - process it [08:25:16]req_shift_opened [08:25:16]FM_GetShiftState [08:25:16]SAM_PROTO_GetShiftState [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 13 01 00 [08:25:16]Write to MH i2c: E2 08 00 12 27 80 13 01 00 00 00 00 00 B6 [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0E 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 0E 00 12 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 32 [08:25:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:25:16]wFMCommunicate OK [08:25:16]SAM_PROTO_GetShiftState done [08:25:16]FM_GetShiftState done [08:25:16]req_shift_opened done [08:25:16]requested_item shift.open_date is exist - process it [08:25:16]req_shift_open_date [08:25:16]req_shift_open_date done [08:25:16]produce_requested_data done [08:25:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30532,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:25:16]process_action_free close_receipt [08:25:16]json_value_free [08:25:16]json_value_free done [08:25:16]process_json_proto returns [08:25:16]Send response to host [08:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30532,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:25:16]free response buf [08:25:16]execute_script done [08:25:16]execute_script returns [08:25:16]free content buf [08:25:16]Sock 7.Close socket [08:25:16]Sock 7.Thread stoped [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:46]accept exits with 9 [08:27:46]New connection [08:27:46]New thread 3067346276 created [08:27:46]Thread 3067489636 joined [08:27:46]Waiting for new connection... [08:27:46] Sock 9.Parse request [08:27:46]Sock 9.Check first char [08:27:46]Sock 9.First char is OK [08:27:46]request: POST /json_proto HTTP/1.0 [08:27:46]Method: POST [08:27:46]URL: /json_proto [08:27:46]Method is POST - this is cgi request [08:27:46]url: /json_proto [08:27:46]query_string will be loaded in cgi processing [08:27:46]execute_cgi json_proto POST (null) [08:27:46]execute_cgi path=json_proto method=POST [08:27:46]POST find Content-Length [08:27:46]Host: 172.17.51.3:8080 [08:27:46]Content-Length: 843 [08:27:46]Content-Type: application/json [08:27:46] [08:27:46]POST finish read [08:27:46]Found Content-Length = 843 [08:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:46]execute_script... [08:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:46]POST & json_proto [08:27:46]process_json_proto [08:27:46]json parsed OK: [08:27:46]protocol is kg_v1.0 [08:27:46]action value=close_receipt [08:27:46]process_action close_receipt [08:27:46]cmd_close_receipt [08:27:46]MH_GetDate [08:27:46]Write to MH i2c: F0 00 00 13 27 29 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: F0 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: F0 09 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: F0 09 00 13 27 00 86 10 16 67 04 C1 95 66 05 [08:27:46]GetLastDocTimeStamp 1729499116 [08:27:46]current date 1729499270 [08:27:46]FM_GetShiftState [08:27:46]SAM_PROTO_GetShiftState [08:27:46]wFMCommunicate request_size=4 [08:27:46]MH_SAM_APDU [08:27:46]CAPDU: 80 13 01 00 [08:27:46]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:46]Read from MH i2c: E2 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 0E 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 34 [08:27:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:27:46]wFMCommunicate OK [08:27:46]SAM_PROTO_GetShiftState done [08:27:46]FM_GetShiftState done [08:27:46]opened in 1729471058 [08:27:46]opened+sec_in_day 1729557458 [08:27:46]quantity*price = 100021 [08:27:46]sum+1 = 100023 [08:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 30 21.10.2024 08:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30533 ФПД: 105683544394936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082750&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30533&fm=105683544394936&tin=02508201610067®Number=0000000000186857&sum=100022 [08:27:47]StoreToDocumentArchive [08:27:47]shift 115 fd 30533 [08:27:47]save to /storage/0115/doc_00030533 [08:27:47]save last doc name /storage/0115/doc_00030533 to /storage/kkm_last_doc_name [08:27:47]save OK [08:27:47]Clear old archive folders... [08:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:47]tlvbuf is 01E05F20 [08:27:47]SAM_PROTO_ClearQueue [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 09 00 00 [08:27:47]Write to MH i2c: E2 08 00 21 27 80 09 00 00 00 00 00 00 BA [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 03 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 03 00 21 27 00 90 00 BC [08:27:47]RAPDU: 90 00 [08:27:47]wFMCommunicate OK [08:27:47]SAM_PROTO_ClearQueue done [08:27:47]KKMCreateOFDPacket [08:27:47]OFDProtocolAddRootSTLVToBuf [08:27:47]FM_MakeSignedData [08:27:47]FM_MakeSignedData [08:27:47]SAM_PROTO_SignData [08:27:47]wFMCommunicate request_size=4 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 0D 01 02 [08:27:47]Write to MH i2c: E2 08 00 22 27 80 0D 01 02 00 00 00 00 C2 [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:47]Read from MH i2c: E2 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 03 00 [08:27:47]MH_I2C_Read... [08:27:47]Read from MH i2c: E2 03 00 22 27 00 90 00 BD [08:27:47]RAPDU: 90 00 [08:27:47]wFMCommunicate OK [08:27:47]wFMCommunicate request_size=255 [08:27:47]MH_SAM_APDU [08:27:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 86 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 77 00 00 35 04 06 00 60 [08:27:47]Write to MH i2c: E2 02 01 23 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 86 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 77 00 00 35 04 06 00 60 00 00 5D [08:27:47]Write i2c OK [08:27:47]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 03 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 03 00 23 27 00 90 00 BE [08:27:48]RAPDU: 90 00 [08:27:48]wFMCommunicate OK [08:27:48]wFMCommunicate request_size=10 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 0D 02 02 05 1E 5E 1F 4C B8 [08:27:48]Write to MH i2c: E2 0D 00 24 27 80 0D 02 02 05 00 1E 5E 1F 4C B8 00 00 6E [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 03 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [08:27:48]RAPDU: 90 00 [08:27:48]wFMCommunicate OK [08:27:48]wFMCommunicate request_size=4 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 0D 03 02 [08:27:48]Write to MH i2c: E2 08 00 25 27 80 0D 03 02 00 00 00 00 C7 [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 0B 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 0B 00 25 27 00 2A 22 BA 87 B0 4D 91 4F 90 00 32 [08:27:48]RAPDU: 2A 22 BA 87 B0 4D 91 4F 90 00 [08:27:48]wFMCommunicate OK [08:27:48]SAM_PROTO_SignData done [08:27:48]FM_MakeSignedData done [08:27:48]CreateOFDProtocolMessage [08:27:48]wFMCommunicate request_size=4 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 11 00 00 [08:27:48]Write to MH i2c: E2 08 00 26 27 80 11 00 00 00 00 00 00 C7 [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 17 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 17 00 26 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [08:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:27:48]wFMCommunicate OK [08:27:48]CreateOFDProtocolMessage done [08:27:48]OFDSenderStorePacket 30533 [08:27:48]StoreOFDPacket docnum=30533 [08:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 17 07 01 93 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 86 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 77 00 00 35 04 06 00 60 1E 5E 1F 4C B8 2A 22 BA 87 B0 4D 91 4F [08:27:48]CheckFolder [08:27:48]dirname=/storage/ofd_packets [08:27:48]CheckFolder done [08:27:48]ProducePacketName [08:27:48]name=ofd_packets/00030533 [08:27:48]NVStorageSaveData ofd_packets/00030533 [08:27:48]File name is /storage/ofd_packets/00030533 [08:27:48]Write 301 bytes [08:27:48]NVStorageSaveData done [08:27:48]OFDSenderStorePacket done [08:27:48]KKMCreateOFDPacket done [08:27:48]NVStorageSaveData kkm_last_timestamp [08:27:48]File name is /storage/kkm_last_timestamp [08:27:48]Write 4 bytes [08:27:48]NVStorageSaveData done [08:27:48]ExternCall_PrintAddStr [08:27:48]wPrintStart [08:27:48]Write to MH i2c: 01 00 00 27 27 4E [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 07 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 07 00 27 27 00 00 00 00 00 FF 0F 63 [08:27:48]RasterBufferAndPrint [08:27:48]line Счет N : (1)342936 [08:27:48]line ИНН: 02508201610067 [08:27:48]line Контрольно-Кассовый Чек [08:27:48]line ПРОДАЖА [08:27:48]line ТРК (МРК, ГНК) : 42 [08:27:48]line Товар: 2710124500 [08:27:48]line Аи-95-К-3 [08:27:48]line 13.480 * 74.20 [08:27:48]line = 1000.22 [08:27:48]line НДС 12% НСП 1% [08:27:48]line > о реализуемом товаре [08:27:48]line ИТОГО: 1000.22 [08:27:48]line НСП 1% : 8.85 [08:27:48]line НДС 12% : 106.22 [08:27:48]line Наличными: 0.00 [08:27:48]line Безнал.: 1000.22 [08:27:48]line Место: АЗС № 78 "Партнер Нефть" [08:27:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:27:48]line СНО: Общий режим [08:27:48]line Чек 30 21.10.2024 08:27 [08:27:48]line Смена: 115 ФФД: 1.0 [08:27:48]line ЗНМ: 0300000137 [08:27:48]line РНМ: 0000000000186857 [08:27:48]line Версия ККМ: v1.0 [08:27:48]line Платежная система: АКБ Кыргызстан [08:27:48]line ФМ: 0000000002094219 [08:27:48]line ФД: 30533 [08:27:48]line ФПД: 105683544394936 [08:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082750&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30533&fm=105683544394936&tin=02508201610067®Number=0000000000186857&sum=100022 [08:27:48]OFD Sender: Processing packet 30533 [packets to send 10, broken 9] [08:27:48]ProducePacketName [08:27:48]name=ofd_packets/00030533 [08:27:48]OFD Sender: To server: pG, [08:27:48]CommunicateWithHost lk.salyk.kg:30040 [08:27:48]ConnectInit lk.salyk.kg [08:27:48]written 0, free lines is 4095 [08:27:48]Connected sock=10 [08:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 17 07 01 93 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 86 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 77 00 00 35 04 06 00 60 1E 5E 1F 4C B8 2A 22 BA 87 B0 4D 91 4F [08:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0E 7C 47 00 66 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 45 77 00 00 F4 03 04 00 07 BB 15 67 B6 04 01 00 00 F4 31 B7 C6 F5 4D 0A FC [08:27:48]CommunicateWithHost err = 0 [08:27:48]CheckOFDResponse [08:27:48]1017 (14) - 77093643461234 [08:27:48]1041 (16) - 0000000002094219 [08:27:48]1040 (4) - 30533 [08:27:48]1012 (4) - 21.10.2024 02:23 [08:27:48]1206 (1) - 0 [08:27:48]OFD Sender: Remove packet 30533 [08:27:48]ProducePacketName [08:27:48]name=ofd_packets/00030533 [08:27:48]NVStorageDeleteData [08:27:48]Write to MH i2c: 01 00 00 51 27 78 [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 07 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 07 00 51 27 00 00 00 00 00 0A 0D 96 [08:27:48]RasterBufferAndPrint [08:27:48]line [08:27:48]line [08:27:48]line [08:27:48]line [08:27:48]line [08:27:48]written 0, free lines is 3344 [08:27:49]MH_Cut [08:27:49]Write to MH i2c: D1 01 00 58 27 01 51 [08:27:49]Write i2c OK [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: D1 [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: D1 01 00 [08:27:49]MH_I2C_Read... [08:27:49]Read from MH i2c: D1 01 00 58 27 00 50 [08:27:49]Write to MH i2c: 01 00 00 59 27 80 [08:27:49]Write i2c OK [08:27:49]MH_I2C_Read... [08:27:49]OFD Sender: No OFD packet to send [08:27:49]*** Cut start [08:27:49]*** Partial cut [08:27:49]*** CUTSNS_PIN = 1 [08:27:49]*** CUTSNS_PIN = 0 [08:27:49]*** Brake cut motor [08:27:50]Read from MH i2c: 01 [08:27:50]MH_I2C_Read... [08:27:50]*** Stop cut motor [08:27:50]*** Cut end [08:27:50]Read from MH i2c: 01 07 00 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: 01 07 00 59 27 00 00 00 00 00 FF 0F 95 [08:27:50]process_action close_receipt done [08:27:50]requested_data is exist [08:27:50]produce_requested_data [08:27:50]requested_item fm.sn is exist - process it [08:27:50]wFMCommunicate request_size=4 [08:27:50]MH_SAM_APDU [08:27:50]CAPDU: 80 11 00 00 [08:27:50]Write to MH i2c: E2 08 00 5A 27 80 11 00 00 00 00 00 00 FB [08:27:50]Write i2c OK [08:27:50]MH_I2C_Read... [08:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:50]Read from MH i2c: E2 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 17 00 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 17 00 5A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [08:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:27:50]wFMCommunicate OK [08:27:50]requested_item fd.num is exist - process it [08:27:50]SAM_PROTO_GetFieldsCounters [08:27:50]wFMCommunicate request_size=4 [08:27:50]MH_SAM_APDU [08:27:50]CAPDU: 80 13 00 00 [08:27:50]Write to MH i2c: E2 08 00 5B 27 80 13 00 00 00 00 00 00 FE [08:27:50]Write i2c OK [08:27:50]MH_I2C_Read... [08:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:50]Read from MH i2c: E2 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 62 00 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 62 00 5B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 77 00 00 0E 04 04 00 73 00 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 AD [08:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 45 77 00 00 0E 04 04 00 73 00 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:27:50]wFMCommunicate OK [08:27:50]SAM_PROTO_GetFieldsCounters done [08:27:50]requested_item shift.num is exist - process it [08:27:50]requested_item shift.opened is exist - process it [08:27:50]req_shift_opened [08:27:50]FM_GetShiftState [08:27:50]SAM_PROTO_GetShiftState [08:27:50]wFMCommunicate request_size=4 [08:27:50]MH_SAM_APDU [08:27:50]CAPDU: 80 13 01 00 [08:27:50]Write to MH i2c: E2 08 00 5C 27 80 13 01 00 00 00 00 00 00 [08:27:50]Write i2c OK [08:27:50]MH_I2C_Read... [08:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:50]Read from MH i2c: E2 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 0E 00 [08:27:50]MH_I2C_Read... [08:27:50]Read from MH i2c: E2 0E 00 5C 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7C [08:27:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:27:50]wFMCommunicate OK [08:27:50]SAM_PROTO_GetShiftState done [08:27:50]FM_GetShiftState done [08:27:50]req_shift_opened done [08:27:50]requested_item shift.open_date is exist - process it [08:27:50]req_shift_open_date [08:27:50]req_shift_open_date done [08:27:50]produce_requested_data done [08:27:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30533,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:27:50]process_action_free close_receipt [08:27:50]json_value_free [08:27:50]json_value_free done [08:27:50]process_json_proto returns [08:27:50]Send response to host [08:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30533,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:27:50]free response buf [08:27:50]execute_script done [08:27:50]execute_script returns [08:27:50]free content buf [08:27:50]Sock 9.Close socket [08:27:50]Sock 9.Thread stoped [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:21]accept exits with 7 [08:28:21]New connection [08:28:21]New thread 3067489636 created [08:28:21]Thread 3067346276 joined [08:28:21]Waiting for new connection... [08:28:21] Sock 7.Parse request [08:28:21]Sock 7.Check first char [08:28:21]Sock 7.First char is OK [08:28:21]request: POST /json_proto HTTP/1.0 [08:28:21]Method: POST [08:28:21]URL: /json_proto [08:28:21]Method is POST - this is cgi request [08:28:21]url: /json_proto [08:28:21]query_string will be loaded in cgi processing [08:28:21]execute_cgi json_proto POST (null) [08:28:21]execute_cgi path=json_proto method=POST [08:28:21]POST find Content-Length [08:28:21]Host: 172.17.51.3:8080 [08:28:21]Content-Length: 677 [08:28:21]Content-Type: application/json [08:28:21] [08:28:21]POST finish read [08:28:21]Found Content-Length = 677 [08:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:21]execute_script... [08:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:21]POST & json_proto [08:28:21]process_json_proto [08:28:21]json parsed OK: [08:28:21]protocol is kg_v1.0 [08:28:21]action value=close_receipt [08:28:21]process_action close_receipt [08:28:21]cmd_close_receipt [08:28:21]MH_GetDate [08:28:21]Write to MH i2c: F0 00 00 5D 27 73 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: F0 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: F0 09 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: F0 09 00 5D 27 00 A9 10 16 67 04 C1 95 66 72 [08:28:21]GetLastDocTimeStamp 1729499270 [08:28:21]current date 1729499305 [08:28:21]FM_GetShiftState [08:28:21]SAM_PROTO_GetShiftState [08:28:21]wFMCommunicate request_size=4 [08:28:21]MH_SAM_APDU [08:28:21]CAPDU: 80 13 01 00 [08:28:21]Write to MH i2c: E2 08 00 5E 27 80 13 01 00 00 00 00 00 02 [08:28:21]Write i2c OK [08:28:21]MH_I2C_Read... [08:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:21]Read from MH i2c: E2 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 [08:28:21]MH_I2C_Read... [08:28:21]Read from MH i2c: E2 0E 00 5E 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7E [08:28:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:28:21]wFMCommunicate OK [08:28:21]SAM_PROTO_GetShiftState done [08:28:21]FM_GetShiftState done [08:28:21]opened in 1729471058 [08:28:21]opened+sec_in_day 1729557458 [08:28:21]quantity*price = 20003 [08:28:21]sum+1 = 20004 [08:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 31 21.10.2024 08:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30534 ФПД: 18211508764391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30534&fm=18211508764391&tin=02508201610067®Number=0000000000186857&sum=20000 [08:28:22]StoreToDocumentArchive [08:28:22]shift 115 fd 30534 [08:28:22]save to /storage/0115/doc_00030534 [08:28:22]save last doc name /storage/0115/doc_00030534 to /storage/kkm_last_doc_name [08:28:22]save OK [08:28:22]Clear old archive folders... [08:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:22]tlvbuf is 01E7BA00 [08:28:22]SAM_PROTO_ClearQueue [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 09 00 00 [08:28:22]Write to MH i2c: E2 08 00 6B 27 80 09 00 00 00 00 00 00 04 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 6B 27 00 90 00 06 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]SAM_PROTO_ClearQueue done [08:28:22]KKMCreateOFDPacket [08:28:22]OFDProtocolAddRootSTLVToBuf [08:28:22]FM_MakeSignedData [08:28:22]FM_MakeSignedData [08:28:22]SAM_PROTO_SignData [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 0D 01 02 [08:28:22]Write to MH i2c: E2 08 00 6C 27 80 0D 01 02 00 00 00 00 0C [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 6C 27 00 90 00 07 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]wFMCommunicate request_size=255 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 1F 00 00 00 F4 03 04 00 A9 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 77 00 00 35 04 06 00 10 [08:28:22]Write to MH i2c: E2 02 01 6D 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 1F 00 00 00 F4 03 04 00 A9 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 77 00 00 35 04 06 00 10 00 00 F4 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:23]Read from MH i2c: E2 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 03 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 03 00 6D 27 00 90 00 08 [08:28:23]RAPDU: 90 00 [08:28:23]wFMCommunicate OK [08:28:23]wFMCommunicate request_size=10 [08:28:23]MH_SAM_APDU [08:28:23]CAPDU: 80 0D 02 02 05 90 32 82 BE E7 [08:28:23]Write to MH i2c: E2 0D 00 6E 27 80 0D 02 02 05 00 90 32 82 BE E7 00 00 02 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:23]Read from MH i2c: E2 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 03 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 03 00 6E 27 00 90 00 09 [08:28:23]RAPDU: 90 00 [08:28:23]wFMCommunicate OK [08:28:23]wFMCommunicate request_size=4 [08:28:23]MH_SAM_APDU [08:28:23]CAPDU: 80 0D 03 02 [08:28:23]Write to MH i2c: E2 08 00 6F 27 80 0D 03 02 00 00 00 00 11 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:23]Read from MH i2c: E2 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 0B 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 0B 00 6F 27 00 86 7C A3 CD 2B 5D 1B AB 90 00 D2 [08:28:23]RAPDU: 86 7C A3 CD 2B 5D 1B AB 90 00 [08:28:23]wFMCommunicate OK [08:28:23]SAM_PROTO_SignData done [08:28:23]FM_MakeSignedData done [08:28:23]CreateOFDProtocolMessage [08:28:23]wFMCommunicate request_size=4 [08:28:23]MH_SAM_APDU [08:28:23]CAPDU: 80 11 00 00 [08:28:23]Write to MH i2c: E2 08 00 70 27 80 11 00 00 00 00 00 00 11 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:23]Read from MH i2c: E2 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 17 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: E2 17 00 70 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [08:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:28:23]wFMCommunicate OK [08:28:23]CreateOFDProtocolMessage done [08:28:23]OFDSenderStorePacket 30534 [08:28:23]StoreOFDPacket docnum=30534 [08:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 ED 07 01 CC C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 1F 00 00 00 F4 03 04 00 A9 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 77 00 00 35 04 06 00 10 90 32 82 BE E7 86 7C A3 CD 2B 5D 1B AB [08:28:23]CheckFolder [08:28:23]dirname=/storage/ofd_packets [08:28:23]CheckFolder done [08:28:23]ProducePacketName [08:28:23]name=ofd_packets/00030534 [08:28:23]NVStorageSaveData ofd_packets/00030534 [08:28:23]File name is /storage/ofd_packets/00030534 [08:28:23]Write 301 bytes [08:28:23]NVStorageSaveData done [08:28:23]OFDSenderStorePacket done [08:28:23]KKMCreateOFDPacket done [08:28:23]NVStorageSaveData kkm_last_timestamp [08:28:23]File name is /storage/kkm_last_timestamp [08:28:23]Write 4 bytes [08:28:23]NVStorageSaveData done [08:28:23]ExternCall_PrintAddStr [08:28:23]wPrintStart [08:28:23]Write to MH i2c: 01 00 00 71 27 98 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 07 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 07 00 71 27 00 00 00 00 00 FF 0F AD [08:28:23]RasterBufferAndPrint [08:28:23]line Счет N : (1)342937 [08:28:23]line ИНН: 02508201610067 [08:28:23]line Контрольно-Кассовый Чек [08:28:23]line ПРОДАЖА [08:28:23]line ТРК (МРК, ГНК) : 33 [08:28:23]line Товар: 2710124130 [08:28:23]line Аи-92-К-2 [08:28:23]line 2.990 * 66.90 [08:28:23]line = 200.03 [08:28:23]line НДС 12% НСП 1% [08:28:23]line > о реализуемом товаре [08:28:23]line ОКРУГЛЕНИЕ: -0.03 [08:28:23]line ИТОГО: 200.00 [08:28:23]line Внесено: 200.00 [08:28:23]line СДАЧА: 0.00 [08:28:23]line НСП 1% : 1.77 [08:28:23]line НДС 12% : 21.24 [08:28:23]line Наличными: 200.00 [08:28:23]line Безнал.: 0.00 [08:28:23]line Место: АЗС № 78 "Партнер Нефть" [08:28:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:28:23]line СНО: Общий режим [08:28:23]line Чек 31 21.10.2024 08:28 [08:28:23]line Смена: 115 ФФД: 1.0 [08:28:23]line ЗНМ: 0300000137 [08:28:23]line РНМ: 0000000000186857 [08:28:23]line Версия ККМ: v1.0 [08:28:23]line ФМ: 0000000002094219 [08:28:23]line ФД: 30534 [08:28:23]line ФПД: 18211508764391 [08:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30534&fm=18211508764391&tin=02508201610067®Number=0000000000186857&sum=20000 [08:28:23]OFD Sender: Processing packet 30534 [packets to send 10, broken 9] [08:28:23]ProducePacketName [08:28:23]name=ofd_packets/00030534 [08:28:23]OFD Sender: To server: pG, [08:28:23]CommunicateWithHost lk.salyk.kg:30040 [08:28:23]ConnectInit lk.salyk.kg [08:28:23]written 0, free lines is 4095 [08:28:23]Connected sock=10 [08:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 ED 07 01 CC C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 1F 00 00 00 F4 03 04 00 A9 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 77 00 00 35 04 06 00 10 90 32 82 BE E7 86 7C A3 CD 2B 5D 1B AB [08:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BF B3 47 00 0E 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 46 77 00 00 F4 03 04 00 2A BB 15 67 B6 04 01 00 00 37 26 F9 9B 50 B1 8A CB [08:28:23]CommunicateWithHost err = 0 [08:28:23]CheckOFDResponse [08:28:23]1017 (14) - 77093643461234 [08:28:23]1041 (16) - 0000000002094219 [08:28:23]1040 (4) - 30534 [08:28:23]1012 (4) - 21.10.2024 02:23 [08:28:23]1206 (1) - 0 [08:28:23]OFD Sender: Remove packet 30534 [08:28:23]ProducePacketName [08:28:23]name=ofd_packets/00030534 [08:28:23]NVStorageDeleteData [08:28:24]Write to MH i2c: 01 00 00 9C 27 C3 [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: 01 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: 01 07 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: 01 07 00 9C 27 00 00 00 00 00 F0 0C C6 [08:28:24]RasterBufferAndPrint [08:28:24]line [08:28:24]line [08:28:24]line [08:28:24]line [08:28:24]line [08:28:24]written 0, free lines is 3318 [08:28:24]MH_Cut [08:28:24]Write to MH i2c: D1 01 00 A3 27 01 9C [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: D1 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: D1 01 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: D1 01 00 A3 27 00 9B [08:28:24]Write to MH i2c: 01 00 00 A4 27 CB [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]OFD Sender: No OFD packet to send [08:28:24]*** Cut start [08:28:24]*** Partial cut [08:28:24]*** CUTSNS_PIN = 1 [08:28:24]*** CUTSNS_PIN = 0 [08:28:24]*** Brake cut motor [08:28:25]Read from MH i2c: 01 [08:28:25]MH_I2C_Read... [08:28:25]*** Stop cut motor [08:28:25]*** Cut end [08:28:25]Read from MH i2c: 01 07 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: 01 07 00 A4 27 00 00 00 00 00 FF 0F E0 [08:28:25]process_action close_receipt done [08:28:25]requested_data is exist [08:28:25]produce_requested_data [08:28:25]requested_item fm.sn is exist - process it [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 11 00 00 [08:28:25]Write to MH i2c: E2 08 00 A5 27 80 11 00 00 00 00 00 00 46 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 17 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 17 00 A5 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [08:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:28:25]wFMCommunicate OK [08:28:25]requested_item fd.num is exist - process it [08:28:25]SAM_PROTO_GetFieldsCounters [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 13 00 00 [08:28:25]Write to MH i2c: E2 08 00 A6 27 80 13 00 00 00 00 00 00 49 [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 62 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 62 00 A6 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 77 00 00 0E 04 04 00 73 00 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 FC [08:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 46 77 00 00 0E 04 04 00 73 00 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:28:25]wFMCommunicate OK [08:28:25]SAM_PROTO_GetFieldsCounters done [08:28:25]requested_item shift.num is exist - process it [08:28:25]requested_item shift.opened is exist - process it [08:28:25]req_shift_opened [08:28:25]FM_GetShiftState [08:28:25]SAM_PROTO_GetShiftState [08:28:25]wFMCommunicate request_size=4 [08:28:25]MH_SAM_APDU [08:28:25]CAPDU: 80 13 01 00 [08:28:25]Write to MH i2c: E2 08 00 A7 27 80 13 01 00 00 00 00 00 4B [08:28:25]Write i2c OK [08:28:25]MH_I2C_Read... [08:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:25]Read from MH i2c: E2 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0E 00 [08:28:25]MH_I2C_Read... [08:28:25]Read from MH i2c: E2 0E 00 A7 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C7 [08:28:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:28:25]wFMCommunicate OK [08:28:25]SAM_PROTO_GetShiftState done [08:28:25]FM_GetShiftState done [08:28:25]req_shift_opened done [08:28:25]requested_item shift.open_date is exist - process it [08:28:25]req_shift_open_date [08:28:25]req_shift_open_date done [08:28:25]produce_requested_data done [08:28:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30534,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:28:25]process_action_free close_receipt [08:28:25]json_value_free [08:28:25]json_value_free done [08:28:25]process_json_proto returns [08:28:25]Send response to host [08:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30534,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:28:25]free response buf [08:28:25]execute_script done [08:28:25]execute_script returns [08:28:25]free content buf [08:28:25]Sock 7.Close socket [08:28:25]Sock 7.Thread stoped [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:04]OFD Sender: No OFD packet to send [08:29:05]accept exits with 9 [08:29:05]New connection [08:29:05]New thread 3067346276 created [08:29:05]Thread 3067489636 joined [08:29:05]Waiting for new connection... [08:29:05] Sock 9.Parse request [08:29:05]Sock 9.Check first char [08:29:05]Sock 9.First char is OK [08:29:05]request: POST /json_proto HTTP/1.0 [08:29:05]Method: POST [08:29:05]URL: /json_proto [08:29:05]Method is POST - this is cgi request [08:29:05]url: /json_proto [08:29:05]query_string will be loaded in cgi processing [08:29:05]execute_cgi json_proto POST (null) [08:29:05]execute_cgi path=json_proto method=POST [08:29:05]POST find Content-Length [08:29:05]Host: 172.17.51.3:8080 [08:29:05]Content-Length: 840 [08:29:05]Content-Type: application/json [08:29:05] [08:29:05]POST finish read [08:29:05]Found Content-Length = 840 [08:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:05]execute_script... [08:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 260.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:05]POST & json_proto [08:29:05]process_json_proto [08:29:05]json parsed OK: [08:29:05]protocol is kg_v1.0 [08:29:05]action value=close_receipt [08:29:05]process_action close_receipt [08:29:05]cmd_close_receipt [08:29:05]MH_GetDate [08:29:05]Write to MH i2c: F0 00 00 A8 27 BE [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: F0 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: F0 09 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: F0 09 00 A8 27 00 D4 10 16 67 04 C1 95 66 E8 [08:29:05]GetLastDocTimeStamp 1729499305 [08:29:05]current date 1729499348 [08:29:05]FM_GetShiftState [08:29:05]SAM_PROTO_GetShiftState [08:29:05]wFMCommunicate request_size=4 [08:29:05]MH_SAM_APDU [08:29:05]CAPDU: 80 13 01 00 [08:29:05]Write to MH i2c: E2 08 00 A9 27 80 13 01 00 00 00 00 00 4D [08:29:05]Write i2c OK [08:29:05]MH_I2C_Read... [08:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:05]Read from MH i2c: E2 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0E 00 [08:29:05]MH_I2C_Read... [08:29:05]Read from MH i2c: E2 0E 00 A9 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C9 [08:29:05]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:29:05]wFMCommunicate OK [08:29:05]SAM_PROTO_GetShiftState done [08:29:05]FM_GetShiftState done [08:29:05]opened in 1729471058 [08:29:05]opened+sec_in_day 1729557458 [08:29:05]quantity*price = 26024 [08:29:05]sum+1 = 26025 [08:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.24 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 0.00 Безнал.: 260.24 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 32 21.10.2024 08:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30535 ФПД: 214402399682945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30535&fm=214402399682945&tin=02508201610067®Number=0000000000186857&sum=26024 [08:29:06]StoreToDocumentArchive [08:29:06]shift 115 fd 30535 [08:29:06]save to /storage/0115/doc_00030535 [08:29:06]save last doc name /storage/0115/doc_00030535 to /storage/kkm_last_doc_name [08:29:06]save OK [08:29:06]Clear old archive folders... [08:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:06]tlvbuf is 01DB5FC0 [08:29:06]SAM_PROTO_ClearQueue [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 09 00 00 [08:29:06]Write to MH i2c: E2 08 00 B6 27 80 09 00 00 00 00 00 00 4F [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 B6 27 00 90 00 51 [08:29:06]RAPDU: 90 00 [08:29:06]wFMCommunicate OK [08:29:06]SAM_PROTO_ClearQueue done [08:29:06]KKMCreateOFDPacket [08:29:06]OFDProtocolAddRootSTLVToBuf [08:29:06]FM_MakeSignedData [08:29:06]FM_MakeSignedData [08:29:06]SAM_PROTO_SignData [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 0D 01 02 [08:29:06]Write to MH i2c: E2 08 00 B7 27 80 0D 01 02 00 00 00 00 57 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 B7 27 00 90 00 52 [08:29:06]RAPDU: 90 00 [08:29:06]wFMCommunicate OK [08:29:06]wFMCommunicate request_size=255 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D4 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 77 00 00 35 04 06 00 C2 [08:29:06]Write to MH i2c: E2 02 01 B8 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D4 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 77 00 00 35 04 06 00 C2 00 00 37 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 B8 27 00 90 00 53 [08:29:06]RAPDU: 90 00 [08:29:06]wFMCommunicate OK [08:29:06]wFMCommunicate request_size=10 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 0D 02 02 05 FF 72 DF 41 81 [08:29:06]Write to MH i2c: E2 0D 00 B9 27 80 0D 02 02 05 00 FF 72 DF 41 81 00 00 76 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [08:29:06]RAPDU: 90 00 [08:29:06]wFMCommunicate OK [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 0D 03 02 [08:29:06]Write to MH i2c: E2 08 00 BA 27 80 0D 03 02 00 00 00 00 5C [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 0B 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 0B 00 BA 27 00 39 65 21 5F 89 59 E7 FC 90 00 40 [08:29:06]RAPDU: 39 65 21 5F 89 59 E7 FC 90 00 [08:29:06]wFMCommunicate OK [08:29:06]SAM_PROTO_SignData done [08:29:06]FM_MakeSignedData done [08:29:06]CreateOFDProtocolMessage [08:29:06]wFMCommunicate request_size=4 [08:29:06]MH_SAM_APDU [08:29:06]CAPDU: 80 11 00 00 [08:29:06]Write to MH i2c: E2 08 00 BB 27 80 11 00 00 00 00 00 00 5C [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:06]Read from MH i2c: E2 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: E2 17 00 BB 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [08:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:06]wFMCommunicate OK [08:29:06]CreateOFDProtocolMessage done [08:29:06]OFDSenderStorePacket 30535 [08:29:06]StoreOFDPacket docnum=30535 [08:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 81 07 01 B4 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D4 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 77 00 00 35 04 06 00 C2 FF 72 DF 41 81 39 65 21 5F 89 59 E7 FC [08:29:06]CheckFolder [08:29:06]dirname=/storage/ofd_packets [08:29:06]CheckFolder done [08:29:06]ProducePacketName [08:29:06]name=ofd_packets/00030535 [08:29:06]NVStorageSaveData ofd_packets/00030535 [08:29:06]File name is /storage/ofd_packets/00030535 [08:29:06]Write 301 bytes [08:29:06]NVStorageSaveData done [08:29:06]OFDSenderStorePacket done [08:29:06]KKMCreateOFDPacket done [08:29:06]NVStorageSaveData kkm_last_timestamp [08:29:06]File name is /storage/kkm_last_timestamp [08:29:06]Write 4 bytes [08:29:06]NVStorageSaveData done [08:29:06]ExternCall_PrintAddStr [08:29:06]wPrintStart [08:29:06]Write to MH i2c: 01 00 00 BC 27 E3 [08:29:06]Write i2c OK [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 [08:29:06]MH_I2C_Read... [08:29:06]Read from MH i2c: 01 07 00 BC 27 00 00 00 00 00 FF 0F F8 [08:29:06]RasterBufferAndPrint [08:29:06]line Счет N : (1)342938 [08:29:06]line ИНН: 02508201610067 [08:29:06]line Контрольно-Кассовый Чек [08:29:06]line ПРОДАЖА [08:29:06]line ТРК (МРК, ГНК) : 43 [08:29:06]line Товар: 2710124130 [08:29:06]line Аи-92-К-2 [08:29:06]line 3.890 * 66.90 [08:29:06]line = 260.24 [08:29:06]line НДС 12% НСП 1% [08:29:06]line > о реализуемом товаре [08:29:06]line ИТОГО: 260.24 [08:29:06]line НСП 1% : 2.30 [08:29:06]line НДС 12% : 27.64 [08:29:06]line Наличными: 0.00 [08:29:06]line Безнал.: 260.24 [08:29:06]line Место: АЗС № 78 "Партнер Нефть" [08:29:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:29:06]line СНО: Общий режим [08:29:06]line Чек 32 21.10.2024 08:29 [08:29:06]line Смена: 115 ФФД: 1.0 [08:29:06]line ЗНМ: 0300000137 [08:29:06]line РНМ: 0000000000186857 [08:29:06]line Версия ККМ: v1.0 [08:29:06]line Платежная система: АКБ Кыргызстан [08:29:06]line ФМ: 0000000002094219 [08:29:06]line ФД: 30535 [08:29:06]line ФПД: 214402399682945 [08:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30535&fm=214402399682945&tin=02508201610067®Number=0000000000186857&sum=26024 [08:29:07]OFD Sender: Processing packet 30535 [packets to send 10, broken 9] [08:29:07]ProducePacketName [08:29:07]name=ofd_packets/00030535 [08:29:07]OFD Sender: To server: pG, [08:29:07]CommunicateWithHost lk.salyk.kg:30040 [08:29:07]ConnectInit lk.salyk.kg [08:29:07]written 0, free lines is 4095 [08:29:07]Connected sock=11 [08:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 21 81 07 01 B4 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 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 CC 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D4 10 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 77 00 00 35 04 06 00 C2 FF 72 DF 41 81 39 65 21 5F 89 59 E7 FC [08:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 17 F3 47 00 46 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 47 77 00 00 F4 03 04 00 56 BB 15 67 B6 04 01 00 00 1C BB DC C5 7F 0A 1C 1A [08:29:07]CommunicateWithHost err = 0 [08:29:07]CheckOFDResponse [08:29:07]1017 (14) - 77093643461234 [08:29:07]1041 (16) - 0000000002094219 [08:29:07]1040 (4) - 30535 [08:29:07]1012 (4) - 21.10.2024 02:24 [08:29:07]1206 (1) - 0 [08:29:07]OFD Sender: Remove packet 30535 [08:29:07]ProducePacketName [08:29:07]name=ofd_packets/00030535 [08:29:07]NVStorageDeleteData [08:29:07]Write to MH i2c: 01 00 00 E6 27 0D [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 07 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: 01 07 00 E6 27 00 00 00 00 00 FF 0C 1F [08:29:07]RasterBufferAndPrint [08:29:07]line [08:29:07]line [08:29:07]line [08:29:07]line [08:29:07]line [08:29:07]written 0, free lines is 3333 [08:29:07]MH_Cut [08:29:07]Write to MH i2c: D1 01 00 ED 27 01 E6 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: D1 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: D1 01 00 [08:29:07]MH_I2C_Read... [08:29:07]Read from MH i2c: D1 01 00 ED 27 00 E5 [08:29:07]Write to MH i2c: 01 00 00 EE 27 15 [08:29:07]Write i2c OK [08:29:07]MH_I2C_Read... [08:29:07]OFD Sender: No OFD packet to send [08:29:08]*** Cut start [08:29:08]*** Partial cut [08:29:08]*** CUTSNS_PIN = 1 [08:29:08]*** CUTSNS_PIN = 0 [08:29:08]*** Brake cut motor [08:29:08]Read from MH i2c: 01 [08:29:08]MH_I2C_Read... [08:29:08]*** Stop cut motor [08:29:08]*** Cut end [08:29:08]Read from MH i2c: 01 07 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: 01 07 00 EE 27 00 00 00 00 00 FF 0F 2A [08:29:08]process_action close_receipt done [08:29:08]requested_data is exist [08:29:08]produce_requested_data [08:29:08]requested_item fm.sn is exist - process it [08:29:08]wFMCommunicate request_size=4 [08:29:08]MH_SAM_APDU [08:29:08]CAPDU: 80 11 00 00 [08:29:08]Write to MH i2c: E2 08 00 EF 27 80 11 00 00 00 00 00 00 90 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 [08:29:08]MH_I2C_Read... [08:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:08]Read from MH i2c: E2 17 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 17 00 EF 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [08:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:29:08]wFMCommunicate OK [08:29:08]requested_item fd.num is exist - process it [08:29:08]SAM_PROTO_GetFieldsCounters [08:29:08]wFMCommunicate request_size=4 [08:29:08]MH_SAM_APDU [08:29:08]CAPDU: 80 13 00 00 [08:29:08]Write to MH i2c: E2 08 00 F0 27 80 13 00 00 00 00 00 00 93 [08:29:08]Write i2c OK [08:29:08]MH_I2C_Read... [08:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:08]Read from MH i2c: E2 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 62 00 [08:29:08]MH_I2C_Read... [08:29:08]Read from MH i2c: E2 62 00 F0 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 77 00 00 0E 04 04 00 73 00 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 4A [08:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 47 77 00 00 0E 04 04 00 73 00 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:29:09]wFMCommunicate OK [08:29:09]SAM_PROTO_GetFieldsCounters done [08:29:09]requested_item shift.num is exist - process it [08:29:09]requested_item shift.opened is exist - process it [08:29:09]req_shift_opened [08:29:09]FM_GetShiftState [08:29:09]SAM_PROTO_GetShiftState [08:29:09]wFMCommunicate request_size=4 [08:29:09]MH_SAM_APDU [08:29:09]CAPDU: 80 13 01 00 [08:29:09]Write to MH i2c: E2 08 00 F1 27 80 13 01 00 00 00 00 00 95 [08:29:09]Write i2c OK [08:29:09]MH_I2C_Read... [08:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:09]Read from MH i2c: E2 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0E 00 [08:29:09]MH_I2C_Read... [08:29:09]Read from MH i2c: E2 0E 00 F1 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 11 [08:29:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:29:09]wFMCommunicate OK [08:29:09]SAM_PROTO_GetShiftState done [08:29:09]FM_GetShiftState done [08:29:09]req_shift_opened done [08:29:09]requested_item shift.open_date is exist - process it [08:29:09]req_shift_open_date [08:29:09]req_shift_open_date done [08:29:09]produce_requested_data done [08:29:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30535,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:29:09]process_action_free close_receipt [08:29:09]json_value_free [08:29:09]json_value_free done [08:29:09]process_json_proto returns [08:29:09]Send response to host [08:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30535,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:29:09]free response buf [08:29:09]execute_script done [08:29:09]execute_script returns [08:29:09]free content buf [08:29:09]Sock 9.Close socket [08:29:09]Sock 9.Thread stoped [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:18]accept exits with 7 [08:36:18]New connection [08:36:18]New thread 3067489636 created [08:36:18]Thread 3067346276 joined [08:36:18]Waiting for new connection... [08:36:18] Sock 7.Parse request [08:36:18]Sock 7.Check first char [08:36:18]Sock 7.First char is OK [08:36:18]request: POST /json_proto HTTP/1.0 [08:36:18]Method: POST [08:36:18]URL: /json_proto [08:36:18]Method is POST - this is cgi request [08:36:18]url: /json_proto [08:36:18]query_string will be loaded in cgi processing [08:36:18]execute_cgi json_proto POST (null) [08:36:18]execute_cgi path=json_proto method=POST [08:36:18]POST find Content-Length [08:36:18]Host: 172.17.51.3:8080 [08:36:18]Content-Length: 677 [08:36:18]Content-Type: application/json [08:36:18] [08:36:18]POST finish read [08:36:18]Found Content-Length = 677 [08:36:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:18]execute_script... [08:36:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:18]POST & json_proto [08:36:18]process_json_proto [08:36:18]json parsed OK: [08:36:18]protocol is kg_v1.0 [08:36:18]action value=close_receipt [08:36:18]process_action close_receipt [08:36:18]cmd_close_receipt [08:36:18]MH_GetDate [08:36:18]Write to MH i2c: F0 00 00 F2 27 08 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: F0 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: F0 09 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: F0 09 00 F2 27 00 86 12 16 67 04 C1 95 66 E6 [08:36:18]GetLastDocTimeStamp 1729499348 [08:36:18]current date 1729499782 [08:36:18]FM_GetShiftState [08:36:18]SAM_PROTO_GetShiftState [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 13 01 00 [08:36:18]Write to MH i2c: E2 08 00 F3 27 80 13 01 00 00 00 00 00 97 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0E 00 F3 27 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 13 [08:36:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_GetShiftState done [08:36:18]FM_GetShiftState done [08:36:18]opened in 1729471058 [08:36:18]opened+sec_in_day 1729557458 [08:36:18]quantity*price = 50010 [08:36:18]sum+1 = 50012 [08:36:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 33 21.10.2024 08:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30536 ФПД: 149218341385843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30536&fm=149218341385843&tin=02508201610067®Number=0000000000186857&sum=50000 [08:36:20]StoreToDocumentArchive [08:36:20]shift 115 fd 30536 [08:36:20]save to /storage/0115/doc_00030536 [08:36:20]save last doc name /storage/0115/doc_00030536 to /storage/kkm_last_doc_name [08:36:20]save OK [08:36:20]Clear old archive folders... [08:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:20]tlvbuf is B6F5D4F0 [08:36:20]SAM_PROTO_ClearQueue [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 09 00 00 [08:36:20]Write to MH i2c: E2 08 00 00 28 80 09 00 00 00 00 00 00 9A [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 00 28 00 90 00 9C [08:36:20]RAPDU: 90 00 [08:36:20]wFMCommunicate OK [08:36:20]SAM_PROTO_ClearQueue done [08:36:20]KKMCreateOFDPacket [08:36:20]OFDProtocolAddRootSTLVToBuf [08:36:20]FM_MakeSignedData [08:36:20]FM_MakeSignedData [08:36:20]SAM_PROTO_SignData [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 0D 01 02 [08:36:20]Write to MH i2c: E2 08 00 01 28 80 0D 01 02 00 00 00 00 A2 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 01 28 00 90 00 9D [08:36:20]RAPDU: 90 00 [08:36:20]wFMCommunicate OK [08:36:20]wFMCommunicate request_size=255 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 86 12 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 77 00 00 35 04 06 00 87 [08:36:20]Write to MH i2c: E2 02 01 02 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 86 12 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 77 00 00 35 04 06 00 87 00 00 FB [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 02 28 00 90 00 9E [08:36:20]RAPDU: 90 00 [08:36:20]wFMCommunicate OK [08:36:20]wFMCommunicate request_size=10 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 0D 02 02 05 B6 9A 3B 76 73 [08:36:20]Write to MH i2c: E2 0D 00 03 28 80 0D 02 02 05 00 B6 9A 3B 76 73 00 00 23 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 03 00 03 28 00 90 00 9F [08:36:20]RAPDU: 90 00 [08:36:20]wFMCommunicate OK [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 0D 03 02 [08:36:20]Write to MH i2c: E2 08 00 04 28 80 0D 03 02 00 00 00 00 A7 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0B 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 0B 00 04 28 00 23 44 CE 6B C4 88 D1 7F 90 00 E4 [08:36:20]RAPDU: 23 44 CE 6B C4 88 D1 7F 90 00 [08:36:20]wFMCommunicate OK [08:36:20]SAM_PROTO_SignData done [08:36:20]FM_MakeSignedData done [08:36:20]CreateOFDProtocolMessage [08:36:20]wFMCommunicate request_size=4 [08:36:20]MH_SAM_APDU [08:36:20]CAPDU: 80 11 00 00 [08:36:20]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:20]Read from MH i2c: E2 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 17 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [08:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:36:20]wFMCommunicate OK [08:36:20]CreateOFDProtocolMessage done [08:36:20]OFDSenderStorePacket 30536 [08:36:20]StoreOFDPacket docnum=30536 [08:36:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 F8 07 01 72 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 86 12 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 77 00 00 35 04 06 00 87 B6 9A 3B 76 73 23 44 CE 6B C4 88 D1 7F [08:36:20]CheckFolder [08:36:20]dirname=/storage/ofd_packets [08:36:20]CheckFolder done [08:36:20]ProducePacketName [08:36:20]name=ofd_packets/00030536 [08:36:20]NVStorageSaveData ofd_packets/00030536 [08:36:20]File name is /storage/ofd_packets/00030536 [08:36:20]Write 301 bytes [08:36:20]NVStorageSaveData done [08:36:20]OFDSenderStorePacket done [08:36:20]KKMCreateOFDPacket done [08:36:20]NVStorageSaveData kkm_last_timestamp [08:36:20]File name is /storage/kkm_last_timestamp [08:36:20]Write 4 bytes [08:36:20]NVStorageSaveData done [08:36:20]ExternCall_PrintAddStr [08:36:20]wPrintStart [08:36:20]Write to MH i2c: 01 00 00 06 28 2E [08:36:20]Write i2c OK [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: 01 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: 01 07 00 [08:36:20]MH_I2C_Read... [08:36:20]Read from MH i2c: 01 07 00 06 28 00 00 00 00 00 FF 0F 43 [08:36:20]RasterBufferAndPrint [08:36:20]line Счет N : (1)342939 [08:36:20]line ИНН: 02508201610067 [08:36:20]line Контрольно-Кассовый Чек [08:36:20]line ПРОДАЖА [08:36:20]line ТРК (МРК, ГНК) : 62 [08:36:20]line Товар: 2710124500 [08:36:20]line Аи-95-К-3 [08:36:20]line 6.740 * 74.20 [08:36:20]line = 500.11 [08:36:20]line НДС 12% НСП 1% [08:36:20]line > о реализуемом товаре [08:36:20]line ОКРУГЛЕНИЕ: -0.11 [08:36:20]line ИТОГО: 500.00 [08:36:20]line Внесено: 500.00 [08:36:20]line СДАЧА: 0.00 [08:36:20]line НСП 1% : 4.43 [08:36:20]line НДС 12% : 53.11 [08:36:20]line Наличными: 500.00 [08:36:20]line Безнал.: 0.00 [08:36:20]line Место: АЗС № 78 "Партнер Нефть" [08:36:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:36:20]line СНО: Общий режим [08:36:20]line Чек 33 21.10.2024 08:36 [08:36:20]line Смена: 115 ФФД: 1.0 [08:36:20]line ЗНМ: 0300000137 [08:36:20]line РНМ: 0000000000186857 [08:36:20]line Версия ККМ: v1.0 [08:36:20]line ФМ: 0000000002094219 [08:36:20]line ФД: 30536 [08:36:20]line ФПД: 149218341385843 [08:36:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083622&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30536&fm=149218341385843&tin=02508201610067®Number=0000000000186857&sum=50000 [08:36:20]OFD Sender: Processing packet 30536 [packets to send 10, broken 9] [08:36:20]ProducePacketName [08:36:20]name=ofd_packets/00030536 [08:36:20]OFD Sender: To server: pG, [08:36:20]CommunicateWithHost lk.salyk.kg:30040 [08:36:20]ConnectInit lk.salyk.kg [08:36:20]written 0, free lines is 4095 [08:36:21]Connected sock=10 [08:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 62 F8 07 01 72 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 86 12 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 48 77 00 00 35 04 06 00 87 B6 9A 3B 76 73 23 44 CE 6B C4 88 D1 7F [08:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 13 BC 47 00 D3 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 32 30 39 34 32 31 39 10 04 04 00 48 77 00 00 F4 03 04 00 07 BD 15 67 B6 04 01 00 00 2B 90 88 C5 AF E6 DE 33 [08:36:21]CommunicateWithHost err = 0 [08:36:21]CheckOFDResponse [08:36:21]1017 (14) - 77093643461234 [08:36:21]1041 (16) - 0000000002094219 [08:36:21]1040 (4) - 30536 [08:36:21]1012 (4) - 21.10.2024 02:31 [08:36:21]1206 (1) - 0 [08:36:21]OFD Sender: Remove packet 30536 [08:36:21]ProducePacketName [08:36:21]name=ofd_packets/00030536 [08:36:21]NVStorageDeleteData [08:36:21]Write to MH i2c: 01 00 00 31 28 59 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: 01 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: 01 07 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: 01 07 00 31 28 00 00 00 00 00 E4 0C 50 [08:36:21]RasterBufferAndPrint [08:36:21]line [08:36:21]line [08:36:21]line [08:36:21]line [08:36:21]line [08:36:21]written 0, free lines is 3306 [08:36:21]MH_Cut [08:36:21]Write to MH i2c: D1 01 00 38 28 01 32 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: D1 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: D1 01 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: D1 01 00 38 28 00 31 [08:36:21]Write to MH i2c: 01 00 00 39 28 61 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]OFD Sender: No OFD packet to send [08:36:22]*** Cut start [08:36:22]*** Partial cut [08:36:22]*** CUTSNS_PIN = 1 [08:36:22]*** CUTSNS_PIN = 0 [08:36:22]*** Brake cut motor [08:36:22]Read from MH i2c: 01 [08:36:22]MH_I2C_Read... [08:36:22]*** Stop cut motor [08:36:22]*** Cut end [08:36:22]Read from MH i2c: 01 07 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: 01 07 00 39 28 00 00 00 00 00 FF 0F 76 [08:36:22]process_action close_receipt done [08:36:22]requested_data is exist [08:36:22]produce_requested_data [08:36:22]requested_item fm.sn is exist - process it [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 11 00 00 [08:36:22]Write to MH i2c: E2 08 00 3A 28 80 11 00 00 00 00 00 00 DC [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 17 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 17 00 3A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [08:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:36:22]wFMCommunicate OK [08:36:22]requested_item fd.num is exist - process it [08:36:22]SAM_PROTO_GetFieldsCounters [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 13 00 00 [08:36:22]Write to MH i2c: E2 08 00 3B 28 80 13 00 00 00 00 00 00 DF [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 62 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 62 00 3B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [08:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 48 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:22]wFMCommunicate OK [08:36:22]SAM_PROTO_GetFieldsCounters done [08:36:22]requested_item shift.num is exist - process it [08:36:22]requested_item shift.opened is exist - process it [08:36:22]req_shift_opened [08:36:22]FM_GetShiftState [08:36:22]SAM_PROTO_GetShiftState [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 13 01 00 [08:36:22]Write to MH i2c: E2 08 00 3C 28 80 13 01 00 00 00 00 00 E1 [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 3C 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5D [08:36:22]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:36:22]wFMCommunicate OK [08:36:22]SAM_PROTO_GetShiftState done [08:36:22]FM_GetShiftState done [08:36:22]req_shift_opened done [08:36:22]requested_item shift.open_date is exist - process it [08:36:22]req_shift_open_date [08:36:22]req_shift_open_date done [08:36:22]produce_requested_data done [08:36:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30536,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:36:22]process_action_free close_receipt [08:36:22]json_value_free [08:36:22]json_value_free done [08:36:22]process_json_proto returns [08:36:22]Send response to host [08:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30536,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:36:22]free response buf [08:36:22]execute_script done [08:36:22]execute_script returns [08:36:22]free content buf [08:36:22]Sock 7.Close socket [08:36:22]Sock 7.Thread stoped [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]accept exits with 9 [08:40:26]New connection [08:40:26]New thread 3067346276 created [08:40:26]Thread 3067489636 joined [08:40:26]Waiting for new connection... [08:40:26] Sock 9.Parse request [08:40:26]Sock 9.Check first char [08:40:26]Sock 9.First char is OK [08:40:26]request: POST /json_proto HTTP/1.0 [08:40:26]Method: POST [08:40:26]URL: /json_proto [08:40:26]Method is POST - this is cgi request [08:40:26]url: /json_proto [08:40:26]query_string will be loaded in cgi processing [08:40:26]execute_cgi json_proto POST (null) [08:40:26]execute_cgi path=json_proto method=POST [08:40:26]POST find Content-Length [08:40:26]Host: 172.17.51.3:8080 [08:40:26]Content-Length: 683 [08:40:26]Content-Type: application/json [08:40:26] [08:40:26]POST finish read [08:40:26]Found Content-Length = 683 [08:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:26]execute_script... [08:40:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:26]POST & json_proto [08:40:26]process_json_proto [08:40:26]json parsed OK: [08:40:26]protocol is kg_v1.0 [08:40:26]action value=close_receipt [08:40:26]process_action close_receipt [08:40:26]cmd_close_receipt [08:40:26]MH_GetDate [08:40:26]Write to MH i2c: F0 00 00 3D 28 54 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 09 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: F0 09 00 3D 28 00 7E 13 16 67 04 C1 95 66 2B [08:40:26]GetLastDocTimeStamp 1729499782 [08:40:26]current date 1729500030 [08:40:26]FM_GetShiftState [08:40:26]SAM_PROTO_GetShiftState [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 13 01 00 [08:40:26]Write to MH i2c: E2 08 00 3E 28 80 13 01 00 00 00 00 00 E3 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 3E 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5F [08:40:26]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:40:26]wFMCommunicate OK [08:40:26]SAM_PROTO_GetShiftState done [08:40:26]FM_GetShiftState done [08:40:26]opened in 1729471058 [08:40:26]opened+sec_in_day 1729557458 [08:40:26]quantity*price = 40066 [08:40:26]sum+1 = 40068 [08:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 34 21.10.2024 08:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30537 ФПД: 276490380736383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084030&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30537&fm=276490380736383&tin=02508201610067®Number=0000000000186857&sum=40000 [08:40:27]StoreToDocumentArchive [08:40:27]shift 115 fd 30537 [08:40:27]save to /storage/0115/doc_00030537 [08:40:27]save last doc name /storage/0115/doc_00030537 to /storage/kkm_last_doc_name [08:40:27]save OK [08:40:27]Clear old archive folders... [08:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:40:27]tlvbuf is 01E49060 [08:40:27]SAM_PROTO_ClearQueue [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 09 00 00 [08:40:27]Write to MH i2c: E2 08 00 4B 28 80 09 00 00 00 00 00 00 E5 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 4B 28 00 90 00 E7 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]SAM_PROTO_ClearQueue done [08:40:27]KKMCreateOFDPacket [08:40:27]OFDProtocolAddRootSTLVToBuf [08:40:27]FM_MakeSignedData [08:40:27]FM_MakeSignedData [08:40:27]SAM_PROTO_SignData [08:40:27]wFMCommunicate request_size=4 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 01 02 [08:40:27]Write to MH i2c: E2 08 00 4C 28 80 0D 01 02 00 00 00 00 ED [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:27]Read from MH i2c: E2 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 [08:40:27]MH_I2C_Read... [08:40:27]Read from MH i2c: E2 03 00 4C 28 00 90 00 E8 [08:40:27]RAPDU: 90 00 [08:40:27]wFMCommunicate OK [08:40:27]wFMCommunicate request_size=255 [08:40:27]MH_SAM_APDU [08:40:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7E 13 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 77 00 [08:40:27]Write to MH i2c: E2 02 01 4D 28 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7E 13 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 77 00 00 00 52 [08:40:27]Write i2c OK [08:40:27]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 4D 28 00 90 00 E9 [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]wFMCommunicate request_size=16 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FB 77 6E ED 77 7F [08:40:28]Write to MH i2c: E2 13 00 4E 28 80 0D 02 02 0B 00 00 35 04 06 00 FB 77 6E ED 77 7F 00 00 08 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 03 00 4E 28 00 90 00 EA [08:40:28]RAPDU: 90 00 [08:40:28]wFMCommunicate OK [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 0D 03 02 [08:40:28]Write to MH i2c: E2 08 00 4F 28 80 0D 03 02 00 00 00 00 F2 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 0B 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 0B 00 4F 28 00 C5 88 F8 CF E5 A2 F3 BF 90 00 40 [08:40:28]RAPDU: C5 88 F8 CF E5 A2 F3 BF 90 00 [08:40:28]wFMCommunicate OK [08:40:28]SAM_PROTO_SignData done [08:40:28]FM_MakeSignedData done [08:40:28]CreateOFDProtocolMessage [08:40:28]wFMCommunicate request_size=4 [08:40:28]MH_SAM_APDU [08:40:28]CAPDU: 80 11 00 00 [08:40:28]Write to MH i2c: E2 08 00 50 28 80 11 00 00 00 00 00 00 F2 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:28]Read from MH i2c: E2 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 17 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: E2 17 00 50 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [08:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:40:28]wFMCommunicate OK [08:40:28]CreateOFDProtocolMessage done [08:40:28]OFDSenderStorePacket 30537 [08:40:28]StoreOFDPacket docnum=30537 [08:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8D 64 0D 01 17 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7E 13 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 77 00 00 35 04 06 00 FB 77 6E ED 77 7F C5 88 F8 CF E5 A2 F3 BF [08:40:28]CheckFolder [08:40:28]dirname=/storage/ofd_packets [08:40:28]CheckFolder done [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00030537 [08:40:28]NVStorageSaveData ofd_packets/00030537 [08:40:28]File name is /storage/ofd_packets/00030537 [08:40:28]Write 307 bytes [08:40:28]NVStorageSaveData done [08:40:28]OFDSenderStorePacket done [08:40:28]KKMCreateOFDPacket done [08:40:28]NVStorageSaveData kkm_last_timestamp [08:40:28]File name is /storage/kkm_last_timestamp [08:40:28]Write 4 bytes [08:40:28]NVStorageSaveData done [08:40:28]ExternCall_PrintAddStr [08:40:28]wPrintStart [08:40:28]Write to MH i2c: 01 00 00 51 28 79 [08:40:28]Write i2c OK [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 [08:40:28]MH_I2C_Read... [08:40:28]Read from MH i2c: 01 07 00 51 28 00 00 00 00 00 FF 0F 8E [08:40:28]RasterBufferAndPrint [08:40:28]line Счет N : (1)342940 [08:40:28]line ИНН: 02508201610067 [08:40:28]line Контрольно-Кассовый Чек [08:40:28]line ПРОДАЖА [08:40:28]line ТРК (МРК, ГНК) : 61 [08:40:28]line Товар: 2710194210 [08:40:28]line D-ENERGY Дт-К-2 [08:40:28]line 5.190 * 77.20 [08:40:28]line = 400.67 [08:40:28]line НДС 12% НСП 1% [08:40:28]line > о реализуемом товаре [08:40:28]line ОКРУГЛЕНИЕ: -0.67 [08:40:28]line ИТОГО: 400.00 [08:40:28]line Внесено: 400.00 [08:40:28]line СДАЧА: 0.00 [08:40:28]line НСП 1% : 3.55 [08:40:28]line НДС 12% : 42.55 [08:40:28]line Наличными: 400.00 [08:40:28]line Безнал.: 0.00 [08:40:28]line Место: АЗС № 78 "Партнер Нефть" [08:40:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:40:28]line СНО: Общий режим [08:40:28]line Чек 34 21.10.2024 08:40 [08:40:28]line Смена: 115 ФФД: 1.0 [08:40:28]line ЗНМ: 0300000137 [08:40:28]line РНМ: 0000000000186857 [08:40:28]line Версия ККМ: v1.0 [08:40:28]line ФМ: 0000000002094219 [08:40:28]line ФД: 30537 [08:40:28]line ФПД: 276490380736383 [08:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084030&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30537&fm=276490380736383&tin=02508201610067®Number=0000000000186857&sum=40000 [08:40:28]OFD Sender: Processing packet 30537 [packets to send 10, broken 9] [08:40:28]ProducePacketName [08:40:28]name=ofd_packets/00030537 [08:40:28]OFD Sender: To server: pG, [08:40:28]CommunicateWithHost lk.salyk.kg:30040 [08:40:28]ConnectInit lk.salyk.kg [08:40:28]written 0, free lines is 4095 [08:40:28]Connected sock=10 [08:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 8D 64 0D 01 17 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 7E 13 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 77 00 00 35 04 06 00 FB 77 6E ED 77 7F C5 88 F8 CF E5 A2 F3 BF [08:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 80 C7 47 00 B3 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 49 77 00 00 F4 03 04 00 FF BD 15 67 B6 04 01 00 00 B4 84 FB 0E 7D FE D5 F6 [08:40:29]CommunicateWithHost err = 0 [08:40:29]CheckOFDResponse [08:40:29]1017 (14) - 77093643461234 [08:40:29]1041 (16) - 0000000002094219 [08:40:29]1040 (4) - 30537 [08:40:29]1012 (4) - 21.10.2024 02:35 [08:40:29]1206 (1) - 0 [08:40:29]OFD Sender: Remove packet 30537 [08:40:29]ProducePacketName [08:40:29]name=ofd_packets/00030537 [08:40:29]NVStorageDeleteData [08:40:29]Write to MH i2c: 01 00 00 7C 28 A4 [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 07 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: 01 07 00 7C 28 00 00 00 00 00 F3 0C AA [08:40:29]RasterBufferAndPrint [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]line [08:40:29]written 0, free lines is 3321 [08:40:29]MH_Cut [08:40:29]Write to MH i2c: D1 01 00 83 28 01 7D [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 01 00 [08:40:29]MH_I2C_Read... [08:40:29]Read from MH i2c: D1 01 00 83 28 00 7C [08:40:29]Write to MH i2c: 01 00 00 84 28 AC [08:40:29]Write i2c OK [08:40:29]MH_I2C_Read... [08:40:29]OFD Sender: No OFD packet to send [08:40:29]*** Cut start [08:40:29]*** Partial cut [08:40:29]*** CUTSNS_PIN = 1 [08:40:29]*** CUTSNS_PIN = 0 [08:40:30]*** Brake cut motor [08:40:30]Read from MH i2c: 01 [08:40:30]MH_I2C_Read... [08:40:30]*** Stop cut motor [08:40:30]*** Cut end [08:40:30]Read from MH i2c: 01 07 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: 01 07 00 84 28 00 00 00 00 00 FF 0F C1 [08:40:30]process_action close_receipt done [08:40:30]requested_data is exist [08:40:30]produce_requested_data [08:40:30]requested_item fm.sn is exist - process it [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 11 00 00 [08:40:30]Write to MH i2c: E2 08 00 85 28 80 11 00 00 00 00 00 00 27 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:30]Read from MH i2c: E2 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 17 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 17 00 85 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [08:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:40:30]wFMCommunicate OK [08:40:30]requested_item fd.num is exist - process it [08:40:30]SAM_PROTO_GetFieldsCounters [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 13 00 00 [08:40:30]Write to MH i2c: E2 08 00 86 28 80 13 00 00 00 00 00 00 2A [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:30]Read from MH i2c: E2 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 62 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 62 00 86 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 77 00 00 0E 04 04 00 73 00 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 E9 [08:40:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 49 77 00 00 0E 04 04 00 73 00 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:40:30]wFMCommunicate OK [08:40:30]SAM_PROTO_GetFieldsCounters done [08:40:30]requested_item shift.num is exist - process it [08:40:30]requested_item shift.opened is exist - process it [08:40:30]req_shift_opened [08:40:30]FM_GetShiftState [08:40:30]SAM_PROTO_GetShiftState [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 13 01 00 [08:40:30]Write to MH i2c: E2 08 00 87 28 80 13 01 00 00 00 00 00 2C [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:30]Read from MH i2c: E2 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 0E 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 0E 00 87 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A8 [08:40:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:40:30]wFMCommunicate OK [08:40:30]SAM_PROTO_GetShiftState done [08:40:30]FM_GetShiftState done [08:40:30]req_shift_opened done [08:40:30]requested_item shift.open_date is exist - process it [08:40:30]req_shift_open_date [08:40:30]req_shift_open_date done [08:40:30]produce_requested_data done [08:40:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30537,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:40:30]process_action_free close_receipt [08:40:30]json_value_free [08:40:30]json_value_free done [08:40:30]process_json_proto returns [08:40:30]Send response to host [08:40:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30537,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:40:30]free response buf [08:40:30]execute_script done [08:40:30]execute_script returns [08:40:30]free content buf [08:40:30]Sock 9.Close socket [08:40:30]Sock 9.Thread stoped [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:08]accept exits with 7 [08:46:08]New connection [08:46:08]New thread 3067489636 created [08:46:08]Thread 3067346276 joined [08:46:08]Waiting for new connection... [08:46:08] Sock 7.Parse request [08:46:08]Sock 7.Check first char [08:46:08]Sock 7.First char is OK [08:46:08]request: POST /json_proto HTTP/1.0 [08:46:08]Method: POST [08:46:08]URL: /json_proto [08:46:08]Method is POST - this is cgi request [08:46:08]url: /json_proto [08:46:08]query_string will be loaded in cgi processing [08:46:08]execute_cgi json_proto POST (null) [08:46:08]execute_cgi path=json_proto method=POST [08:46:08]POST find Content-Length [08:46:08]Host: 172.17.51.3:8080 [08:46:08]Content-Length: 678 [08:46:08]Content-Type: application/json [08:46:08] [08:46:08]POST finish read [08:46:08]Found Content-Length = 678 [08:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:08]execute_script... [08:46:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:08]POST & json_proto [08:46:08]process_json_proto [08:46:08]json parsed OK: [08:46:08]protocol is kg_v1.0 [08:46:08]action value=close_receipt [08:46:08]process_action close_receipt [08:46:08]cmd_close_receipt [08:46:08]MH_GetDate [08:46:08]Write to MH i2c: F0 00 00 88 28 9F [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 09 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 09 00 88 28 00 D4 14 16 67 04 C1 95 66 CD [08:46:08]GetLastDocTimeStamp 1729500030 [08:46:08]current date 1729500372 [08:46:08]FM_GetShiftState [08:46:08]SAM_PROTO_GetShiftState [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 13 01 00 [08:46:08]Write to MH i2c: E2 08 00 89 28 80 13 01 00 00 00 00 00 2E [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0E 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0E 00 89 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AA [08:46:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:46:08]wFMCommunicate OK [08:46:08]SAM_PROTO_GetShiftState done [08:46:08]FM_GetShiftState done [08:46:08]opened in 1729471058 [08:46:08]opened+sec_in_day 1729557458 [08:46:08]quantity*price = 70044 [08:46:08]sum+1 = 70045 [08:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 35 21.10.2024 08:46 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30538 ФПД: 51887770440567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30538&fm=51887770440567&tin=02508201610067®Number=0000000000186857&sum=70000 [08:46:09]StoreToDocumentArchive [08:46:09]shift 115 fd 30538 [08:46:09]save to /storage/0115/doc_00030538 [08:46:09]save last doc name /storage/0115/doc_00030538 to /storage/kkm_last_doc_name [08:46:09]save OK [08:46:09]Clear old archive folders... [08:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:09]tlvbuf is 01DB5F10 [08:46:09]SAM_PROTO_ClearQueue [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 09 00 00 [08:46:09]Write to MH i2c: E2 08 00 96 28 80 09 00 00 00 00 00 00 30 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 96 28 00 90 00 32 [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_ClearQueue done [08:46:09]KKMCreateOFDPacket [08:46:09]OFDProtocolAddRootSTLVToBuf [08:46:09]FM_MakeSignedData [08:46:09]FM_MakeSignedData [08:46:09]SAM_PROTO_SignData [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 01 02 [08:46:09]Write to MH i2c: E2 08 00 97 28 80 0D 01 02 00 00 00 00 38 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 97 28 00 90 00 33 [08:46:10]RAPDU: 90 00 [08:46:10]wFMCommunicate OK [08:46:10]wFMCommunicate request_size=255 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D4 14 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 77 00 00 35 04 06 00 2F [08:46:10]Write to MH i2c: E2 02 01 98 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D4 14 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 77 00 00 35 04 06 00 2F 00 00 C4 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 98 28 00 90 00 34 [08:46:10]RAPDU: 90 00 [08:46:10]wFMCommunicate OK [08:46:10]wFMCommunicate request_size=10 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 0D 02 02 05 31 10 20 13 77 [08:46:10]Write to MH i2c: E2 0D 00 99 28 80 0D 02 02 05 00 31 10 20 13 77 00 00 30 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [08:46:10]RAPDU: 90 00 [08:46:10]wFMCommunicate OK [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 0D 03 02 [08:46:10]Write to MH i2c: E2 08 00 9A 28 80 0D 03 02 00 00 00 00 3D [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0B 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 0B 00 9A 28 00 31 6A F5 9D 3B 97 75 A5 90 00 57 [08:46:10]RAPDU: 31 6A F5 9D 3B 97 75 A5 90 00 [08:46:10]wFMCommunicate OK [08:46:10]SAM_PROTO_SignData done [08:46:10]FM_MakeSignedData done [08:46:10]CreateOFDProtocolMessage [08:46:10]wFMCommunicate request_size=4 [08:46:10]MH_SAM_APDU [08:46:10]CAPDU: 80 11 00 00 [08:46:10]Write to MH i2c: E2 08 00 9B 28 80 11 00 00 00 00 00 00 3D [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:10]Read from MH i2c: E2 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 17 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: E2 17 00 9B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [08:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:46:10]wFMCommunicate OK [08:46:10]CreateOFDProtocolMessage done [08:46:10]OFDSenderStorePacket 30538 [08:46:10]StoreOFDPacket docnum=30538 [08:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 03 07 01 82 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D4 14 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 77 00 00 35 04 06 00 2F 31 10 20 13 77 31 6A F5 9D 3B 97 75 A5 [08:46:10]CheckFolder [08:46:10]dirname=/storage/ofd_packets [08:46:10]CheckFolder done [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00030538 [08:46:10]NVStorageSaveData ofd_packets/00030538 [08:46:10]File name is /storage/ofd_packets/00030538 [08:46:10]Write 301 bytes [08:46:10]NVStorageSaveData done [08:46:10]OFDSenderStorePacket done [08:46:10]KKMCreateOFDPacket done [08:46:10]NVStorageSaveData kkm_last_timestamp [08:46:10]File name is /storage/kkm_last_timestamp [08:46:10]Write 4 bytes [08:46:10]NVStorageSaveData done [08:46:10]ExternCall_PrintAddStr [08:46:10]wPrintStart [08:46:10]Write to MH i2c: 01 00 00 9C 28 C4 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 9C 28 00 00 00 00 00 FF 0F D9 [08:46:10]RasterBufferAndPrint [08:46:10]line Счет N : (1)342941 [08:46:10]line ИНН: 02508201610067 [08:46:10]line Контрольно-Кассовый Чек [08:46:10]line ПРОДАЖА [08:46:10]line ТРК (МРК, ГНК) : 43 [08:46:10]line Товар: 2710124130 [08:46:10]line Аи-92-К-2 [08:46:10]line 10.470 * 66.90 [08:46:10]line = 700.44 [08:46:10]line НДС 12% НСП 1% [08:46:10]line > о реализуемом товаре [08:46:10]line ОКРУГЛЕНИЕ: -0.44 [08:46:10]line ИТОГО: 700.00 [08:46:10]line Внесено: 700.00 [08:46:10]line СДАЧА: 0.00 [08:46:10]line НСП 1% : 6.20 [08:46:10]line НДС 12% : 74.38 [08:46:10]line Наличными: 700.00 [08:46:10]line Безнал.: 0.00 [08:46:10]line Место: АЗС № 78 "Партнер Нефть" [08:46:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:46:10]line СНО: Общий режим [08:46:10]line Чек 35 21.10.2024 08:46 [08:46:10]line Смена: 115 ФФД: 1.0 [08:46:10]line ЗНМ: 0300000137 [08:46:10]line РНМ: 0000000000186857 [08:46:10]line Версия ККМ: v1.0 [08:46:10]line ФМ: 0000000002094219 [08:46:10]line ФД: 30538 [08:46:10]line ФПД: 51887770440567 [08:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T084612&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30538&fm=51887770440567&tin=02508201610067®Number=0000000000186857&sum=70000 [08:46:10]OFD Sender: Processing packet 30538 [packets to send 10, broken 9] [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00030538 [08:46:10]OFD Sender: To server: pG, [08:46:10]CommunicateWithHost lk.salyk.kg:30040 [08:46:10]ConnectInit lk.salyk.kg [08:46:10]written 0, free lines is 4095 [08:46:10]Connected sock=9 [08:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 03 07 01 82 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 D4 14 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 77 00 00 35 04 06 00 2F 31 10 20 13 77 31 6A F5 9D 3B 97 75 A5 [08:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 11 47 00 09 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4A 77 00 00 F4 03 04 00 55 BF 15 67 B6 04 01 00 00 2E E3 38 92 77 CB B7 D5 [08:46:11]CommunicateWithHost err = 0 [08:46:11]CheckOFDResponse [08:46:11]1017 (14) - 77093643461234 [08:46:11]1041 (16) - 0000000002094219 [08:46:11]1040 (4) - 30538 [08:46:11]1012 (4) - 21.10.2024 02:41 [08:46:11]1206 (1) - 0 [08:46:11]OFD Sender: Remove packet 30538 [08:46:11]ProducePacketName [08:46:11]name=ofd_packets/00030538 [08:46:11]NVStorageDeleteData [08:46:11]Write to MH i2c: 01 00 00 C7 28 EF [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: 01 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: 01 07 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: 01 07 00 C7 28 00 00 00 00 00 E4 0C E6 [08:46:11]RasterBufferAndPrint [08:46:11]line [08:46:11]line [08:46:11]line [08:46:11]line [08:46:11]line [08:46:11]written 0, free lines is 3306 [08:46:11]MH_Cut [08:46:11]Write to MH i2c: D1 01 00 CE 28 01 C8 [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: D1 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: D1 01 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: D1 01 00 CE 28 00 C7 [08:46:11]Write to MH i2c: 01 00 00 CF 28 F7 [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]OFD Sender: No OFD packet to send [08:46:11]*** Cut start [08:46:11]*** Partial cut [08:46:11]*** CUTSNS_PIN = 1 [08:46:11]*** CUTSNS_PIN = 0 [08:46:12]*** Brake cut motor [08:46:12]Read from MH i2c: 01 [08:46:12]MH_I2C_Read... [08:46:12]*** Stop cut motor [08:46:12]*** Cut end [08:46:12]Read from MH i2c: 01 07 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: 01 07 00 CF 28 00 00 00 00 00 FF 0F 0C [08:46:12]process_action close_receipt done [08:46:12]requested_data is exist [08:46:12]produce_requested_data [08:46:12]requested_item fm.sn is exist - process it [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 11 00 00 [08:46:12]Write to MH i2c: E2 08 00 D0 28 80 11 00 00 00 00 00 00 72 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:12]Read from MH i2c: E2 17 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 17 00 D0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [08:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:46:12]wFMCommunicate OK [08:46:12]requested_item fd.num is exist - process it [08:46:12]SAM_PROTO_GetFieldsCounters [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 00 00 [08:46:12]Write to MH i2c: E2 08 00 D1 28 80 13 00 00 00 00 00 00 75 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 D1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 77 00 00 0E 04 04 00 73 00 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 38 [08:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4A 77 00 00 0E 04 04 00 73 00 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 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetFieldsCounters done [08:46:12]requested_item shift.num is exist - process it [08:46:12]requested_item shift.opened is exist - process it [08:46:12]req_shift_opened [08:46:12]FM_GetShiftState [08:46:12]SAM_PROTO_GetShiftState [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 01 00 [08:46:12]Write to MH i2c: E2 08 00 D2 28 80 13 01 00 00 00 00 00 77 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 D2 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F3 [08:46:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetShiftState done [08:46:12]FM_GetShiftState done [08:46:12]req_shift_opened done [08:46:12]requested_item shift.open_date is exist - process it [08:46:12]req_shift_open_date [08:46:12]req_shift_open_date done [08:46:12]produce_requested_data done [08:46:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30538,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:46:12]process_action_free close_receipt [08:46:12]json_value_free [08:46:12]json_value_free done [08:46:12]process_json_proto returns [08:46:12]Send response to host [08:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30538,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:46:12]free response buf [08:46:12]execute_script done [08:46:12]execute_script returns [08:46:12]free content buf [08:46:12]Sock 7.Close socket [08:46:12]Sock 7.Thread stoped [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:14]accept exits with 10 [08:51:14]New connection [08:51:14]New thread 3067346276 created [08:51:14]Thread 3067489636 joined [08:51:14]Waiting for new connection... [08:51:14] Sock 10.Parse request [08:51:14]Sock 10.Check first char [08:51:14]Sock 10.First char is OK [08:51:14]request: POST /json_proto HTTP/1.0 [08:51:14]Method: POST [08:51:14]URL: /json_proto [08:51:14]Method is POST - this is cgi request [08:51:14]url: /json_proto [08:51:14]query_string will be loaded in cgi processing [08:51:14]execute_cgi json_proto POST (null) [08:51:14]execute_cgi path=json_proto method=POST [08:51:14]POST find Content-Length [08:51:14]Host: 172.17.51.3:8080 [08:51:14]Content-Length: 751 [08:51:14]Content-Type: application/json [08:51:14] [08:51:14]POST finish read [08:51:14]Found Content-Length = 751 [08:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100491", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:14]execute_script... [08:51:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100491", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:51:14]POST & json_proto [08:51:14]process_json_proto [08:51:14]json parsed OK: [08:51:14]protocol is kg_v1.0 [08:51:14]action value=close_receipt [08:51:14]process_action close_receipt [08:51:14]cmd_close_receipt [08:51:14]MH_GetDate [08:51:14]Write to MH i2c: F0 00 00 D3 28 EA [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: F0 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: F0 09 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: F0 09 00 D3 28 00 06 16 16 67 04 C1 95 66 4C [08:51:14]GetLastDocTimeStamp 1729500372 [08:51:14]current date 1729500678 [08:51:14]FM_GetShiftState [08:51:14]SAM_PROTO_GetShiftState [08:51:14]wFMCommunicate request_size=4 [08:51:14]MH_SAM_APDU [08:51:14]CAPDU: 80 13 01 00 [08:51:14]Write to MH i2c: E2 08 00 D4 28 80 13 01 00 00 00 00 00 79 [08:51:14]Write i2c OK [08:51:14]MH_I2C_Read... [08:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:14]Read from MH i2c: E2 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 0E 00 [08:51:14]MH_I2C_Read... [08:51:14]Read from MH i2c: E2 0E 00 D4 28 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F5 [08:51:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:51:14]wFMCommunicate OK [08:51:14]SAM_PROTO_GetShiftState done [08:51:14]FM_GetShiftState done [08:51:14]opened in 1729471058 [08:51:14]opened+sec_in_day 1729557458 [08:51:14]quantity*price = 0 [08:51:14]sum+1 = 1 [08:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 36 21.10.2024 08:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100491 ФМ: 0000000002094219 ФД: 30539 ФПД: 97683444118569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30539&fm=97683444118569&tin=02508201610067®Number=0000000000186857&sum=0 [08:51:16]StoreToDocumentArchive [08:51:16]shift 115 fd 30539 [08:51:16]save to /storage/0115/doc_00030539 [08:51:16]save last doc name /storage/0115/doc_00030539 to /storage/kkm_last_doc_name [08:51:16]save OK [08:51:16]Clear old archive folders... [08:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:51:16]tlvbuf is 01E2B030 [08:51:16]SAM_PROTO_ClearQueue [08:51:16]wFMCommunicate request_size=4 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 09 00 00 [08:51:16]Write to MH i2c: E2 08 00 E1 28 80 09 00 00 00 00 00 00 7B [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 E1 28 00 90 00 7D [08:51:16]RAPDU: 90 00 [08:51:16]wFMCommunicate OK [08:51:16]SAM_PROTO_ClearQueue done [08:51:16]KKMCreateOFDPacket [08:51:16]OFDProtocolAddRootSTLVToBuf [08:51:16]FM_MakeSignedData [08:51:16]FM_MakeSignedData [08:51:16]SAM_PROTO_SignData [08:51:16]wFMCommunicate request_size=4 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 0D 01 02 [08:51:16]Write to MH i2c: E2 08 00 E2 28 80 0D 01 02 00 00 00 00 83 [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 E2 28 00 90 00 7E [08:51:16]RAPDU: 90 00 [08:51:16]wFMCommunicate OK [08:51:16]wFMCommunicate request_size=255 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 16 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 77 00 00 35 04 06 00 58 D7 B2 FC [08:51:16]Write to MH i2c: E2 02 01 E3 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 16 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 77 00 00 35 04 06 00 58 D7 B2 FC 00 00 BA [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [08:51:16]RAPDU: 90 00 [08:51:16]wFMCommunicate OK [08:51:16]wFMCommunicate request_size=7 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 0D 02 02 02 B4 29 [08:51:16]Write to MH i2c: E2 0A 00 E4 28 80 0D 02 02 02 00 B4 29 00 00 67 [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [08:51:16]RAPDU: 90 00 [08:51:16]wFMCommunicate OK [08:51:16]wFMCommunicate request_size=4 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 0D 03 02 [08:51:16]Write to MH i2c: E2 08 00 E5 28 80 0D 03 02 00 00 00 00 88 [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 0B 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 0B 00 E5 28 00 A8 43 65 40 2F A2 6C 49 90 00 9F [08:51:16]RAPDU: A8 43 65 40 2F A2 6C 49 90 00 [08:51:16]wFMCommunicate OK [08:51:16]SAM_PROTO_SignData done [08:51:16]FM_MakeSignedData done [08:51:16]CreateOFDProtocolMessage [08:51:16]wFMCommunicate request_size=4 [08:51:16]MH_SAM_APDU [08:51:16]CAPDU: 80 11 00 00 [08:51:16]Write to MH i2c: E2 08 00 E6 28 80 11 00 00 00 00 00 00 88 [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:16]Read from MH i2c: E2 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 17 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: E2 17 00 E6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [08:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:51:16]wFMCommunicate OK [08:51:16]CreateOFDProtocolMessage done [08:51:16]OFDSenderStorePacket 30539 [08:51:16]StoreOFDPacket docnum=30539 [08:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 19 51 04 01 9D DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 16 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 77 00 00 35 04 06 00 58 D7 B2 FC B4 29 A8 43 65 40 2F A2 6C 49 [08:51:16]CheckFolder [08:51:16]dirname=/storage/ofd_packets [08:51:16]CheckFolder done [08:51:16]ProducePacketName [08:51:16]name=ofd_packets/00030539 [08:51:16]NVStorageSaveData ofd_packets/00030539 [08:51:16]File name is /storage/ofd_packets/00030539 [08:51:16]Write 298 bytes [08:51:16]NVStorageSaveData done [08:51:16]OFDSenderStorePacket done [08:51:16]KKMCreateOFDPacket done [08:51:16]NVStorageSaveData kkm_last_timestamp [08:51:16]File name is /storage/kkm_last_timestamp [08:51:16]Write 4 bytes [08:51:16]NVStorageSaveData done [08:51:16]ExternCall_PrintAddStr [08:51:16]wPrintStart [08:51:16]Write to MH i2c: 01 00 00 E7 28 0F [08:51:16]Write i2c OK [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: 01 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: 01 07 00 [08:51:16]MH_I2C_Read... [08:51:16]Read from MH i2c: 01 07 00 E7 28 00 00 00 00 00 FF 0F 24 [08:51:16]RasterBufferAndPrint [08:51:16]line Счет N : (1)342942 [08:51:16]line ИНН: 02508201610067 [08:51:16]line Контрольно-Кассовый Чек [08:51:16]line ПРОДАЖА [08:51:16]line ТРК (МРК, ГНК) : 54 [08:51:16]line Товар: 2710194210 [08:51:16]line ДТ-К-2 [08:51:16]line 25.000 * 0.00 [08:51:16]line = 0.00 [08:51:16]line НДС 12% НСП 1% [08:51:16]line > о реализуемом товаре [08:51:16]line ИТОГО: 0.00 [08:51:16]line НСП 1% : 0.00 [08:51:16]line НДС 12% : 0.00 [08:51:16]line Наличными: 0.00 [08:51:16]line Безнал.: 0.00 [08:51:16]line Место: АЗС № 78 "Партнер Нефть" [08:51:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:51:16]line СНО: Общий режим [08:51:16]line Чек 36 21.10.2024 08:51 [08:51:16]line Смена: 115 ФФД: 1.0 [08:51:16]line ЗНМ: 0300000137 [08:51:16]line РНМ: 0000000000186857 [08:51:16]line Версия ККМ: v1.0 [08:51:16]line Талоны: ТК ГПНА Online [08:51:16]line 30100491 [08:51:16]line ФМ: 0000000002094219 [08:51:16]line ФД: 30539 [08:51:16]line ФПД: 97683444118569 [08:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30539&fm=97683444118569&tin=02508201610067®Number=0000000000186857&sum=0 [08:51:16]OFD Sender: Processing packet 30539 [packets to send 10, broken 9] [08:51:16]ProducePacketName [08:51:16]name=ofd_packets/00030539 [08:51:16]OFD Sender: To server: pG, [08:51:16]CommunicateWithHost lk.salyk.kg:30040 [08:51:16]ConnectInit lk.salyk.kg [08:51:16]written 0, free lines is 4095 [08:51:16]Connected sock=9 [08:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 19 51 04 01 9D DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 06 16 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4B 77 00 00 35 04 06 00 58 D7 B2 FC B4 29 A8 43 65 40 2F A2 6C 49 [08:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D 11 47 00 A5 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 32 30 39 34 32 31 39 10 04 04 00 4B 77 00 00 F4 03 04 00 87 C0 15 67 B6 04 01 00 00 B7 BC 94 91 5A 4F 88 61 [08:51:17]CommunicateWithHost err = 0 [08:51:17]CheckOFDResponse [08:51:17]1017 (14) - 77093643461234 [08:51:17]1041 (16) - 0000000002094219 [08:51:17]1040 (4) - 30539 [08:51:17]1012 (4) - 21.10.2024 02:46 [08:51:17]1206 (1) - 0 [08:51:17]OFD Sender: Remove packet 30539 [08:51:17]ProducePacketName [08:51:17]name=ofd_packets/00030539 [08:51:17]NVStorageDeleteData [08:51:17]Write to MH i2c: 01 00 00 11 29 3A [08:51:17]Write i2c OK [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: 01 [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: 01 07 00 [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: 01 07 00 11 29 00 00 00 00 00 F4 0C 41 [08:51:17]RasterBufferAndPrint [08:51:17]line [08:51:17]line [08:51:17]line [08:51:17]line [08:51:17]line [08:51:17]written 0, free lines is 3322 [08:51:17]MH_Cut [08:51:17]Write to MH i2c: D1 01 00 18 29 01 13 [08:51:17]Write i2c OK [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: D1 [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: D1 01 00 [08:51:17]MH_I2C_Read... [08:51:17]Read from MH i2c: D1 01 00 18 29 00 12 [08:51:17]Write to MH i2c: 01 00 00 19 29 42 [08:51:17]Write i2c OK [08:51:17]MH_I2C_Read... [08:51:17]OFD Sender: No OFD packet to send [08:51:18]*** Cut start [08:51:18]*** Partial cut [08:51:18]*** CUTSNS_PIN = 1 [08:51:18]*** CUTSNS_PIN = 0 [08:51:18]*** Brake cut motor [08:51:18]Read from MH i2c: 01 [08:51:18]MH_I2C_Read... [08:51:18]*** Stop cut motor [08:51:18]*** Cut end [08:51:18]Read from MH i2c: 01 07 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: 01 07 00 19 29 00 00 00 00 00 FF 0F 57 [08:51:18]process_action close_receipt done [08:51:18]requested_data is exist [08:51:18]produce_requested_data [08:51:18]requested_item fm.sn is exist - process it [08:51:18]wFMCommunicate request_size=4 [08:51:18]MH_SAM_APDU [08:51:18]CAPDU: 80 11 00 00 [08:51:18]Write to MH i2c: E2 08 00 1A 29 80 11 00 00 00 00 00 00 BD [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:18]Read from MH i2c: E2 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 17 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 17 00 1A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [08:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:51:18]wFMCommunicate OK [08:51:18]requested_item fd.num is exist - process it [08:51:18]SAM_PROTO_GetFieldsCounters [08:51:18]wFMCommunicate request_size=4 [08:51:18]MH_SAM_APDU [08:51:18]CAPDU: 80 13 00 00 [08:51:18]Write to MH i2c: E2 08 00 1B 29 80 13 00 00 00 00 00 00 C0 [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:18]Read from MH i2c: E2 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 62 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 62 00 1B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 77 00 00 0E 04 04 00 73 00 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 87 [08:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4B 77 00 00 0E 04 04 00 73 00 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 [08:51:18]wFMCommunicate OK [08:51:18]SAM_PROTO_GetFieldsCounters done [08:51:18]requested_item shift.num is exist - process it [08:51:18]requested_item shift.opened is exist - process it [08:51:18]req_shift_opened [08:51:18]FM_GetShiftState [08:51:18]SAM_PROTO_GetShiftState [08:51:18]wFMCommunicate request_size=4 [08:51:18]MH_SAM_APDU [08:51:18]CAPDU: 80 13 01 00 [08:51:18]Write to MH i2c: E2 08 00 1C 29 80 13 01 00 00 00 00 00 C2 [08:51:18]Write i2c OK [08:51:18]MH_I2C_Read... [08:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:18]Read from MH i2c: E2 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 [08:51:18]MH_I2C_Read... [08:51:18]Read from MH i2c: E2 0E 00 1C 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3E [08:51:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:51:18]wFMCommunicate OK [08:51:18]SAM_PROTO_GetShiftState done [08:51:18]FM_GetShiftState done [08:51:18]req_shift_opened done [08:51:18]requested_item shift.open_date is exist - process it [08:51:18]req_shift_open_date [08:51:18]req_shift_open_date done [08:51:18]produce_requested_data done [08:51:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30539,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:51:18]process_action_free close_receipt [08:51:18]json_value_free [08:51:18]json_value_free done [08:51:18]process_json_proto returns [08:51:18]Send response to host [08:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30539,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:51:18]free response buf [08:51:18]execute_script done [08:51:18]execute_script returns [08:51:18]free content buf [08:51:18]Sock 10.Close socket [08:51:18]Sock 10.Thread stoped [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:33]accept exits with 7 [08:56:33]New connection [08:56:33]New thread 3067489636 created [08:56:33]Thread 3067346276 joined [08:56:33]Waiting for new connection... [08:56:33] Sock 7.Parse request [08:56:33]Sock 7.Check first char [08:56:33]Sock 7.First char is OK [08:56:33]request: POST /json_proto HTTP/1.0 [08:56:33]Method: POST [08:56:33]URL: /json_proto [08:56:33]Method is POST - this is cgi request [08:56:33]url: /json_proto [08:56:33]query_string will be loaded in cgi processing [08:56:33]execute_cgi json_proto POST (null) [08:56:33]execute_cgi path=json_proto method=POST [08:56:33]POST find Content-Length [08:56:33]Host: 172.17.51.3:8080 [08:56:33]Content-Length: 792 [08:56:33]Content-Type: application/json [08:56:33] [08:56:33]POST finish read [08:56:33]Found Content-Length = 792 [08:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53541", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:33]execute_script... [08:56:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53541", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:33]POST & json_proto [08:56:33]process_json_proto [08:56:33]json parsed OK: [08:56:33]protocol is kg_v1.0 [08:56:33]action value=close_receipt [08:56:33]process_action close_receipt [08:56:33]cmd_close_receipt [08:56:33]MH_GetDate [08:56:33]Write to MH i2c: F0 00 00 1D 29 35 [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: F0 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: F0 09 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: F0 09 00 1D 29 00 45 17 16 67 04 C1 95 66 D7 [08:56:33]GetLastDocTimeStamp 1729500678 [08:56:33]current date 1729500997 [08:56:33]FM_GetShiftState [08:56:33]SAM_PROTO_GetShiftState [08:56:33]wFMCommunicate request_size=4 [08:56:33]MH_SAM_APDU [08:56:33]CAPDU: 80 13 01 00 [08:56:33]Write to MH i2c: E2 08 00 1E 29 80 13 01 00 00 00 00 00 C4 [08:56:33]Write i2c OK [08:56:33]MH_I2C_Read... [08:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:33]Read from MH i2c: E2 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 [08:56:33]MH_I2C_Read... [08:56:33]Read from MH i2c: E2 0E 00 1E 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 40 [08:56:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:56:33]wFMCommunicate OK [08:56:33]SAM_PROTO_GetShiftState done [08:56:33]FM_GetShiftState done [08:56:33]opened in 1729471058 [08:56:33]opened+sec_in_day 1729557458 [08:56:33]quantity*price = 0 [08:56:33]sum+1 = 1 [08:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 37 21.10.2024 08:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 53541 ФМ: 0000000002094219 ФД: 30540 ФПД: 32583757984821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30540&fm=32583757984821&tin=02508201610067®Number=0000000000186857&sum=0 [08:56:34]StoreToDocumentArchive [08:56:34]shift 115 fd 30540 [08:56:34]save to /storage/0115/doc_00030540 [08:56:34]save last doc name /storage/0115/doc_00030540 to /storage/kkm_last_doc_name [08:56:34]save OK [08:56:34]Clear old archive folders... [08:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:34]tlvbuf is 01DFA350 [08:56:34]SAM_PROTO_ClearQueue [08:56:34]wFMCommunicate request_size=4 [08:56:34]MH_SAM_APDU [08:56:34]CAPDU: 80 09 00 00 [08:56:34]Write to MH i2c: E2 08 00 2B 29 80 09 00 00 00 00 00 00 C6 [08:56:34]Write i2c OK [08:56:34]MH_I2C_Read... [08:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:34]Read from MH i2c: E2 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 03 00 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 03 00 2B 29 00 90 00 C8 [08:56:34]RAPDU: 90 00 [08:56:34]wFMCommunicate OK [08:56:34]SAM_PROTO_ClearQueue done [08:56:34]KKMCreateOFDPacket [08:56:34]OFDProtocolAddRootSTLVToBuf [08:56:34]FM_MakeSignedData [08:56:34]FM_MakeSignedData [08:56:34]SAM_PROTO_SignData [08:56:34]wFMCommunicate request_size=4 [08:56:34]MH_SAM_APDU [08:56:34]CAPDU: 80 0D 01 02 [08:56:34]Write to MH i2c: E2 08 00 2C 29 80 0D 01 02 00 00 00 00 CE [08:56:34]Write i2c OK [08:56:34]MH_I2C_Read... [08:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:34]Read from MH i2c: E2 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 03 00 [08:56:34]MH_I2C_Read... [08:56:34]Read from MH i2c: E2 03 00 2C 29 00 90 00 C9 [08:56:34]RAPDU: 90 00 [08:56:34]wFMCommunicate OK [08:56:34]wFMCommunicate request_size=255 [08:56:34]MH_SAM_APDU [08:56:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 45 17 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 77 00 00 35 04 06 00 1D [08:56:34]Write to MH i2c: E2 02 01 2D 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 45 17 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 77 00 00 35 04 06 00 1D 00 00 9E [08:56:34]Write i2c OK [08:56:34]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 2D 29 00 90 00 CA [08:56:35]RAPDU: 90 00 [08:56:35]wFMCommunicate OK [08:56:35]wFMCommunicate request_size=10 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 0D 02 02 05 A2 7F 51 F4 35 [08:56:35]Write to MH i2c: E2 0D 00 2E 29 80 0D 02 02 05 00 A2 7F 51 F4 35 00 00 76 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [08:56:35]RAPDU: 90 00 [08:56:35]wFMCommunicate OK [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 0D 03 02 [08:56:35]Write to MH i2c: E2 08 00 2F 29 80 0D 03 02 00 00 00 00 D3 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0B 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 0B 00 2F 29 00 74 1F 6D 19 8A FB C6 06 90 00 3E [08:56:35]RAPDU: 74 1F 6D 19 8A FB C6 06 90 00 [08:56:35]wFMCommunicate OK [08:56:35]SAM_PROTO_SignData done [08:56:35]FM_MakeSignedData done [08:56:35]CreateOFDProtocolMessage [08:56:35]wFMCommunicate request_size=4 [08:56:35]MH_SAM_APDU [08:56:35]CAPDU: 80 11 00 00 [08:56:35]Write to MH i2c: E2 08 00 30 29 80 11 00 00 00 00 00 00 D3 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:35]Read from MH i2c: E2 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 17 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: E2 17 00 30 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [08:56:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:56:35]wFMCommunicate OK [08:56:35]CreateOFDProtocolMessage done [08:56:35]OFDSenderStorePacket 30540 [08:56:35]StoreOFDPacket docnum=30540 [08:56:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 32 07 01 E0 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 45 17 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 77 00 00 35 04 06 00 1D A2 7F 51 F4 35 74 1F 6D 19 8A FB C6 06 [08:56:35]CheckFolder [08:56:35]dirname=/storage/ofd_packets [08:56:35]CheckFolder done [08:56:35]ProducePacketName [08:56:35]name=ofd_packets/00030540 [08:56:35]NVStorageSaveData ofd_packets/00030540 [08:56:35]File name is /storage/ofd_packets/00030540 [08:56:35]Write 301 bytes [08:56:35]NVStorageSaveData done [08:56:35]OFDSenderStorePacket done [08:56:35]KKMCreateOFDPacket done [08:56:35]NVStorageSaveData kkm_last_timestamp [08:56:35]File name is /storage/kkm_last_timestamp [08:56:35]Write 4 bytes [08:56:35]NVStorageSaveData done [08:56:35]ExternCall_PrintAddStr [08:56:35]wPrintStart [08:56:35]Write to MH i2c: 01 00 00 31 29 5A [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 31 29 00 00 00 00 00 FF 0F 6F [08:56:35]RasterBufferAndPrint [08:56:35]line Счет N : (1)342943 [08:56:35]line ИНН: 02508201610067 [08:56:35]line Контрольно-Кассовый Чек [08:56:35]line ПРОДАЖА [08:56:35]line ТРК (МРК, ГНК) : 52 [08:56:35]line Товар: 2710124500 [08:56:35]line Аи-95-К-3 [08:56:35]line 20.000 * 0.00 [08:56:35]line = 0.00 [08:56:35]line НДС 12% НСП 1% [08:56:35]line > о реализуемом товаре [08:56:35]line ИТОГО: 0.00 [08:56:35]line НСП 1% : 0.00 [08:56:35]line НДС 12% : 0.00 [08:56:35]line Наличными: 0.00 [08:56:35]line Безнал.: 0.00 [08:56:35]line Место: АЗС № 78 "Партнер Нефть" [08:56:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [08:56:35]line СНО: Общий режим [08:56:35]line Чек 37 21.10.2024 08:56 [08:56:35]line Смена: 115 ФФД: 1.0 [08:56:35]line ЗНМ: 0300000137 [08:56:35]line РНМ: 0000000000186857 [08:56:35]line Версия ККМ: v1.0 [08:56:35]line Талоны: Топливная Карта [08:56:35]line 53541 [08:56:35]line ФМ: 0000000002094219 [08:56:35]line ФД: 30540 [08:56:35]line ФПД: 32583757984821 [08:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30540&fm=32583757984821&tin=02508201610067®Number=0000000000186857&sum=0 [08:56:35]OFD Sender: Processing packet 30540 [packets to send 10, broken 9] [08:56:35]ProducePacketName [08:56:35]name=ofd_packets/00030540 [08:56:35]OFD Sender: To server: pG, [08:56:35]CommunicateWithHost lk.salyk.kg:30040 [08:56:35]ConnectInit lk.salyk.kg [08:56:35]written 0, free lines is 4095 [08:56:35]Connected sock=9 [08:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 32 07 01 E0 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 45 17 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4C 77 00 00 35 04 06 00 1D A2 7F 51 F4 35 74 1F 6D 19 8A FB C6 06 [08:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 96 A0 47 00 4C 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 32 30 39 34 32 31 39 10 04 04 00 4C 77 00 00 F4 03 04 00 C6 C1 15 67 B6 04 01 00 00 9A 58 B9 68 93 A8 13 E4 [08:56:35]CommunicateWithHost err = 0 [08:56:35]CheckOFDResponse [08:56:35]1017 (14) - 77093643461234 [08:56:35]1041 (16) - 0000000002094219 [08:56:35]1040 (4) - 30540 [08:56:35]1012 (4) - 21.10.2024 02:51 [08:56:35]1206 (1) - 0 [08:56:35]OFD Sender: Remove packet 30540 [08:56:35]ProducePacketName [08:56:35]name=ofd_packets/00030540 [08:56:35]NVStorageDeleteData [08:56:35]Write to MH i2c: 01 00 00 5B 29 84 [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: 01 07 00 5B 29 00 00 00 00 00 05 0D 9D [08:56:35]RasterBufferAndPrint [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]line [08:56:35]written 0, free lines is 3340 [08:56:35]MH_Cut [08:56:35]Write to MH i2c: D1 01 00 62 29 01 5D [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: D1 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: D1 01 00 [08:56:35]MH_I2C_Read... [08:56:35]Read from MH i2c: D1 01 00 62 29 00 5C [08:56:35]Write to MH i2c: 01 00 00 63 29 8C [08:56:35]Write i2c OK [08:56:35]MH_I2C_Read... [08:56:36]OFD Sender: No OFD packet to send [08:56:36]*** Cut start [08:56:36]*** Partial cut [08:56:36]*** CUTSNS_PIN = 1 [08:56:36]*** CUTSNS_PIN = 0 [08:56:36]*** Brake cut motor [08:56:37]Read from MH i2c: 01 [08:56:37]MH_I2C_Read... [08:56:37]*** Stop cut motor [08:56:37]*** Cut end [08:56:37]Read from MH i2c: 01 07 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: 01 07 00 63 29 00 00 00 00 00 FF 0F A1 [08:56:37]process_action close_receipt done [08:56:37]requested_data is exist [08:56:37]produce_requested_data [08:56:37]requested_item fm.sn is exist - process it [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 11 00 00 [08:56:37]Write to MH i2c: E2 08 00 64 29 80 11 00 00 00 00 00 00 07 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 17 00 64 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 55 [08:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [08:56:37]wFMCommunicate OK [08:56:37]requested_item fd.num is exist - process it [08:56:37]SAM_PROTO_GetFieldsCounters [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 00 00 [08:56:37]Write to MH i2c: E2 08 00 65 29 80 13 00 00 00 00 00 00 0A [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 62 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 62 00 65 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 77 00 00 0E 04 04 00 73 00 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 D5 [08:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4C 77 00 00 0E 04 04 00 73 00 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 [08:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetFieldsCounters done [08:56:37]requested_item shift.num is exist - process it [08:56:37]requested_item shift.opened is exist - process it [08:56:37]req_shift_opened [08:56:37]FM_GetShiftState [08:56:37]SAM_PROTO_GetShiftState [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 01 00 [08:56:37]Write to MH i2c: E2 08 00 66 29 80 13 01 00 00 00 00 00 0C [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 66 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 88 [08:56:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [08:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetShiftState done [08:56:37]FM_GetShiftState done [08:56:37]req_shift_opened done [08:56:37]requested_item shift.open_date is exist - process it [08:56:37]req_shift_open_date [08:56:37]req_shift_open_date done [08:56:37]produce_requested_data done [08:56:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30540,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [08:56:37]process_action_free close_receipt [08:56:37]json_value_free [08:56:37]json_value_free done [08:56:37]process_json_proto returns [08:56:37]Send response to host [08:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30540,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [08:56:37]free response buf [08:56:37]execute_script done [08:56:37]execute_script returns [08:56:37]free content buf [08:56:37]Sock 7.Close socket [08:56:37]Sock 7.Thread stoped [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:03]accept exits with 10 [09:02:03]New connection [09:02:03]New thread 3067346276 created [09:02:03]Thread 3067489636 joined [09:02:03]Waiting for new connection... [09:02:03] Sock 10.Parse request [09:02:03]Sock 10.Check first char [09:02:03]Sock 10.First char is OK [09:02:03]request: POST /json_proto HTTP/1.0 [09:02:03]Method: POST [09:02:03]URL: /json_proto [09:02:03]Method is POST - this is cgi request [09:02:03]url: /json_proto [09:02:03]query_string will be loaded in cgi processing [09:02:03]execute_cgi json_proto POST (null) [09:02:03]execute_cgi path=json_proto method=POST [09:02:03]POST find Content-Length [09:02:03]Host: 172.17.51.3:8080 [09:02:03]Content-Length: 754 [09:02:03]Content-Type: application/json [09:02:03] [09:02:03]POST finish read [09:02:03]Found Content-Length = 754 [09:02:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:03]execute_script... [09:02:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:03]POST & json_proto [09:02:03]process_json_proto [09:02:03]json parsed OK: [09:02:03]protocol is kg_v1.0 [09:02:03]action value=close_receipt [09:02:03]process_action close_receipt [09:02:03]cmd_close_receipt [09:02:03]MH_GetDate [09:02:03]Write to MH i2c: F0 00 00 67 29 7F [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: F0 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: F0 09 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: F0 09 00 67 29 00 8F 18 16 67 04 C1 95 66 6C [09:02:03]GetLastDocTimeStamp 1729500997 [09:02:03]current date 1729501327 [09:02:03]FM_GetShiftState [09:02:03]SAM_PROTO_GetShiftState [09:02:03]wFMCommunicate request_size=4 [09:02:03]MH_SAM_APDU [09:02:03]CAPDU: 80 13 01 00 [09:02:03]Write to MH i2c: E2 08 00 68 29 80 13 01 00 00 00 00 00 0E [09:02:03]Write i2c OK [09:02:03]MH_I2C_Read... [09:02:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:03]Read from MH i2c: E2 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 0E 00 [09:02:03]MH_I2C_Read... [09:02:03]Read from MH i2c: E2 0E 00 68 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8A [09:02:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:02:03]wFMCommunicate OK [09:02:03]SAM_PROTO_GetShiftState done [09:02:03]FM_GetShiftState done [09:02:03]opened in 1729471058 [09:02:03]opened+sec_in_day 1729557458 [09:02:03]quantity*price = 0 [09:02:03]sum+1 = 1 [09:02:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 38 21.10.2024 09:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30541 ФПД: 46238413728318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30541&fm=46238413728318&tin=02508201610067®Number=0000000000186857&sum=0 [09:02:04]StoreToDocumentArchive [09:02:04]shift 115 fd 30541 [09:02:04]save to /storage/0115/doc_00030541 [09:02:04]save last doc name /storage/0115/doc_00030541 to /storage/kkm_last_doc_name [09:02:04]save OK [09:02:04]Clear old archive folders... [09:02:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:02:04]tlvbuf is B6FDB660 [09:02:04]SAM_PROTO_ClearQueue [09:02:04]wFMCommunicate request_size=4 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 09 00 00 [09:02:04]Write to MH i2c: E2 08 00 75 29 80 09 00 00 00 00 00 00 10 [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 75 29 00 90 00 12 [09:02:04]RAPDU: 90 00 [09:02:04]wFMCommunicate OK [09:02:04]SAM_PROTO_ClearQueue done [09:02:04]KKMCreateOFDPacket [09:02:04]OFDProtocolAddRootSTLVToBuf [09:02:04]FM_MakeSignedData [09:02:04]FM_MakeSignedData [09:02:04]SAM_PROTO_SignData [09:02:04]wFMCommunicate request_size=4 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 0D 01 02 [09:02:04]Write to MH i2c: E2 08 00 76 29 80 0D 01 02 00 00 00 00 18 [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 76 29 00 90 00 13 [09:02:04]RAPDU: 90 00 [09:02:04]wFMCommunicate OK [09:02:04]wFMCommunicate request_size=255 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8F 18 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 77 00 00 35 04 06 00 2A [09:02:04]Write to MH i2c: E2 02 01 77 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8F 18 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 77 00 00 35 04 06 00 2A 00 00 AB [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 77 29 00 90 00 14 [09:02:04]RAPDU: 90 00 [09:02:04]wFMCommunicate OK [09:02:04]wFMCommunicate request_size=10 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 0D 02 02 05 0D B8 39 AA 3E [09:02:04]Write to MH i2c: E2 0D 00 78 29 80 0D 02 02 05 00 0D B8 39 AA 3E 00 00 0B [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 03 00 78 29 00 90 00 15 [09:02:04]RAPDU: 90 00 [09:02:04]wFMCommunicate OK [09:02:04]wFMCommunicate request_size=4 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 0D 03 02 [09:02:04]Write to MH i2c: E2 08 00 79 29 80 0D 03 02 00 00 00 00 1D [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 0B 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 0B 00 79 29 00 5E 0A AF 66 FD 28 98 0A 90 00 62 [09:02:04]RAPDU: 5E 0A AF 66 FD 28 98 0A 90 00 [09:02:04]wFMCommunicate OK [09:02:04]SAM_PROTO_SignData done [09:02:04]FM_MakeSignedData done [09:02:04]CreateOFDProtocolMessage [09:02:04]wFMCommunicate request_size=4 [09:02:04]MH_SAM_APDU [09:02:04]CAPDU: 80 11 00 00 [09:02:04]Write to MH i2c: E2 08 00 7A 29 80 11 00 00 00 00 00 00 1D [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:04]Read from MH i2c: E2 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 17 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: E2 17 00 7A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [09:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:02:04]wFMCommunicate OK [09:02:04]CreateOFDProtocolMessage done [09:02:04]OFDSenderStorePacket 30541 [09:02:04]StoreOFDPacket docnum=30541 [09:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CF 66 07 01 08 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8F 18 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 77 00 00 35 04 06 00 2A 0D B8 39 AA 3E 5E 0A AF 66 FD 28 98 0A [09:02:04]CheckFolder [09:02:04]dirname=/storage/ofd_packets [09:02:04]CheckFolder done [09:02:04]ProducePacketName [09:02:04]name=ofd_packets/00030541 [09:02:04]NVStorageSaveData ofd_packets/00030541 [09:02:04]File name is /storage/ofd_packets/00030541 [09:02:04]Write 301 bytes [09:02:04]NVStorageSaveData done [09:02:04]OFDSenderStorePacket done [09:02:04]KKMCreateOFDPacket done [09:02:04]NVStorageSaveData kkm_last_timestamp [09:02:04]File name is /storage/kkm_last_timestamp [09:02:04]Write 4 bytes [09:02:04]NVStorageSaveData done [09:02:04]ExternCall_PrintAddStr [09:02:04]wPrintStart [09:02:04]Write to MH i2c: 01 00 00 7B 29 A4 [09:02:04]Write i2c OK [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 07 00 [09:02:04]MH_I2C_Read... [09:02:04]Read from MH i2c: 01 07 00 7B 29 00 00 00 00 00 FF 0F B9 [09:02:04]RasterBufferAndPrint [09:02:04]line Счет N : (1)342944 [09:02:04]line ИНН: 02508201610067 [09:02:04]line Контрольно-Кассовый Чек [09:02:04]line ПРОДАЖА [09:02:04]line ТРК (МРК, ГНК) : 53 [09:02:04]line Товар: 2710124130 [09:02:04]line Аи-92-К-2 [09:02:04]line 40.000 * 0.00 [09:02:04]line = 0.00 [09:02:04]line НДС 12% НСП 1% [09:02:04]line > о реализуемом товаре [09:02:04]line ИТОГО: 0.00 [09:02:04]line НСП 1% : 0.00 [09:02:04]line НДС 12% : 0.00 [09:02:04]line Наличными: 0.00 [09:02:04]line Безнал.: 0.00 [09:02:04]line Место: АЗС № 78 "Партнер Нефть" [09:02:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:02:04]line СНО: Общий режим [09:02:04]line Чек 38 21.10.2024 09:02 [09:02:04]line Смена: 115 ФФД: 1.0 [09:02:04]line ЗНМ: 0300000137 [09:02:04]line РНМ: 0000000000186857 [09:02:04]line Версия ККМ: v1.0 [09:02:04]line Талоны: ТК ГПНА Online [09:02:04]line 30132031 [09:02:04]line ФМ: 0000000002094219 [09:02:04]line ФД: 30541 [09:02:04]line ФПД: 46238413728318 [09:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090207&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30541&fm=46238413728318&tin=02508201610067®Number=0000000000186857&sum=0 [09:02:05]OFD Sender: Processing packet 30541 [packets to send 10, broken 9] [09:02:05]ProducePacketName [09:02:05]name=ofd_packets/00030541 [09:02:05]OFD Sender: To server: pG, [09:02:05]CommunicateWithHost lk.salyk.kg:30040 [09:02:05]ConnectInit lk.salyk.kg [09:02:05]written 0, free lines is 4095 [09:02:05]Connected sock=9 [09:02:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CF 66 07 01 08 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 8F 18 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 77 00 00 35 04 06 00 2A 0D B8 39 AA 3E 5E 0A AF 66 FD 28 98 0A [09:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E8 42 47 00 49 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4D 77 00 00 F4 03 04 00 10 C3 15 67 B6 04 01 00 00 99 25 53 2E 4A DF AB FD [09:02:05]CommunicateWithHost err = 0 [09:02:05]CheckOFDResponse [09:02:05]1017 (14) - 77093643461234 [09:02:05]1041 (16) - 0000000002094219 [09:02:05]1040 (4) - 30541 [09:02:05]1012 (4) - 21.10.2024 02:57 [09:02:05]1206 (1) - 0 [09:02:05]OFD Sender: Remove packet 30541 [09:02:05]ProducePacketName [09:02:05]name=ofd_packets/00030541 [09:02:05]NVStorageDeleteData [09:02:05]Write to MH i2c: 01 00 00 A5 29 CE [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: 01 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: 01 07 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: 01 07 00 A5 29 00 00 00 00 00 02 0D E4 [09:02:05]RasterBufferAndPrint [09:02:05]line [09:02:05]line [09:02:05]line [09:02:05]line [09:02:05]line [09:02:05]written 0, free lines is 3336 [09:02:05]MH_Cut [09:02:05]Write to MH i2c: D1 01 00 AC 29 01 A7 [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: D1 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: D1 01 00 [09:02:05]MH_I2C_Read... [09:02:05]Read from MH i2c: D1 01 00 AC 29 00 A6 [09:02:05]Write to MH i2c: 01 00 00 AD 29 D6 [09:02:05]Write i2c OK [09:02:05]MH_I2C_Read... [09:02:06]OFD Sender: No OFD packet to send [09:02:06]*** Cut start [09:02:06]*** Partial cut [09:02:06]*** CUTSNS_PIN = 1 [09:02:06]*** CUTSNS_PIN = 0 [09:02:06]*** Brake cut motor [09:02:06]Read from MH i2c: 01 [09:02:06]MH_I2C_Read... [09:02:06]*** Stop cut motor [09:02:06]*** Cut end [09:02:06]Read from MH i2c: 01 07 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: 01 07 00 AD 29 00 00 00 00 00 FF 0F EB [09:02:06]process_action close_receipt done [09:02:06]requested_data is exist [09:02:06]produce_requested_data [09:02:06]requested_item fm.sn is exist - process it [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 11 00 00 [09:02:06]Write to MH i2c: E2 08 00 AE 29 80 11 00 00 00 00 00 00 51 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 17 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 17 00 AE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [09:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:02:06]wFMCommunicate OK [09:02:06]requested_item fd.num is exist - process it [09:02:06]SAM_PROTO_GetFieldsCounters [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 13 00 00 [09:02:06]Write to MH i2c: E2 08 00 AF 29 80 13 00 00 00 00 00 00 54 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:07]Read from MH i2c: E2 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 62 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 62 00 AF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 77 00 00 0E 04 04 00 73 00 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 23 [09:02:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:07]wFMCommunicate OK [09:02:07]SAM_PROTO_GetFieldsCounters done [09:02:07]requested_item shift.num is exist - process it [09:02:07]requested_item shift.opened is exist - process it [09:02:07]req_shift_opened [09:02:07]FM_GetShiftState [09:02:07]SAM_PROTO_GetShiftState [09:02:07]wFMCommunicate request_size=4 [09:02:07]MH_SAM_APDU [09:02:07]CAPDU: 80 13 01 00 [09:02:07]Write to MH i2c: E2 08 00 B0 29 80 13 01 00 00 00 00 00 56 [09:02:07]Write i2c OK [09:02:07]MH_I2C_Read... [09:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:07]Read from MH i2c: E2 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 0E 00 [09:02:07]MH_I2C_Read... [09:02:07]Read from MH i2c: E2 0E 00 B0 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D2 [09:02:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:02:07]wFMCommunicate OK [09:02:07]SAM_PROTO_GetShiftState done [09:02:07]FM_GetShiftState done [09:02:07]req_shift_opened done [09:02:07]requested_item shift.open_date is exist - process it [09:02:07]req_shift_open_date [09:02:07]req_shift_open_date done [09:02:07]produce_requested_data done [09:02:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30541,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:02:07]process_action_free close_receipt [09:02:07]json_value_free [09:02:07]json_value_free done [09:02:07]process_json_proto returns [09:02:07]Send response to host [09:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30541,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:02:07]free response buf [09:02:07]execute_script done [09:02:07]execute_script returns [09:02:07]free content buf [09:02:07]Sock 10.Close socket [09:02:07]Sock 10.Thread stoped [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:32]accept exits with 7 [09:08:32]New connection [09:08:32]New thread 3067489636 created [09:08:32]Thread 3067346276 joined [09:08:32]Waiting for new connection... [09:08:32] Sock 7.Parse request [09:08:32]Sock 7.Check first char [09:08:32]Sock 7.First char is OK [09:08:32]request: POST /json_proto HTTP/1.0 [09:08:32]Method: POST [09:08:32]URL: /json_proto [09:08:32]Method is POST - this is cgi request [09:08:32]url: /json_proto [09:08:32]query_string will be loaded in cgi processing [09:08:32]execute_cgi json_proto POST (null) [09:08:32]execute_cgi path=json_proto method=POST [09:08:32]POST find Content-Length [09:08:32]Host: 172.17.51.3:8080 [09:08:32]Content-Length: 682 [09:08:32]Content-Type: application/json [09:08:32] [09:08:32]POST finish read [09:08:32]Found Content-Length = 682 [09:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:32]execute_script... [09:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:32]POST & json_proto [09:08:32]process_json_proto [09:08:32]json parsed OK: [09:08:32]protocol is kg_v1.0 [09:08:32]action value=close_receipt [09:08:32]process_action close_receipt [09:08:32]cmd_close_receipt [09:08:32]MH_GetDate [09:08:32]Write to MH i2c: F0 00 00 B1 29 C9 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: F0 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: F0 09 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: F0 09 00 B1 29 00 14 1A 16 67 04 C1 95 66 3D [09:08:32]GetLastDocTimeStamp 1729501327 [09:08:32]current date 1729501716 [09:08:32]FM_GetShiftState [09:08:32]SAM_PROTO_GetShiftState [09:08:32]wFMCommunicate request_size=4 [09:08:32]MH_SAM_APDU [09:08:32]CAPDU: 80 13 01 00 [09:08:32]Write to MH i2c: E2 08 00 B2 29 80 13 01 00 00 00 00 00 58 [09:08:32]Write i2c OK [09:08:32]MH_I2C_Read... [09:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:32]Read from MH i2c: E2 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 [09:08:32]MH_I2C_Read... [09:08:32]Read from MH i2c: E2 0E 00 B2 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D4 [09:08:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:08:32]wFMCommunicate OK [09:08:32]SAM_PROTO_GetShiftState done [09:08:32]FM_GetShiftState done [09:08:32]opened in 1729471058 [09:08:32]opened+sec_in_day 1729557458 [09:08:32]quantity*price = 100021 [09:08:32]sum+1 = 100023 [09:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 39 21.10.2024 09:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30542 ФПД: 203719360556075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090836&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30542&fm=203719360556075&tin=02508201610067®Number=0000000000186857&sum=100000 [09:08:33]StoreToDocumentArchive [09:08:33]shift 115 fd 30542 [09:08:33]save to /storage/0115/doc_00030542 [09:08:33]save last doc name /storage/0115/doc_00030542 to /storage/kkm_last_doc_name [09:08:33]save OK [09:08:33]Clear old archive folders... [09:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:33]tlvbuf is 01DE3640 [09:08:33]SAM_PROTO_ClearQueue [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 09 00 00 [09:08:33]Write to MH i2c: E2 08 00 BF 29 80 09 00 00 00 00 00 00 5A [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:33]Read from MH i2c: E2 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 03 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 03 00 BF 29 00 90 00 5C [09:08:33]RAPDU: 90 00 [09:08:33]wFMCommunicate OK [09:08:33]SAM_PROTO_ClearQueue done [09:08:33]KKMCreateOFDPacket [09:08:33]OFDProtocolAddRootSTLVToBuf [09:08:33]FM_MakeSignedData [09:08:33]FM_MakeSignedData [09:08:33]SAM_PROTO_SignData [09:08:33]wFMCommunicate request_size=4 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 0D 01 02 [09:08:33]Write to MH i2c: E2 08 00 C0 29 80 0D 01 02 00 00 00 00 62 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:33]Read from MH i2c: E2 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 03 00 [09:08:33]MH_I2C_Read... [09:08:33]Read from MH i2c: E2 03 00 C0 29 00 90 00 5D [09:08:33]RAPDU: 90 00 [09:08:33]wFMCommunicate OK [09:08:33]wFMCommunicate request_size=255 [09:08:33]MH_SAM_APDU [09:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 14 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 77 00 00 35 04 06 00 B9 [09:08:33]Write to MH i2c: E2 02 01 C1 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 14 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 77 00 00 35 04 06 00 B9 00 00 D4 [09:08:33]Write i2c OK [09:08:33]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 03 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 03 00 C1 29 00 90 00 5E [09:08:34]RAPDU: 90 00 [09:08:34]wFMCommunicate OK [09:08:34]wFMCommunicate request_size=10 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 0D 02 02 05 48 1C 1E AC 2B [09:08:34]Write to MH i2c: E2 0D 00 C2 29 80 0D 02 02 05 00 48 1C 1E AC 2B 00 00 C8 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 03 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 03 00 C2 29 00 90 00 5F [09:08:34]RAPDU: 90 00 [09:08:34]wFMCommunicate OK [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 0D 03 02 [09:08:34]Write to MH i2c: E2 08 00 C3 29 80 0D 03 02 00 00 00 00 67 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0B 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0B 00 C3 29 00 23 32 DB 77 86 74 20 9B 90 00 C4 [09:08:34]RAPDU: 23 32 DB 77 86 74 20 9B 90 00 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_SignData done [09:08:34]FM_MakeSignedData done [09:08:34]CreateOFDProtocolMessage [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 11 00 00 [09:08:34]Write to MH i2c: E2 08 00 C4 29 80 11 00 00 00 00 00 00 67 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 17 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 17 00 C4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [09:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:08:34]wFMCommunicate OK [09:08:34]CreateOFDProtocolMessage done [09:08:34]OFDSenderStorePacket 30542 [09:08:34]StoreOFDPacket docnum=30542 [09:08:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FF CC 07 01 5B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 14 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 77 00 00 35 04 06 00 B9 48 1C 1E AC 2B 23 32 DB 77 86 74 20 9B [09:08:34]CheckFolder [09:08:34]dirname=/storage/ofd_packets [09:08:34]CheckFolder done [09:08:34]ProducePacketName [09:08:34]name=ofd_packets/00030542 [09:08:34]NVStorageSaveData ofd_packets/00030542 [09:08:34]File name is /storage/ofd_packets/00030542 [09:08:34]Write 301 bytes [09:08:34]NVStorageSaveData done [09:08:34]OFDSenderStorePacket done [09:08:34]KKMCreateOFDPacket done [09:08:34]NVStorageSaveData kkm_last_timestamp [09:08:34]File name is /storage/kkm_last_timestamp [09:08:34]Write 4 bytes [09:08:34]NVStorageSaveData done [09:08:34]ExternCall_PrintAddStr [09:08:34]wPrintStart [09:08:34]Write to MH i2c: 01 00 00 C5 29 EE [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: 01 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: 01 07 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: 01 07 00 C5 29 00 00 00 00 00 FF 0F 03 [09:08:34]RasterBufferAndPrint [09:08:34]line Счет N : (1)342945 [09:08:34]line ИНН: 02508201610067 [09:08:34]line Контрольно-Кассовый Чек [09:08:34]line ПРОДАЖА [09:08:34]line ТРК (МРК, ГНК) : 52 [09:08:34]line Товар: 2710124500 [09:08:34]line Аи-95-К-3 [09:08:34]line 13.480 * 74.20 [09:08:34]line = 1000.22 [09:08:34]line НДС 12% НСП 1% [09:08:34]line > о реализуемом товаре [09:08:34]line ОКРУГЛЕНИЕ: -0.22 [09:08:34]line ИТОГО: 1000.00 [09:08:34]line Внесено: 1000.00 [09:08:34]line СДАЧА: 0.00 [09:08:34]line НСП 1% : 8.85 [09:08:34]line НДС 12% : 106.22 [09:08:34]line Наличными: 1000.00 [09:08:34]line Безнал.: 0.00 [09:08:34]line Место: АЗС № 78 "Партнер Нефть" [09:08:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:08:34]line СНО: Общий режим [09:08:34]line Чек 39 21.10.2024 09:08 [09:08:34]line Смена: 115 ФФД: 1.0 [09:08:34]line ЗНМ: 0300000137 [09:08:34]line РНМ: 0000000000186857 [09:08:34]line Версия ККМ: v1.0 [09:08:34]line ФМ: 0000000002094219 [09:08:34]line ФД: 30542 [09:08:34]line ФПД: 203719360556075 [09:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090836&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30542&fm=203719360556075&tin=02508201610067®Number=0000000000186857&sum=100000 [09:08:34]OFD Sender: Processing packet 30542 [packets to send 10, broken 9] [09:08:34]ProducePacketName [09:08:34]name=ofd_packets/00030542 [09:08:34]OFD Sender: To server: pG, [09:08:34]CommunicateWithHost lk.salyk.kg:30040 [09:08:34]ConnectInit lk.salyk.kg [09:08:34]written 0, free lines is 4095 [09:08:34]Connected sock=10 [09:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FF CC 07 01 5B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 14 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4E 77 00 00 35 04 06 00 B9 48 1C 1E AC 2B 23 32 DB 77 86 74 20 9B [09:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 65 CA 47 00 83 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 32 30 39 34 32 31 39 10 04 04 00 4E 77 00 00 F4 03 04 00 95 C4 15 67 B6 04 01 00 00 15 F6 22 30 A2 97 C6 D3 [09:08:34]CommunicateWithHost err = 0 [09:08:34]CheckOFDResponse [09:08:34]1017 (14) - 77093643461234 [09:08:34]1041 (16) - 0000000002094219 [09:08:34]1040 (4) - 30542 [09:08:34]1012 (4) - 21.10.2024 03:03 [09:08:34]1206 (1) - 0 [09:08:34]OFD Sender: Remove packet 30542 [09:08:34]ProducePacketName [09:08:34]name=ofd_packets/00030542 [09:08:34]NVStorageDeleteData [09:08:35]Write to MH i2c: 01 00 00 F0 29 19 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: 01 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: 01 07 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: 01 07 00 F0 29 00 00 00 00 00 F3 0C 1F [09:08:35]RasterBufferAndPrint [09:08:35]line [09:08:35]line [09:08:35]line [09:08:35]line [09:08:35]line [09:08:35]written 0, free lines is 3321 [09:08:35]MH_Cut [09:08:35]Write to MH i2c: D1 01 00 F7 29 01 F2 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: D1 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: D1 01 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: D1 01 00 F7 29 00 F1 [09:08:35]Write to MH i2c: 01 00 00 F8 29 21 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]OFD Sender: No OFD packet to send [09:08:35]*** Cut start [09:08:35]*** Partial cut [09:08:35]*** CUTSNS_PIN = 1 [09:08:35]*** CUTSNS_PIN = 0 [09:08:36]*** Brake cut motor [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]*** Stop cut motor [09:08:36]*** Cut end [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 F8 29 00 00 00 00 00 FF 0F 36 [09:08:36]process_action close_receipt done [09:08:36]requested_data is exist [09:08:36]produce_requested_data [09:08:36]requested_item fm.sn is exist - process it [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 11 00 00 [09:08:36]Write to MH i2c: E2 08 00 F9 29 80 11 00 00 00 00 00 00 9C [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 F9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [09:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:08:36]wFMCommunicate OK [09:08:36]requested_item fd.num is exist - process it [09:08:36]SAM_PROTO_GetFieldsCounters [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 13 00 00 [09:08:36]Write to MH i2c: E2 08 00 FA 29 80 13 00 00 00 00 00 00 9F [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 62 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 62 00 FA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 77 00 00 0E 04 04 00 73 00 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 72 [09:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_GetFieldsCounters done [09:08:36]requested_item shift.num is exist - process it [09:08:36]requested_item shift.opened is exist - process it [09:08:36]req_shift_opened [09:08:36]FM_GetShiftState [09:08:36]SAM_PROTO_GetShiftState [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 13 01 00 [09:08:36]Write to MH i2c: E2 08 00 FB 29 80 13 01 00 00 00 00 00 A1 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0E 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0E 00 FB 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1D [09:08:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_GetShiftState done [09:08:36]FM_GetShiftState done [09:08:36]req_shift_opened done [09:08:36]requested_item shift.open_date is exist - process it [09:08:36]req_shift_open_date [09:08:36]req_shift_open_date done [09:08:36]produce_requested_data done [09:08:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30542,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:08:36]process_action_free close_receipt [09:08:36]json_value_free [09:08:36]json_value_free done [09:08:36]process_json_proto returns [09:08:36]Send response to host [09:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30542,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:08:36]free response buf [09:08:36]execute_script done [09:08:36]execute_script returns [09:08:36]free content buf [09:08:36]Sock 7.Close socket [09:08:36]Sock 7.Thread stoped [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:46]accept exits with 9 [09:09:46]New connection [09:09:46]New thread 3067346276 created [09:09:46]Thread 3067489636 joined [09:09:46]Waiting for new connection... [09:09:46] Sock 9.Parse request [09:09:46]Sock 9.Check first char [09:09:46]Sock 9.First char is OK [09:09:46]request: POST /json_proto HTTP/1.0 [09:09:46]Method: POST [09:09:46]URL: /json_proto [09:09:46]Method is POST - this is cgi request [09:09:46]url: /json_proto [09:09:46]query_string will be loaded in cgi processing [09:09:46]execute_cgi json_proto POST (null) [09:09:46]execute_cgi path=json_proto method=POST [09:09:46]POST find Content-Length [09:09:46]Host: 172.17.51.3:8080 [09:09:46]Content-Length: 754 [09:09:46]Content-Type: application/json [09:09:46] [09:09:46]POST finish read [09:09:46]Found Content-Length = 754 [09:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039483", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:46]execute_script... [09:09:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 17.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30039483", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:46]POST & json_proto [09:09:46]process_json_proto [09:09:46]json parsed OK: [09:09:46]protocol is kg_v1.0 [09:09:46]action value=close_receipt [09:09:46]process_action close_receipt [09:09:46]cmd_close_receipt [09:09:46]MH_GetDate [09:09:46]Write to MH i2c: F0 00 00 FC 29 14 [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: F0 09 00 FC 29 00 5E 1A 16 67 04 C1 95 66 D2 [09:09:46]GetLastDocTimeStamp 1729501716 [09:09:46]current date 1729501790 [09:09:46]FM_GetShiftState [09:09:46]SAM_PROTO_GetShiftState [09:09:46]wFMCommunicate request_size=4 [09:09:46]MH_SAM_APDU [09:09:46]CAPDU: 80 13 01 00 [09:09:46]Write to MH i2c: E2 08 00 FD 29 80 13 01 00 00 00 00 00 A3 [09:09:46]Write i2c OK [09:09:46]MH_I2C_Read... [09:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:46]Read from MH i2c: E2 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 [09:09:46]MH_I2C_Read... [09:09:46]Read from MH i2c: E2 0E 00 FD 29 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1F [09:09:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:09:46]wFMCommunicate OK [09:09:46]SAM_PROTO_GetShiftState done [09:09:46]FM_GetShiftState done [09:09:46]opened in 1729471058 [09:09:46]opened+sec_in_day 1729557458 [09:09:46]quantity*price = 0 [09:09:46]sum+1 = 1 [09:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 40 21.10.2024 09:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30039483 ФМ: 0000000002094219 ФД: 30543 ФПД: 183030626403687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30543&fm=183030626403687&tin=02508201610067®Number=0000000000186857&sum=0 [09:09:47]StoreToDocumentArchive [09:09:47]shift 115 fd 30543 [09:09:47]save to /storage/0115/doc_00030543 [09:09:47]save last doc name /storage/0115/doc_00030543 to /storage/kkm_last_doc_name [09:09:47]save OK [09:09:47]Clear old archive folders... [09:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:47]tlvbuf is 01E0E590 [09:09:47]SAM_PROTO_ClearQueue [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 09 00 00 [09:09:47]Write to MH i2c: E2 08 00 0A 2A 80 09 00 00 00 00 00 00 A6 [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 0A 2A 00 90 00 A8 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]SAM_PROTO_ClearQueue done [09:09:47]KKMCreateOFDPacket [09:09:47]OFDProtocolAddRootSTLVToBuf [09:09:47]FM_MakeSignedData [09:09:47]FM_MakeSignedData [09:09:47]SAM_PROTO_SignData [09:09:47]wFMCommunicate request_size=4 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 01 02 [09:09:47]Write to MH i2c: E2 08 00 0B 2A 80 0D 01 02 00 00 00 00 AE [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:47]Read from MH i2c: E2 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 [09:09:47]MH_I2C_Read... [09:09:47]Read from MH i2c: E2 03 00 0B 2A 00 90 00 A9 [09:09:47]RAPDU: 90 00 [09:09:47]wFMCommunicate OK [09:09:47]wFMCommunicate request_size=255 [09:09:47]MH_SAM_APDU [09:09:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 44 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5E 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 77 00 00 35 04 06 00 A6 [09:09:47]Write to MH i2c: E2 02 01 0C 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 44 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5E 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 77 00 00 35 04 06 00 A6 00 00 9C [09:09:47]Write i2c OK [09:09:47]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 0C 2A 00 90 00 AA [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]wFMCommunicate request_size=10 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 02 02 05 77 23 78 45 67 [09:09:48]Write to MH i2c: E2 0D 00 0D 2A 80 0D 02 02 05 00 77 23 78 45 67 00 00 79 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [09:09:48]RAPDU: 90 00 [09:09:48]wFMCommunicate OK [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 0D 03 02 [09:09:48]Write to MH i2c: E2 08 00 0E 2A 80 0D 03 02 00 00 00 00 B3 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0B 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 0B 00 0E 2A 00 F5 6D AC C1 A2 1F 98 30 90 00 0C [09:09:48]RAPDU: F5 6D AC C1 A2 1F 98 30 90 00 [09:09:48]wFMCommunicate OK [09:09:48]SAM_PROTO_SignData done [09:09:48]FM_MakeSignedData done [09:09:48]CreateOFDProtocolMessage [09:09:48]wFMCommunicate request_size=4 [09:09:48]MH_SAM_APDU [09:09:48]CAPDU: 80 11 00 00 [09:09:48]Write to MH i2c: E2 08 00 0F 2A 80 11 00 00 00 00 00 00 B3 [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:48]Read from MH i2c: E2 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: E2 17 00 0F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 01 [09:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:09:48]wFMCommunicate OK [09:09:48]CreateOFDProtocolMessage done [09:09:48]OFDSenderStorePacket 30543 [09:09:48]StoreOFDPacket docnum=30543 [09:09:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B4 48 07 01 CE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 44 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5E 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 77 00 00 35 04 06 00 A6 77 23 78 45 67 F5 6D AC C1 A2 1F 98 30 [09:09:48]CheckFolder [09:09:48]dirname=/storage/ofd_packets [09:09:48]CheckFolder done [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00030543 [09:09:48]NVStorageSaveData ofd_packets/00030543 [09:09:48]File name is /storage/ofd_packets/00030543 [09:09:48]Write 301 bytes [09:09:48]NVStorageSaveData done [09:09:48]OFDSenderStorePacket done [09:09:48]KKMCreateOFDPacket done [09:09:48]NVStorageSaveData kkm_last_timestamp [09:09:48]File name is /storage/kkm_last_timestamp [09:09:48]Write 4 bytes [09:09:48]NVStorageSaveData done [09:09:48]ExternCall_PrintAddStr [09:09:48]wPrintStart [09:09:48]Write to MH i2c: 01 00 00 10 2A 3A [09:09:48]Write i2c OK [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 [09:09:48]MH_I2C_Read... [09:09:48]Read from MH i2c: 01 07 00 10 2A 00 00 00 00 00 FF 0F 4F [09:09:48]RasterBufferAndPrint [09:09:48]line Счет N : (1)342946 [09:09:48]line ИНН: 02508201610067 [09:09:48]line Контрольно-Кассовый Чек [09:09:48]line ПРОДАЖА [09:09:48]line ТРК (МРК, ГНК) : 43 [09:09:48]line Товар: 2710124130 [09:09:48]line Аи-92-К-2 [09:09:48]line 17.570 * 0.00 [09:09:48]line = 0.00 [09:09:48]line НДС 12% НСП 1% [09:09:48]line > о реализуемом товаре [09:09:48]line ИТОГО: 0.00 [09:09:48]line НСП 1% : 0.00 [09:09:48]line НДС 12% : 0.00 [09:09:48]line Наличными: 0.00 [09:09:48]line Безнал.: 0.00 [09:09:48]line Место: АЗС № 78 "Партнер Нефть" [09:09:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:09:48]line СНО: Общий режим [09:09:48]line Чек 40 21.10.2024 09:09 [09:09:48]line Смена: 115 ФФД: 1.0 [09:09:48]line ЗНМ: 0300000137 [09:09:48]line РНМ: 0000000000186857 [09:09:48]line Версия ККМ: v1.0 [09:09:48]line Талоны: ТК ГПНА Online [09:09:48]line 30039483 [09:09:48]line ФМ: 0000000002094219 [09:09:48]line ФД: 30543 [09:09:48]line ФПД: 183030626403687 [09:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30543&fm=183030626403687&tin=02508201610067®Number=0000000000186857&sum=0 [09:09:48]OFD Sender: Processing packet 30543 [packets to send 10, broken 9] [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00030543 [09:09:48]OFD Sender: To server: pG, [09:09:48]CommunicateWithHost lk.salyk.kg:30040 [09:09:48]ConnectInit lk.salyk.kg [09:09:48]written 0, free lines is 4095 [09:09:48]Connected sock=10 [09:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B4 48 07 01 CE EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 A2 44 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 5E 1A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 4F 77 00 00 35 04 06 00 A6 77 23 78 45 67 F5 6D AC C1 A2 1F 98 30 [09:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 59 47 00 FC 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 32 30 39 34 32 31 39 10 04 04 00 4F 77 00 00 F4 03 04 00 DF C4 15 67 B6 04 01 00 00 E9 E1 A9 26 7C 7C 74 C7 [09:09:48]CommunicateWithHost err = 0 [09:09:48]CheckOFDResponse [09:09:48]1017 (14) - 77093643461234 [09:09:48]1041 (16) - 0000000002094219 [09:09:48]1040 (4) - 30543 [09:09:48]1012 (4) - 21.10.2024 03:05 [09:09:48]1206 (1) - 0 [09:09:48]OFD Sender: Remove packet 30543 [09:09:48]ProducePacketName [09:09:48]name=ofd_packets/00030543 [09:09:48]NVStorageDeleteData [09:09:49]Write to MH i2c: 01 00 00 3A 2A 64 [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: 01 07 00 3A 2A 00 00 00 00 00 03 0D 7B [09:09:49]RasterBufferAndPrint [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]line [09:09:49]written 0, free lines is 3337 [09:09:49]MH_Cut [09:09:49]Write to MH i2c: D1 01 00 41 2A 01 3D [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 01 00 [09:09:49]MH_I2C_Read... [09:09:49]Read from MH i2c: D1 01 00 41 2A 00 3C [09:09:49]Write to MH i2c: 01 00 00 42 2A 6C [09:09:49]Write i2c OK [09:09:49]MH_I2C_Read... [09:09:49]OFD Sender: No OFD packet to send [09:09:49]*** Cut start [09:09:49]*** Partial cut [09:09:49]*** CUTSNS_PIN = 1 [09:09:49]*** CUTSNS_PIN = 0 [09:09:49]*** Brake cut motor [09:09:50]Read from MH i2c: 01 [09:09:50]MH_I2C_Read... [09:09:50]*** Stop cut motor [09:09:50]*** Cut end [09:09:50]Read from MH i2c: 01 07 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: 01 07 00 42 2A 00 00 00 00 00 FF 0F 81 [09:09:50]process_action close_receipt done [09:09:50]requested_data is exist [09:09:50]produce_requested_data [09:09:50]requested_item fm.sn is exist - process it [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 11 00 00 [09:09:50]Write to MH i2c: E2 08 00 43 2A 80 11 00 00 00 00 00 00 E7 [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 17 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 17 00 43 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [09:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:09:50]wFMCommunicate OK [09:09:50]requested_item fd.num is exist - process it [09:09:50]SAM_PROTO_GetFieldsCounters [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 00 00 [09:09:50]Write to MH i2c: E2 08 00 44 2A 80 13 00 00 00 00 00 00 EA [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 62 00 44 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 77 00 00 0E 04 04 00 73 00 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 C1 [09:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 4F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetFieldsCounters done [09:09:50]requested_item shift.num is exist - process it [09:09:50]requested_item shift.opened is exist - process it [09:09:50]req_shift_opened [09:09:50]FM_GetShiftState [09:09:50]SAM_PROTO_GetShiftState [09:09:50]wFMCommunicate request_size=4 [09:09:50]MH_SAM_APDU [09:09:50]CAPDU: 80 13 01 00 [09:09:50]Write to MH i2c: E2 08 00 45 2A 80 13 01 00 00 00 00 00 EC [09:09:50]Write i2c OK [09:09:50]MH_I2C_Read... [09:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:50]Read from MH i2c: E2 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 [09:09:50]MH_I2C_Read... [09:09:50]Read from MH i2c: E2 0E 00 45 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 68 [09:09:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:09:50]wFMCommunicate OK [09:09:50]SAM_PROTO_GetShiftState done [09:09:50]FM_GetShiftState done [09:09:50]req_shift_opened done [09:09:50]requested_item shift.open_date is exist - process it [09:09:50]req_shift_open_date [09:09:50]req_shift_open_date done [09:09:50]produce_requested_data done [09:09:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30543,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:09:50]process_action_free close_receipt [09:09:50]json_value_free [09:09:50]json_value_free done [09:09:50]process_json_proto returns [09:09:50]Send response to host [09:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30543,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:09:50]free response buf [09:09:50]execute_script done [09:09:50]execute_script returns [09:09:50]free content buf [09:09:50]Sock 9.Close socket [09:09:50]Sock 9.Thread stoped [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:03]accept exits with 7 [09:17:03]New connection [09:17:03]New thread 3067489636 created [09:17:03]Thread 3067346276 joined [09:17:03]Waiting for new connection... [09:17:03] Sock 7.Parse request [09:17:03]Sock 7.Check first char [09:17:03]Sock 7.First char is OK [09:17:03]request: POST /json_proto HTTP/1.0 [09:17:03]Method: POST [09:17:03]URL: /json_proto [09:17:03]Method is POST - this is cgi request [09:17:03]url: /json_proto [09:17:03]query_string will be loaded in cgi processing [09:17:03]execute_cgi json_proto POST (null) [09:17:03]execute_cgi path=json_proto method=POST [09:17:03]POST find Content-Length [09:17:03]Host: 172.17.51.3:8080 [09:17:03]Content-Length: 682 [09:17:03]Content-Type: application/json [09:17:03] [09:17:03]POST finish read [09:17:03]Found Content-Length = 682 [09:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:03]execute_script... [09:17:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:03]POST & json_proto [09:17:03]process_json_proto [09:17:03]json parsed OK: [09:17:03]protocol is kg_v1.0 [09:17:03]action value=close_receipt [09:17:03]process_action close_receipt [09:17:03]cmd_close_receipt [09:17:03]MH_GetDate [09:17:03]Write to MH i2c: F0 00 00 46 2A 5F [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: F0 09 00 46 2A 00 13 1C 16 67 04 C1 95 66 D4 [09:17:03]GetLastDocTimeStamp 1729501790 [09:17:03]current date 1729502227 [09:17:03]FM_GetShiftState [09:17:03]SAM_PROTO_GetShiftState [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 13 01 00 [09:17:03]Write to MH i2c: E2 08 00 47 2A 80 13 01 00 00 00 00 00 EE [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 0E 00 47 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6A [09:17:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_GetShiftState done [09:17:03]FM_GetShiftState done [09:17:03]opened in 1729471058 [09:17:03]opened+sec_in_day 1729557458 [09:17:03]quantity*price = 100015 [09:17:03]sum+1 = 100017 [09:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 41 21.10.2024 09:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30544 ФПД: 159915434863567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30544&fm=159915434863567&tin=02508201610067®Number=0000000000186857&sum=100000 [09:17:04]StoreToDocumentArchive [09:17:04]shift 115 fd 30544 [09:17:04]save to /storage/0115/doc_00030544 [09:17:04]save last doc name /storage/0115/doc_00030544 to /storage/kkm_last_doc_name [09:17:04]save OK [09:17:04]Clear old archive folders... [09:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:04]tlvbuf is 01E55B50 [09:17:04]SAM_PROTO_ClearQueue [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 09 00 00 [09:17:04]Write to MH i2c: E2 08 00 54 2A 80 09 00 00 00 00 00 00 F0 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 54 2A 00 90 00 F2 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_ClearQueue done [09:17:04]KKMCreateOFDPacket [09:17:04]OFDProtocolAddRootSTLVToBuf [09:17:04]FM_MakeSignedData [09:17:04]FM_MakeSignedData [09:17:04]SAM_PROTO_SignData [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 01 02 [09:17:04]Write to MH i2c: E2 08 00 55 2A 80 0D 01 02 00 00 00 00 F8 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 55 2A 00 90 00 F3 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=255 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 13 1C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 77 00 00 35 04 06 00 91 [09:17:04]Write to MH i2c: E2 02 01 56 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 13 1C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 77 00 00 35 04 06 00 91 00 00 23 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 56 2A 00 90 00 F4 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=10 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 02 02 05 71 36 B0 6B CF [09:17:04]Write to MH i2c: E2 0D 00 57 2A 80 0D 02 02 05 00 71 36 B0 6B CF 00 00 96 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 57 2A 00 90 00 F5 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 03 02 [09:17:04]Write to MH i2c: E2 08 00 58 2A 80 0D 03 02 00 00 00 00 FD [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 58 2A 00 2C 48 C9 13 0A 9F AD E9 90 00 8D [09:17:04]RAPDU: 2C 48 C9 13 0A 9F AD E9 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_SignData done [09:17:04]FM_MakeSignedData done [09:17:04]CreateOFDProtocolMessage [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 11 00 00 [09:17:04]Write to MH i2c: E2 08 00 59 2A 80 11 00 00 00 00 00 00 FD [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]OFD Sender: No OFD packet to send [09:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 59 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [09:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:17:04]wFMCommunicate OK [09:17:04]CreateOFDProtocolMessage done [09:17:04]OFDSenderStorePacket 30544 [09:17:04]StoreOFDPacket docnum=30544 [09:17:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 2D 07 01 09 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 13 1C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 77 00 00 35 04 06 00 91 71 36 B0 6B CF 2C 48 C9 13 0A 9F AD E9 [09:17:04]CheckFolder [09:17:04]dirname=/storage/ofd_packets [09:17:04]CheckFolder done [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00030544 [09:17:04]NVStorageSaveData ofd_packets/00030544 [09:17:04]File name is /storage/ofd_packets/00030544 [09:17:04]Write 301 bytes [09:17:04]NVStorageSaveData done [09:17:04]OFDSenderStorePacket done [09:17:04]KKMCreateOFDPacket done [09:17:04]NVStorageSaveData kkm_last_timestamp [09:17:04]File name is /storage/kkm_last_timestamp [09:17:04]Write 4 bytes [09:17:04]NVStorageSaveData done [09:17:04]ExternCall_PrintAddStr [09:17:04]wPrintStart [09:17:04]Write to MH i2c: 01 00 00 5A 2A 84 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 5A 2A 00 00 00 00 00 FF 0F 99 [09:17:04]RasterBufferAndPrint [09:17:04]line Счет N : (1)342947 [09:17:04]line ИНН: 02508201610067 [09:17:04]line Контрольно-Кассовый Чек [09:17:04]line ПРОДАЖА [09:17:04]line ТРК (МРК, ГНК) : 53 [09:17:04]line Товар: 2710124130 [09:17:04]line Аи-92-К-2 [09:17:04]line 14.950 * 66.90 [09:17:04]line = 1000.16 [09:17:04]line НДС 12% НСП 1% [09:17:04]line > о реализуемом товаре [09:17:04]line ОКРУГЛЕНИЕ: -0.16 [09:17:04]line ИТОГО: 1000.00 [09:17:04]line Внесено: 1000.00 [09:17:04]line СДАЧА: 0.00 [09:17:04]line НСП 1% : 8.85 [09:17:04]line НДС 12% : 106.21 [09:17:04]line Наличными: 1000.00 [09:17:04]line Безнал.: 0.00 [09:17:04]line Место: АЗС № 78 "Партнер Нефть" [09:17:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:17:04]line СНО: Общий режим [09:17:04]line Чек 41 21.10.2024 09:17 [09:17:04]line Смена: 115 ФФД: 1.0 [09:17:04]line ЗНМ: 0300000137 [09:17:04]line РНМ: 0000000000186857 [09:17:04]line Версия ККМ: v1.0 [09:17:04]line ФМ: 0000000002094219 [09:17:04]line ФД: 30544 [09:17:04]line ФПД: 159915434863567 [09:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091707&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30544&fm=159915434863567&tin=02508201610067®Number=0000000000186857&sum=100000 [09:17:05]OFD Sender: Processing packet 30544 [packets to send 10, broken 9] [09:17:05]ProducePacketName [09:17:05]name=ofd_packets/00030544 [09:17:05]OFD Sender: To server: pG, [09:17:05]CommunicateWithHost lk.salyk.kg:30040 [09:17:05]ConnectInit lk.salyk.kg [09:17:05]written 0, free lines is 4095 [09:17:05]Connected sock=10 [09:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 2D 07 01 09 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 13 1C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 77 00 00 35 04 06 00 91 71 36 B0 6B CF 2C 48 C9 13 0A 9F AD E9 [09:17:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1F C2 47 00 21 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 50 77 00 00 F4 03 04 00 94 C6 15 67 B6 04 01 00 00 1B B2 08 8C 68 43 09 3E [09:17:05]CommunicateWithHost err = 0 [09:17:05]CheckOFDResponse [09:17:05]1017 (14) - 77093643461234 [09:17:05]1041 (16) - 0000000002094219 [09:17:05]1040 (4) - 30544 [09:17:05]1012 (4) - 21.10.2024 03:12 [09:17:05]1206 (1) - 0 [09:17:05]OFD Sender: Remove packet 30544 [09:17:05]ProducePacketName [09:17:05]name=ofd_packets/00030544 [09:17:05]NVStorageDeleteData [09:17:05]Write to MH i2c: 01 00 00 85 2A AF [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 85 2A 00 00 00 00 00 F5 0C B7 [09:17:05]RasterBufferAndPrint [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]written 0, free lines is 3323 [09:17:05]MH_Cut [09:17:05]Write to MH i2c: D1 01 00 8C 2A 01 88 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 8C 2A 00 87 [09:17:05]Write to MH i2c: 01 00 00 8D 2A B7 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:06]OFD Sender: No OFD packet to send [09:17:06]*** Cut start [09:17:06]*** Partial cut [09:17:06]*** CUTSNS_PIN = 1 [09:17:06]*** CUTSNS_PIN = 0 [09:17:06]*** Brake cut motor [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]*** Stop cut motor [09:17:06]*** Cut end [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 8D 2A 00 00 00 00 00 FF 0F CC [09:17:06]process_action close_receipt done [09:17:06]requested_data is exist [09:17:06]produce_requested_data [09:17:06]requested_item fm.sn is exist - process it [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 11 00 00 [09:17:06]Write to MH i2c: E2 08 00 8E 2A 80 11 00 00 00 00 00 00 32 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 8E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:17:06]wFMCommunicate OK [09:17:06]requested_item fd.num is exist - process it [09:17:06]SAM_PROTO_GetFieldsCounters [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 00 00 [09:17:06]Write to MH i2c: E2 08 00 8F 2A 80 13 00 00 00 00 00 00 35 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:07]Read from MH i2c: E2 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 62 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 62 00 8F 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [09:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 50 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:07]wFMCommunicate OK [09:17:07]SAM_PROTO_GetFieldsCounters done [09:17:07]requested_item shift.num is exist - process it [09:17:07]requested_item shift.opened is exist - process it [09:17:07]req_shift_opened [09:17:07]FM_GetShiftState [09:17:07]SAM_PROTO_GetShiftState [09:17:07]wFMCommunicate request_size=4 [09:17:07]MH_SAM_APDU [09:17:07]CAPDU: 80 13 01 00 [09:17:07]Write to MH i2c: E2 08 00 90 2A 80 13 01 00 00 00 00 00 37 [09:17:07]Write i2c OK [09:17:07]MH_I2C_Read... [09:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:07]Read from MH i2c: E2 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 0E 00 [09:17:07]MH_I2C_Read... [09:17:07]Read from MH i2c: E2 0E 00 90 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B3 [09:17:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:17:07]wFMCommunicate OK [09:17:07]SAM_PROTO_GetShiftState done [09:17:07]FM_GetShiftState done [09:17:07]req_shift_opened done [09:17:07]requested_item shift.open_date is exist - process it [09:17:07]req_shift_open_date [09:17:07]req_shift_open_date done [09:17:07]produce_requested_data done [09:17:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30544,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:17:07]process_action_free close_receipt [09:17:07]json_value_free [09:17:07]json_value_free done [09:17:07]process_json_proto returns [09:17:07]Send response to host [09:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30544,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:17:07]free response buf [09:17:07]execute_script done [09:17:07]execute_script returns [09:17:07]free content buf [09:17:07]Sock 7.Close socket [09:17:07]Sock 7.Thread stoped [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:11]OFD Sender: No OFD packet to send [09:21:12]accept exits with 9 [09:21:12]New connection [09:21:12]New thread 3067346276 created [09:21:12]Thread 3067489636 joined [09:21:12]Waiting for new connection... [09:21:12] Sock 9.Parse request [09:21:12]Sock 9.Check first char [09:21:12]Sock 9.First char is OK [09:21:12]request: POST /json_proto HTTP/1.0 [09:21:12]Method: POST [09:21:12]URL: /json_proto [09:21:12]Method is POST - this is cgi request [09:21:12]url: /json_proto [09:21:12]query_string will be loaded in cgi processing [09:21:12]execute_cgi json_proto POST (null) [09:21:12]execute_cgi path=json_proto method=POST [09:21:12]POST find Content-Length [09:21:12]Host: 172.17.51.3:8080 [09:21:12]Content-Length: 677 [09:21:12]Content-Type: application/json [09:21:12] [09:21:12]POST finish read [09:21:12]Found Content-Length = 677 [09:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:12]execute_script... [09:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:12]POST & json_proto [09:21:12]process_json_proto [09:21:12]json parsed OK: [09:21:12]protocol is kg_v1.0 [09:21:12]action value=close_receipt [09:21:12]process_action close_receipt [09:21:12]cmd_close_receipt [09:21:12]MH_GetDate [09:21:12]Write to MH i2c: F0 00 00 91 2A AA [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: F0 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: F0 09 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: F0 09 00 91 2A 00 0C 1D 16 67 04 C1 95 66 19 [09:21:12]GetLastDocTimeStamp 1729502227 [09:21:12]current date 1729502476 [09:21:12]FM_GetShiftState [09:21:12]SAM_PROTO_GetShiftState [09:21:12]wFMCommunicate request_size=4 [09:21:12]MH_SAM_APDU [09:21:12]CAPDU: 80 13 01 00 [09:21:12]Write to MH i2c: E2 08 00 92 2A 80 13 01 00 00 00 00 00 39 [09:21:12]Write i2c OK [09:21:12]MH_I2C_Read... [09:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:12]Read from MH i2c: E2 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 [09:21:12]MH_I2C_Read... [09:21:12]Read from MH i2c: E2 0E 00 92 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B5 [09:21:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:21:12]wFMCommunicate OK [09:21:12]SAM_PROTO_GetShiftState done [09:21:12]FM_GetShiftState done [09:21:12]opened in 1729471058 [09:21:12]opened+sec_in_day 1729557458 [09:21:12]quantity*price = 40006 [09:21:12]sum+1 = 40007 [09:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 42 21.10.2024 09:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30545 ФПД: 133369865822190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30545&fm=133369865822190&tin=02508201610067®Number=0000000000186857&sum=40000 [09:21:13]StoreToDocumentArchive [09:21:13]shift 115 fd 30545 [09:21:13]save to /storage/0115/doc_00030545 [09:21:13]save last doc name /storage/0115/doc_00030545 to /storage/kkm_last_doc_name [09:21:13]save OK [09:21:13]Clear old archive folders... [09:21:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:13]tlvbuf is 01E0BF50 [09:21:13]SAM_PROTO_ClearQueue [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 09 00 00 [09:21:13]Write to MH i2c: E2 08 00 9F 2A 80 09 00 00 00 00 00 00 3B [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 9F 2A 00 90 00 3D [09:21:13]RAPDU: 90 00 [09:21:13]wFMCommunicate OK [09:21:13]SAM_PROTO_ClearQueue done [09:21:13]KKMCreateOFDPacket [09:21:13]OFDProtocolAddRootSTLVToBuf [09:21:13]FM_MakeSignedData [09:21:13]FM_MakeSignedData [09:21:13]SAM_PROTO_SignData [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 0D 01 02 [09:21:13]Write to MH i2c: E2 08 00 A0 2A 80 0D 01 02 00 00 00 00 43 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 A0 2A 00 90 00 3E [09:21:13]RAPDU: 90 00 [09:21:13]wFMCommunicate OK [09:21:13]wFMCommunicate request_size=255 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0C 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 77 00 00 35 04 06 00 79 [09:21:13]Write to MH i2c: E2 02 01 A1 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0C 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 77 00 00 35 04 06 00 79 00 00 27 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 A1 2A 00 90 00 3F [09:21:13]RAPDU: 90 00 [09:21:13]wFMCommunicate OK [09:21:13]wFMCommunicate request_size=10 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 0D 02 02 05 4C 97 79 DF EE [09:21:13]Write to MH i2c: E2 0D 00 A2 2A 80 0D 02 02 05 00 4C 97 79 DF EE 00 00 79 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 03 00 A2 2A 00 90 00 40 [09:21:13]RAPDU: 90 00 [09:21:13]wFMCommunicate OK [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 0D 03 02 [09:21:13]Write to MH i2c: E2 08 00 A3 2A 80 0D 03 02 00 00 00 00 48 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 0B 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 0B 00 A3 2A 00 68 B0 71 5A 2E 84 EF 9E 90 00 6B [09:21:13]RAPDU: 68 B0 71 5A 2E 84 EF 9E 90 00 [09:21:13]wFMCommunicate OK [09:21:13]SAM_PROTO_SignData done [09:21:13]FM_MakeSignedData done [09:21:13]CreateOFDProtocolMessage [09:21:13]wFMCommunicate request_size=4 [09:21:13]MH_SAM_APDU [09:21:13]CAPDU: 80 11 00 00 [09:21:13]Write to MH i2c: E2 08 00 A4 2A 80 11 00 00 00 00 00 00 48 [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:13]Read from MH i2c: E2 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 17 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: E2 17 00 A4 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [09:21:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:21:13]wFMCommunicate OK [09:21:13]CreateOFDProtocolMessage done [09:21:13]OFDSenderStorePacket 30545 [09:21:13]StoreOFDPacket docnum=30545 [09:21:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 38 07 01 EF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0C 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 77 00 00 35 04 06 00 79 4C 97 79 DF EE 68 B0 71 5A 2E 84 EF 9E [09:21:13]CheckFolder [09:21:13]dirname=/storage/ofd_packets [09:21:13]CheckFolder done [09:21:13]ProducePacketName [09:21:13]name=ofd_packets/00030545 [09:21:13]NVStorageSaveData ofd_packets/00030545 [09:21:13]File name is /storage/ofd_packets/00030545 [09:21:13]Write 301 bytes [09:21:13]NVStorageSaveData done [09:21:13]OFDSenderStorePacket done [09:21:13]KKMCreateOFDPacket done [09:21:13]NVStorageSaveData kkm_last_timestamp [09:21:13]File name is /storage/kkm_last_timestamp [09:21:13]Write 4 bytes [09:21:13]NVStorageSaveData done [09:21:13]ExternCall_PrintAddStr [09:21:13]wPrintStart [09:21:13]Write to MH i2c: 01 00 00 A5 2A CF [09:21:13]Write i2c OK [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 [09:21:13]MH_I2C_Read... [09:21:13]Read from MH i2c: 01 07 00 A5 2A 00 00 00 00 00 FF 0F E4 [09:21:13]RasterBufferAndPrint [09:21:13]line Счет N : (1)342948 [09:21:13]line ИНН: 02508201610067 [09:21:13]line Контрольно-Кассовый Чек [09:21:13]line ПРОДАЖА [09:21:13]line ТРК (МРК, ГНК) : 63 [09:21:13]line Товар: 2710124130 [09:21:13]line Аи-92-К-2 [09:21:13]line 5.980 * 66.90 [09:21:13]line = 400.06 [09:21:13]line НДС 12% НСП 1% [09:21:13]line > о реализуемом товаре [09:21:13]line ОКРУГЛЕНИЕ: -0.06 [09:21:13]line ИТОГО: 400.00 [09:21:13]line Внесено: 400.00 [09:21:13]line СДАЧА: 0.00 [09:21:13]line НСП 1% : 3.54 [09:21:13]line НДС 12% : 42.48 [09:21:13]line Наличными: 400.00 [09:21:13]line Безнал.: 0.00 [09:21:13]line Место: АЗС № 78 "Партнер Нефть" [09:21:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:21:13]line СНО: Общий режим [09:21:13]line Чек 42 21.10.2024 09:21 [09:21:13]line Смена: 115 ФФД: 1.0 [09:21:13]line ЗНМ: 0300000137 [09:21:13]line РНМ: 0000000000186857 [09:21:13]line Версия ККМ: v1.0 [09:21:13]line ФМ: 0000000002094219 [09:21:13]line ФД: 30545 [09:21:13]line ФПД: 133369865822190 [09:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30545&fm=133369865822190&tin=02508201610067®Number=0000000000186857&sum=40000 [09:21:14]OFD Sender: Processing packet 30545 [packets to send 10, broken 9] [09:21:14]ProducePacketName [09:21:14]name=ofd_packets/00030545 [09:21:14]OFD Sender: To server: pG, [09:21:14]CommunicateWithHost lk.salyk.kg:30040 [09:21:14]ConnectInit lk.salyk.kg [09:21:14]written 0, free lines is 4095 [09:21:14]Connected sock=10 [09:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 08 38 07 01 EF A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0C 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 77 00 00 35 04 06 00 79 4C 97 79 DF EE 68 B0 71 5A 2E 84 EF 9E [09:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 49 1A 47 00 69 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 51 77 00 00 F4 03 04 00 8D C7 15 67 B6 04 01 00 00 95 88 8B A5 3D 9B 83 50 [09:21:14]CommunicateWithHost err = 0 [09:21:14]CheckOFDResponse [09:21:14]1017 (14) - 77093643461234 [09:21:14]1041 (16) - 0000000002094219 [09:21:14]1040 (4) - 30545 [09:21:14]1012 (4) - 21.10.2024 03:16 [09:21:14]1206 (1) - 0 [09:21:14]OFD Sender: Remove packet 30545 [09:21:14]ProducePacketName [09:21:14]name=ofd_packets/00030545 [09:21:14]NVStorageDeleteData [09:21:14]Write to MH i2c: 01 00 00 D0 2A FA [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: 01 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: 01 07 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 F7 0C 04 [09:21:14]RasterBufferAndPrint [09:21:14]line [09:21:14]line [09:21:14]line [09:21:14]line [09:21:14]line [09:21:14]written 0, free lines is 3325 [09:21:14]MH_Cut [09:21:14]Write to MH i2c: D1 01 00 D7 2A 01 D3 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: D1 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: D1 01 00 [09:21:14]MH_I2C_Read... [09:21:14]Read from MH i2c: D1 01 00 D7 2A 00 D2 [09:21:14]Write to MH i2c: 01 00 00 D8 2A 02 [09:21:14]Write i2c OK [09:21:14]MH_I2C_Read... [09:21:15]OFD Sender: No OFD packet to send [09:21:15]*** Cut start [09:21:15]*** Partial cut [09:21:15]*** CUTSNS_PIN = 1 [09:21:15]*** CUTSNS_PIN = 0 [09:21:15]*** Brake cut motor [09:21:15]Read from MH i2c: 01 [09:21:15]MH_I2C_Read... [09:21:15]*** Stop cut motor [09:21:15]*** Cut end [09:21:15]Read from MH i2c: 01 07 00 [09:21:15]MH_I2C_Read... [09:21:15]Read from MH i2c: 01 07 00 D8 2A 00 00 00 00 00 FF 0F 17 [09:21:15]process_action close_receipt done [09:21:15]requested_data is exist [09:21:15]produce_requested_data [09:21:15]requested_item fm.sn is exist - process it [09:21:15]wFMCommunicate request_size=4 [09:21:15]MH_SAM_APDU [09:21:15]CAPDU: 80 11 00 00 [09:21:15]Write to MH i2c: E2 08 00 D9 2A 80 11 00 00 00 00 00 00 7D [09:21:15]Write i2c OK [09:21:15]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 17 00 D9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [09:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:21:16]wFMCommunicate OK [09:21:16]requested_item fd.num is exist - process it [09:21:16]SAM_PROTO_GetFieldsCounters [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 13 00 00 [09:21:16]Write to MH i2c: E2 08 00 DA 2A 80 13 00 00 00 00 00 00 80 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 62 00 DA 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 77 00 00 0E 04 04 00 73 00 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 5F [09:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 51 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetFieldsCounters done [09:21:16]requested_item shift.num is exist - process it [09:21:16]requested_item shift.opened is exist - process it [09:21:16]req_shift_opened [09:21:16]FM_GetShiftState [09:21:16]SAM_PROTO_GetShiftState [09:21:16]wFMCommunicate request_size=4 [09:21:16]MH_SAM_APDU [09:21:16]CAPDU: 80 13 01 00 [09:21:16]Write to MH i2c: E2 08 00 DB 2A 80 13 01 00 00 00 00 00 82 [09:21:16]Write i2c OK [09:21:16]MH_I2C_Read... [09:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:16]Read from MH i2c: E2 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 [09:21:16]MH_I2C_Read... [09:21:16]Read from MH i2c: E2 0E 00 DB 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FE [09:21:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:21:16]wFMCommunicate OK [09:21:16]SAM_PROTO_GetShiftState done [09:21:16]FM_GetShiftState done [09:21:16]req_shift_opened done [09:21:16]requested_item shift.open_date is exist - process it [09:21:16]req_shift_open_date [09:21:16]req_shift_open_date done [09:21:16]produce_requested_data done [09:21:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30545,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:21:16]process_action_free close_receipt [09:21:16]json_value_free [09:21:16]json_value_free done [09:21:16]process_json_proto returns [09:21:16]Send response to host [09:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30545,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:21:16]free response buf [09:21:16]execute_script done [09:21:16]execute_script returns [09:21:16]free content buf [09:21:16]Sock 9.Close socket [09:21:16]Sock 9.Thread stoped [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:04]accept exits with 7 [09:22:04]New connection [09:22:04]New thread 3067489636 created [09:22:04]Thread 3067346276 joined [09:22:04]Waiting for new connection... [09:22:04] Sock 7.Parse request [09:22:04]Sock 7.Check first char [09:22:04]Sock 7.First char is OK [09:22:04]request: POST /json_proto HTTP/1.0 [09:22:04]Method: POST [09:22:04]URL: /json_proto [09:22:04]Method is POST - this is cgi request [09:22:04]url: /json_proto [09:22:04]query_string will be loaded in cgi processing [09:22:04]execute_cgi json_proto POST (null) [09:22:04]execute_cgi path=json_proto method=POST [09:22:04]POST find Content-Length [09:22:04]Host: 172.17.51.3:8080 [09:22:04]Content-Length: 753 [09:22:04]Content-Type: application/json [09:22:04] [09:22:04]POST finish read [09:22:04]Found Content-Length = 753 [09:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:04]execute_script... [09:22:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 7.480, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30132031", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:04]POST & json_proto [09:22:04]process_json_proto [09:22:04]json parsed OK: [09:22:04]protocol is kg_v1.0 [09:22:04]action value=close_receipt [09:22:04]process_action close_receipt [09:22:04]cmd_close_receipt [09:22:04]MH_GetDate [09:22:04]Write to MH i2c: F0 00 00 DC 2A F5 [09:22:04]Write i2c OK [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: F0 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: F0 09 00 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: F0 09 00 DC 2A 00 40 1D 16 67 04 C1 95 66 98 [09:22:04]GetLastDocTimeStamp 1729502476 [09:22:04]current date 1729502528 [09:22:04]FM_GetShiftState [09:22:04]SAM_PROTO_GetShiftState [09:22:04]wFMCommunicate request_size=4 [09:22:04]MH_SAM_APDU [09:22:04]CAPDU: 80 13 01 00 [09:22:04]Write to MH i2c: E2 08 00 DD 2A 80 13 01 00 00 00 00 00 84 [09:22:04]Write i2c OK [09:22:04]MH_I2C_Read... [09:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:04]Read from MH i2c: E2 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: E2 0E 00 [09:22:04]MH_I2C_Read... [09:22:04]Read from MH i2c: E2 0E 00 DD 2A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 00 [09:22:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:22:04]wFMCommunicate OK [09:22:04]SAM_PROTO_GetShiftState done [09:22:04]FM_GetShiftState done [09:22:04]opened in 1729471058 [09:22:04]opened+sec_in_day 1729557458 [09:22:04]quantity*price = 0 [09:22:04]sum+1 = 1 [09:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 43 21.10.2024 09:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30132031 ФМ: 0000000002094219 ФД: 30546 ФПД: 139817831749004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092208&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30546&fm=139817831749004&tin=02508201610067®Number=0000000000186857&sum=0 [09:22:05]StoreToDocumentArchive [09:22:05]shift 115 fd 30546 [09:22:05]save to /storage/0115/doc_00030546 [09:22:05]save last doc name /storage/0115/doc_00030546 to /storage/kkm_last_doc_name [09:22:05]save OK [09:22:05]Clear old archive folders... [09:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:05]tlvbuf is 01E55F90 [09:22:05]SAM_PROTO_ClearQueue [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 09 00 00 [09:22:05]Write to MH i2c: E2 08 00 EA 2A 80 09 00 00 00 00 00 00 86 [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 03 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 03 00 EA 2A 00 90 00 88 [09:22:05]RAPDU: 90 00 [09:22:05]wFMCommunicate OK [09:22:05]SAM_PROTO_ClearQueue done [09:22:05]KKMCreateOFDPacket [09:22:05]OFDProtocolAddRootSTLVToBuf [09:22:05]FM_MakeSignedData [09:22:05]FM_MakeSignedData [09:22:05]SAM_PROTO_SignData [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 0D 01 02 [09:22:05]Write to MH i2c: E2 08 00 EB 2A 80 0D 01 02 00 00 00 00 8E [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 03 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 03 00 EB 2A 00 90 00 89 [09:22:05]RAPDU: 90 00 [09:22:05]wFMCommunicate OK [09:22:05]wFMCommunicate request_size=255 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 40 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 77 00 00 35 04 06 00 7F [09:22:05]Write to MH i2c: E2 02 01 EC 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 40 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 77 00 00 35 04 06 00 7F 00 00 AF [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 EC 2A 00 90 00 8A [09:22:06]RAPDU: 90 00 [09:22:06]wFMCommunicate OK [09:22:06]wFMCommunicate request_size=10 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 0D 02 02 05 29 E0 31 D5 8C [09:22:06]Write to MH i2c: E2 0D 00 ED 2A 80 0D 02 02 05 00 29 E0 31 D5 8C 00 00 36 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 ED 2A 00 90 00 8B [09:22:06]RAPDU: 90 00 [09:22:06]wFMCommunicate OK [09:22:06]wFMCommunicate request_size=4 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 0D 03 02 [09:22:06]Write to MH i2c: E2 08 00 EE 2A 80 0D 03 02 00 00 00 00 93 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 0B 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 0B 00 EE 2A 00 72 6C B6 43 1C 0B 5D 54 90 00 43 [09:22:06]RAPDU: 72 6C B6 43 1C 0B 5D 54 90 00 [09:22:06]wFMCommunicate OK [09:22:06]SAM_PROTO_SignData done [09:22:06]FM_MakeSignedData done [09:22:06]CreateOFDProtocolMessage [09:22:06]wFMCommunicate request_size=4 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 11 00 00 [09:22:06]Write to MH i2c: E2 08 00 EF 2A 80 11 00 00 00 00 00 00 93 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 17 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 17 00 EF 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [09:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:22:06]wFMCommunicate OK [09:22:06]CreateOFDProtocolMessage done [09:22:06]OFDSenderStorePacket 30546 [09:22:06]StoreOFDPacket docnum=30546 [09:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 28 A5 07 01 40 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 40 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 77 00 00 35 04 06 00 7F 29 E0 31 D5 8C 72 6C B6 43 1C 0B 5D 54 [09:22:06]CheckFolder [09:22:06]dirname=/storage/ofd_packets [09:22:06]CheckFolder done [09:22:06]ProducePacketName [09:22:06]name=ofd_packets/00030546 [09:22:06]NVStorageSaveData ofd_packets/00030546 [09:22:06]File name is /storage/ofd_packets/00030546 [09:22:06]Write 301 bytes [09:22:06]NVStorageSaveData done [09:22:06]OFDSenderStorePacket done [09:22:06]KKMCreateOFDPacket done [09:22:06]NVStorageSaveData kkm_last_timestamp [09:22:06]File name is /storage/kkm_last_timestamp [09:22:06]Write 4 bytes [09:22:06]NVStorageSaveData done [09:22:06]ExternCall_PrintAddStr [09:22:06]wPrintStart [09:22:06]Write to MH i2c: 01 00 00 F0 2A 1A [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 07 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 07 00 F0 2A 00 00 00 00 00 FF 0F 2F [09:22:06]RasterBufferAndPrint [09:22:06]line Счет N : (1)342949 [09:22:06]line ИНН: 02508201610067 [09:22:06]line Контрольно-Кассовый Чек [09:22:06]line ПРОДАЖА [09:22:06]line ТРК (МРК, ГНК) : 53 [09:22:06]line Товар: 2710124130 [09:22:06]line Аи-92-К-2 [09:22:06]line 7.480 * 0.00 [09:22:06]line = 0.00 [09:22:06]line НДС 12% НСП 1% [09:22:06]line > о реализуемом товаре [09:22:06]line ИТОГО: 0.00 [09:22:06]line НСП 1% : 0.00 [09:22:06]line НДС 12% : 0.00 [09:22:06]line Наличными: 0.00 [09:22:06]line Безнал.: 0.00 [09:22:06]line Место: АЗС № 78 "Партнер Нефть" [09:22:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:22:06]line СНО: Общий режим [09:22:06]line Чек 43 21.10.2024 09:22 [09:22:06]line Смена: 115 ФФД: 1.0 [09:22:06]line ЗНМ: 0300000137 [09:22:06]line РНМ: 0000000000186857 [09:22:06]line Версия ККМ: v1.0 [09:22:06]line Талоны: ТК ГПНА Online [09:22:06]line 30132031 [09:22:06]line ФМ: 0000000002094219 [09:22:06]line ФД: 30546 [09:22:06]line ФПД: 139817831749004 [09:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092208&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30546&fm=139817831749004&tin=02508201610067®Number=0000000000186857&sum=0 [09:22:06]OFD Sender: Processing packet 30546 [packets to send 10, broken 9] [09:22:06]ProducePacketName [09:22:06]name=ofd_packets/00030546 [09:22:06]OFD Sender: To server: pG, [09:22:06]CommunicateWithHost lk.salyk.kg:30040 [09:22:06]ConnectInit lk.salyk.kg [09:22:06]written 0, free lines is 4095 [09:22:06]Connected sock=9 [09:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 28 A5 07 01 40 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 40 1D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 77 00 00 35 04 06 00 7F 29 E0 31 D5 8C 72 6C B6 43 1C 0B 5D 54 [09:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E3 4C 47 00 09 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 52 77 00 00 F4 03 04 00 C1 C7 15 67 B6 04 01 00 00 D3 20 08 F7 67 E6 E6 6D [09:22:06]CommunicateWithHost err = 0 [09:22:06]CheckOFDResponse [09:22:06]1017 (14) - 77093643461234 [09:22:06]1041 (16) - 0000000002094219 [09:22:06]1040 (4) - 30546 [09:22:06]1012 (4) - 21.10.2024 03:17 [09:22:06]1206 (1) - 0 [09:22:06]OFD Sender: Remove packet 30546 [09:22:06]ProducePacketName [09:22:06]name=ofd_packets/00030546 [09:22:06]NVStorageDeleteData [09:22:06]Write to MH i2c: 01 00 00 1A 2B 45 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 07 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: 01 07 00 1A 2B 00 00 00 00 00 F0 0C 48 [09:22:06]RasterBufferAndPrint [09:22:06]line [09:22:06]line [09:22:06]line [09:22:06]line [09:22:06]line [09:22:06]written 0, free lines is 3320 [09:22:06]MH_Cut [09:22:06]Write to MH i2c: D1 01 00 21 2B 01 1E [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: D1 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: D1 01 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: D1 01 00 21 2B 00 1D [09:22:06]Write to MH i2c: 01 00 00 22 2B 4D [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:07]OFD Sender: No OFD packet to send [09:22:07]*** Cut start [09:22:07]*** Partial cut [09:22:07]*** CUTSNS_PIN = 1 [09:22:07]*** CUTSNS_PIN = 0 [09:22:07]*** Brake cut motor [09:22:08]Read from MH i2c: 01 *** Stop cut motor [09:22:08]*** Cut end [09:22:08] [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: 01 07 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: 01 07 00 22 2B 00 00 00 00 00 FF 0F 62 [09:22:08]process_action close_receipt done [09:22:08]requested_data is exist [09:22:08]produce_requested_data [09:22:08]requested_item fm.sn is exist - process it [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 11 00 00 [09:22:08]Write to MH i2c: E2 08 00 23 2B 80 11 00 00 00 00 00 00 C8 [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 17 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 17 00 23 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [09:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:22:08]wFMCommunicate OK [09:22:08]requested_item fd.num is exist - process it [09:22:08]SAM_PROTO_GetFieldsCounters [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 13 00 00 [09:22:08]Write to MH i2c: E2 08 00 24 2B 80 13 00 00 00 00 00 00 CB [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 62 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 62 00 24 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 77 00 00 0E 04 04 00 73 00 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 AE [09:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 52 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:08]wFMCommunicate OK [09:22:08]SAM_PROTO_GetFieldsCounters done [09:22:08]requested_item shift.num is exist - process it [09:22:08]requested_item shift.opened is exist - process it [09:22:08]req_shift_opened [09:22:08]FM_GetShiftState [09:22:08]SAM_PROTO_GetShiftState [09:22:08]wFMCommunicate request_size=4 [09:22:08]MH_SAM_APDU [09:22:08]CAPDU: 80 13 01 00 [09:22:08]Write to MH i2c: E2 08 00 25 2B 80 13 01 00 00 00 00 00 CD [09:22:08]Write i2c OK [09:22:08]MH_I2C_Read... [09:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:08]Read from MH i2c: E2 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 0E 00 [09:22:08]MH_I2C_Read... [09:22:08]Read from MH i2c: E2 0E 00 25 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 49 [09:22:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:22:08]wFMCommunicate OK [09:22:08]SAM_PROTO_GetShiftState done [09:22:08]FM_GetShiftState done [09:22:08]req_shift_opened done [09:22:08]requested_item shift.open_date is exist - process it [09:22:08]req_shift_open_date [09:22:08]req_shift_open_date done [09:22:08]produce_requested_data done [09:22:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30546,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:22:08]process_action_free close_receipt [09:22:08]json_value_free [09:22:08]json_value_free done [09:22:08]process_json_proto returns [09:22:08]Send response to host [09:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30546,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:22:08]free response buf [09:22:08]execute_script done [09:22:08]execute_script returns [09:22:08]free content buf [09:22:08]Sock 7.Close socket [09:22:08]Sock 7.Thread stoped [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:51]accept exits with 10 [09:25:51]New connection [09:25:51]New thread 3067346276 created [09:25:51]Thread 3067489636 joined [09:25:51]Waiting for new connection... [09:25:51] Sock 10.Parse request [09:25:51]Sock 10.Check first char [09:25:51]Sock 10.First char is OK [09:25:51]request: POST /json_proto HTTP/1.0 [09:25:51]Method: POST [09:25:51]URL: /json_proto [09:25:51]Method is POST - this is cgi request [09:25:51]url: /json_proto [09:25:51]query_string will be loaded in cgi processing [09:25:51]execute_cgi json_proto POST (null) [09:25:51]execute_cgi path=json_proto method=POST [09:25:51]POST find Content-Length [09:25:51]Host: 172.17.51.3:8080 [09:25:51]Content-Length: 682 [09:25:51]Content-Type: application/json [09:25:51] [09:25:51]POST finish read [09:25:51]Found Content-Length = 682 [09:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:51]execute_script... [09:25:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:51]POST & json_proto [09:25:51]process_json_proto [09:25:51]json parsed OK: [09:25:51]protocol is kg_v1.0 [09:25:51]action value=close_receipt [09:25:51]process_action close_receipt [09:25:51]cmd_close_receipt [09:25:51]MH_GetDate [09:25:51]Write to MH i2c: F0 00 00 26 2B 40 [09:25:51]Write i2c OK [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: F0 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: F0 09 00 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: F0 09 00 26 2B 00 23 1E 16 67 04 C1 95 66 C7 [09:25:51]GetLastDocTimeStamp 1729502528 [09:25:51]current date 1729502755 [09:25:51]FM_GetShiftState [09:25:51]SAM_PROTO_GetShiftState [09:25:51]wFMCommunicate request_size=4 [09:25:51]MH_SAM_APDU [09:25:51]CAPDU: 80 13 01 00 [09:25:51]Write to MH i2c: E2 08 00 27 2B 80 13 01 00 00 00 00 00 CF [09:25:51]Write i2c OK [09:25:51]MH_I2C_Read... [09:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:51]Read from MH i2c: E2 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: E2 0E 00 [09:25:51]MH_I2C_Read... [09:25:51]Read from MH i2c: E2 0E 00 27 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4B [09:25:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:25:51]wFMCommunicate OK [09:25:51]SAM_PROTO_GetShiftState done [09:25:51]FM_GetShiftState done [09:25:51]opened in 1729471058 [09:25:51]opened+sec_in_day 1729557458 [09:25:51]quantity*price = 200031 [09:25:51]sum+1 = 200032 [09:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 44 21.10.2024 09:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30547 ФПД: 208816782018485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092555&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30547&fm=208816782018485&tin=02508201610067®Number=0000000000186857&sum=200000 [09:25:52]StoreToDocumentArchive [09:25:52]shift 115 fd 30547 [09:25:52]save to /storage/0115/doc_00030547 [09:25:52]save last doc name /storage/0115/doc_00030547 to /storage/kkm_last_doc_name [09:25:52]save OK [09:25:52]Clear old archive folders... [09:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:52]tlvbuf is 01E277C0 [09:25:52]SAM_PROTO_ClearQueue [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 09 00 00 [09:25:52]Write to MH i2c: E2 08 00 34 2B 80 09 00 00 00 00 00 00 D1 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 34 2B 00 90 00 D3 [09:25:52]RAPDU: 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_ClearQueue done [09:25:52]KKMCreateOFDPacket [09:25:52]OFDProtocolAddRootSTLVToBuf [09:25:52]FM_MakeSignedData [09:25:52]FM_MakeSignedData [09:25:52]SAM_PROTO_SignData [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 0D 01 02 [09:25:52]Write to MH i2c: E2 08 00 35 2B 80 0D 01 02 00 00 00 00 D9 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 35 2B 00 90 00 D4 [09:25:52]RAPDU: 90 00 [09:25:52]wFMCommunicate OK [09:25:52]wFMCommunicate request_size=255 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 1E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 77 00 00 35 04 06 00 BD [09:25:52]Write to MH i2c: E2 02 01 36 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 1E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 77 00 00 35 04 06 00 BD 00 00 90 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]OFD Sender: No OFD packet to send [09:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 36 2B 00 90 00 D5 [09:25:52]RAPDU: 90 00 [09:25:52]wFMCommunicate OK [09:25:52]wFMCommunicate request_size=10 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 0D 02 02 05 EA F2 1D 87 B5 [09:25:52]Write to MH i2c: E2 0D 00 37 2B 80 0D 02 02 05 00 EA F2 1D 87 B5 00 00 1B [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 03 00 37 2B 00 90 00 D6 [09:25:52]RAPDU: 90 00 [09:25:52]wFMCommunicate OK [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 0D 03 02 [09:25:52]Write to MH i2c: E2 08 00 38 2B 80 0D 03 02 00 00 00 00 DE [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0B 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 0B 00 38 2B 00 83 9A 1B 50 CA 83 30 21 90 00 05 [09:25:52]RAPDU: 83 9A 1B 50 CA 83 30 21 90 00 [09:25:52]wFMCommunicate OK [09:25:52]SAM_PROTO_SignData done [09:25:52]FM_MakeSignedData done [09:25:52]CreateOFDProtocolMessage [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 11 00 00 [09:25:52]Write to MH i2c: E2 08 00 39 2B 80 11 00 00 00 00 00 00 DE [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:52]Read from MH i2c: E2 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 17 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: E2 17 00 39 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [09:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:25:52]wFMCommunicate OK [09:25:52]CreateOFDProtocolMessage done [09:25:52]OFDSenderStorePacket 30547 [09:25:52]StoreOFDPacket docnum=30547 [09:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 B6 07 01 38 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 1E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 77 00 00 35 04 06 00 BD EA F2 1D 87 B5 83 9A 1B 50 CA 83 30 21 [09:25:52]CheckFolder [09:25:52]dirname=/storage/ofd_packets [09:25:52]CheckFolder done [09:25:52]ProducePacketName [09:25:52]name=ofd_packets/00030547 [09:25:52]NVStorageSaveData ofd_packets/00030547 [09:25:52]File name is /storage/ofd_packets/00030547 [09:25:52]Write 301 bytes [09:25:52]NVStorageSaveData done [09:25:52]OFDSenderStorePacket done [09:25:52]KKMCreateOFDPacket done [09:25:52]NVStorageSaveData kkm_last_timestamp [09:25:52]File name is /storage/kkm_last_timestamp [09:25:52]Write 4 bytes [09:25:52]NVStorageSaveData done [09:25:52]ExternCall_PrintAddStr [09:25:52]wPrintStart [09:25:52]Write to MH i2c: 01 00 00 3A 2B 65 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: 01 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: 01 07 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: 01 07 00 3A 2B 00 00 00 00 00 FF 0F 7A [09:25:52]RasterBufferAndPrint [09:25:52]line Счет N : (1)342950 [09:25:52]line ИНН: 02508201610067 [09:25:52]line Контрольно-Кассовый Чек [09:25:52]line ПРОДАЖА [09:25:52]line ТРК (МРК, ГНК) : 53 [09:25:52]line Товар: 2710124130 [09:25:52]line Аи-92-К-2 [09:25:52]line 29.900 * 66.90 [09:25:52]line = 2000.31 [09:25:52]line НДС 12% НСП 1% [09:25:52]line > о реализуемом товаре [09:25:52]line ОКРУГЛЕНИЕ: -0.31 [09:25:52]line ИТОГО: 2000.00 [09:25:52]line Внесено: 2000.00 [09:25:52]line СДАЧА: 0.00 [09:25:52]line НСП 1% : 17.70 [09:25:52]line НДС 12% : 212.42 [09:25:52]line Наличными: 2000.00 [09:25:52]line Безнал.: 0.00 [09:25:52]line Место: АЗС № 78 "Партнер Нефть" [09:25:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:25:52]line СНО: Общий режим [09:25:52]line Чек 44 21.10.2024 09:25 [09:25:52]line Смена: 115 ФФД: 1.0 [09:25:52]line ЗНМ: 0300000137 [09:25:52]line РНМ: 0000000000186857 [09:25:52]line Версия ККМ: v1.0 [09:25:53]line ФМ: 0000000002094219 [09:25:53]line ФД: 30547 [09:25:53]line ФПД: 208816782018485 [09:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092555&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30547&fm=208816782018485&tin=02508201610067®Number=0000000000186857&sum=200000 [09:25:53]OFD Sender: Processing packet 30547 [packets to send 10, broken 9] [09:25:53]ProducePacketName [09:25:53]name=ofd_packets/00030547 [09:25:53]OFD Sender: To server: pG, [09:25:53]CommunicateWithHost lk.salyk.kg:30040 [09:25:53]ConnectInit lk.salyk.kg [09:25:53]written 0, free lines is 4095 [09:25:53]Connected sock=9 [09:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 B6 07 01 38 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 23 1E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 77 00 00 35 04 06 00 BD EA F2 1D 87 B5 83 9A 1B 50 CA 83 30 21 [09:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BF DC 47 00 7F D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 53 77 00 00 F4 03 04 00 A4 C8 15 67 B6 04 01 00 00 7D 09 DC 13 A5 71 73 3A [09:25:53]CommunicateWithHost err = 0 [09:25:53]CheckOFDResponse [09:25:53]1017 (14) - 77093643461234 [09:25:53]1041 (16) - 0000000002094219 [09:25:53]1040 (4) - 30547 [09:25:53]1012 (4) - 21.10.2024 03:21 [09:25:53]1206 (1) - 0 [09:25:53]OFD Sender: Remove packet 30547 [09:25:53]ProducePacketName [09:25:53]name=ofd_packets/00030547 [09:25:53]NVStorageDeleteData [09:25:53]Write to MH i2c: 01 00 00 65 2B 90 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: 01 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: 01 07 00 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: 01 07 00 65 2B 00 00 00 00 00 F5 0C 98 [09:25:53]RasterBufferAndPrint [09:25:53]line [09:25:53]line [09:25:53]line [09:25:53]line [09:25:53]line [09:25:53]written 0, free lines is 3323 [09:25:53]MH_Cut [09:25:53]Write to MH i2c: D1 01 00 6C 2B 01 69 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: D1 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: D1 01 00 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: D1 01 00 6C 2B 00 68 [09:25:53]Write to MH i2c: 01 00 00 6D 2B 98 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:54]OFD Sender: No OFD packet to send [09:25:54]*** Cut start [09:25:54]*** Partial cut [09:25:54]*** CUTSNS_PIN = 1 [09:25:54]*** CUTSNS_PIN = 0 [09:25:54]*** Brake cut motor [09:25:54]Read from MH i2c: 01 [09:25:54]MH_I2C_Read... [09:25:54]*** Stop cut motor [09:25:55]*** Cut end [09:25:55]Read from MH i2c: 01 07 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: 01 07 00 6D 2B 00 00 00 00 00 FF 0F AD [09:25:55]process_action close_receipt done [09:25:55]requested_data is exist [09:25:55]produce_requested_data [09:25:55]requested_item fm.sn is exist - process it [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 11 00 00 [09:25:55]Write to MH i2c: E2 08 00 6E 2B 80 11 00 00 00 00 00 00 13 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 17 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 17 00 6E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [09:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:25:55]wFMCommunicate OK [09:25:55]requested_item fd.num is exist - process it [09:25:55]SAM_PROTO_GetFieldsCounters [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 13 00 00 [09:25:55]Write to MH i2c: E2 08 00 6F 2B 80 13 00 00 00 00 00 00 16 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 62 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 62 00 6F 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 77 00 00 0E 04 04 00 73 00 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 FD [09:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 53 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:55]wFMCommunicate OK [09:25:55]SAM_PROTO_GetFieldsCounters done [09:25:55]requested_item shift.num is exist - process it [09:25:55]requested_item shift.opened is exist - process it [09:25:55]req_shift_opened [09:25:55]FM_GetShiftState [09:25:55]SAM_PROTO_GetShiftState [09:25:55]wFMCommunicate request_size=4 [09:25:55]MH_SAM_APDU [09:25:55]CAPDU: 80 13 01 00 [09:25:55]Write to MH i2c: E2 08 00 70 2B 80 13 01 00 00 00 00 00 18 [09:25:55]Write i2c OK [09:25:55]MH_I2C_Read... [09:25:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:55]Read from MH i2c: E2 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0E 00 [09:25:55]MH_I2C_Read... [09:25:55]Read from MH i2c: E2 0E 00 70 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 94 [09:25:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:25:55]wFMCommunicate OK [09:25:55]SAM_PROTO_GetShiftState done [09:25:55]FM_GetShiftState done [09:25:55]req_shift_opened done [09:25:55]requested_item shift.open_date is exist - process it [09:25:55]req_shift_open_date [09:25:55]req_shift_open_date done [09:25:55]produce_requested_data done [09:25:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30547,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:25:55]process_action_free close_receipt [09:25:55]json_value_free [09:25:55]json_value_free done [09:25:55]process_json_proto returns [09:25:55]Send response to host [09:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30547,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:25:55]free response buf [09:25:55]execute_script done [09:25:55]execute_script returns [09:25:55]free content buf [09:25:55]Sock 10.Close socket [09:25:55]Sock 10.Thread stoped [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:48]accept exits with 7 [09:33:48]New connection [09:33:48]New thread 3067489636 created [09:33:48]Thread 3067346276 joined [09:33:48]Waiting for new connection... [09:33:48] Sock 7.Parse request [09:33:48]Sock 7.Check first char [09:33:48]Sock 7.First char is OK [09:33:48]request: POST /json_proto HTTP/1.0 [09:33:48]Method: POST [09:33:48]URL: /json_proto [09:33:48]Method is POST - this is cgi request [09:33:48]url: /json_proto [09:33:48]query_string will be loaded in cgi processing [09:33:48]execute_cgi json_proto POST (null) [09:33:48]execute_cgi path=json_proto method=POST [09:33:48]POST find Content-Length [09:33:48]Host: 172.17.51.3:8080 [09:33:48]Content-Length: 677 [09:33:48]Content-Type: application/json [09:33:48] [09:33:48]POST finish read [09:33:48]Found Content-Length = 677 [09:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:48]execute_script... [09:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:48]POST & json_proto [09:33:48]process_json_proto [09:33:48]json parsed OK: [09:33:48]protocol is kg_v1.0 [09:33:48]action value=close_receipt [09:33:48]process_action close_receipt [09:33:48]cmd_close_receipt [09:33:48]MH_GetDate [09:33:48]Write to MH i2c: F0 00 00 71 2B 8B [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 09 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: F0 09 00 71 2B 00 00 20 16 67 04 C1 95 66 F1 [09:33:48]GetLastDocTimeStamp 1729502755 [09:33:48]current date 1729503232 [09:33:48]FM_GetShiftState [09:33:48]SAM_PROTO_GetShiftState [09:33:48]wFMCommunicate request_size=4 [09:33:48]MH_SAM_APDU [09:33:48]CAPDU: 80 13 01 00 [09:33:48]Write to MH i2c: E2 08 00 72 2B 80 13 01 00 00 00 00 00 1A [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0E 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0E 00 72 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 96 [09:33:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:33:48]wFMCommunicate OK [09:33:48]SAM_PROTO_GetShiftState done [09:33:48]FM_GetShiftState done [09:33:48]opened in 1729471058 [09:33:48]opened+sec_in_day 1729557458 [09:33:48]quantity*price = 27027 [09:33:48]sum+1 = 27029 [09:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 45 21.10.2024 09:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30548 ФПД: 279502746476649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30548&fm=279502746476649&tin=02508201610067®Number=0000000000186857&sum=27000 [09:33:49]StoreToDocumentArchive [09:33:49]shift 115 fd 30548 [09:33:49]save to /storage/0115/doc_00030548 [09:33:49]save last doc name /storage/0115/doc_00030548 to /storage/kkm_last_doc_name [09:33:49]save OK [09:33:49]Clear old archive folders... [09:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:49]tlvbuf is 01E55B50 [09:33:49]SAM_PROTO_ClearQueue [09:33:49]wFMCommunicate request_size=4 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 09 00 00 [09:33:49]Write to MH i2c: E2 08 00 7F 2B 80 09 00 00 00 00 00 00 1C [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 7F 2B 00 90 00 1E [09:33:50]RAPDU: 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_ClearQueue done [09:33:50]KKMCreateOFDPacket [09:33:50]OFDProtocolAddRootSTLVToBuf [09:33:50]FM_MakeSignedData [09:33:50]FM_MakeSignedData [09:33:50]SAM_PROTO_SignData [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 0D 01 02 [09:33:50]Write to MH i2c: E2 08 00 80 2B 80 0D 01 02 00 00 00 00 24 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 80 2B 00 90 00 1F [09:33:50]RAPDU: 90 00 [09:33:50]wFMCommunicate OK [09:33:50]wFMCommunicate request_size=255 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 00 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 77 00 00 35 04 06 00 FE [09:33:50]Write to MH i2c: E2 02 01 81 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 00 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 77 00 00 35 04 06 00 FE 00 00 38 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 81 2B 00 90 00 20 [09:33:50]RAPDU: 90 00 [09:33:50]wFMCommunicate OK [09:33:50]wFMCommunicate request_size=10 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 0D 02 02 05 34 CD EA E0 69 [09:33:50]Write to MH i2c: E2 0D 00 82 2B 80 0D 02 02 05 00 34 CD EA E0 69 00 00 65 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 03 00 82 2B 00 90 00 21 [09:33:50]RAPDU: 90 00 [09:33:50]wFMCommunicate OK [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 0D 03 02 [09:33:50]Write to MH i2c: E2 08 00 83 2B 80 0D 03 02 00 00 00 00 29 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0B 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0B 00 83 2B 00 AE 8F 6C D8 07 22 03 62 90 00 39 [09:33:50]RAPDU: AE 8F 6C D8 07 22 03 62 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_SignData done [09:33:50]FM_MakeSignedData done [09:33:50]CreateOFDProtocolMessage [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 11 00 00 [09:33:50]Write to MH i2c: E2 08 00 84 2B 80 11 00 00 00 00 00 00 29 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 84 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [09:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:50]wFMCommunicate OK [09:33:50]CreateOFDProtocolMessage done [09:33:50]OFDSenderStorePacket 30548 [09:33:50]StoreOFDPacket docnum=30548 [09:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FA 21 07 01 12 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 00 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 77 00 00 35 04 06 00 FE 34 CD EA E0 69 AE 8F 6C D8 07 22 03 62 [09:33:50]CheckFolder [09:33:50]dirname=/storage/ofd_packets [09:33:50]CheckFolder done [09:33:50]ProducePacketName [09:33:50]name=ofd_packets/00030548 [09:33:50]NVStorageSaveData ofd_packets/00030548 [09:33:50]File name is /storage/ofd_packets/00030548 [09:33:50]Write 301 bytes [09:33:50]NVStorageSaveData done [09:33:50]OFDSenderStorePacket done [09:33:50]KKMCreateOFDPacket done [09:33:50]NVStorageSaveData kkm_last_timestamp [09:33:50]File name is /storage/kkm_last_timestamp [09:33:50]Write 4 bytes [09:33:50]NVStorageSaveData done [09:33:50]ExternCall_PrintAddStr [09:33:50]wPrintStart [09:33:50]Write to MH i2c: 01 00 00 85 2B B0 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 85 2B 00 00 00 00 00 FF 0F C5 [09:33:50]RasterBufferAndPrint [09:33:50]line Счет N : (1)342952 [09:33:50]line ИНН: 02508201610067 [09:33:50]line Контрольно-Кассовый Чек [09:33:50]line ПРОДАЖА [09:33:50]line ТРК (МРК, ГНК) : 43 [09:33:50]line Товар: 2710124130 [09:33:50]line Аи-92-К-2 [09:33:50]line 4.040 * 66.90 [09:33:50]line = 270.28 [09:33:50]line НДС 12% НСП 1% [09:33:50]line > о реализуемом товаре [09:33:50]line ОКРУГЛЕНИЕ: -0.28 [09:33:50]line ИТОГО: 270.00 [09:33:50]line Внесено: 270.00 [09:33:50]line СДАЧА: 0.00 [09:33:50]line НСП 1% : 2.39 [09:33:50]line НДС 12% : 28.70 [09:33:50]line Наличными: 270.00 [09:33:50]line Безнал.: 0.00 [09:33:50]line Место: АЗС № 78 "Партнер Нефть" [09:33:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:33:50]line СНО: Общий режим [09:33:50]line Чек 45 21.10.2024 09:33 [09:33:50]line Смена: 115 ФФД: 1.0 [09:33:50]line ЗНМ: 0300000137 [09:33:50]line РНМ: 0000000000186857 [09:33:50]line Версия ККМ: v1.0 [09:33:50]line ФМ: 0000000002094219 [09:33:50]line ФД: 30548 [09:33:50]line ФПД: 279502746476649 [09:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30548&fm=279502746476649&tin=02508201610067®Number=0000000000186857&sum=27000 [09:33:50]OFD Sender: Processing packet 30548 [packets to send 10, broken 9] [09:33:50]ProducePacketName [09:33:50]name=ofd_packets/00030548 [09:33:50]OFD Sender: To server: pG, [09:33:50]CommunicateWithHost lk.salyk.kg:30040 [09:33:50]ConnectInit lk.salyk.kg [09:33:50]written 0, free lines is 4095 [09:33:50]Connected sock=10 [09:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FA 21 07 01 12 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 00 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 77 00 00 35 04 06 00 FE 34 CD EA E0 69 AE 8F 6C D8 07 22 03 62 [09:33:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9F 7D 47 00 ED 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 54 77 00 00 F4 03 04 00 82 CA 15 67 B6 04 01 00 00 BB EE 3B 5A 82 AB C3 A0 [09:33:51]CommunicateWithHost err = 0 [09:33:51]CheckOFDResponse [09:33:51]1017 (14) - 77093643461234 [09:33:51]1041 (16) - 0000000002094219 [09:33:51]1040 (4) - 30548 [09:33:51]1012 (4) - 21.10.2024 03:29 [09:33:51]1206 (1) - 0 [09:33:51]OFD Sender: Remove packet 30548 [09:33:51]ProducePacketName [09:33:51]name=ofd_packets/00030548 [09:33:51]NVStorageDeleteData [09:33:51]Write to MH i2c: 01 00 00 B0 2B DB [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: 01 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: 01 07 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: 01 07 00 B0 2B 00 00 00 00 00 F5 0C E3 [09:33:51]RasterBufferAndPrint [09:33:51]line [09:33:51]line [09:33:51]line [09:33:51]line [09:33:51]line [09:33:51]written 0, free lines is 3323 [09:33:51]MH_Cut [09:33:51]Write to MH i2c: D1 01 00 B7 2B 01 B4 [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: D1 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: D1 01 00 [09:33:51]MH_I2C_Read... [09:33:51]Read from MH i2c: D1 01 00 B7 2B 00 B3 [09:33:51]Write to MH i2c: 01 00 00 B8 2B E3 [09:33:51]Write i2c OK [09:33:51]MH_I2C_Read... [09:33:51]OFD Sender: No OFD packet to send [09:33:51]*** Cut start [09:33:51]*** Partial cut [09:33:51]*** CUTSNS_PIN = 1 [09:33:52]*** CUTSNS_PIN = 0 [09:33:52]*** Brake cut motor [09:33:52]Read from MH i2c: 01 [09:33:52]MH_I2C_Read... [09:33:52]*** Stop cut motor [09:33:52]*** Cut end [09:33:52]Read from MH i2c: 01 07 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: 01 07 00 B8 2B 00 00 00 00 00 FF 0F F8 [09:33:52]process_action close_receipt done [09:33:52]requested_data is exist [09:33:52]produce_requested_data [09:33:52]requested_item fm.sn is exist - process it [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 11 00 00 [09:33:52]Write to MH i2c: E2 08 00 B9 2B 80 11 00 00 00 00 00 00 5E [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 17 00 B9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [09:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:33:52]wFMCommunicate OK [09:33:52]requested_item fd.num is exist - process it [09:33:52]SAM_PROTO_GetFieldsCounters [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 00 00 [09:33:52]Write to MH i2c: E2 08 00 BA 2B 80 13 00 00 00 00 00 00 61 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 62 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 62 00 BA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 77 00 00 0E 04 04 00 73 00 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 4C [09:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 54 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetFieldsCounters done [09:33:52]requested_item shift.num is exist - process it [09:33:52]requested_item shift.opened is exist - process it [09:33:52]req_shift_opened [09:33:52]FM_GetShiftState [09:33:52]SAM_PROTO_GetShiftState [09:33:52]wFMCommunicate request_size=4 [09:33:52]MH_SAM_APDU [09:33:52]CAPDU: 80 13 01 00 [09:33:52]Write to MH i2c: E2 08 00 BB 2B 80 13 01 00 00 00 00 00 63 [09:33:52]Write i2c OK [09:33:52]MH_I2C_Read... [09:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:52]Read from MH i2c: E2 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 [09:33:52]MH_I2C_Read... [09:33:52]Read from MH i2c: E2 0E 00 BB 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DF [09:33:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:33:52]wFMCommunicate OK [09:33:52]SAM_PROTO_GetShiftState done [09:33:52]FM_GetShiftState done [09:33:52]req_shift_opened done [09:33:52]requested_item shift.open_date is exist - process it [09:33:52]req_shift_open_date [09:33:52]req_shift_open_date done [09:33:52]produce_requested_data done [09:33:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30548,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:33:52]process_action_free close_receipt [09:33:52]json_value_free [09:33:52]json_value_free done [09:33:52]process_json_proto returns [09:33:52]Send response to host [09:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30548,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:33:52]free response buf [09:33:52]execute_script done [09:33:52]execute_script returns [09:33:52]free content buf [09:33:52]Sock 7.Close socket [09:33:52]Sock 7.Thread stoped [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:41]OFD Sender: No OFD packet to send [09:34:46]OFD Sender: No OFD packet to send [09:34:51]OFD Sender: No OFD packet to send [09:34:56]OFD Sender: No OFD packet to send [09:35:01]OFD Sender: No OFD packet to send [09:35:06]OFD Sender: No OFD packet to send [09:35:11]OFD Sender: No OFD packet to send [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]accept exits with 9 [09:36:36]New connection [09:36:36]New thread 3067346276 created [09:36:36]Thread 3067489636 joined [09:36:36]Waiting for new connection... [09:36:36] Sock 9.Parse request [09:36:36]Sock 9.Check first char [09:36:36]Sock 9.First char is OK [09:36:36]request: POST /json_proto HTTP/1.0 [09:36:36]Method: POST [09:36:36]URL: /json_proto [09:36:36]Method is POST - this is cgi request [09:36:36]url: /json_proto [09:36:36]query_string will be loaded in cgi processing [09:36:36]execute_cgi json_proto POST (null) [09:36:36]execute_cgi path=json_proto method=POST [09:36:36]POST find Content-Length [09:36:36]Host: 172.17.51.3:8080 [09:36:36]Content-Length: 843 [09:36:36]Content-Type: application/json [09:36:36] [09:36:36]POST finish read [09:36:36]Found Content-Length = 843 [09:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:36]execute_script... [09:36:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:36]POST & json_proto [09:36:36]process_json_proto [09:36:36]json parsed OK: [09:36:36]protocol is kg_v1.0 [09:36:36]action value=close_receipt [09:36:36]process_action close_receipt [09:36:36]cmd_close_receipt [09:36:36]MH_GetDate [09:36:36]Write to MH i2c: F0 00 00 BC 2B D6 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: F0 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: F0 09 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: F0 09 00 BC 2B 00 A8 20 16 67 04 C1 95 66 E4 [09:36:36]GetLastDocTimeStamp 1729503232 [09:36:36]current date 1729503400 [09:36:36]FM_GetShiftState [09:36:36]SAM_PROTO_GetShiftState [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 13 01 00 [09:36:36]Write to MH i2c: E2 08 00 BD 2B 80 13 01 00 00 00 00 00 65 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0E 00 BD 2B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E1 [09:36:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_GetShiftState done [09:36:36]FM_GetShiftState done [09:36:36]opened in 1729471058 [09:36:36]opened+sec_in_day 1729557458 [09:36:36]quantity*price = 100015 [09:36:36]sum+1 = 100017 [09:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 46 21.10.2024 09:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30549 ФПД: 87192851149376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093640&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30549&fm=87192851149376&tin=02508201610067®Number=0000000000186857&sum=100016 [09:36:37]StoreToDocumentArchive [09:36:37]shift 115 fd 30549 [09:36:37]save to /storage/0115/doc_00030549 [09:36:37]save last doc name /storage/0115/doc_00030549 to /storage/kkm_last_doc_name [09:36:37]save OK [09:36:37]Clear old archive folders... [09:36:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:37]tlvbuf is 01E55D00 [09:36:37]SAM_PROTO_ClearQueue [09:36:37]wFMCommunicate request_size=4 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 09 00 00 [09:36:37]Write to MH i2c: E2 08 00 CA 2B 80 09 00 00 00 00 00 00 67 [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:37]Read from MH i2c: E2 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 CA 2B 00 90 00 69 [09:36:37]RAPDU: 90 00 [09:36:37]wFMCommunicate OK [09:36:37]SAM_PROTO_ClearQueue done [09:36:37]KKMCreateOFDPacket [09:36:37]OFDProtocolAddRootSTLVToBuf [09:36:37]FM_MakeSignedData [09:36:37]FM_MakeSignedData [09:36:37]SAM_PROTO_SignData [09:36:37]wFMCommunicate request_size=4 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 0D 01 02 [09:36:37]Write to MH i2c: E2 08 00 CB 2B 80 0D 01 02 00 00 00 00 6F [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:37]Read from MH i2c: E2 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 CB 2B 00 90 00 6A [09:36:37]RAPDU: 90 00 [09:36:37]wFMCommunicate OK [09:36:37]wFMCommunicate request_size=255 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A8 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 77 00 00 35 04 06 00 4F [09:36:37]Write to MH i2c: E2 02 01 CC 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A8 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 77 00 00 35 04 06 00 4F 00 00 1B [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:37]Read from MH i2c: E2 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 CC 2B 00 90 00 6B [09:36:37]RAPDU: 90 00 [09:36:37]wFMCommunicate OK [09:36:37]wFMCommunicate request_size=10 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 0D 02 02 05 4D 2A EB 72 40 [09:36:37]Write to MH i2c: E2 0D 00 CD 2B 80 0D 02 02 05 00 4D 2A EB 72 40 00 00 90 [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:37]Read from MH i2c: E2 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: E2 03 00 CD 2B 00 90 00 6C [09:36:37]RAPDU: 90 00 [09:36:37]wFMCommunicate OK [09:36:37]wFMCommunicate request_size=4 [09:36:37]MH_SAM_APDU [09:36:37]CAPDU: 80 0D 03 02 [09:36:37]Write to MH i2c: E2 08 00 CE 2B 80 0D 03 02 00 00 00 00 74 [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0B 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0B 00 CE 2B 00 92 71 09 F7 68 36 0C FA 90 00 1C [09:36:38]RAPDU: 92 71 09 F7 68 36 0C FA 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_SignData done [09:36:38]FM_MakeSignedData done [09:36:38]CreateOFDProtocolMessage [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 11 00 00 [09:36:38]Write to MH i2c: E2 08 00 CF 2B 80 11 00 00 00 00 00 00 74 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 17 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 17 00 CF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [09:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:36:38]wFMCommunicate OK [09:36:38]CreateOFDProtocolMessage done [09:36:38]OFDSenderStorePacket 30549 [09:36:38]StoreOFDPacket docnum=30549 [09:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4E ED 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A8 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 77 00 00 35 04 06 00 4F 4D 2A EB 72 40 92 71 09 F7 68 36 0C FA [09:36:38]CheckFolder [09:36:38]dirname=/storage/ofd_packets [09:36:38]CheckFolder done [09:36:38]ProducePacketName [09:36:38]name=ofd_packets/00030549 [09:36:38]NVStorageSaveData ofd_packets/00030549 [09:36:38]File name is /storage/ofd_packets/00030549 [09:36:38]Write 301 bytes [09:36:38]NVStorageSaveData done [09:36:38]OFDSenderStorePacket done [09:36:38]KKMCreateOFDPacket done [09:36:38]NVStorageSaveData kkm_last_timestamp [09:36:38]File name is /storage/kkm_last_timestamp [09:36:38]Write 4 bytes [09:36:38]NVStorageSaveData done [09:36:38]ExternCall_PrintAddStr [09:36:38]wPrintStart [09:36:38]Write to MH i2c: 01 00 00 D0 2B FB [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 07 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 07 00 D0 2B 00 00 00 00 00 FF 0F 10 [09:36:38]RasterBufferAndPrint [09:36:38]line Счет N : (1)342953 [09:36:38]line ИНН: 02508201610067 [09:36:38]line Контрольно-Кассовый Чек [09:36:38]line ПРОДАЖА [09:36:38]line ТРК (МРК, ГНК) : 53 [09:36:38]line Товар: 2710124130 [09:36:38]line Аи-92-К-2 [09:36:38]line 14.950 * 66.90 [09:36:38]line = 1000.16 [09:36:38]line НДС 12% НСП 1% [09:36:38]line > о реализуемом товаре [09:36:38]line ИТОГО: 1000.16 [09:36:38]line НСП 1% : 8.85 [09:36:38]line НДС 12% : 106.21 [09:36:38]line Наличными: 0.00 [09:36:38]line Безнал.: 1000.16 [09:36:38]line Место: АЗС № 78 "Партнер Нефть" [09:36:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:36:38]line СНО: Общий режим [09:36:38]line Чек 46 21.10.2024 09:36 [09:36:38]line Смена: 115 ФФД: 1.0 [09:36:38]line ЗНМ: 0300000137 [09:36:38]line РНМ: 0000000000186857 [09:36:38]line Версия ККМ: v1.0 [09:36:38]line Платежная система: АКБ Кыргызстан [09:36:38]line ФМ: 0000000002094219 [09:36:38]line ФД: 30549 [09:36:38]line ФПД: 87192851149376 [09:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093640&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30549&fm=87192851149376&tin=02508201610067®Number=0000000000186857&sum=100016 [09:36:38]OFD Sender: Processing packet 30549 [packets to send 10, broken 9] [09:36:38]ProducePacketName [09:36:38]name=ofd_packets/00030549 [09:36:38]OFD Sender: To server: pG, [09:36:38]CommunicateWithHost lk.salyk.kg:30040 [09:36:38]ConnectInit lk.salyk.kg [09:36:38]written 0, free lines is 4095 [09:36:38]Connected sock=10 [09:36:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4E ED 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A8 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 55 77 00 00 35 04 06 00 4F 4D 2A EB 72 40 92 71 09 F7 68 36 0C FA [09:36:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 52 31 47 00 CC 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 32 30 39 34 32 31 39 10 04 04 00 55 77 00 00 F4 03 04 00 29 CB 15 67 B6 04 01 00 00 DE 04 44 AC FB 4E 98 CA [09:36:38]CommunicateWithHost err = 0 [09:36:38]CheckOFDResponse [09:36:38]1017 (14) - 77093643461234 [09:36:38]1041 (16) - 0000000002094219 [09:36:38]1040 (4) - 30549 [09:36:38]1012 (4) - 21.10.2024 03:31 [09:36:38]1206 (1) - 0 [09:36:38]OFD Sender: Remove packet 30549 [09:36:38]ProducePacketName [09:36:38]name=ofd_packets/00030549 [09:36:38]NVStorageDeleteData [09:36:38]Write to MH i2c: 01 00 00 FA 2B 25 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 07 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 07 00 FA 2B 00 00 00 00 00 0B 0D 44 [09:36:38]RasterBufferAndPrint [09:36:38]line [09:36:38]line [09:36:38]line [09:36:38]line [09:36:38]line [09:36:38]written 0, free lines is 3345 [09:36:38]MH_Cut [09:36:38]Write to MH i2c: D1 01 00 01 2C 01 FF [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: D1 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: D1 01 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: D1 01 00 01 2C 00 FE [09:36:38]Write to MH i2c: 01 00 00 02 2C 2E [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:39]OFD Sender: No OFD packet to send [09:36:39]*** Cut start [09:36:39]*** Partial cut [09:36:39]*** CUTSNS_PIN = 1 [09:36:39]*** CUTSNS_PIN = 0 [09:36:39]*** Brake cut motor [09:36:40]Read from MH i2c: 01 [09:36:40]MH_I2C_Read... [09:36:40]*** Stop cut motor [09:36:40]*** Cut end [09:36:40]Read from MH i2c: 01 07 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: 01 07 00 02 2C 00 00 00 00 00 FF 0F 43 [09:36:40]process_action close_receipt done [09:36:40]requested_data is exist [09:36:40]produce_requested_data [09:36:40]requested_item fm.sn is exist - process it [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 11 00 00 [09:36:40]Write to MH i2c: E2 08 00 03 2C 80 11 00 00 00 00 00 00 A9 [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 17 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 17 00 03 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [09:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:36:40]wFMCommunicate OK [09:36:40]requested_item fd.num is exist - process it [09:36:40]SAM_PROTO_GetFieldsCounters [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 13 00 00 [09:36:40]Write to MH i2c: E2 08 00 04 2C 80 13 00 00 00 00 00 00 AC [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 62 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 62 00 04 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 77 00 00 0E 04 04 00 73 00 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 9B [09:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 55 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:40]wFMCommunicate OK [09:36:40]SAM_PROTO_GetFieldsCounters done [09:36:40]requested_item shift.num is exist - process it [09:36:40]requested_item shift.opened is exist - process it [09:36:40]req_shift_opened [09:36:40]FM_GetShiftState [09:36:40]SAM_PROTO_GetShiftState [09:36:40]wFMCommunicate request_size=4 [09:36:40]MH_SAM_APDU [09:36:40]CAPDU: 80 13 01 00 [09:36:40]Write to MH i2c: E2 08 00 05 2C 80 13 01 00 00 00 00 00 AE [09:36:40]Write i2c OK [09:36:40]MH_I2C_Read... [09:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:40]Read from MH i2c: E2 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 0E 00 [09:36:40]MH_I2C_Read... [09:36:40]Read from MH i2c: E2 0E 00 05 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2A [09:36:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:36:40]wFMCommunicate OK [09:36:40]SAM_PROTO_GetShiftState done [09:36:40]FM_GetShiftState done [09:36:40]req_shift_opened done [09:36:40]requested_item shift.open_date is exist - process it [09:36:40]req_shift_open_date [09:36:40]req_shift_open_date done [09:36:40]produce_requested_data done [09:36:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30549,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:36:40]process_action_free close_receipt [09:36:40]json_value_free [09:36:40]json_value_free done [09:36:40]process_json_proto returns [09:36:40]Send response to host [09:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30549,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:36:40]free response buf [09:36:40]execute_script done [09:36:40]execute_script returns [09:36:40]free content buf [09:36:40]Sock 9.Close socket [09:36:40]Sock 9.Thread stoped [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:30]accept exits with 7 [09:37:30]New connection [09:37:30]New thread 3067489636 created [09:37:30]Thread 3067346276 joined [09:37:30]Waiting for new connection... [09:37:30] Sock 7.Parse request [09:37:30]Sock 7.Check first char [09:37:30]Sock 7.First char is OK [09:37:30]request: POST /json_proto HTTP/1.0 [09:37:30]Method: POST [09:37:30]URL: /json_proto [09:37:30]Method is POST - this is cgi request [09:37:30]url: /json_proto [09:37:30]query_string will be loaded in cgi processing [09:37:30]execute_cgi json_proto POST (null) [09:37:30]execute_cgi path=json_proto method=POST [09:37:30]POST find Content-Length [09:37:30]Host: 172.17.51.3:8080 [09:37:30]Content-Length: 799 [09:37:30]Content-Type: application/json [09:37:30] [09:37:30]POST finish read [09:37:30]Found Content-Length = 799 [09:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:30]execute_script... [09:37:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865705", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:30]POST & json_proto [09:37:30]process_json_proto [09:37:30]json parsed OK: [09:37:30]protocol is kg_v1.0 [09:37:30]action value=close_receipt [09:37:30]process_action close_receipt [09:37:30]cmd_close_receipt [09:37:30]MH_GetDate [09:37:30]Write to MH i2c: F0 00 00 06 2C 21 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: F0 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: F0 09 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: F0 09 00 06 2C 00 DE 20 16 67 04 C1 95 66 65 [09:37:30]GetLastDocTimeStamp 1729503400 [09:37:30]current date 1729503454 [09:37:30]FM_GetShiftState [09:37:30]SAM_PROTO_GetShiftState [09:37:30]wFMCommunicate request_size=4 [09:37:30]MH_SAM_APDU [09:37:30]CAPDU: 80 13 01 00 [09:37:30]Write to MH i2c: E2 08 00 07 2C 80 13 01 00 00 00 00 00 B0 [09:37:30]Write i2c OK [09:37:30]MH_I2C_Read... [09:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:30]Read from MH i2c: E2 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 [09:37:30]MH_I2C_Read... [09:37:30]Read from MH i2c: E2 0E 00 07 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2C [09:37:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:37:30]wFMCommunicate OK [09:37:30]SAM_PROTO_GetShiftState done [09:37:30]FM_GetShiftState done [09:37:30]opened in 1729471058 [09:37:30]opened+sec_in_day 1729557458 [09:37:30]quantity*price = 0 [09:37:30]sum+1 = 1 [09:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 47 21.10.2024 09:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 4865705 ФМ: 0000000002094219 ФД: 30550 ФПД: 7685598024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093734&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30550&fm=7685598024&tin=02508201610067®Number=0000000000186857&sum=0 [09:37:31]StoreToDocumentArchive [09:37:31]shift 115 fd 30550 [09:37:31]save to /storage/0115/doc_00030550 [09:37:31]save last doc name /storage/0115/doc_00030550 to /storage/kkm_last_doc_name [09:37:31]save OK [09:37:31]Clear old archive folders... [09:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:31]tlvbuf is 01E7B510 [09:37:31]SAM_PROTO_ClearQueue [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 09 00 00 [09:37:31]Write to MH i2c: E2 08 00 14 2C 80 09 00 00 00 00 00 00 B2 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 03 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 03 00 14 2C 00 90 00 B4 [09:37:31]RAPDU: 90 00 [09:37:31]wFMCommunicate OK [09:37:31]SAM_PROTO_ClearQueue done [09:37:31]KKMCreateOFDPacket [09:37:31]OFDProtocolAddRootSTLVToBuf [09:37:31]FM_MakeSignedData [09:37:31]FM_MakeSignedData [09:37:31]SAM_PROTO_SignData [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 0D 01 02 [09:37:31]Write to MH i2c: E2 08 00 15 2C 80 0D 01 02 00 00 00 00 BA [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 03 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 03 00 15 2C 00 90 00 B5 [09:37:31]RAPDU: 90 00 [09:37:31]wFMCommunicate OK [09:37:31]wFMCommunicate request_size=255 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DE 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 77 00 00 35 04 06 00 00 [09:37:31]Write to MH i2c: E2 02 01 16 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DE 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 77 00 00 35 04 06 00 00 00 00 4B [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 16 2C 00 90 00 B6 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]wFMCommunicate request_size=10 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 0D 02 02 05 01 CA 18 EB 48 [09:37:32]Write to MH i2c: E2 0D 00 17 2C 80 0D 02 02 05 00 01 CA 18 EB 48 00 00 DD [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 17 2C 00 90 00 B7 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 0D 03 02 [09:37:32]Write to MH i2c: E2 08 00 18 2C 80 0D 03 02 00 00 00 00 BF [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 0B 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 0B 00 18 2C 00 EB 2A 1E 3A 50 2F 9C 73 90 00 BB [09:37:32]RAPDU: EB 2A 1E 3A 50 2F 9C 73 90 00 [09:37:32]wFMCommunicate OK [09:37:32]SAM_PROTO_SignData done [09:37:32]FM_MakeSignedData done [09:37:32]CreateOFDProtocolMessage [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 11 00 00 [09:37:32]Write to MH i2c: E2 08 00 19 2C 80 11 00 00 00 00 00 00 BF [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 19 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0D [09:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:32]wFMCommunicate OK [09:37:32]CreateOFDProtocolMessage done [09:37:32]OFDSenderStorePacket 30550 [09:37:32]StoreOFDPacket docnum=30550 [09:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 60 07 01 C9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DE 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 77 00 00 35 04 06 00 00 01 CA 18 EB 48 EB 2A 1E 3A 50 2F 9C 73 [09:37:32]CheckFolder [09:37:32]dirname=/storage/ofd_packets [09:37:32]CheckFolder done [09:37:32]ProducePacketName [09:37:32]name=ofd_packets/00030550 [09:37:32]NVStorageSaveData ofd_packets/00030550 [09:37:32]File name is /storage/ofd_packets/00030550 [09:37:32]Write 301 bytes [09:37:32]NVStorageSaveData done [09:37:32]OFDSenderStorePacket done [09:37:32]KKMCreateOFDPacket done [09:37:32]NVStorageSaveData kkm_last_timestamp [09:37:32]File name is /storage/kkm_last_timestamp [09:37:32]Write 4 bytes [09:37:32]NVStorageSaveData done [09:37:32]ExternCall_PrintAddStr [09:37:32]wPrintStart [09:37:32]Write to MH i2c: 01 00 00 1A 2C 46 [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 07 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 07 00 1A 2C 00 00 00 00 00 FF 0F 5B [09:37:32]RasterBufferAndPrint [09:37:32]line Счет N : (1)342954 [09:37:32]line ИНН: 02508201610067 [09:37:32]line Контрольно-Кассовый Чек [09:37:32]line ПРОДАЖА [09:37:32]line ТРК (МРК, ГНК) : 63 [09:37:32]line Товар: 2710124130 [09:37:32]line Аи-92-К-2 [09:37:32]line 5.000 * 0.00 [09:37:32]line = 0.00 [09:37:32]line НДС 12% НСП 1% [09:37:32]line > о реализуемом товаре [09:37:32]line ИТОГО: 0.00 [09:37:32]line НСП 1% : 0.00 [09:37:32]line НДС 12% : 0.00 [09:37:32]line Наличными: 0.00 [09:37:32]line Безнал.: 0.00 [09:37:32]line Место: АЗС № 78 "Партнер Нефть" [09:37:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:37:32]line СНО: Общий режим [09:37:32]line Чек 47 21.10.2024 09:37 [09:37:32]line Смена: 115 ФФД: 1.0 [09:37:32]line ЗНМ: 0300000137 [09:37:32]line РНМ: 0000000000186857 [09:37:32]line Версия ККМ: v1.0 [09:37:32]line Талоны: Топливные Талоны [09:37:32]line 4865705 [09:37:32]line ФМ: 0000000002094219 [09:37:32]line ФД: 30550 [09:37:32]line ФПД: 7685598024 [09:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093734&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30550&fm=7685598024&tin=02508201610067®Number=0000000000186857&sum=0 [09:37:32]OFD Sender: Processing packet 30550 [packets to send 10, broken 9] [09:37:32]ProducePacketName [09:37:32]name=ofd_packets/00030550 [09:37:32]OFD Sender: To server: pG, [09:37:32]CommunicateWithHost lk.salyk.kg:30040 [09:37:32]ConnectInit lk.salyk.kg [09:37:32]written 0, free lines is 4095 [09:37:32]Connected sock=10 [09:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 60 07 01 C9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 DE 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 77 00 00 35 04 06 00 00 01 CA 18 EB 48 EB 2A 1E 3A 50 2F 9C 73 [09:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AD 9B 47 00 47 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 56 77 00 00 F4 03 04 00 5F CB 15 67 B6 04 01 00 00 F8 EC 97 BA E5 72 B5 1E [09:37:32]CommunicateWithHost err = 0 [09:37:32]CheckOFDResponse [09:37:32]1017 (14) - 77093643461234 [09:37:32]1041 (16) - 0000000002094219 [09:37:32]1040 (4) - 30550 [09:37:32]1012 (4) - 21.10.2024 03:32 [09:37:32]1206 (1) - 0 [09:37:32]OFD Sender: Remove packet 30550 [09:37:32]ProducePacketName [09:37:32]name=ofd_packets/00030550 [09:37:32]NVStorageDeleteData [09:37:32]Write to MH i2c: 01 00 00 44 2C 70 [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 07 00 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 07 00 44 2C 00 00 00 00 00 FB 0C 7E [09:37:33]RasterBufferAndPrint [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]written 0, free lines is 3329 [09:37:33]MH_Cut [09:37:33]Write to MH i2c: D1 01 00 4B 2C 01 49 [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 01 00 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 01 00 4B 2C 00 48 [09:37:33]Write to MH i2c: 01 00 00 4C 2C 78 [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:33]OFD Sender: No OFD packet to send [09:37:33]*** Cut start [09:37:33]*** Partial cut [09:37:33]*** CUTSNS_PIN = 1 [09:37:33]*** CUTSNS_PIN = 0 [09:37:33]*** Brake cut motor [09:37:34]Read from MH i2c: 01 [09:37:34]MH_I2C_Read... [09:37:34]*** Stop cut motor [09:37:34]*** Cut end [09:37:34]Read from MH i2c: 01 07 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: 01 07 00 4C 2C 00 00 00 00 00 FF 0F 8D [09:37:34]process_action close_receipt done [09:37:34]requested_data is exist [09:37:34]produce_requested_data [09:37:34]requested_item fm.sn is exist - process it [09:37:34]wFMCommunicate request_size=4 [09:37:34]MH_SAM_APDU [09:37:34]CAPDU: 80 11 00 00 [09:37:34]Write to MH i2c: E2 08 00 4D 2C 80 11 00 00 00 00 00 00 F3 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:34]Read from MH i2c: E2 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 17 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 17 00 4D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [09:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:34]wFMCommunicate OK [09:37:34]requested_item fd.num is exist - process it [09:37:34]SAM_PROTO_GetFieldsCounters [09:37:34]wFMCommunicate request_size=4 [09:37:34]MH_SAM_APDU [09:37:34]CAPDU: 80 13 00 00 [09:37:34]Write to MH i2c: E2 08 00 4E 2C 80 13 00 00 00 00 00 00 F6 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:34]Read from MH i2c: E2 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 62 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 62 00 4E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [09:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 56 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:34]wFMCommunicate OK [09:37:34]SAM_PROTO_GetFieldsCounters done [09:37:34]requested_item shift.num is exist - process it [09:37:34]requested_item shift.opened is exist - process it [09:37:34]req_shift_opened [09:37:34]FM_GetShiftState [09:37:34]SAM_PROTO_GetShiftState [09:37:34]wFMCommunicate request_size=4 [09:37:34]MH_SAM_APDU [09:37:34]CAPDU: 80 13 01 00 [09:37:34]Write to MH i2c: E2 08 00 4F 2C 80 13 01 00 00 00 00 00 F8 [09:37:34]Write i2c OK [09:37:34]MH_I2C_Read... [09:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:34]Read from MH i2c: E2 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 0E 00 [09:37:34]MH_I2C_Read... [09:37:34]Read from MH i2c: E2 0E 00 4F 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 74 [09:37:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:37:34]wFMCommunicate OK [09:37:34]SAM_PROTO_GetShiftState done [09:37:34]FM_GetShiftState done [09:37:34]req_shift_opened done [09:37:34]requested_item shift.open_date is exist - process it [09:37:34]req_shift_open_date [09:37:34]req_shift_open_date done [09:37:34]produce_requested_data done [09:37:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30550,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:37:34]process_action_free close_receipt [09:37:34]json_value_free [09:37:34]json_value_free done [09:37:34]process_json_proto returns [09:37:34]Send response to host [09:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30550,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:37:34]free response buf [09:37:34]execute_script done [09:37:34]execute_script returns [09:37:34]free content buf [09:37:34]Sock 7.Close socket [09:37:34]Sock 7.Thread stoped [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:55]accept exits with 9 [09:37:55]New connection [09:37:55]New thread 3067346276 created [09:37:55]Thread 3067489636 joined [09:37:55]Waiting for new connection... [09:37:55] Sock 9.Parse request [09:37:55]Sock 9.Check first char [09:37:55]Sock 9.First char is OK [09:37:55]request: POST /json_proto HTTP/1.0 [09:37:55]Method: POST [09:37:55]URL: /json_proto [09:37:55]Method is POST - this is cgi request [09:37:55]url: /json_proto [09:37:55]query_string will be loaded in cgi processing [09:37:55]execute_cgi json_proto POST (null) [09:37:55]execute_cgi path=json_proto method=POST [09:37:55]POST find Content-Length [09:37:55]Host: 172.17.51.3:8080 [09:37:55]Content-Length: 677 [09:37:55]Content-Type: application/json [09:37:55] [09:37:55]POST finish read [09:37:55]Found Content-Length = 677 [09:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.530, "sum" : 570.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:55]execute_script... [09:37:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.530, "sum" : 570.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:55]POST & json_proto [09:37:55]process_json_proto [09:37:55]json parsed OK: [09:37:55]protocol is kg_v1.0 [09:37:55]action value=close_receipt [09:37:55]process_action close_receipt [09:37:55]cmd_close_receipt [09:37:55]MH_GetDate [09:37:55]Write to MH i2c: F0 00 00 50 2C 6B [09:37:55]Write i2c OK [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: F0 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: F0 09 00 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: F0 09 00 50 2C 00 F7 20 16 67 04 C1 95 66 C8 [09:37:55]GetLastDocTimeStamp 1729503454 [09:37:55]current date 1729503479 [09:37:55]FM_GetShiftState [09:37:55]SAM_PROTO_GetShiftState [09:37:55]wFMCommunicate request_size=4 [09:37:55]MH_SAM_APDU [09:37:55]CAPDU: 80 13 01 00 [09:37:55]Write to MH i2c: E2 08 00 51 2C 80 13 01 00 00 00 00 00 FA [09:37:55]Write i2c OK [09:37:55]MH_I2C_Read... [09:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:55]Read from MH i2c: E2 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: E2 0E 00 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: E2 0E 00 51 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 76 [09:37:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:37:55]wFMCommunicate OK [09:37:55]SAM_PROTO_GetShiftState done [09:37:55]FM_GetShiftState done [09:37:55]opened in 1729471058 [09:37:55]opened+sec_in_day 1729557458 [09:37:55]quantity*price = 57065 [09:37:55]sum+1 = 57067 [09:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.60 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 48 21.10.2024 09:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30551 ФПД: 149842015590563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093759&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30551&fm=149842015590563&tin=02508201610067®Number=0000000000186857&sum=57000 [09:37:56]StoreToDocumentArchive [09:37:56]shift 115 fd 30551 [09:37:56]save to /storage/0115/doc_00030551 [09:37:56]save last doc name /storage/0115/doc_00030551 to /storage/kkm_last_doc_name [09:37:56]save OK [09:37:56]Clear old archive folders... [09:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:56]tlvbuf is 01DB5F70 [09:37:56]SAM_PROTO_ClearQueue [09:37:56]wFMCommunicate request_size=4 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 09 00 00 [09:37:56]Write to MH i2c: E2 08 00 5E 2C 80 09 00 00 00 00 00 00 FC [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 5E 2C 00 90 00 FE [09:37:56]RAPDU: 90 00 [09:37:56]wFMCommunicate OK [09:37:56]SAM_PROTO_ClearQueue done [09:37:56]KKMCreateOFDPacket [09:37:56]OFDProtocolAddRootSTLVToBuf [09:37:56]FM_MakeSignedData [09:37:56]FM_MakeSignedData [09:37:56]SAM_PROTO_SignData [09:37:56]wFMCommunicate request_size=4 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 0D 01 02 [09:37:56]Write to MH i2c: E2 08 00 5F 2C 80 0D 01 02 00 00 00 00 04 [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 5F 2C 00 90 00 FF [09:37:56]RAPDU: 90 00 [09:37:56]wFMCommunicate OK [09:37:56]wFMCommunicate request_size=255 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 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 F7 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 77 00 00 35 04 06 00 88 [09:37:56]Write to MH i2c: E2 02 01 60 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 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 F7 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 77 00 00 35 04 06 00 88 00 00 DD [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 60 2C 00 90 00 00 [09:37:56]RAPDU: 90 00 [09:37:56]wFMCommunicate OK [09:37:56]wFMCommunicate request_size=10 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 0D 02 02 05 47 D0 1C 98 A3 [09:37:56]Write to MH i2c: E2 0D 00 61 2C 80 0D 02 02 05 00 47 D0 1C 98 A3 00 00 7F [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 03 00 61 2C 00 90 00 01 [09:37:56]RAPDU: 90 00 [09:37:56]wFMCommunicate OK [09:37:56]wFMCommunicate request_size=4 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 0D 03 02 [09:37:56]Write to MH i2c: E2 08 00 62 2C 80 0D 03 02 00 00 00 00 09 [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 0B 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 0B 00 62 2C 00 DC C1 08 0C 7E 85 2F 16 90 00 03 [09:37:56]RAPDU: DC C1 08 0C 7E 85 2F 16 90 00 [09:37:56]wFMCommunicate OK [09:37:56]SAM_PROTO_SignData done [09:37:56]FM_MakeSignedData done [09:37:56]CreateOFDProtocolMessage [09:37:56]wFMCommunicate request_size=4 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 11 00 00 [09:37:56]Write to MH i2c: E2 08 00 63 2C 80 11 00 00 00 00 00 00 09 [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:57]Read from MH i2c: E2 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: E2 17 00 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: E2 17 00 63 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 57 [09:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:57]wFMCommunicate OK [09:37:57]CreateOFDProtocolMessage done [09:37:57]OFDSenderStorePacket 30551 [09:37:57]StoreOFDPacket docnum=30551 [09:37:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5B FB 07 01 D0 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 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 F7 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 77 00 00 35 04 06 00 88 47 D0 1C 98 A3 DC C1 08 0C 7E 85 2F 16 [09:37:57]CheckFolder [09:37:57]dirname=/storage/ofd_packets [09:37:57]CheckFolder done [09:37:57]ProducePacketName [09:37:57]name=ofd_packets/00030551 [09:37:57]NVStorageSaveData ofd_packets/00030551 [09:37:57]File name is /storage/ofd_packets/00030551 [09:37:57]Write 301 bytes [09:37:57]NVStorageSaveData done [09:37:57]OFDSenderStorePacket done [09:37:57]KKMCreateOFDPacket done [09:37:57]NVStorageSaveData kkm_last_timestamp [09:37:57]File name is /storage/kkm_last_timestamp [09:37:57]Write 4 bytes [09:37:57]NVStorageSaveData done [09:37:57]ExternCall_PrintAddStr [09:37:57]wPrintStart [09:37:57]Write to MH i2c: 01 00 00 64 2C 90 [09:37:57]Write i2c OK [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 07 00 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 07 00 64 2C 00 00 00 00 00 FF 0F A5 [09:37:57]RasterBufferAndPrint [09:37:57]line Счет N : (1)342955 [09:37:57]line ИНН: 02508201610067 [09:37:57]line Контрольно-Кассовый Чек [09:37:57]line ПРОДАЖА [09:37:57]line ТРК (МРК, ГНК) : 63 [09:37:57]line Товар: 2710124130 [09:37:57]line Аи-92-К-2 [09:37:57]line 8.530 * 66.90 [09:37:57]line = 570.66 [09:37:57]line НДС 12% НСП 1% [09:37:57]line > о реализуемом товаре [09:37:57]line ОКРУГЛЕНИЕ: -0.66 [09:37:57]line ИТОГО: 570.00 [09:37:57]line Внесено: 570.00 [09:37:57]line СДАЧА: 0.00 [09:37:57]line НСП 1% : 5.05 [09:37:57]line НДС 12% : 60.60 [09:37:57]line Наличными: 570.00 [09:37:57]line Безнал.: 0.00 [09:37:57]line Место: АЗС № 78 "Партнер Нефть" [09:37:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:37:57]line СНО: Общий режим [09:37:57]line Чек 48 21.10.2024 09:37 [09:37:57]line Смена: 115 ФФД: 1.0 [09:37:57]line ЗНМ: 0300000137 [09:37:57]line РНМ: 0000000000186857 [09:37:57]line Версия ККМ: v1.0 [09:37:57]line ФМ: 0000000002094219 [09:37:57]line ФД: 30551 [09:37:57]line ФПД: 149842015590563 [09:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093759&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30551&fm=149842015590563&tin=02508201610067®Number=0000000000186857&sum=57000 [09:37:57]OFD Sender: Processing packet 30551 [packets to send 10, broken 9] [09:37:57]ProducePacketName [09:37:57]name=ofd_packets/00030551 [09:37:57]OFD Sender: To server: pG, [09:37:57]CommunicateWithHost lk.salyk.kg:30040 [09:37:57]ConnectInit lk.salyk.kg [09:37:57]written 0, free lines is 4095 [09:37:57]Connected sock=7 [09:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5B FB 07 01 D0 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 17 00 00 00 00 07 04 06 00 A8 DE 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 F7 20 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 77 00 00 35 04 06 00 88 47 D0 1C 98 A3 DC C1 08 0C 7E 85 2F 16 [09:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D0 62 47 00 07 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 57 77 00 00 F4 03 04 00 78 CB 15 67 B6 04 01 00 00 8A 89 E0 CC 51 07 D7 3D [09:37:57]CommunicateWithHost err = 0 [09:37:57]CheckOFDResponse [09:37:57]1017 (14) - 77093643461234 [09:37:57]1041 (16) - 0000000002094219 [09:37:57]1040 (4) - 30551 [09:37:57]1012 (4) - 21.10.2024 03:33 [09:37:57]1206 (1) - 0 [09:37:57]OFD Sender: Remove packet 30551 [09:37:57]ProducePacketName [09:37:57]name=ofd_packets/00030551 [09:37:57]NVStorageDeleteData [09:37:57]Write to MH i2c: 01 00 00 8F 2C BB [09:37:57]Write i2c OK [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 07 00 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: 01 07 00 8F 2C 00 00 00 00 00 FD 0C CB [09:37:57]RasterBufferAndPrint [09:37:57]line [09:37:57]line [09:37:57]line [09:37:57]line [09:37:57]line [09:37:57]written 0, free lines is 3331 [09:37:57]MH_Cut [09:37:57]Write to MH i2c: D1 01 00 96 2C 01 94 [09:37:57]Write i2c OK [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: D1 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: D1 01 00 [09:37:57]MH_I2C_Read... [09:37:57]Read from MH i2c: D1 01 00 96 2C 00 93 [09:37:57]Write to MH i2c: 01 00 00 97 2C C3 [09:37:57]Write i2c OK [09:37:57]MH_I2C_Read... [09:37:58]OFD Sender: No OFD packet to send [09:37:58]*** Cut start [09:37:58]*** Partial cut [09:37:58]*** CUTSNS_PIN = 1 [09:37:58]*** CUTSNS_PIN = 0 [09:37:58]*** Brake cut motor [09:37:59]Read from MH i2c: 01 [09:37:59]MH_I2C_Read... [09:37:59]*** Stop cut motor [09:37:59]*** Cut end [09:37:59]Read from MH i2c: 01 07 00 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: 01 07 00 97 2C 00 00 00 00 00 FF 0F D8 [09:37:59]process_action close_receipt done [09:37:59]requested_data is exist [09:37:59]produce_requested_data [09:37:59]requested_item fm.sn is exist - process it [09:37:59]wFMCommunicate request_size=4 [09:37:59]MH_SAM_APDU [09:37:59]CAPDU: 80 11 00 00 [09:37:59]Write to MH i2c: E2 08 00 98 2C 80 11 00 00 00 00 00 00 3E [09:37:59]Write i2c OK [09:37:59]MH_I2C_Read... [09:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:59]Read from MH i2c: E2 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 17 00 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 17 00 98 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [09:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:37:59]wFMCommunicate OK [09:37:59]requested_item fd.num is exist - process it [09:37:59]SAM_PROTO_GetFieldsCounters [09:37:59]wFMCommunicate request_size=4 [09:37:59]MH_SAM_APDU [09:37:59]CAPDU: 80 13 00 00 [09:37:59]Write to MH i2c: E2 08 00 99 2C 80 13 00 00 00 00 00 00 41 [09:37:59]Write i2c OK [09:37:59]MH_I2C_Read... [09:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:59]Read from MH i2c: E2 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 62 00 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 62 00 99 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 77 00 00 0E 04 04 00 73 00 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 38 [09:37:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 57 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:59]wFMCommunicate OK [09:37:59]SAM_PROTO_GetFieldsCounters done [09:37:59]requested_item shift.num is exist - process it [09:37:59]requested_item shift.opened is exist - process it [09:37:59]req_shift_opened [09:37:59]FM_GetShiftState [09:37:59]SAM_PROTO_GetShiftState [09:37:59]wFMCommunicate request_size=4 [09:37:59]MH_SAM_APDU [09:37:59]CAPDU: 80 13 01 00 [09:37:59]Write to MH i2c: E2 08 00 9A 2C 80 13 01 00 00 00 00 00 43 [09:37:59]Write i2c OK [09:37:59]MH_I2C_Read... [09:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:59]Read from MH i2c: E2 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 0E 00 [09:37:59]MH_I2C_Read... [09:37:59]Read from MH i2c: E2 0E 00 9A 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BF [09:37:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:37:59]wFMCommunicate OK [09:37:59]SAM_PROTO_GetShiftState done [09:37:59]FM_GetShiftState done [09:37:59]req_shift_opened done [09:37:59]requested_item shift.open_date is exist - process it [09:37:59]req_shift_open_date [09:37:59]req_shift_open_date done [09:37:59]produce_requested_data done [09:37:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30551,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:37:59]process_action_free close_receipt [09:37:59]json_value_free [09:37:59]json_value_free done [09:37:59]process_json_proto returns [09:37:59]Send response to host [09:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30551,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:37:59]free response buf [09:37:59]execute_script done [09:37:59]execute_script returns [09:37:59]free content buf [09:37:59]Sock 9.Close socket [09:37:59]Sock 9.Thread stoped [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:43]OFD Sender: No OFD packet to send [09:38:48]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:44]accept exits with 10 [09:39:44]New connection [09:39:44]New thread 3067489636 created [09:39:44]Thread 3067346276 joined [09:39:44]Waiting for new connection... [09:39:44] Sock 10.Parse request [09:39:44]Sock 10.Check first char [09:39:44]Sock 10.First char is OK [09:39:44]request: POST /json_proto HTTP/1.0 [09:39:44]Method: POST [09:39:44]URL: /json_proto [09:39:44]Method is POST - this is cgi request [09:39:44]url: /json_proto [09:39:44]query_string will be loaded in cgi processing [09:39:44]execute_cgi json_proto POST (null) [09:39:44]execute_cgi path=json_proto method=POST [09:39:44]POST find Content-Length [09:39:44]Host: 172.17.51.3:8080 [09:39:44]Content-Length: 677 [09:39:44]Content-Type: application/json [09:39:44] [09:39:44]POST finish read [09:39:44]Found Content-Length = 677 [09:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:44]execute_script... [09:39:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342957", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:44]POST & json_proto [09:39:44]process_json_proto [09:39:44]json parsed OK: [09:39:44]protocol is kg_v1.0 [09:39:44]action value=close_receipt [09:39:44]process_action close_receipt [09:39:44]cmd_close_receipt [09:39:44]MH_GetDate [09:39:44]Write to MH i2c: F0 00 00 9B 2C B6 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: F0 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: F0 09 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: F0 09 00 9B 2C 00 64 21 16 67 04 C1 95 66 81 [09:39:44]GetLastDocTimeStamp 1729503479 [09:39:44]current date 1729503588 [09:39:44]FM_GetShiftState [09:39:44]SAM_PROTO_GetShiftState [09:39:44]wFMCommunicate request_size=4 [09:39:44]MH_SAM_APDU [09:39:44]CAPDU: 80 13 01 00 [09:39:44]Write to MH i2c: E2 08 00 9C 2C 80 13 01 00 00 00 00 00 45 [09:39:44]Write i2c OK [09:39:44]MH_I2C_Read... [09:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:44]Read from MH i2c: E2 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 0E 00 [09:39:44]MH_I2C_Read... [09:39:44]Read from MH i2c: E2 0E 00 9C 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C1 [09:39:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:39:44]wFMCommunicate OK [09:39:44]SAM_PROTO_GetShiftState done [09:39:44]FM_GetShiftState done [09:39:44]opened in 1729471058 [09:39:44]opened+sec_in_day 1729557458 [09:39:44]quantity*price = 50041 [09:39:44]sum+1 = 50042 [09:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 49 21.10.2024 09:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30552 ФПД: 182633425906515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093948&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30552&fm=182633425906515&tin=02508201610067®Number=0000000000186857&sum=50000 [09:39:45]StoreToDocumentArchive [09:39:45]shift 115 fd 30552 [09:39:45]save to /storage/0115/doc_00030552 [09:39:45]save last doc name /storage/0115/doc_00030552 to /storage/kkm_last_doc_name [09:39:45]save OK [09:39:45]Clear old archive folders... [09:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:45]tlvbuf is 01DB60B0 [09:39:45]SAM_PROTO_ClearQueue [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 09 00 00 [09:39:45]Write to MH i2c: E2 08 00 A9 2C 80 09 00 00 00 00 00 00 47 [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 A9 2C 00 90 00 49 [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]SAM_PROTO_ClearQueue done [09:39:45]KKMCreateOFDPacket [09:39:45]OFDProtocolAddRootSTLVToBuf [09:39:45]FM_MakeSignedData [09:39:45]FM_MakeSignedData [09:39:45]SAM_PROTO_SignData [09:39:45]wFMCommunicate request_size=4 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 01 02 [09:39:45]Write to MH i2c: E2 08 00 AA 2C 80 0D 01 02 00 00 00 00 4F [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:45]Read from MH i2c: E2 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 [09:39:45]MH_I2C_Read... [09:39:45]Read from MH i2c: E2 03 00 AA 2C 00 90 00 4A [09:39:45]RAPDU: 90 00 [09:39:45]wFMCommunicate OK [09:39:45]wFMCommunicate request_size=255 [09:39:45]MH_SAM_APDU [09:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 21 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 77 00 00 35 04 06 00 A6 [09:39:45]Write to MH i2c: E2 02 01 AB 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 21 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 77 00 00 35 04 06 00 A6 00 00 FB [09:39:45]Write i2c OK [09:39:45]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 AB 2C 00 90 00 4B [09:39:46]RAPDU: 90 00 [09:39:46]wFMCommunicate OK [09:39:46]wFMCommunicate request_size=10 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 0D 02 02 05 1A A8 79 AB 53 [09:39:46]Write to MH i2c: E2 0D 00 AC 2C 80 0D 02 02 05 00 1A A8 79 AB 53 00 00 95 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 03 00 AC 2C 00 90 00 4C [09:39:46]RAPDU: 90 00 [09:39:46]wFMCommunicate OK [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 0D 03 02 [09:39:46]Write to MH i2c: E2 08 00 AD 2C 80 0D 03 02 00 00 00 00 54 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0B 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 0B 00 AD 2C 00 43 2C 8D F6 F9 BD 3A 8F 90 00 C6 [09:39:46]RAPDU: 43 2C 8D F6 F9 BD 3A 8F 90 00 [09:39:46]wFMCommunicate OK [09:39:46]SAM_PROTO_SignData done [09:39:46]FM_MakeSignedData done [09:39:46]CreateOFDProtocolMessage [09:39:46]wFMCommunicate request_size=4 [09:39:46]MH_SAM_APDU [09:39:46]CAPDU: 80 11 00 00 [09:39:46]Write to MH i2c: E2 08 00 AE 2C 80 11 00 00 00 00 00 00 54 [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:46]Read from MH i2c: E2 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 17 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: E2 17 00 AE 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A2 [09:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:39:46]wFMCommunicate OK [09:39:46]CreateOFDProtocolMessage done [09:39:46]OFDSenderStorePacket 30552 [09:39:46]StoreOFDPacket docnum=30552 [09:39:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 76 07 01 4A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 21 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 77 00 00 35 04 06 00 A6 1A A8 79 AB 53 43 2C 8D F6 F9 BD 3A 8F [09:39:46]CheckFolder [09:39:46]dirname=/storage/ofd_packets [09:39:46]CheckFolder done [09:39:46]ProducePacketName [09:39:46]name=ofd_packets/00030552 [09:39:46]NVStorageSaveData ofd_packets/00030552 [09:39:46]File name is /storage/ofd_packets/00030552 [09:39:46]Write 301 bytes [09:39:46]NVStorageSaveData done [09:39:46]OFDSenderStorePacket done [09:39:46]KKMCreateOFDPacket done [09:39:46]NVStorageSaveData kkm_last_timestamp [09:39:46]File name is /storage/kkm_last_timestamp [09:39:46]Write 4 bytes [09:39:46]NVStorageSaveData done [09:39:46]ExternCall_PrintAddStr [09:39:46]wPrintStart [09:39:46]Write to MH i2c: 01 00 00 AF 2C DB [09:39:46]Write i2c OK [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 07 00 [09:39:46]MH_I2C_Read... [09:39:46]Read from MH i2c: 01 07 00 AF 2C 00 00 00 00 00 FF 0F F0 [09:39:46]RasterBufferAndPrint [09:39:46]line Счет N : (1)342957 [09:39:46]line ИНН: 02508201610067 [09:39:46]line Контрольно-Кассовый Чек [09:39:46]line ПРОДАЖА [09:39:46]line ТРК (МРК, ГНК) : 53 [09:39:46]line Товар: 2710124130 [09:39:46]line Аи-92-К-2 [09:39:46]line 7.480 * 66.90 [09:39:46]line = 500.41 [09:39:46]line НДС 12% НСП 1% [09:39:46]line > о реализуемом товаре [09:39:46]line ОКРУГЛЕНИЕ: -0.41 [09:39:46]line ИТОГО: 500.00 [09:39:46]line Внесено: 500.00 [09:39:46]line СДАЧА: 0.00 [09:39:46]line НСП 1% : 4.43 [09:39:46]line НДС 12% : 53.14 [09:39:46]line Наличными: 500.00 [09:39:46]line Безнал.: 0.00 [09:39:46]line Место: АЗС № 78 "Партнер Нефть" [09:39:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:39:46]line СНО: Общий режим [09:39:46]line Чек 49 21.10.2024 09:39 [09:39:46]line Смена: 115 ФФД: 1.0 [09:39:46]line ЗНМ: 0300000137 [09:39:46]line РНМ: 0000000000186857 [09:39:46]line Версия ККМ: v1.0 [09:39:46]line ФМ: 0000000002094219 [09:39:46]line ФД: 30552 [09:39:46]line ФПД: 182633425906515 [09:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093948&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30552&fm=182633425906515&tin=02508201610067®Number=0000000000186857&sum=50000 [09:39:46]OFD Sender: Processing packet 30552 [packets to send 10, broken 9] [09:39:46]ProducePacketName [09:39:46]name=ofd_packets/00030552 [09:39:46]OFD Sender: To server: pG, [09:39:46]CommunicateWithHost lk.salyk.kg:30040 [09:39:46]ConnectInit lk.salyk.kg [09:39:46]written 0, free lines is 4095 [09:39:46]Connected sock=9 [09:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1C 76 07 01 4A 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 64 21 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 77 00 00 35 04 06 00 A6 1A A8 79 AB 53 43 2C 8D F6 F9 BD 3A 8F [09:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A9 6A 47 00 47 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 58 77 00 00 F4 03 04 00 E5 CB 15 67 B6 04 01 00 00 53 8D D8 B8 D4 A9 03 C9 [09:39:46]CommunicateWithHost err = 0 [09:39:46]CheckOFDResponse [09:39:46]1017 (14) - 77093643461234 [09:39:46]1041 (16) - 0000000002094219 [09:39:46]1040 (4) - 30552 [09:39:46]1012 (4) - 21.10.2024 03:35 [09:39:46]1206 (1) - 0 [09:39:46]OFD Sender: Remove packet 30552 [09:39:46]ProducePacketName [09:39:46]name=ofd_packets/00030552 [09:39:46]NVStorageDeleteData [09:39:47]Write to MH i2c: 01 00 00 DA 2C 06 [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: 01 07 00 DA 2C 00 00 00 00 00 ED 0C 06 [09:39:47]RasterBufferAndPrint [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]line [09:39:47]written 0, free lines is 3315 [09:39:47]MH_Cut [09:39:47]Write to MH i2c: D1 01 00 E1 2C 01 DF [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: D1 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: D1 01 00 [09:39:47]MH_I2C_Read... [09:39:47]Read from MH i2c: D1 01 00 E1 2C 00 DE [09:39:47]Write to MH i2c: 01 00 00 E2 2C 0E [09:39:47]Write i2c OK [09:39:47]MH_I2C_Read... [09:39:47]OFD Sender: No OFD packet to send [09:39:47]*** Cut start [09:39:47]*** Partial cut [09:39:47]*** CUTSNS_PIN = 1 [09:39:47]*** CUTSNS_PIN = 0 [09:39:47]*** Brake cut motor [09:39:48]Read from MH i2c: 01 [09:39:48]MH_I2C_Read... [09:39:48]*** Stop cut motor [09:39:48]*** Cut end [09:39:48]Read from MH i2c: 01 07 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: 01 07 00 E2 2C 00 00 00 00 00 FF 0F 23 [09:39:48]process_action close_receipt done [09:39:48]requested_data is exist [09:39:48]produce_requested_data [09:39:48]requested_item fm.sn is exist - process it [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 11 00 00 [09:39:48]Write to MH i2c: E2 08 00 E3 2C 80 11 00 00 00 00 00 00 89 [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 17 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 17 00 E3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D7 [09:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:39:48]wFMCommunicate OK [09:39:48]requested_item fd.num is exist - process it [09:39:48]SAM_PROTO_GetFieldsCounters [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 13 00 00 [09:39:48]Write to MH i2c: E2 08 00 E4 2C 80 13 00 00 00 00 00 00 8C [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 62 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 62 00 E4 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 77 00 00 0E 04 04 00 73 00 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 87 [09:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 58 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:48]wFMCommunicate OK [09:39:48]SAM_PROTO_GetFieldsCounters done [09:39:48]requested_item shift.num is exist - process it [09:39:48]requested_item shift.opened is exist - process it [09:39:48]req_shift_opened [09:39:48]FM_GetShiftState [09:39:48]SAM_PROTO_GetShiftState [09:39:48]wFMCommunicate request_size=4 [09:39:48]MH_SAM_APDU [09:39:48]CAPDU: 80 13 01 00 [09:39:48]Write to MH i2c: E2 08 00 E5 2C 80 13 01 00 00 00 00 00 8E [09:39:48]Write i2c OK [09:39:48]MH_I2C_Read... [09:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:48]Read from MH i2c: E2 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 0E 00 [09:39:48]MH_I2C_Read... [09:39:48]Read from MH i2c: E2 0E 00 E5 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0A [09:39:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:39:48]wFMCommunicate OK [09:39:48]SAM_PROTO_GetShiftState done [09:39:48]FM_GetShiftState done [09:39:48]req_shift_opened done [09:39:48]requested_item shift.open_date is exist - process it [09:39:48]req_shift_open_date [09:39:48]req_shift_open_date done [09:39:48]produce_requested_data done [09:39:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30552,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:39:48]process_action_free close_receipt [09:39:48]json_value_free [09:39:48]json_value_free done [09:39:48]process_json_proto returns [09:39:48]Send response to host [09:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30552,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:39:48]free response buf [09:39:48]execute_script done [09:39:48]execute_script returns [09:39:48]free content buf [09:39:48]Sock 10.Close socket [09:39:48]Sock 10.Thread stoped [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:22]OFD Sender: No OFD packet to send [09:44:27]OFD Sender: No OFD packet to send [09:44:32]OFD Sender: No OFD packet to send [09:44:37]OFD Sender: No OFD packet to send [09:44:42]OFD Sender: No OFD packet to send [09:44:47]OFD Sender: No OFD packet to send [09:44:51]accept exits with 7 [09:44:51]New connection [09:44:51]New thread 3067346276 created [09:44:51]Thread 3067489636 joined [09:44:51]Waiting for new connection... [09:44:51] Sock 7.Parse request [09:44:51]Sock 7.Check first char [09:44:51]Sock 7.First char is OK [09:44:51]request: POST /json_proto HTTP/1.0 [09:44:51]Method: POST [09:44:51]URL: /json_proto [09:44:51]Method is POST - this is cgi request [09:44:51]url: /json_proto [09:44:51]query_string will be loaded in cgi processing [09:44:51]execute_cgi json_proto POST (null) [09:44:51]execute_cgi path=json_proto method=POST [09:44:51]POST find Content-Length [09:44:51]Host: 172.17.51.3:8080 [09:44:51]Content-Length: 751 [09:44:51]Content-Type: application/json [09:44:51] [09:44:51]POST finish read [09:44:51]Found Content-Length = 751 [09:44:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A03523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:51]execute_script... [09:44:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A03523", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:51]POST & json_proto [09:44:51]process_json_proto [09:44:51]json parsed OK: [09:44:51]protocol is kg_v1.0 [09:44:51]action value=close_receipt [09:44:51]process_action close_receipt [09:44:51]cmd_close_receipt [09:44:51]MH_GetDate [09:44:51]Write to MH i2c: F0 00 00 E6 2C 01 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: F0 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: F0 09 00 [09:44:51]MH_I2C_Read... [09:44:51]Read from MH i2c: F0 09 00 E6 2C 00 98 22 16 67 04 C1 95 66 01 [09:44:51]GetLastDocTimeStamp 1729503588 [09:44:51]current date 1729503896 [09:44:51]FM_GetShiftState [09:44:51]SAM_PROTO_GetShiftState [09:44:51]wFMCommunicate request_size=4 [09:44:51]MH_SAM_APDU [09:44:51]CAPDU: 80 13 01 00 [09:44:51]Write to MH i2c: E2 08 00 E7 2C 80 13 01 00 00 00 00 00 90 [09:44:51]Write i2c OK [09:44:51]MH_I2C_Read... [09:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:52]Read from MH i2c: E2 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 [09:44:52]MH_I2C_Read... [09:44:52]Read from MH i2c: E2 0E 00 E7 2C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0C [09:44:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:44:52]wFMCommunicate OK [09:44:52]SAM_PROTO_GetShiftState done [09:44:52]FM_GetShiftState done [09:44:52]opened in 1729471058 [09:44:52]opened+sec_in_day 1729557458 [09:44:52]quantity*price = 0 [09:44:52]sum+1 = 1 [09:44:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 50 21.10.2024 09:44 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 03523 ФМ: 0000000002094219 ФД: 30553 ФПД: 254725451809909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094456&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30553&fm=254725451809909&tin=02508201610067®Number=0000000000186857&sum=0 [09:44:53]StoreToDocumentArchive [09:44:53]shift 115 fd 30553 [09:44:53]save to /storage/0115/doc_00030553 [09:44:53]save last doc name /storage/0115/doc_00030553 to /storage/kkm_last_doc_name [09:44:53]save OK [09:44:53]Clear old archive folders... [09:44:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:53]tlvbuf is 01E2B010 [09:44:53]SAM_PROTO_ClearQueue [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 09 00 00 [09:44:53]Write to MH i2c: E2 08 00 F4 2C 80 09 00 00 00 00 00 00 92 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 F4 2C 00 90 00 94 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_ClearQueue done [09:44:53]KKMCreateOFDPacket [09:44:53]OFDProtocolAddRootSTLVToBuf [09:44:53]FM_MakeSignedData [09:44:53]FM_MakeSignedData [09:44:53]SAM_PROTO_SignData [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 01 02 [09:44:53]Write to MH i2c: E2 08 00 F5 2C 80 0D 01 02 00 00 00 00 9A [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 F5 2C 00 90 00 95 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=255 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 22 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 77 00 00 35 04 06 00 E7 [09:44:53]Write to MH i2c: E2 02 01 F6 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 22 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 77 00 00 35 04 06 00 E7 00 00 A7 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 F6 2C 00 90 00 96 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=10 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 02 02 05 AB E4 12 04 75 [09:44:53]Write to MH i2c: E2 0D 00 F7 2C 80 0D 02 02 05 00 AB E4 12 04 75 00 00 C1 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 03 00 F7 2C 00 90 00 97 [09:44:53]RAPDU: 90 00 [09:44:53]wFMCommunicate OK [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 0D 03 02 [09:44:53]Write to MH i2c: E2 08 00 F8 2C 80 0D 03 02 00 00 00 00 9F [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0B 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 0B 00 F8 2C 00 4E FC 75 CE A6 A6 E4 76 90 00 D3 [09:44:53]RAPDU: 4E FC 75 CE A6 A6 E4 76 90 00 [09:44:53]wFMCommunicate OK [09:44:53]SAM_PROTO_SignData done [09:44:53]FM_MakeSignedData done [09:44:53]CreateOFDProtocolMessage [09:44:53]wFMCommunicate request_size=4 [09:44:53]MH_SAM_APDU [09:44:53]CAPDU: 80 11 00 00 [09:44:53]Write to MH i2c: E2 08 00 F9 2C 80 11 00 00 00 00 00 00 9F [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:53]Read from MH i2c: E2 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: E2 17 00 F9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 ED [09:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:53]wFMCommunicate OK [09:44:53]CreateOFDProtocolMessage done [09:44:53]OFDSenderStorePacket 30553 [09:44:53]StoreOFDPacket docnum=30553 [09:44:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F3 5A 07 01 91 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 22 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 77 00 00 35 04 06 00 E7 AB E4 12 04 75 4E FC 75 CE A6 A6 E4 76 [09:44:53]CheckFolder [09:44:53]dirname=/storage/ofd_packets [09:44:53]CheckFolder done [09:44:53]ProducePacketName [09:44:53]name=ofd_packets/00030553 [09:44:53]NVStorageSaveData ofd_packets/00030553 [09:44:53]File name is /storage/ofd_packets/00030553 [09:44:53]Write 301 bytes [09:44:53]NVStorageSaveData done [09:44:53]OFDSenderStorePacket done [09:44:53]KKMCreateOFDPacket done [09:44:53]NVStorageSaveData kkm_last_timestamp [09:44:53]File name is /storage/kkm_last_timestamp [09:44:53]Write 4 bytes [09:44:53]NVStorageSaveData done [09:44:53]ExternCall_PrintAddStr [09:44:53]wPrintStart [09:44:53]Write to MH i2c: 01 00 00 FA 2C 26 [09:44:53]Write i2c OK [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 07 00 [09:44:53]MH_I2C_Read... [09:44:53]Read from MH i2c: 01 07 00 FA 2C 00 00 00 00 00 FF 0F 3B [09:44:53]RasterBufferAndPrint [09:44:53]line Счет N : (1)342958 [09:44:53]line ИНН: 02508201610067 [09:44:53]line Контрольно-Кассовый Чек [09:44:53]line ПРОДАЖА [09:44:53]line ТРК (МРК, ГНК) : 43 [09:44:53]line Товар: 2710124130 [09:44:53]line Аи-92-К-2 [09:44:53]line 20.000 * 0.00 [09:44:53]line = 0.00 [09:44:53]line НДС 12% НСП 1% [09:44:53]line > о реализуемом товаре [09:44:53]line ИТОГО: 0.00 [09:44:53]line НСП 1% : 0.00 [09:44:53]line НДС 12% : 0.00 [09:44:53]line Наличными: 0.00 [09:44:53]line Безнал.: 0.00 [09:44:53]line Место: АЗС № 78 "Партнер Нефть" [09:44:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:44:53]line СНО: Общий режим [09:44:53]line Чек 50 21.10.2024 09:44 [09:44:53]line Смена: 115 ФФД: 1.0 [09:44:53]line ЗНМ: 0300000137 [09:44:53]line РНМ: 0000000000186857 [09:44:53]line Версия ККМ: v1.0 [09:44:53]line Талоны: ТК ГПНА Online [09:44:53]line 03523 [09:44:53]line ФМ: 0000000002094219 [09:44:53]line ФД: 30553 [09:44:53]line ФПД: 254725451809909 [09:44:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094456&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30553&fm=254725451809909&tin=02508201610067®Number=0000000000186857&sum=0 [09:44:53]OFD Sender: Processing packet 30553 [packets to send 10, broken 9] [09:44:53]ProducePacketName [09:44:53]name=ofd_packets/00030553 [09:44:53]OFD Sender: To server: pG, [09:44:53]CommunicateWithHost lk.salyk.kg:30040 [09:44:53]ConnectInit lk.salyk.kg [09:44:53]written 0, free lines is 4095 [09:44:54]Connected sock=10 [09:44:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F3 5A 07 01 91 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 98 22 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 77 00 00 35 04 06 00 E7 AB E4 12 04 75 4E FC 75 CE A6 A6 E4 76 [09:44:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2C 51 47 00 08 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 59 77 00 00 F4 03 04 00 19 CD 15 67 B6 04 01 00 00 22 BF E2 58 02 6E 19 40 [09:44:54]CommunicateWithHost err = 0 [09:44:54]CheckOFDResponse [09:44:54]1017 (14) - 77093643461234 [09:44:54]1041 (16) - 0000000002094219 [09:44:54]1040 (4) - 30553 [09:44:54]1012 (4) - 21.10.2024 03:40 [09:44:54]1206 (1) - 0 [09:44:54]OFD Sender: Remove packet 30553 [09:44:54]ProducePacketName [09:44:54]name=ofd_packets/00030553 [09:44:54]NVStorageDeleteData [09:44:54]Write to MH i2c: 01 00 00 24 2D 51 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 07 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 FC 0C 60 [09:44:54]RasterBufferAndPrint [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]line [09:44:54]written 0, free lines is 3330 [09:44:54]MH_Cut [09:44:54]Write to MH i2c: D1 01 00 2B 2D 01 2A [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 01 00 [09:44:54]MH_I2C_Read... [09:44:54]Read from MH i2c: D1 01 00 2B 2D 00 29 [09:44:54]Write to MH i2c: 01 00 00 2C 2D 59 [09:44:54]Write i2c OK [09:44:54]MH_I2C_Read... [09:44:54]OFD Sender: No OFD packet to send [09:44:55]*** Cut start [09:44:55]*** Partial cut [09:44:55]*** CUTSNS_PIN = 1 [09:44:55]*** CUTSNS_PIN = 0 [09:44:55]*** Brake cut motor [09:44:55]Read from MH i2c: 01 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: 01 07 00 [09:44:55]MH_I2C_Read... [09:44:55]*** Stop cut motor [09:44:55]*** Cut end [09:44:55]Read from MH i2c: 01 07 00 2C 2D 00 00 00 00 00 FF 0F 6E [09:44:55]process_action close_receipt done [09:44:55]requested_data is exist [09:44:55]produce_requested_data [09:44:55]requested_item fm.sn is exist - process it [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 11 00 00 [09:44:55]Write to MH i2c: E2 08 00 2D 2D 80 11 00 00 00 00 00 00 D4 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 17 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 17 00 2D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [09:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:44:55]wFMCommunicate OK [09:44:55]requested_item fd.num is exist - process it [09:44:55]SAM_PROTO_GetFieldsCounters [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 13 00 00 [09:44:55]Write to MH i2c: E2 08 00 2E 2D 80 13 00 00 00 00 00 00 D7 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 62 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 62 00 2E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 77 00 00 0E 04 04 00 73 00 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 D6 [09:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 59 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:55]wFMCommunicate OK [09:44:55]SAM_PROTO_GetFieldsCounters done [09:44:55]requested_item shift.num is exist - process it [09:44:55]requested_item shift.opened is exist - process it [09:44:55]req_shift_opened [09:44:55]FM_GetShiftState [09:44:55]SAM_PROTO_GetShiftState [09:44:55]wFMCommunicate request_size=4 [09:44:55]MH_SAM_APDU [09:44:55]CAPDU: 80 13 01 00 [09:44:55]Write to MH i2c: E2 08 00 2F 2D 80 13 01 00 00 00 00 00 D9 [09:44:55]Write i2c OK [09:44:55]MH_I2C_Read... [09:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:55]Read from MH i2c: E2 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 0E 00 [09:44:55]MH_I2C_Read... [09:44:55]Read from MH i2c: E2 0E 00 2F 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 55 [09:44:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:44:55]wFMCommunicate OK [09:44:55]SAM_PROTO_GetShiftState done [09:44:55]FM_GetShiftState done [09:44:55]req_shift_opened done [09:44:55]requested_item shift.open_date is exist - process it [09:44:55]req_shift_open_date [09:44:55]req_shift_open_date done [09:44:55]produce_requested_data done [09:44:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30553,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:44:55]process_action_free close_receipt [09:44:55]json_value_free [09:44:55]json_value_free done [09:44:55]process_json_proto returns [09:44:55]Send response to host [09:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30553,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:44:55]free response buf [09:44:55]execute_script done [09:44:55]execute_script returns [09:44:55]free content buf [09:44:55]Sock 7.Close socket [09:44:55]Sock 7.Thread stoped [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:03]accept exits with 9 [09:51:03]New connection [09:51:03]New thread 3067489636 created [09:51:03]Thread 3067346276 joined [09:51:03]Waiting for new connection... [09:51:03] Sock 9.Parse request [09:51:03]Sock 9.Check first char [09:51:03]Sock 9.First char is OK [09:51:03]request: POST /json_proto HTTP/1.0 [09:51:03]Method: POST [09:51:03]URL: /json_proto [09:51:03]Method is POST - this is cgi request [09:51:03]url: /json_proto [09:51:03]query_string will be loaded in cgi processing [09:51:03]execute_cgi json_proto POST (null) [09:51:03]execute_cgi path=json_proto method=POST [09:51:03]POST find Content-Length [09:51:03]Host: 172.17.51.3:8080 [09:51:03]Content-Length: 679 [09:51:03]Content-Type: application/json [09:51:03] [09:51:03]POST finish read [09:51:03]Found Content-Length = 679 [09:51:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:03]execute_script... [09:51:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:03]POST & json_proto [09:51:03]process_json_proto [09:51:03]json parsed OK: [09:51:03]protocol is kg_v1.0 [09:51:03]action value=close_receipt [09:51:03]process_action close_receipt [09:51:03]cmd_close_receipt [09:51:03]MH_GetDate [09:51:03]Write to MH i2c: F0 00 00 30 2D 4C [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 09 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: F0 09 00 30 2D 00 0B 24 16 67 04 C1 95 66 C1 [09:51:03]GetLastDocTimeStamp 1729503896 [09:51:03]current date 1729504267 [09:51:03]FM_GetShiftState [09:51:03]SAM_PROTO_GetShiftState [09:51:03]wFMCommunicate request_size=4 [09:51:03]MH_SAM_APDU [09:51:03]CAPDU: 80 13 01 00 [09:51:03]Write to MH i2c: E2 08 00 31 2D 80 13 01 00 00 00 00 00 DB [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:03]Read from MH i2c: E2 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 31 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 57 [09:51:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:51:03]wFMCommunicate OK [09:51:03]SAM_PROTO_GetShiftState done [09:51:03]FM_GetShiftState done [09:51:03]opened in 1729471058 [09:51:03]opened+sec_in_day 1729557458 [09:51:03]quantity*price = 100050 [09:51:03]sum+1 = 100052 [09:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 51 21.10.2024 09:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30554 ФПД: 208066016814175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095107&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30554&fm=208066016814175&tin=02508201610067®Number=0000000000186857&sum=100000 [09:51:04]StoreToDocumentArchive [09:51:04]shift 115 fd 30554 [09:51:04]save to /storage/0115/doc_00030554 [09:51:04]save last doc name /storage/0115/doc_00030554 to /storage/kkm_last_doc_name [09:51:04]save OK [09:51:04]Clear old archive folders... [09:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:04]tlvbuf is 01E08650 [09:51:04]SAM_PROTO_ClearQueue [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 09 00 00 [09:51:04]Write to MH i2c: E2 08 00 3E 2D 80 09 00 00 00 00 00 00 DD [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 3E 2D 00 90 00 DF [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]SAM_PROTO_ClearQueue done [09:51:04]KKMCreateOFDPacket [09:51:04]OFDProtocolAddRootSTLVToBuf [09:51:04]FM_MakeSignedData [09:51:04]FM_MakeSignedData [09:51:04]SAM_PROTO_SignData [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 0D 01 02 [09:51:04]Write to MH i2c: E2 08 00 3F 2D 80 0D 01 02 00 00 00 00 E5 [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 3F 2D 00 90 00 E0 [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]wFMCommunicate request_size=255 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0B 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 77 00 00 35 04 06 00 BD 3C 25 05 [09:51:04]Write to MH i2c: E2 02 01 40 2D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0B 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 77 00 00 35 04 06 00 BD 3C 25 05 00 00 B2 [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 40 2D 00 90 00 E1 [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]wFMCommunicate request_size=7 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 0D 02 02 02 A4 5F [09:51:04]Write to MH i2c: E2 0A 00 41 2D 80 0D 02 02 02 00 A4 5F 00 00 EF [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 03 00 41 2D 00 90 00 E2 [09:51:04]RAPDU: 90 00 [09:51:04]wFMCommunicate OK [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 0D 03 02 [09:51:04]Write to MH i2c: E2 08 00 42 2D 80 0D 03 02 00 00 00 00 EA [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 0B 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 0B 00 42 2D 00 0C 58 15 86 8B 6A 43 F9 90 00 1B [09:51:04]RAPDU: 0C 58 15 86 8B 6A 43 F9 90 00 [09:51:04]wFMCommunicate OK [09:51:04]SAM_PROTO_SignData done [09:51:04]FM_MakeSignedData done [09:51:04]CreateOFDProtocolMessage [09:51:04]wFMCommunicate request_size=4 [09:51:04]MH_SAM_APDU [09:51:04]CAPDU: 80 11 00 00 [09:51:04]Write to MH i2c: E2 08 00 43 2D 80 11 00 00 00 00 00 00 EA [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:04]Read from MH i2c: E2 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 17 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: E2 17 00 43 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [09:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:51:04]wFMCommunicate OK [09:51:04]CreateOFDProtocolMessage done [09:51:04]OFDSenderStorePacket 30554 [09:51:04]StoreOFDPacket docnum=30554 [09:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D0 F7 04 01 A8 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0B 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 77 00 00 35 04 06 00 BD 3C 25 05 A4 5F 0C 58 15 86 8B 6A 43 F9 [09:51:04]CheckFolder [09:51:04]dirname=/storage/ofd_packets [09:51:04]CheckFolder done [09:51:04]ProducePacketName [09:51:04]name=ofd_packets/00030554 [09:51:04]NVStorageSaveData ofd_packets/00030554 [09:51:04]File name is /storage/ofd_packets/00030554 [09:51:04]Write 298 bytes [09:51:04]NVStorageSaveData done [09:51:04]OFDSenderStorePacket done [09:51:04]KKMCreateOFDPacket done [09:51:04]NVStorageSaveData kkm_last_timestamp [09:51:04]File name is /storage/kkm_last_timestamp [09:51:04]Write 4 bytes [09:51:04]NVStorageSaveData done [09:51:04]ExternCall_PrintAddStr [09:51:04]wPrintStart [09:51:04]Write to MH i2c: 01 00 00 44 2D 71 [09:51:04]Write i2c OK [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: 01 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: 01 07 00 [09:51:04]MH_I2C_Read... [09:51:04]Read from MH i2c: 01 07 00 44 2D 00 00 00 00 00 FF 0F 86 [09:51:04]RasterBufferAndPrint [09:51:04]line Счет N : (1)342959 [09:51:04]line ИНН: 02508201610067 [09:51:04]line Контрольно-Кассовый Чек [09:51:04]line ПРОДАЖА [09:51:04]line ТРК (МРК, ГНК) : 34 [09:51:04]line Товар: 2710194210 [09:51:04]line ДТ-К-2 [09:51:04]line 13.130 * 76.20 [09:51:04]line = 1000.51 [09:51:04]line НДС 12% НСП 1% [09:51:04]line > о реализуемом товаре [09:51:04]line ОКРУГЛЕНИЕ: -0.51 [09:51:04]line ИТОГО: 1000.00 [09:51:04]line Внесено: 1000.00 [09:51:04]line СДАЧА: 0.00 [09:51:04]line НСП 1% : 8.85 [09:51:04]line НДС 12% : 106.25 [09:51:04]line Наличными: 1000.00 [09:51:04]line Безнал.: 0.00 [09:51:04]line Место: АЗС № 78 "Партнер Нефть" [09:51:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:51:05]line СНО: Общий режим [09:51:05]line Чек 51 21.10.2024 09:51 [09:51:05]line Смена: 115 ФФД: 1.0 [09:51:05]line ЗНМ: 0300000137 [09:51:05]line РНМ: 0000000000186857 [09:51:05]line Версия ККМ: v1.0 [09:51:05]line ФМ: 0000000002094219 [09:51:05]line ФД: 30554 [09:51:05]line ФПД: 208066016814175 [09:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095107&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30554&fm=208066016814175&tin=02508201610067®Number=0000000000186857&sum=100000 [09:51:05]OFD Sender: Processing packet 30554 [packets to send 10, broken 9] [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00030554 [09:51:05]OFD Sender: To server: pG, [09:51:05]CommunicateWithHost lk.salyk.kg:30040 [09:51:05]ConnectInit lk.salyk.kg [09:51:05]written 0, free lines is 4095 [09:51:05]Connected sock=10 [09:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D0 F7 04 01 A8 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0B 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 77 00 00 35 04 06 00 BD 3C 25 05 A4 5F 0C 58 15 86 8B 6A 43 F9 [09:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB 5D 47 00 AC 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5A 77 00 00 F4 03 04 00 8C CE 15 67 B6 04 01 00 00 36 1E DC C7 85 31 01 6F [09:51:05]CommunicateWithHost err = 0 [09:51:05]CheckOFDResponse [09:51:05]1017 (14) - 77093643461234 [09:51:05]1041 (16) - 0000000002094219 [09:51:05]1040 (4) - 30554 [09:51:05]1012 (4) - 21.10.2024 03:46 [09:51:05]1206 (1) - 0 [09:51:05]OFD Sender: Remove packet 30554 [09:51:05]ProducePacketName [09:51:05]name=ofd_packets/00030554 [09:51:05]NVStorageDeleteData [09:51:05]Write to MH i2c: 01 00 00 6F 2D 9C [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: 01 07 00 6F 2D 00 00 00 00 00 F5 0C A4 [09:51:05]RasterBufferAndPrint [09:51:05]line [09:51:05]line [09:51:05]line [09:51:05]line [09:51:05]line [09:51:05]written 0, free lines is 3323 [09:51:05]MH_Cut [09:51:05]Write to MH i2c: D1 01 00 76 2D 01 75 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: D1 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: D1 01 00 [09:51:05]MH_I2C_Read... [09:51:05]Read from MH i2c: D1 01 00 76 2D 00 74 [09:51:05]Write to MH i2c: 01 00 00 77 2D A4 [09:51:05]Write i2c OK [09:51:05]MH_I2C_Read... [09:51:06]OFD Sender: No OFD packet to send [09:51:06]*** Cut start [09:51:06]*** Partial cut [09:51:06]*** CUTSNS_PIN = 1 [09:51:06]*** CUTSNS_PIN = 0 [09:51:06]*** Brake cut motor [09:51:06]Read from MH i2c: 01 [09:51:06]MH_I2C_Read... [09:51:06]*** Stop cut motor [09:51:06]*** Cut end [09:51:06]Read from MH i2c: 01 07 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: 01 07 00 77 2D 00 00 00 00 00 FF 0F B9 [09:51:06]process_action close_receipt done [09:51:06]requested_data is exist [09:51:06]produce_requested_data [09:51:06]requested_item fm.sn is exist - process it [09:51:06]wFMCommunicate request_size=4 [09:51:06]MH_SAM_APDU [09:51:06]CAPDU: 80 11 00 00 [09:51:06]Write to MH i2c: E2 08 00 78 2D 80 11 00 00 00 00 00 00 1F [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:06]Read from MH i2c: E2 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: E2 17 00 [09:51:06]MH_I2C_Read... [09:51:06]Read from MH i2c: E2 17 00 78 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [09:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:51:06]wFMCommunicate OK [09:51:06]requested_item fd.num is exist - process it [09:51:06]SAM_PROTO_GetFieldsCounters [09:51:06]wFMCommunicate request_size=4 [09:51:06]MH_SAM_APDU [09:51:06]CAPDU: 80 13 00 00 [09:51:06]Write to MH i2c: E2 08 00 79 2D 80 13 00 00 00 00 00 00 22 [09:51:06]Write i2c OK [09:51:06]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 62 00 79 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 77 00 00 0E 04 04 00 73 00 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 25 [09:51:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetFieldsCounters done [09:51:07]requested_item shift.num is exist - process it [09:51:07]requested_item shift.opened is exist - process it [09:51:07]req_shift_opened [09:51:07]FM_GetShiftState [09:51:07]SAM_PROTO_GetShiftState [09:51:07]wFMCommunicate request_size=4 [09:51:07]MH_SAM_APDU [09:51:07]CAPDU: 80 13 01 00 [09:51:07]Write to MH i2c: E2 08 00 7A 2D 80 13 01 00 00 00 00 00 24 [09:51:07]Write i2c OK [09:51:07]MH_I2C_Read... [09:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:07]Read from MH i2c: E2 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 [09:51:07]MH_I2C_Read... [09:51:07]Read from MH i2c: E2 0E 00 7A 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A0 [09:51:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:51:07]wFMCommunicate OK [09:51:07]SAM_PROTO_GetShiftState done [09:51:07]FM_GetShiftState done [09:51:07]req_shift_opened done [09:51:07]requested_item shift.open_date is exist - process it [09:51:07]req_shift_open_date [09:51:07]req_shift_open_date done [09:51:07]produce_requested_data done [09:51:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30554,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:51:07]process_action_free close_receipt [09:51:07]json_value_free [09:51:07]json_value_free done [09:51:07]process_json_proto returns [09:51:07]Send response to host [09:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30554,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:51:07]free response buf [09:51:07]execute_script done [09:51:07]execute_script returns [09:51:07]free content buf [09:51:07]Sock 9.Close socket [09:51:07]Sock 9.Thread stoped [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:48]accept exits with 7 [09:51:48]New connection [09:51:48]New thread 3067346276 created [09:51:48]Thread 3067489636 joined [09:51:48]Waiting for new connection... [09:51:48] Sock 7.Parse request [09:51:48]Sock 7.Check first char [09:51:48]Sock 7.First char is OK [09:51:48]request: POST /json_proto HTTP/1.0 [09:51:48]Method: POST [09:51:48]URL: /json_proto [09:51:48]Method is POST - this is cgi request [09:51:48]url: /json_proto [09:51:48]query_string will be loaded in cgi processing [09:51:48]execute_cgi json_proto POST (null) [09:51:48]execute_cgi path=json_proto method=POST [09:51:48]POST find Content-Length [09:51:48]Host: 172.17.51.3:8080 [09:51:48]Content-Length: 677 [09:51:48]Content-Type: application/json [09:51:48] [09:51:48]POST finish read [09:51:48]Found Content-Length = 677 [09:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:48]execute_script... [09:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:48]POST & json_proto [09:51:48]process_json_proto [09:51:48]json parsed OK: [09:51:48]protocol is kg_v1.0 [09:51:48]action value=close_receipt [09:51:48]process_action close_receipt [09:51:48]cmd_close_receipt [09:51:48]MH_GetDate [09:51:48]Write to MH i2c: F0 00 00 7B 2D 97 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: F0 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: F0 09 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: F0 09 00 7B 2D 00 38 24 16 67 04 C1 95 66 39 [09:51:48]GetLastDocTimeStamp 1729504267 [09:51:48]current date 1729504312 [09:51:48]FM_GetShiftState [09:51:48]SAM_PROTO_GetShiftState [09:51:48]wFMCommunicate request_size=4 [09:51:48]MH_SAM_APDU [09:51:48]CAPDU: 80 13 01 00 [09:51:48]Write to MH i2c: E2 08 00 7C 2D 80 13 01 00 00 00 00 00 26 [09:51:48]Write i2c OK [09:51:48]MH_I2C_Read... [09:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:48]Read from MH i2c: E2 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 0E 00 [09:51:48]MH_I2C_Read... [09:51:48]Read from MH i2c: E2 0E 00 7C 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A2 [09:51:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:51:48]wFMCommunicate OK [09:51:48]SAM_PROTO_GetShiftState done [09:51:48]FM_GetShiftState done [09:51:48]opened in 1729471058 [09:51:48]opened+sec_in_day 1729557458 [09:51:48]quantity*price = 20003 [09:51:48]sum+1 = 20004 [09:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 52 21.10.2024 09:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30555 ФПД: 34782971341862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30555&fm=34782971341862&tin=02508201610067®Number=0000000000186857&sum=20000 [09:51:49]StoreToDocumentArchive [09:51:49]shift 115 fd 30555 [09:51:49]save to /storage/0115/doc_00030555 [09:51:49]save last doc name /storage/0115/doc_00030555 to /storage/kkm_last_doc_name [09:51:49]save OK [09:51:49]Clear old archive folders... [09:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:49]tlvbuf is 01E2B9A0 [09:51:49]SAM_PROTO_ClearQueue [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 09 00 00 [09:51:49]Write to MH i2c: E2 08 00 89 2D 80 09 00 00 00 00 00 00 28 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 89 2D 00 90 00 2A [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]SAM_PROTO_ClearQueue done [09:51:49]KKMCreateOFDPacket [09:51:49]OFDProtocolAddRootSTLVToBuf [09:51:49]FM_MakeSignedData [09:51:49]FM_MakeSignedData [09:51:49]SAM_PROTO_SignData [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 01 02 [09:51:49]Write to MH i2c: E2 08 00 8A 2D 80 0D 01 02 00 00 00 00 30 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 8A 2D 00 90 00 2B [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]wFMCommunicate request_size=255 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 38 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 77 00 00 35 04 06 00 1F [09:51:49]Write to MH i2c: E2 02 01 8B 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 38 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 77 00 00 35 04 06 00 1F 00 00 F4 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 8B 2D 00 90 00 2C [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]wFMCommunicate request_size=10 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 02 02 05 A2 8A A6 AC 26 [09:51:49]Write to MH i2c: E2 0D 00 8C 2D 80 0D 02 02 05 00 A2 8A A6 AC 26 00 00 E1 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 03 00 8C 2D 00 90 00 2D [09:51:49]RAPDU: 90 00 [09:51:49]wFMCommunicate OK [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 0D 03 02 [09:51:49]Write to MH i2c: E2 08 00 8D 2D 80 0D 03 02 00 00 00 00 35 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0B 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 0B 00 8D 2D 00 DF F2 49 3F EB 0C 87 00 90 00 0D [09:51:50]RAPDU: DF F2 49 3F EB 0C 87 00 90 00 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_SignData done [09:51:50]FM_MakeSignedData done [09:51:50]CreateOFDProtocolMessage [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 11 00 00 [09:51:50]Write to MH i2c: E2 08 00 8E 2D 80 11 00 00 00 00 00 00 35 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 17 00 8E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [09:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:51:50]wFMCommunicate OK [09:51:50]CreateOFDProtocolMessage done [09:51:50]OFDSenderStorePacket 30555 [09:51:50]StoreOFDPacket docnum=30555 [09:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 29 07 01 FB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 38 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 77 00 00 35 04 06 00 1F A2 8A A6 AC 26 DF F2 49 3F EB 0C 87 00 [09:51:50]CheckFolder [09:51:50]dirname=/storage/ofd_packets [09:51:50]CheckFolder done [09:51:50]ProducePacketName [09:51:50]name=ofd_packets/00030555 [09:51:50]NVStorageSaveData ofd_packets/00030555 [09:51:50]File name is /storage/ofd_packets/00030555 [09:51:50]Write 301 bytes [09:51:50]NVStorageSaveData done [09:51:50]OFDSenderStorePacket done [09:51:50]KKMCreateOFDPacket done [09:51:50]NVStorageSaveData kkm_last_timestamp [09:51:50]File name is /storage/kkm_last_timestamp [09:51:50]Write 4 bytes [09:51:50]NVStorageSaveData done [09:51:50]ExternCall_PrintAddStr [09:51:50]wPrintStart [09:51:50]Write to MH i2c: 01 00 00 8F 2D BC [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 8F 2D 00 00 00 00 00 FF 0F D1 [09:51:50]RasterBufferAndPrint [09:51:50]line Счет N : (1)342960 [09:51:50]line ИНН: 02508201610067 [09:51:50]line Контрольно-Кассовый Чек [09:51:50]line ПРОДАЖА [09:51:50]line ТРК (МРК, ГНК) : 63 [09:51:50]line Товар: 2710124130 [09:51:50]line Аи-92-К-2 [09:51:50]line 2.990 * 66.90 [09:51:50]line = 200.03 [09:51:50]line НДС 12% НСП 1% [09:51:50]line > о реализуемом товаре [09:51:50]line ОКРУГЛЕНИЕ: -0.03 [09:51:50]line ИТОГО: 200.00 [09:51:50]line Внесено: 200.00 [09:51:50]line СДАЧА: 0.00 [09:51:50]line НСП 1% : 1.77 [09:51:50]line НДС 12% : 21.24 [09:51:50]line Наличными: 200.00 [09:51:50]line Безнал.: 0.00 [09:51:50]line Место: АЗС № 78 "Партнер Нефть" [09:51:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:51:50]line СНО: Общий режим [09:51:50]line Чек 52 21.10.2024 09:51 [09:51:50]line Смена: 115 ФФД: 1.0 [09:51:50]line ЗНМ: 0300000137 [09:51:50]line РНМ: 0000000000186857 [09:51:50]line Версия ККМ: v1.0 [09:51:50]line ФМ: 0000000002094219 [09:51:50]line ФД: 30555 [09:51:50]line ФПД: 34782971341862 [09:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30555&fm=34782971341862&tin=02508201610067®Number=0000000000186857&sum=20000 [09:51:50]OFD Sender: Processing packet 30555 [packets to send 10, broken 9] [09:51:50]ProducePacketName [09:51:50]name=ofd_packets/00030555 [09:51:50]OFD Sender: To server: pG, [09:51:50]CommunicateWithHost lk.salyk.kg:30040 [09:51:50]ConnectInit lk.salyk.kg [09:51:50]written 0, free lines is 4095 [09:51:50]Connected sock=10 [09:51:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 29 07 01 FB FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 34 00 00 00 F4 03 04 00 38 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 77 00 00 35 04 06 00 1F A2 8A A6 AC 26 DF F2 49 3F EB 0C 87 00 [09:51:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6F 28 47 00 43 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5B 77 00 00 F4 03 04 00 B9 CE 15 67 B6 04 01 00 00 B6 B7 25 27 A5 4B 1D B9 [09:51:50]CommunicateWithHost err = 0 [09:51:50]CheckOFDResponse [09:51:50]1017 (14) - 77093643461234 [09:51:50]1041 (16) - 0000000002094219 [09:51:50]1040 (4) - 30555 [09:51:50]1012 (4) - 21.10.2024 03:47 [09:51:50]1206 (1) - 0 [09:51:50]OFD Sender: Remove packet 30555 [09:51:50]ProducePacketName [09:51:50]name=ofd_packets/00030555 [09:51:50]NVStorageDeleteData [09:51:50]Write to MH i2c: 01 00 00 BA 2D E7 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: 01 07 00 BA 2D 00 00 00 00 00 F4 0C EE [09:51:50]RasterBufferAndPrint [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]line [09:51:50]written 0, free lines is 3326 [09:51:50]MH_Cut [09:51:50]Write to MH i2c: D1 01 00 C1 2D 01 C0 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 01 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: D1 01 00 C1 2D 00 BF [09:51:50]Write to MH i2c: 01 00 00 C2 2D EF [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:51]OFD Sender: No OFD packet to send [09:51:51]*** Cut start [09:51:51]*** Partial cut [09:51:51]*** CUTSNS_PIN = 1 [09:51:51]*** CUTSNS_PIN = 0 [09:51:51]*** Brake cut motor [09:51:52]Read from MH i2c: 01 [09:51:52]MH_I2C_Read... [09:51:52]*** Stop cut motor [09:51:52]*** Cut end [09:51:52]Read from MH i2c: 01 07 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: 01 07 00 C2 2D 00 00 00 00 00 FF 0F 04 [09:51:52]process_action close_receipt done [09:51:52]requested_data is exist [09:51:52]produce_requested_data [09:51:52]requested_item fm.sn is exist - process it [09:51:52]wFMCommunicate request_size=4 [09:51:52]MH_SAM_APDU [09:51:52]CAPDU: 80 11 00 00 [09:51:52]Write to MH i2c: E2 08 00 C3 2D 80 11 00 00 00 00 00 00 6A [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:52]Read from MH i2c: E2 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 17 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 17 00 C3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [09:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:51:52]wFMCommunicate OK [09:51:52]requested_item fd.num is exist - process it [09:51:52]SAM_PROTO_GetFieldsCounters [09:51:52]wFMCommunicate request_size=4 [09:51:52]MH_SAM_APDU [09:51:52]CAPDU: 80 13 00 00 [09:51:52]Write to MH i2c: E2 08 00 C4 2D 80 13 00 00 00 00 00 00 6D [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:52]Read from MH i2c: E2 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 62 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 62 00 C4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 77 00 00 0E 04 04 00 73 00 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 74 [09:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5B 77 00 00 0E 04 04 00 73 00 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 [09:51:52]wFMCommunicate OK [09:51:52]SAM_PROTO_GetFieldsCounters done [09:51:52]requested_item shift.num is exist - process it [09:51:52]requested_item shift.opened is exist - process it [09:51:52]req_shift_opened [09:51:52]FM_GetShiftState [09:51:52]SAM_PROTO_GetShiftState [09:51:52]wFMCommunicate request_size=4 [09:51:52]MH_SAM_APDU [09:51:52]CAPDU: 80 13 01 00 [09:51:52]Write to MH i2c: E2 08 00 C5 2D 80 13 01 00 00 00 00 00 6F [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:52]Read from MH i2c: E2 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 0E 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: E2 0E 00 C5 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EB [09:51:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:51:52]wFMCommunicate OK [09:51:52]SAM_PROTO_GetShiftState done [09:51:52]FM_GetShiftState done [09:51:52]req_shift_opened done [09:51:52]requested_item shift.open_date is exist - process it [09:51:52]req_shift_open_date [09:51:52]req_shift_open_date done [09:51:52]produce_requested_data done [09:51:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30555,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:51:52]process_action_free close_receipt [09:51:52]json_value_free [09:51:52]json_value_free done [09:51:52]process_json_proto returns [09:51:52]Send response to host [09:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30555,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:51:52]free response buf [09:51:52]execute_script done [09:51:52]execute_script returns [09:51:52]free content buf [09:51:52]Sock 7.Close socket [09:51:52]Sock 7.Thread stoped [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]accept exits with 9 [09:53:16]New connection [09:53:16]New thread 3067489636 created [09:53:16]Thread 3067346276 joined [09:53:16]Waiting for new connection... [09:53:16] Sock 9.Parse request [09:53:16]Sock 9.Check first char [09:53:16]Sock 9.First char is OK [09:53:16]request: POST /json_proto HTTP/1.0 [09:53:16]Method: POST [09:53:16]URL: /json_proto [09:53:16]Method is POST - this is cgi request [09:53:16]url: /json_proto [09:53:16]query_string will be loaded in cgi processing [09:53:16]execute_cgi json_proto POST (null) [09:53:16]execute_cgi path=json_proto method=POST [09:53:16]POST find Content-Length [09:53:16]Host: 172.17.51.3:8080 [09:53:16]Content-Length: 677 [09:53:16]Content-Type: application/json [09:53:16] [09:53:16]POST finish read [09:53:16]Found Content-Length = 677 [09:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:16]execute_script... [09:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:16]POST & json_proto [09:53:16]process_json_proto [09:53:16]json parsed OK: [09:53:16]protocol is kg_v1.0 [09:53:16]action value=close_receipt [09:53:16]process_action close_receipt [09:53:16]cmd_close_receipt [09:53:16]MH_GetDate [09:53:16]Write to MH i2c: F0 00 00 C6 2D E2 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: F0 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: F0 09 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: F0 09 00 C6 2D 00 90 24 16 67 04 C1 95 66 DC [09:53:16]GetLastDocTimeStamp 1729504312 [09:53:16]current date 1729504400 [09:53:16]FM_GetShiftState [09:53:16]SAM_PROTO_GetShiftState [09:53:16]wFMCommunicate request_size=4 [09:53:16]MH_SAM_APDU [09:53:16]CAPDU: 80 13 01 00 [09:53:16]Write to MH i2c: E2 08 00 C7 2D 80 13 01 00 00 00 00 00 71 [09:53:16]Write i2c OK [09:53:16]MH_I2C_Read... [09:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:16]Read from MH i2c: E2 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 [09:53:16]MH_I2C_Read... [09:53:16]Read from MH i2c: E2 0E 00 C7 2D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 ED [09:53:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:53:16]wFMCommunicate OK [09:53:16]SAM_PROTO_GetShiftState done [09:53:16]FM_GetShiftState done [09:53:16]opened in 1729471058 [09:53:16]opened+sec_in_day 1729557458 [09:53:16]quantity*price = 50041 [09:53:16]sum+1 = 50042 [09:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 53 21.10.2024 09:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30556 ФПД: 62897274453133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095320&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30556&fm=62897274453133&tin=02508201610067®Number=0000000000186857&sum=50000 [09:53:17]StoreToDocumentArchive [09:53:17]shift 115 fd 30556 [09:53:17]save to /storage/0115/doc_00030556 [09:53:17]save last doc name /storage/0115/doc_00030556 to /storage/kkm_last_doc_name [09:53:17]save OK [09:53:17]Clear old archive folders... [09:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:17]tlvbuf is 01E507A0 [09:53:17]SAM_PROTO_ClearQueue [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 09 00 00 [09:53:17]Write to MH i2c: E2 08 00 D4 2D 80 09 00 00 00 00 00 00 73 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 D4 2D 00 90 00 75 [09:53:17]RAPDU: 90 00 [09:53:17]wFMCommunicate OK [09:53:17]SAM_PROTO_ClearQueue done [09:53:17]KKMCreateOFDPacket [09:53:17]OFDProtocolAddRootSTLVToBuf [09:53:17]FM_MakeSignedData [09:53:17]FM_MakeSignedData [09:53:17]SAM_PROTO_SignData [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 0D 01 02 [09:53:17]Write to MH i2c: E2 08 00 D5 2D 80 0D 01 02 00 00 00 00 7B [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 D5 2D 00 90 00 76 [09:53:17]RAPDU: 90 00 [09:53:17]wFMCommunicate OK [09:53:17]wFMCommunicate request_size=255 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 90 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 77 00 00 35 04 06 00 39 [09:53:17]Write to MH i2c: E2 02 01 D6 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 90 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 77 00 00 35 04 06 00 39 00 00 F1 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 D6 2D 00 90 00 77 [09:53:17]RAPDU: 90 00 [09:53:17]wFMCommunicate OK [09:53:17]wFMCommunicate request_size=10 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 0D 02 02 05 34 69 B3 7C 8D [09:53:17]Write to MH i2c: E2 0D 00 D7 2D 80 0D 02 02 05 00 34 69 B3 7C 8D 00 00 E1 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 03 00 D7 2D 00 90 00 78 [09:53:17]RAPDU: 90 00 [09:53:17]wFMCommunicate OK [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 0D 03 02 [09:53:17]Write to MH i2c: E2 08 00 D8 2D 80 0D 03 02 00 00 00 00 80 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 0B 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 0B 00 D8 2D 00 EE B1 10 78 0E 58 6C AC 90 00 26 [09:53:17]RAPDU: EE B1 10 78 0E 58 6C AC 90 00 [09:53:17]wFMCommunicate OK [09:53:17]SAM_PROTO_SignData done [09:53:17]FM_MakeSignedData done [09:53:17]CreateOFDProtocolMessage [09:53:17]wFMCommunicate request_size=4 [09:53:17]MH_SAM_APDU [09:53:17]CAPDU: 80 11 00 00 [09:53:17]Write to MH i2c: E2 08 00 D9 2D 80 11 00 00 00 00 00 00 80 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:17]Read from MH i2c: E2 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 17 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: E2 17 00 D9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [09:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:53:17]wFMCommunicate OK [09:53:17]CreateOFDProtocolMessage done [09:53:17]OFDSenderStorePacket 30556 [09:53:17]StoreOFDPacket docnum=30556 [09:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 08 07 01 F6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 90 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 77 00 00 35 04 06 00 39 34 69 B3 7C 8D EE B1 10 78 0E 58 6C AC [09:53:17]CheckFolder [09:53:17]dirname=/storage/ofd_packets [09:53:17]CheckFolder done [09:53:17]ProducePacketName [09:53:17]name=ofd_packets/00030556 [09:53:17]NVStorageSaveData ofd_packets/00030556 [09:53:17]File name is /storage/ofd_packets/00030556 [09:53:17]Write 301 bytes [09:53:17]NVStorageSaveData done [09:53:17]OFDSenderStorePacket done [09:53:17]KKMCreateOFDPacket done [09:53:17]NVStorageSaveData kkm_last_timestamp [09:53:17]File name is /storage/kkm_last_timestamp [09:53:17]Write 4 bytes [09:53:17]NVStorageSaveData done [09:53:17]ExternCall_PrintAddStr [09:53:17]wPrintStart [09:53:17]Write to MH i2c: 01 00 00 DA 2D 07 [09:53:17]Write i2c OK [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 [09:53:17]MH_I2C_Read... [09:53:17]Read from MH i2c: 01 07 00 DA 2D 00 00 00 00 00 FF 0F 1C [09:53:17]RasterBufferAndPrint [09:53:17]line Счет N : (1)342961 [09:53:17]line ИНН: 02508201610067 [09:53:17]line Контрольно-Кассовый Чек [09:53:17]line ПРОДАЖА [09:53:17]line ТРК (МРК, ГНК) : 53 [09:53:17]line Товар: 2710124130 [09:53:17]line Аи-92-К-2 [09:53:17]line 7.480 * 66.90 [09:53:17]line = 500.41 [09:53:17]line НДС 12% НСП 1% [09:53:17]line > о реализуемом товаре [09:53:17]line ОКРУГЛЕНИЕ: -0.41 [09:53:17]line ИТОГО: 500.00 [09:53:17]line Внесено: 500.00 [09:53:17]line СДАЧА: 0.00 [09:53:17]line НСП 1% : 4.43 [09:53:17]line НДС 12% : 53.14 [09:53:17]line Наличными: 500.00 [09:53:17]line Безнал.: 0.00 [09:53:17]line Место: АЗС № 78 "Партнер Нефть" [09:53:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:53:17]line СНО: Общий режим [09:53:17]line Чек 53 21.10.2024 09:53 [09:53:17]line Смена: 115 ФФД: 1.0 [09:53:18]line ЗНМ: 0300000137 [09:53:18]line РНМ: 0000000000186857 [09:53:18]line Версия ККМ: v1.0 [09:53:18]line ФМ: 0000000002094219 [09:53:18]line ФД: 30556 [09:53:18]line ФПД: 62897274453133 [09:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095320&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30556&fm=62897274453133&tin=02508201610067®Number=0000000000186857&sum=50000 [09:53:18]OFD Sender: Processing packet 30556 [packets to send 10, broken 9] [09:53:18]ProducePacketName [09:53:18]name=ofd_packets/00030556 [09:53:18]OFD Sender: To server: pG, [09:53:18]CommunicateWithHost lk.salyk.kg:30040 [09:53:18]ConnectInit lk.salyk.kg [09:53:18]written 0, free lines is 4095 [09:53:18]Connected sock=10 [09:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5D 08 07 01 F6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 90 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5C 77 00 00 35 04 06 00 39 34 69 B3 7C 8D EE B1 10 78 0E 58 6C AC [09:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5C E8 47 00 09 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 32 30 39 34 32 31 39 10 04 04 00 5C 77 00 00 F4 03 04 00 11 CF 15 67 B6 04 01 00 00 BE E4 D5 29 2F 5A ED 54 [09:53:18]CommunicateWithHost err = 0 [09:53:18]CheckOFDResponse [09:53:18]1017 (14) - 77093643461234 [09:53:18]1041 (16) - 0000000002094219 [09:53:18]1040 (4) - 30556 [09:53:18]1012 (4) - 21.10.2024 03:48 [09:53:18]1206 (1) - 0 [09:53:18]OFD Sender: Remove packet 30556 [09:53:18]ProducePacketName [09:53:18]name=ofd_packets/00030556 [09:53:18]NVStorageDeleteData [09:53:18]Write to MH i2c: 01 00 00 05 2E 33 [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 07 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: 01 07 00 05 2E 00 00 00 00 00 F6 0C 3C [09:53:18]RasterBufferAndPrint [09:53:18]line [09:53:18]line [09:53:18]line [09:53:18]line [09:53:18]line [09:53:18]written 0, free lines is 3324 [09:53:18]MH_Cut [09:53:18]Write to MH i2c: D1 01 00 0C 2E 01 0C [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: D1 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: D1 01 00 [09:53:18]MH_I2C_Read... [09:53:18]Read from MH i2c: D1 01 00 0C 2E 00 0B [09:53:18]Write to MH i2c: 01 00 00 0D 2E 3B [09:53:18]Write i2c OK [09:53:18]MH_I2C_Read... [09:53:19]OFD Sender: No OFD packet to send [09:53:19]*** Cut start [09:53:19]*** Partial cut [09:53:19]*** CUTSNS_PIN = 1 [09:53:19]*** CUTSNS_PIN = 0 [09:53:19]*** Brake cut motor [09:53:19]Read from MH i2c: 01 [09:53:19]MH_I2C_Read... [09:53:19]*** Stop cut motor [09:53:19]*** Cut end [09:53:19]Read from MH i2c: 01 07 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: 01 07 00 0D 2E 00 00 00 00 00 FF 0F 50 [09:53:19]process_action close_receipt done [09:53:19]requested_data is exist [09:53:19]produce_requested_data [09:53:19]requested_item fm.sn is exist - process it [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 11 00 00 [09:53:19]Write to MH i2c: E2 08 00 0E 2E 80 11 00 00 00 00 00 00 B6 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:19]Read from MH i2c: E2 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 17 00 [09:53:19]MH_I2C_Read... [09:53:19]Read from MH i2c: E2 17 00 0E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 04 [09:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:53:19]wFMCommunicate OK [09:53:19]requested_item fd.num is exist - process it [09:53:19]SAM_PROTO_GetFieldsCounters [09:53:19]wFMCommunicate request_size=4 [09:53:19]MH_SAM_APDU [09:53:19]CAPDU: 80 13 00 00 [09:53:19]Write to MH i2c: E2 08 00 0F 2E 80 13 00 00 00 00 00 00 B9 [09:53:19]Write i2c OK [09:53:19]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 62 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 62 00 0F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 77 00 00 0E 04 04 00 73 00 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 C4 [09:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5C 77 00 00 0E 04 04 00 73 00 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 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_GetFieldsCounters done [09:53:20]requested_item shift.num is exist - process it [09:53:20]requested_item shift.opened is exist - process it [09:53:20]req_shift_opened [09:53:20]FM_GetShiftState [09:53:20]SAM_PROTO_GetShiftState [09:53:20]wFMCommunicate request_size=4 [09:53:20]MH_SAM_APDU [09:53:20]CAPDU: 80 13 01 00 [09:53:20]Write to MH i2c: E2 08 00 10 2E 80 13 01 00 00 00 00 00 BB [09:53:20]Write i2c OK [09:53:20]MH_I2C_Read... [09:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:20]Read from MH i2c: E2 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0E 00 [09:53:20]MH_I2C_Read... [09:53:20]Read from MH i2c: E2 0E 00 10 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 37 [09:53:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:53:20]wFMCommunicate OK [09:53:20]SAM_PROTO_GetShiftState done [09:53:20]FM_GetShiftState done [09:53:20]req_shift_opened done [09:53:20]requested_item shift.open_date is exist - process it [09:53:20]req_shift_open_date [09:53:20]req_shift_open_date done [09:53:20]produce_requested_data done [09:53:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30556,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:53:20]process_action_free close_receipt [09:53:20]json_value_free [09:53:20]json_value_free done [09:53:20]process_json_proto returns [09:53:20]Send response to host [09:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30556,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:53:20]free response buf [09:53:20]execute_script done [09:53:20]execute_script returns [09:53:20]free content buf [09:53:20]Sock 9.Close socket [09:53:20]Sock 9.Thread stoped [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:24]accept exits with 7 [09:54:24]New connection [09:54:24]New thread 3067346276 created [09:54:24]Thread 3067489636 joined [09:54:24]Waiting for new connection... [09:54:24] Sock 7.Parse request [09:54:24]Sock 7.Check first char [09:54:24]Sock 7.First char is OK [09:54:24]request: POST /json_proto HTTP/1.0 [09:54:24]Method: POST [09:54:24]URL: /json_proto [09:54:24]Method is POST - this is cgi request [09:54:24]url: /json_proto [09:54:24]query_string will be loaded in cgi processing [09:54:24]execute_cgi json_proto POST (null) [09:54:24]execute_cgi path=json_proto method=POST [09:54:24]POST find Content-Length [09:54:24]Host: 172.17.51.3:8080 [09:54:24]Content-Length: 677 [09:54:24]Content-Type: application/json [09:54:24] [09:54:24]POST finish read [09:54:24]Found Content-Length = 677 [09:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:24]execute_script... [09:54:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.550, "sum" : 170.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:24]POST & json_proto [09:54:24]process_json_proto [09:54:24]json parsed OK: [09:54:24]protocol is kg_v1.0 [09:54:24]action value=close_receipt [09:54:24]process_action close_receipt [09:54:24]cmd_close_receipt [09:54:24]MH_GetDate [09:54:24]Write to MH i2c: F0 00 00 11 2E 2E [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: F0 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: F0 09 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: F0 09 00 11 2E 00 D4 24 16 67 04 C1 95 66 6C [09:54:24]GetLastDocTimeStamp 1729504400 [09:54:24]current date 1729504468 [09:54:24]FM_GetShiftState [09:54:24]SAM_PROTO_GetShiftState [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 13 01 00 [09:54:24]Write to MH i2c: E2 08 00 12 2E 80 13 01 00 00 00 00 00 BD [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 0E 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 0E 00 12 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 39 [09:54:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:54:24]wFMCommunicate OK [09:54:24]SAM_PROTO_GetShiftState done [09:54:24]FM_GetShiftState done [09:54:24]opened in 1729471058 [09:54:24]opened+sec_in_day 1729557458 [09:54:24]quantity*price = 17059 [09:54:24]sum+1 = 17061 [09:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.12 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 54 21.10.2024 09:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30557 ФПД: 162310183841737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30557&fm=162310183841737&tin=02508201610067®Number=0000000000186857&sum=17000 [09:54:25]StoreToDocumentArchive [09:54:25]shift 115 fd 30557 [09:54:25]save to /storage/0115/doc_00030557 [09:54:25]save last doc name /storage/0115/doc_00030557 to /storage/kkm_last_doc_name [09:54:25]save OK [09:54:25]Clear old archive folders... [09:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:25]tlvbuf is 01E13440 [09:54:25]SAM_PROTO_ClearQueue [09:54:25]wFMCommunicate request_size=4 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 09 00 00 [09:54:25]Write to MH i2c: E2 08 00 1F 2E 80 09 00 00 00 00 00 00 BF [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 03 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 03 00 1F 2E 00 90 00 C1 [09:54:25]RAPDU: 90 00 [09:54:25]wFMCommunicate OK [09:54:25]SAM_PROTO_ClearQueue done [09:54:25]KKMCreateOFDPacket [09:54:25]OFDProtocolAddRootSTLVToBuf [09:54:25]FM_MakeSignedData [09:54:25]FM_MakeSignedData [09:54:25]SAM_PROTO_SignData [09:54:25]wFMCommunicate request_size=4 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 0D 01 02 [09:54:25]Write to MH i2c: E2 08 00 20 2E 80 0D 01 02 00 00 00 00 C7 [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:25]Read from MH i2c: E2 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 03 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: E2 03 00 20 2E 00 90 00 C2 [09:54:25]RAPDU: 90 00 [09:54:25]wFMCommunicate OK [09:54:25]wFMCommunicate request_size=255 [09:54:25]MH_SAM_APDU [09:54:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 36 00 00 00 F4 03 04 00 D4 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 77 00 00 35 04 06 00 93 [09:54:25]Write to MH i2c: E2 02 01 21 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 36 00 00 00 F4 03 04 00 D4 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 77 00 00 35 04 06 00 93 00 00 7F [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 03 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 03 00 21 2E 00 90 00 C3 [09:54:26]RAPDU: 90 00 [09:54:26]wFMCommunicate OK [09:54:26]wFMCommunicate request_size=10 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 0D 02 02 05 9E C8 D9 EF C9 [09:54:26]Write to MH i2c: E2 0D 00 22 2E 80 0D 02 02 05 00 9E C8 D9 EF C9 00 00 CB [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 03 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 03 00 22 2E 00 90 00 C4 [09:54:26]RAPDU: 90 00 [09:54:26]wFMCommunicate OK [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 0D 03 02 [09:54:26]Write to MH i2c: E2 08 00 23 2E 80 0D 03 02 00 00 00 00 CC [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0B 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0B 00 23 2E 00 E9 25 4F 4D 6C 78 A9 61 90 00 65 [09:54:26]RAPDU: E9 25 4F 4D 6C 78 A9 61 90 00 [09:54:26]wFMCommunicate OK [09:54:26]SAM_PROTO_SignData done [09:54:26]FM_MakeSignedData done [09:54:26]CreateOFDProtocolMessage [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 11 00 00 [09:54:26]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 24 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [09:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:26]wFMCommunicate OK [09:54:26]CreateOFDProtocolMessage done [09:54:26]OFDSenderStorePacket 30557 [09:54:26]StoreOFDPacket docnum=30557 [09:54:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6F AF 07 01 B7 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 36 00 00 00 F4 03 04 00 D4 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 77 00 00 35 04 06 00 93 9E C8 D9 EF C9 E9 25 4F 4D 6C 78 A9 61 [09:54:26]CheckFolder [09:54:26]dirname=/storage/ofd_packets [09:54:26]CheckFolder done [09:54:26]ProducePacketName [09:54:26]name=ofd_packets/00030557 [09:54:26]NVStorageSaveData ofd_packets/00030557 [09:54:26]File name is /storage/ofd_packets/00030557 [09:54:26]Write 301 bytes [09:54:26]NVStorageSaveData done [09:54:26]OFDSenderStorePacket done [09:54:26]KKMCreateOFDPacket done [09:54:26]NVStorageSaveData kkm_last_timestamp [09:54:26]File name is /storage/kkm_last_timestamp [09:54:26]Write 4 bytes [09:54:26]NVStorageSaveData done [09:54:26]ExternCall_PrintAddStr [09:54:26]wPrintStart [09:54:26]Write to MH i2c: 01 00 00 25 2E 53 [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: 01 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: 01 07 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: 01 07 00 25 2E 00 00 00 00 00 FF 0F 68 [09:54:26]RasterBufferAndPrint [09:54:26]line Счет N : (1)342962 [09:54:26]line ИНН: 02508201610067 [09:54:26]line Контрольно-Кассовый Чек [09:54:26]line ПРОДАЖА [09:54:26]line ТРК (МРК, ГНК) : 63 [09:54:26]line Товар: 2710124130 [09:54:26]line Аи-92-К-2 [09:54:26]line 2.550 * 66.90 [09:54:26]line = 170.60 [09:54:26]line НДС 12% НСП 1% [09:54:26]line > о реализуемом товаре [09:54:26]line ОКРУГЛЕНИЕ: -0.60 [09:54:26]line ИТОГО: 170.00 [09:54:26]line Внесено: 170.00 [09:54:26]line СДАЧА: 0.00 [09:54:26]line НСП 1% : 1.51 [09:54:26]line НДС 12% : 18.12 [09:54:26]line Наличными: 170.00 [09:54:26]line Безнал.: 0.00 [09:54:26]line Место: АЗС № 78 "Партнер Нефть" [09:54:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [09:54:26]line СНО: Общий режим [09:54:26]line Чек 54 21.10.2024 09:54 [09:54:26]line Смена: 115 ФФД: 1.0 [09:54:26]line ЗНМ: 0300000137 [09:54:26]line РНМ: 0000000000186857 [09:54:26]line Версия ККМ: v1.0 [09:54:26]line ФМ: 0000000002094219 [09:54:26]line ФД: 30557 [09:54:26]line ФПД: 162310183841737 [09:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30557&fm=162310183841737&tin=02508201610067®Number=0000000000186857&sum=17000 [09:54:26]OFD Sender: Processing packet 30557 [packets to send 10, broken 9] [09:54:26]ProducePacketName [09:54:26]name=ofd_packets/00030557 [09:54:26]OFD Sender: To server: pG, [09:54:26]CommunicateWithHost lk.salyk.kg:30040 [09:54:26]ConnectInit lk.salyk.kg [09:54:26]written 0, free lines is 4095 [09:54:26]Connected sock=10 [09:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6F AF 07 01 B7 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 F6 09 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A4 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 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 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 36 00 00 00 F4 03 04 00 D4 24 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 77 00 00 35 04 06 00 93 9E C8 D9 EF C9 E9 25 4F 4D 6C 78 A9 61 [09:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B6 EC 47 00 0B A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5D 77 00 00 F4 03 04 00 55 CF 15 67 B6 04 01 00 00 CA FB FE 20 2D B2 CB 17 [09:54:26]CommunicateWithHost err = 0 [09:54:26]CheckOFDResponse [09:54:26]1017 (14) - 77093643461234 [09:54:26]1041 (16) - 0000000002094219 [09:54:26]1040 (4) - 30557 [09:54:26]1012 (4) - 21.10.2024 03:49 [09:54:26]1206 (1) - 0 [09:54:26]OFD Sender: Remove packet 30557 [09:54:26]ProducePacketName [09:54:26]name=ofd_packets/00030557 [09:54:26]NVStorageDeleteData [09:54:27]Write to MH i2c: 01 00 00 50 2E 7E [09:54:27]Write i2c OK [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: 01 [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: 01 07 00 [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: 01 07 00 50 2E 00 00 00 00 00 F5 0C 86 [09:54:27]RasterBufferAndPrint [09:54:27]line [09:54:27]line [09:54:27]line [09:54:27]line [09:54:27]line [09:54:27]written 0, free lines is 3323 [09:54:27]MH_Cut [09:54:27]Write to MH i2c: D1 01 00 57 2E 01 57 [09:54:27]Write i2c OK [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: D1 [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: D1 01 00 [09:54:27]MH_I2C_Read... [09:54:27]Read from MH i2c: D1 01 00 57 2E 00 56 [09:54:27]Write to MH i2c: 01 00 00 58 2E 86 [09:54:27]Write i2c OK [09:54:27]MH_I2C_Read... [09:54:27]OFD Sender: No OFD packet to send [09:54:27]*** Cut start [09:54:27]*** Partial cut [09:54:27]*** CUTSNS_PIN = 1 [09:54:27]*** CUTSNS_PIN = 0 [09:54:27]*** Brake cut motor [09:54:28]Read from MH i2c: 01 [09:54:28]MH_I2C_Read... [09:54:28]*** Stop cut motor [09:54:28]*** Cut end [09:54:28]Read from MH i2c: 01 07 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: 01 07 00 58 2E 00 00 00 00 00 FF 0F 9B [09:54:28]process_action close_receipt done [09:54:28]requested_data is exist [09:54:28]produce_requested_data [09:54:28]requested_item fm.sn is exist - process it [09:54:28]wFMCommunicate request_size=4 [09:54:28]MH_SAM_APDU [09:54:28]CAPDU: 80 11 00 00 [09:54:28]Write to MH i2c: E2 08 00 59 2E 80 11 00 00 00 00 00 00 01 [09:54:28]Write i2c OK [09:54:28]MH_I2C_Read... [09:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:28]Read from MH i2c: E2 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 17 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 17 00 59 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [09:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [09:54:28]wFMCommunicate OK [09:54:28]requested_item fd.num is exist - process it [09:54:28]SAM_PROTO_GetFieldsCounters [09:54:28]wFMCommunicate request_size=4 [09:54:28]MH_SAM_APDU [09:54:28]CAPDU: 80 13 00 00 [09:54:28]Write to MH i2c: E2 08 00 5A 2E 80 13 00 00 00 00 00 00 04 [09:54:28]Write i2c OK [09:54:28]MH_I2C_Read... [09:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:28]Read from MH i2c: E2 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 62 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 62 00 5A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 77 00 00 0E 04 04 00 73 00 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 13 [09:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5D 77 00 00 0E 04 04 00 73 00 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 [09:54:28]wFMCommunicate OK [09:54:28]SAM_PROTO_GetFieldsCounters done [09:54:28]requested_item shift.num is exist - process it [09:54:28]requested_item shift.opened is exist - process it [09:54:28]req_shift_opened [09:54:28]FM_GetShiftState [09:54:28]SAM_PROTO_GetShiftState [09:54:28]wFMCommunicate request_size=4 [09:54:28]MH_SAM_APDU [09:54:28]CAPDU: 80 13 01 00 [09:54:28]Write to MH i2c: E2 08 00 5B 2E 80 13 01 00 00 00 00 00 06 [09:54:28]Write i2c OK [09:54:28]MH_I2C_Read... [09:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:28]Read from MH i2c: E2 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 0E 00 [09:54:28]MH_I2C_Read... [09:54:28]Read from MH i2c: E2 0E 00 5B 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 82 [09:54:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [09:54:28]wFMCommunicate OK [09:54:28]SAM_PROTO_GetShiftState done [09:54:28]FM_GetShiftState done [09:54:28]req_shift_opened done [09:54:28]requested_item shift.open_date is exist - process it [09:54:28]req_shift_open_date [09:54:28]req_shift_open_date done [09:54:28]produce_requested_data done [09:54:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30557,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [09:54:28]process_action_free close_receipt [09:54:28]json_value_free [09:54:28]json_value_free done [09:54:28]process_json_proto returns [09:54:28]Send response to host [09:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30557,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [09:54:28]free response buf [09:54:28]execute_script done [09:54:28]execute_script returns [09:54:28]free content buf [09:54:28]Sock 7.Close socket [09:54:28]Sock 7.Thread stoped [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:21]accept exits with 9 [10:07:21]New connection [10:07:21]New thread 3067489636 created [10:07:21]Thread 3067346276 joined [10:07:21]Waiting for new connection... [10:07:21] Sock 9.Parse request [10:07:21]Sock 9.Check first char [10:07:21]Sock 9.First char is OK [10:07:21]request: POST /json_proto HTTP/1.0 [10:07:21]Method: POST [10:07:21]URL: /json_proto [10:07:21]Method is POST - this is cgi request [10:07:21]url: /json_proto [10:07:21]query_string will be loaded in cgi processing [10:07:21]execute_cgi json_proto POST (null) [10:07:21]execute_cgi path=json_proto method=POST [10:07:21]POST find Content-Length [10:07:21]Host: 172.17.51.3:8080 [10:07:21]Content-Length: 677 [10:07:21]Content-Type: application/json [10:07:21] [10:07:21]POST finish read [10:07:21]Found Content-Length = 677 [10:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]execute_script... [10:07:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:21]POST & json_proto [10:07:21]process_json_proto [10:07:21]json parsed OK: [10:07:21]protocol is kg_v1.0 [10:07:21]action value=close_receipt [10:07:21]process_action close_receipt [10:07:21]cmd_close_receipt [10:07:21]MH_GetDate [10:07:21]Write to MH i2c: F0 00 00 5C 2E 79 [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: F0 09 00 5C 2E 00 DD 27 16 67 04 C1 95 66 C3 [10:07:21]GetLastDocTimeStamp 1729504468 [10:07:21]current date 1729505245 [10:07:21]FM_GetShiftState [10:07:21]SAM_PROTO_GetShiftState [10:07:21]wFMCommunicate request_size=4 [10:07:21]MH_SAM_APDU [10:07:21]CAPDU: 80 13 01 00 [10:07:21]Write to MH i2c: E2 08 00 5D 2E 80 13 01 00 00 00 00 00 08 [10:07:21]Write i2c OK [10:07:21]MH_I2C_Read... [10:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:21]Read from MH i2c: E2 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 [10:07:21]MH_I2C_Read... [10:07:21]Read from MH i2c: E2 0E 00 5D 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 84 [10:07:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:07:21]wFMCommunicate OK [10:07:21]SAM_PROTO_GetShiftState done [10:07:21]FM_GetShiftState done [10:07:21]opened in 1729471058 [10:07:21]opened+sec_in_day 1729557458 [10:07:21]quantity*price = 50041 [10:07:21]sum+1 = 50042 [10:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 55 21.10.2024 10:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30558 ФПД: 257120132315768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100725&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30558&fm=257120132315768&tin=02508201610067®Number=0000000000186857&sum=50000 [10:07:22]StoreToDocumentArchive [10:07:22]shift 115 fd 30558 [10:07:22]save to /storage/0115/doc_00030558 [10:07:22]save last doc name /storage/0115/doc_00030558 to /storage/kkm_last_doc_name [10:07:22]save OK [10:07:22]Clear old archive folders... [10:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:22]tlvbuf is B6FDB230 [10:07:22]SAM_PROTO_ClearQueue [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 09 00 00 [10:07:22]Write to MH i2c: E2 08 00 6A 2E 80 09 00 00 00 00 00 00 0A [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 6A 2E 00 90 00 0C [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_ClearQueue done [10:07:22]KKMCreateOFDPacket [10:07:22]OFDProtocolAddRootSTLVToBuf [10:07:22]FM_MakeSignedData [10:07:22]FM_MakeSignedData [10:07:22]SAM_PROTO_SignData [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 01 02 [10:07:22]Write to MH i2c: E2 08 00 6B 2E 80 0D 01 02 00 00 00 00 12 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=255 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 DD 27 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 77 00 00 35 04 06 00 E9 [10:07:22]Write to MH i2c: E2 02 01 6C 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 DD 27 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 77 00 00 35 04 06 00 E9 00 00 8C [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=10 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 02 02 05 D9 72 26 BA 78 [10:07:22]Write to MH i2c: E2 0D 00 6D 2E 80 0D 02 02 05 00 D9 72 26 BA 78 00 00 C2 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [10:07:22]RAPDU: 90 00 [10:07:22]wFMCommunicate OK [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 0D 03 02 [10:07:22]Write to MH i2c: E2 08 00 6E 2E 80 0D 03 02 00 00 00 00 17 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0B 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 0B 00 6E 2E 00 DB 79 6D 2D 78 B9 C8 58 90 00 57 [10:07:22]RAPDU: DB 79 6D 2D 78 B9 C8 58 90 00 [10:07:22]wFMCommunicate OK [10:07:22]SAM_PROTO_SignData done [10:07:22]FM_MakeSignedData done [10:07:22]CreateOFDProtocolMessage [10:07:22]wFMCommunicate request_size=4 [10:07:22]MH_SAM_APDU [10:07:22]CAPDU: 80 11 00 00 [10:07:22]Write to MH i2c: E2 08 00 6F 2E 80 11 00 00 00 00 00 00 17 [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:22]Read from MH i2c: E2 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 17 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: E2 17 00 6F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [10:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:07:22]wFMCommunicate OK [10:07:22]CreateOFDProtocolMessage done [10:07:22]OFDSenderStorePacket 30558 [10:07:22]StoreOFDPacket docnum=30558 [10:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2F 08 07 01 AC 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 DD 27 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 77 00 00 35 04 06 00 E9 D9 72 26 BA 78 DB 79 6D 2D 78 B9 C8 58 [10:07:22]CheckFolder [10:07:22]dirname=/storage/ofd_packets [10:07:22]CheckFolder done [10:07:22]ProducePacketName [10:07:22]name=ofd_packets/00030558 [10:07:22]NVStorageSaveData ofd_packets/00030558 [10:07:22]File name is /storage/ofd_packets/00030558 [10:07:22]Write 301 bytes [10:07:22]NVStorageSaveData done [10:07:22]OFDSenderStorePacket done [10:07:22]KKMCreateOFDPacket done [10:07:22]NVStorageSaveData kkm_last_timestamp [10:07:22]File name is /storage/kkm_last_timestamp [10:07:22]Write 4 bytes [10:07:22]NVStorageSaveData done [10:07:22]ExternCall_PrintAddStr [10:07:22]wPrintStart [10:07:22]Write to MH i2c: 01 00 00 70 2E 9E [10:07:22]Write i2c OK [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 07 00 [10:07:22]MH_I2C_Read... [10:07:22]Read from MH i2c: 01 07 00 70 2E 00 00 00 00 00 FF 0F B3 [10:07:22]RasterBufferAndPrint [10:07:22]line Счет N : (1)342963 [10:07:22]line ИНН: 02508201610067 [10:07:22]line Контрольно-Кассовый Чек [10:07:22]line ПРОДАЖА [10:07:22]line ТРК (МРК, ГНК) : 33 [10:07:22]line Товар: 2710124130 [10:07:22]line Аи-92-К-2 [10:07:22]line 7.480 * 66.90 [10:07:22]line = 500.41 [10:07:22]line НДС 12% НСП 1% [10:07:22]line > о реализуемом товаре [10:07:22]line ОКРУГЛЕНИЕ: -0.41 [10:07:22]line ИТОГО: 500.00 [10:07:22]line Внесено: 500.00 [10:07:22]line СДАЧА: 0.00 [10:07:22]line НСП 1% : 4.43 [10:07:22]line НДС 12% : 53.14 [10:07:22]line Наличными: 500.00 [10:07:22]line Безнал.: 0.00 [10:07:22]line Место: АЗС № 78 "Партнер Нефть" [10:07:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:07:22]line СНО: Общий режим [10:07:22]line Чек 55 21.10.2024 10:07 [10:07:22]line Смена: 115 ФФД: 1.0 [10:07:22]line ЗНМ: 0300000137 [10:07:22]line РНМ: 0000000000186857 [10:07:22]line Версия ККМ: v1.0 [10:07:22]line ФМ: 0000000002094219 [10:07:22]line ФД: 30558 [10:07:22]line ФПД: 257120132315768 [10:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100725&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30558&fm=257120132315768&tin=02508201610067®Number=0000000000186857&sum=50000 [10:07:23]written 0, free lines is 4095 [10:07:23]OFD Sender: Processing packet 30558 [packets to send 10, broken 9] [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00030558 [10:07:23]OFD Sender: To server: pG, [10:07:23]CommunicateWithHost lk.salyk.kg:30040 [10:07:23]ConnectInit lk.salyk.kg [10:07:23]Connected sock=10 [10:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2F 08 07 01 AC 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 DD 27 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 77 00 00 35 04 06 00 E9 D9 72 26 BA 78 DB 79 6D 2D 78 B9 C8 58 [10:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FF 9A 47 00 55 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5E 77 00 00 F4 03 04 00 5E D2 15 67 B6 04 01 00 00 9B 00 32 36 7C D1 4E 0E [10:07:23]CommunicateWithHost err = 0 [10:07:23]CheckOFDResponse [10:07:23]1017 (14) - 77093643461234 [10:07:23]1041 (16) - 0000000002094219 [10:07:23]1040 (4) - 30558 [10:07:23]1012 (4) - 21.10.2024 04:02 [10:07:23]1206 (1) - 0 [10:07:23]OFD Sender: Remove packet 30558 [10:07:23]ProducePacketName [10:07:23]name=ofd_packets/00030558 [10:07:23]NVStorageDeleteData [10:07:23]Write to MH i2c: 01 00 00 9B 2E C9 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: 01 07 00 9B 2E 00 00 00 00 00 F5 0C D1 [10:07:23]RasterBufferAndPrint [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]line [10:07:23]written 0, free lines is 3323 [10:07:23]MH_Cut [10:07:23]Write to MH i2c: D1 01 00 A2 2E 01 A2 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 01 00 [10:07:23]MH_I2C_Read... [10:07:23]Read from MH i2c: D1 01 00 A2 2E 00 A1 [10:07:23]Write to MH i2c: 01 00 00 A3 2E D1 [10:07:23]Write i2c OK [10:07:23]MH_I2C_Read... [10:07:24]OFD Sender: No OFD packet to send [10:07:24]*** Cut start [10:07:24]*** Partial cut [10:07:24]*** CUTSNS_PIN = 1 [10:07:24]*** CUTSNS_PIN = 0 [10:07:24]*** Brake cut motor [10:07:24]Read from MH i2c: 01 [10:07:24]MH_I2C_Read... [10:07:24]*** Stop cut motor [10:07:24]*** Cut end [10:07:24]Read from MH i2c: 01 07 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: 01 07 00 A3 2E 00 00 00 00 00 FF 0F E6 [10:07:24]process_action close_receipt done [10:07:24]requested_data is exist [10:07:24]produce_requested_data [10:07:24]requested_item fm.sn is exist - process it [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 11 00 00 [10:07:24]Write to MH i2c: E2 08 00 A4 2E 80 11 00 00 00 00 00 00 4C [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:24]Read from MH i2c: E2 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 [10:07:24]MH_I2C_Read... [10:07:24]Read from MH i2c: E2 17 00 A4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9A [10:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:07:24]wFMCommunicate OK [10:07:24]requested_item fd.num is exist - process it [10:07:24]SAM_PROTO_GetFieldsCounters [10:07:24]wFMCommunicate request_size=4 [10:07:24]MH_SAM_APDU [10:07:24]CAPDU: 80 13 00 00 [10:07:24]Write to MH i2c: E2 08 00 A5 2E 80 13 00 00 00 00 00 00 4F [10:07:24]Write i2c OK [10:07:24]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 62 00 A5 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 77 00 00 0E 04 04 00 73 00 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 62 [10:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetFieldsCounters done [10:07:25]requested_item shift.num is exist - process it [10:07:25]requested_item shift.opened is exist - process it [10:07:25]req_shift_opened [10:07:25]FM_GetShiftState [10:07:25]SAM_PROTO_GetShiftState [10:07:25]wFMCommunicate request_size=4 [10:07:25]MH_SAM_APDU [10:07:25]CAPDU: 80 13 01 00 [10:07:25]Write to MH i2c: E2 08 00 A6 2E 80 13 01 00 00 00 00 00 51 [10:07:25]Write i2c OK [10:07:25]MH_I2C_Read... [10:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:25]Read from MH i2c: E2 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 [10:07:25]MH_I2C_Read... [10:07:25]Read from MH i2c: E2 0E 00 A6 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CD [10:07:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:07:25]wFMCommunicate OK [10:07:25]SAM_PROTO_GetShiftState done [10:07:25]FM_GetShiftState done [10:07:25]req_shift_opened done [10:07:25]requested_item shift.open_date is exist - process it [10:07:25]req_shift_open_date [10:07:25]req_shift_open_date done [10:07:25]produce_requested_data done [10:07:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30558,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:07:25]process_action_free close_receipt [10:07:25]json_value_free [10:07:25]json_value_free done [10:07:25]process_json_proto returns [10:07:25]Send response to host [10:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30558,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:07:25]free response buf [10:07:25]execute_script done [10:07:25]execute_script returns [10:07:25]free content buf [10:07:25]Sock 9.Close socket [10:07:25]Sock 9.Thread stoped [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:41]accept exits with 7 [10:18:41]New connection [10:18:41]New thread 3067346276 created [10:18:41]Thread 3067489636 joined [10:18:41]Waiting for new connection... [10:18:41] Sock 7.Parse request [10:18:41]Sock 7.Check first char [10:18:41]Sock 7.First char is OK [10:18:41]request: POST /json_proto HTTP/1.0 [10:18:41]Method: POST [10:18:41]URL: /json_proto [10:18:41]Method is POST - this is cgi request [10:18:41]url: /json_proto [10:18:41]query_string will be loaded in cgi processing [10:18:41]execute_cgi json_proto POST (null) [10:18:41]execute_cgi path=json_proto method=POST [10:18:41]POST find Content-Length [10:18:41]Host: 172.17.51.3:8080 [10:18:41]Content-Length: 677 [10:18:41]Content-Type: application/json [10:18:41] [10:18:41]POST finish read [10:18:41]Found Content-Length = 677 [10:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:41]execute_script... [10:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:18:41]POST & json_proto [10:18:41]process_json_proto [10:18:41]json parsed OK: [10:18:41]protocol is kg_v1.0 [10:18:41]action value=close_receipt [10:18:41]process_action close_receipt [10:18:41]cmd_close_receipt [10:18:41]MH_GetDate [10:18:41]Write to MH i2c: F0 00 00 A7 2E C4 [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 09 00 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: F0 09 00 A7 2E 00 85 2A 16 67 04 C1 95 66 B9 [10:18:41]GetLastDocTimeStamp 1729505245 [10:18:41]current date 1729505925 [10:18:41]FM_GetShiftState [10:18:41]SAM_PROTO_GetShiftState [10:18:41]wFMCommunicate request_size=4 [10:18:41]MH_SAM_APDU [10:18:41]CAPDU: 80 13 01 00 [10:18:41]Write to MH i2c: E2 08 00 A8 2E 80 13 01 00 00 00 00 00 53 [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:41]Read from MH i2c: E2 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: E2 0E 00 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: E2 0E 00 A8 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CF [10:18:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:18:41]wFMCommunicate OK [10:18:41]SAM_PROTO_GetShiftState done [10:18:41]FM_GetShiftState done [10:18:41]opened in 1729471058 [10:18:41]opened+sec_in_day 1729557458 [10:18:41]quantity*price = 40006 [10:18:41]sum+1 = 40007 [10:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 56 21.10.2024 10:18 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30559 ФПД: 156741146042618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101845&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30559&fm=156741146042618&tin=02508201610067®Number=0000000000186857&sum=40000 [10:18:42]StoreToDocumentArchive [10:18:42]shift 115 fd 30559 [10:18:42]save to /storage/0115/doc_00030559 [10:18:42]save last doc name /storage/0115/doc_00030559 to /storage/kkm_last_doc_name [10:18:42]save OK [10:18:42]Clear old archive folders... [10:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:42]tlvbuf is B6F5D350 [10:18:42]SAM_PROTO_ClearQueue [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 09 00 00 [10:18:42]Write to MH i2c: E2 08 00 B5 2E 80 09 00 00 00 00 00 00 55 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_ClearQueue done [10:18:42]KKMCreateOFDPacket [10:18:42]OFDProtocolAddRootSTLVToBuf [10:18:42]FM_MakeSignedData [10:18:42]FM_MakeSignedData [10:18:42]SAM_PROTO_SignData [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 01 02 [10:18:42]Write to MH i2c: E2 08 00 B6 2E 80 0D 01 02 00 00 00 00 5D [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=255 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 2A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 77 00 00 35 04 06 00 8E [10:18:42]Write to MH i2c: E2 02 01 B7 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 2A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 77 00 00 35 04 06 00 8E 00 00 F8 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 B7 2E 00 90 00 59 [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=10 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 02 02 05 8E 24 54 E0 FA [10:18:42]Write to MH i2c: E2 0D 00 B8 2E 80 0D 02 02 05 00 8E 24 54 E0 FA 00 00 4A [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 03 00 B8 2E 00 90 00 5A [10:18:42]RAPDU: 90 00 [10:18:42]wFMCommunicate OK [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 0D 03 02 [10:18:42]Write to MH i2c: E2 08 00 B9 2E 80 0D 03 02 00 00 00 00 62 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0B 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0B 00 B9 2E 00 DA 3A FB 1B 1F CB 42 CF 90 00 88 [10:18:42]RAPDU: DA 3A FB 1B 1F CB 42 CF 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_SignData done [10:18:42]FM_MakeSignedData done [10:18:42]CreateOFDProtocolMessage [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 11 00 00 [10:18:42]Write to MH i2c: E2 08 00 BA 2E 80 11 00 00 00 00 00 00 62 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 17 00 BA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B0 [10:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:18:42]wFMCommunicate OK [10:18:42]CreateOFDProtocolMessage done [10:18:42]OFDSenderStorePacket 30559 [10:18:42]StoreOFDPacket docnum=30559 [10:18:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 FB 07 01 9B 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 2A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 77 00 00 35 04 06 00 8E 8E 24 54 E0 FA DA 3A FB 1B 1F CB 42 CF [10:18:42]CheckFolder [10:18:42]dirname=/storage/ofd_packets [10:18:42]CheckFolder done [10:18:42]ProducePacketName [10:18:42]name=ofd_packets/00030559 [10:18:42]NVStorageSaveData ofd_packets/00030559 [10:18:42]File name is /storage/ofd_packets/00030559 [10:18:42]Write 301 bytes [10:18:42]NVStorageSaveData done [10:18:42]OFDSenderStorePacket done [10:18:42]KKMCreateOFDPacket done [10:18:42]NVStorageSaveData kkm_last_timestamp [10:18:42]File name is /storage/kkm_last_timestamp [10:18:42]Write 4 bytes [10:18:42]NVStorageSaveData done [10:18:42]ExternCall_PrintAddStr [10:18:42]wPrintStart [10:18:42]Write to MH i2c: 01 00 00 BB 2E E9 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 07 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: 01 07 00 BB 2E 00 00 00 00 00 FF 0F FE [10:18:42]RasterBufferAndPrint [10:18:42]line Счет N : (1)342964 [10:18:42]line ИНН: 02508201610067 [10:18:42]line Контрольно-Кассовый Чек [10:18:42]line ПРОДАЖА [10:18:42]line ТРК (МРК, ГНК) : 33 [10:18:42]line Товар: 2710124130 [10:18:42]line Аи-92-К-2 [10:18:42]line 5.980 * 66.90 [10:18:42]line = 400.06 [10:18:42]line НДС 12% НСП 1% [10:18:42]line > о реализуемом товаре [10:18:42]line ОКРУГЛЕНИЕ: -0.06 [10:18:42]line ИТОГО: 400.00 [10:18:42]line Внесено: 400.00 [10:18:42]line СДАЧА: 0.00 [10:18:42]line НСП 1% : 3.54 [10:18:42]line НДС 12% : 42.48 [10:18:42]line Наличными: 400.00 [10:18:42]line Безнал.: 0.00 [10:18:42]line Место: АЗС № 78 "Партнер Нефть" [10:18:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:18:42]line СНО: Общий режим [10:18:42]line Чек 56 21.10.2024 10:18 [10:18:42]line Смена: 115 ФФД: 1.0 [10:18:42]line ЗНМ: 0300000137 [10:18:42]line РНМ: 0000000000186857 [10:18:42]line Версия ККМ: v1.0 [10:18:42]line ФМ: 0000000002094219 [10:18:42]line ФД: 30559 [10:18:42]line ФПД: 156741146042618 [10:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101845&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30559&fm=156741146042618&tin=02508201610067®Number=0000000000186857&sum=40000 [10:18:43]OFD Sender: Processing packet 30559 [packets to send 10, broken 9] [10:18:43]ProducePacketName [10:18:43]name=ofd_packets/00030559 [10:18:43]OFD Sender: To server: pG, [10:18:43]CommunicateWithHost lk.salyk.kg:30040 [10:18:43]ConnectInit lk.salyk.kg [10:18:43]written 0, free lines is 4095 [10:18:43]Connected sock=10 [10:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 FB 07 01 9B 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 85 2A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 77 00 00 35 04 06 00 8E 8E 24 54 E0 FA DA 3A FB 1B 1F CB 42 CF [10:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8C 1F 47 00 E2 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 5F 77 00 00 F4 03 04 00 06 D5 15 67 B6 04 01 00 00 6E 4B DB 30 A9 B4 0E D4 [10:18:43]CommunicateWithHost err = 0 [10:18:43]CheckOFDResponse [10:18:43]1017 (14) - 77093643461234 [10:18:43]1041 (16) - 0000000002094219 [10:18:43]1040 (4) - 30559 [10:18:43]1012 (4) - 21.10.2024 04:13 [10:18:43]1206 (1) - 0 [10:18:43]OFD Sender: Remove packet 30559 [10:18:43]ProducePacketName [10:18:43]name=ofd_packets/00030559 [10:18:43]NVStorageDeleteData [10:18:43]Write to MH i2c: 01 00 00 E6 2E 14 [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: 01 07 00 E6 2E 00 00 00 00 00 F5 0C 1C [10:18:43]RasterBufferAndPrint [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]line [10:18:43]written 0, free lines is 3323 [10:18:43]MH_Cut [10:18:43]Write to MH i2c: D1 01 00 ED 2E 01 ED [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 01 00 [10:18:43]MH_I2C_Read... [10:18:43]Read from MH i2c: D1 01 00 ED 2E 00 EC [10:18:43]Write to MH i2c: 01 00 00 EE 2E 1C [10:18:43]Write i2c OK [10:18:43]MH_I2C_Read... [10:18:43]OFD Sender: No OFD packet to send [10:18:44]*** Cut start [10:18:44]*** Partial cut [10:18:44]*** CUTSNS_PIN = 1 [10:18:44]*** CUTSNS_PIN = 0 [10:18:44]*** Brake cut motor [10:18:44]Read from MH i2c: 01 [10:18:44]MH_I2C_Read... [10:18:44]*** Stop cut motor [10:18:44]*** Cut end [10:18:44]Read from MH i2c: 01 07 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: 01 07 00 EE 2E 00 00 00 00 00 FF 0F 31 [10:18:44]process_action close_receipt done [10:18:44]requested_data is exist [10:18:44]produce_requested_data [10:18:44]requested_item fm.sn is exist - process it [10:18:44]wFMCommunicate request_size=4 [10:18:44]MH_SAM_APDU [10:18:44]CAPDU: 80 11 00 00 [10:18:44]Write to MH i2c: E2 08 00 EF 2E 80 11 00 00 00 00 00 00 97 [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:44]Read from MH i2c: E2 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 17 00 [10:18:44]MH_I2C_Read... [10:18:44]Read from MH i2c: E2 17 00 EF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E5 [10:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:18:44]wFMCommunicate OK [10:18:44]requested_item fd.num is exist - process it [10:18:44]SAM_PROTO_GetFieldsCounters [10:18:44]wFMCommunicate request_size=4 [10:18:44]MH_SAM_APDU [10:18:44]CAPDU: 80 13 00 00 [10:18:44]Write to MH i2c: E2 08 00 F0 2E 80 13 00 00 00 00 00 00 9A [10:18:44]Write i2c OK [10:18:44]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 62 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 62 00 F0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [10:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 5F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:45]wFMCommunicate OK [10:18:45]SAM_PROTO_GetFieldsCounters done [10:18:45]requested_item shift.num is exist - process it [10:18:45]requested_item shift.opened is exist - process it [10:18:45]req_shift_opened [10:18:45]FM_GetShiftState [10:18:45]SAM_PROTO_GetShiftState [10:18:45]wFMCommunicate request_size=4 [10:18:45]MH_SAM_APDU [10:18:45]CAPDU: 80 13 01 00 [10:18:45]Write to MH i2c: E2 08 00 F1 2E 80 13 01 00 00 00 00 00 9C [10:18:45]Write i2c OK [10:18:45]MH_I2C_Read... [10:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:45]Read from MH i2c: E2 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 0E 00 [10:18:45]MH_I2C_Read... [10:18:45]Read from MH i2c: E2 0E 00 F1 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 18 [10:18:45]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:18:45]wFMCommunicate OK [10:18:45]SAM_PROTO_GetShiftState done [10:18:45]FM_GetShiftState done [10:18:45]req_shift_opened done [10:18:45]requested_item shift.open_date is exist - process it [10:18:45]req_shift_open_date [10:18:45]req_shift_open_date done [10:18:45]produce_requested_data done [10:18:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30559,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:18:45]process_action_free close_receipt [10:18:45]json_value_free [10:18:45]json_value_free done [10:18:45]process_json_proto returns [10:18:45]Send response to host [10:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30559,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:18:45]free response buf [10:18:45]execute_script done [10:18:45]execute_script returns [10:18:45]free content buf [10:18:45]Sock 7.Close socket [10:18:45]Sock 7.Thread stoped [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:12]accept exits with 9 [10:23:12]New connection [10:23:12]New thread 3067489636 created [10:23:12]Thread 3067346276 joined [10:23:12]Waiting for new connection... [10:23:12] Sock 9.Parse request [10:23:12]Sock 9.Check first char [10:23:12]Sock 9.First char is OK [10:23:12]request: POST /json_proto HTTP/1.0 [10:23:12]Method: POST [10:23:12]URL: /json_proto [10:23:12]Method is POST - this is cgi request [10:23:12]url: /json_proto [10:23:12]query_string will be loaded in cgi processing [10:23:12]execute_cgi json_proto POST (null) [10:23:12]execute_cgi path=json_proto method=POST [10:23:12]POST find Content-Length [10:23:12]Host: 172.17.51.3:8080 [10:23:12]Content-Length: 679 [10:23:12]Content-Type: application/json [10:23:12] [10:23:12]POST finish read [10:23:12]Found Content-Length = 679 [10:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:12]execute_script... [10:23:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:12]POST & json_proto [10:23:12]process_json_proto [10:23:12]json parsed OK: [10:23:12]protocol is kg_v1.0 [10:23:12]action value=close_receipt [10:23:12]process_action close_receipt [10:23:12]cmd_close_receipt [10:23:12]MH_GetDate [10:23:12]Write to MH i2c: F0 00 00 F2 2E 0F [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: F0 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: F0 09 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: F0 09 00 F2 2E 00 94 2B 16 67 04 C1 95 66 14 [10:23:12]GetLastDocTimeStamp 1729505925 [10:23:12]current date 1729506196 [10:23:12]FM_GetShiftState [10:23:12]SAM_PROTO_GetShiftState [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 13 01 00 [10:23:12]Write to MH i2c: E2 08 00 F3 2E 80 13 01 00 00 00 00 00 9E [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0E 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0E 00 F3 2E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1A [10:23:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_GetShiftState done [10:23:12]FM_GetShiftState done [10:23:12]opened in 1729471058 [10:23:12]opened+sec_in_day 1729557458 [10:23:12]quantity*price = 100050 [10:23:12]sum+1 = 100052 [10:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 57 21.10.2024 10:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30560 ФПД: 79863249886334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102316&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30560&fm=79863249886334&tin=02508201610067®Number=0000000000186857&sum=100000 [10:23:13]StoreToDocumentArchive [10:23:13]shift 115 fd 30560 [10:23:13]save to /storage/0115/doc_00030560 [10:23:13]save last doc name /storage/0115/doc_00030560 to /storage/kkm_last_doc_name [10:23:13]save OK [10:23:13]Clear old archive folders... [10:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:23:13]tlvbuf is 01E50620 [10:23:13]SAM_PROTO_ClearQueue [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 09 00 00 [10:23:13]Write to MH i2c: E2 08 00 00 2F 80 09 00 00 00 00 00 00 A1 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 00 2F 00 90 00 A3 [10:23:13]RAPDU: 90 00 [10:23:13]wFMCommunicate OK [10:23:13]SAM_PROTO_ClearQueue done [10:23:13]KKMCreateOFDPacket [10:23:13]OFDProtocolAddRootSTLVToBuf [10:23:13]FM_MakeSignedData [10:23:13]FM_MakeSignedData [10:23:13]SAM_PROTO_SignData [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 0D 01 02 [10:23:13]Write to MH i2c: E2 08 00 01 2F 80 0D 01 02 00 00 00 00 A9 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:13]Read from MH i2c: E2 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: E2 03 00 01 2F 00 90 00 A4 [10:23:13]RAPDU: 90 00 [10:23:13]wFMCommunicate OK [10:23:13]wFMCommunicate request_size=255 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 94 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 77 00 00 35 04 06 00 48 A2 9C A3 [10:23:13]Write to MH i2c: E2 02 01 02 2F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 94 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 77 00 00 35 04 06 00 48 A2 9C A3 00 00 18 [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 02 2F 00 90 00 A5 [10:23:14]RAPDU: 90 00 [10:23:14]wFMCommunicate OK [10:23:14]wFMCommunicate request_size=7 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 0D 02 02 02 DC 7E [10:23:14]Write to MH i2c: E2 0A 00 03 2F 80 0D 02 02 02 00 DC 7E 00 00 0A [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 03 00 03 2F 00 90 00 A6 [10:23:14]RAPDU: 90 00 [10:23:14]wFMCommunicate OK [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 0D 03 02 [10:23:14]Write to MH i2c: E2 08 00 04 2F 80 0D 03 02 00 00 00 00 AE [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:14]OFD Sender: No OFD packet to send [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0B 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0B 00 04 2F 00 56 DA A3 00 6F 0F BA 56 90 00 10 [10:23:14]RAPDU: 56 DA A3 00 6F 0F BA 56 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_SignData done [10:23:14]FM_MakeSignedData done [10:23:14]CreateOFDProtocolMessage [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 11 00 00 [10:23:14]Write to MH i2c: E2 08 00 05 2F 80 11 00 00 00 00 00 00 AE [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 05 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FC [10:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:23:14]wFMCommunicate OK [10:23:14]CreateOFDProtocolMessage done [10:23:14]OFDSenderStorePacket 30560 [10:23:14]StoreOFDPacket docnum=30560 [10:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F7 B9 04 01 A6 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 94 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 77 00 00 35 04 06 00 48 A2 9C A3 DC 7E 56 DA A3 00 6F 0F BA 56 [10:23:14]CheckFolder [10:23:14]dirname=/storage/ofd_packets [10:23:14]CheckFolder done [10:23:14]ProducePacketName [10:23:14]name=ofd_packets/00030560 [10:23:14]NVStorageSaveData ofd_packets/00030560 [10:23:14]File name is /storage/ofd_packets/00030560 [10:23:14]Write 298 bytes [10:23:14]NVStorageSaveData done [10:23:14]OFDSenderStorePacket done [10:23:14]KKMCreateOFDPacket done [10:23:14]NVStorageSaveData kkm_last_timestamp [10:23:14]File name is /storage/kkm_last_timestamp [10:23:14]Write 4 bytes [10:23:14]NVStorageSaveData done [10:23:14]ExternCall_PrintAddStr [10:23:14]wPrintStart [10:23:14]Write to MH i2c: 01 00 00 06 2F 35 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: 01 07 00 06 2F 00 00 00 00 00 FF 0F 4A [10:23:14]RasterBufferAndPrint [10:23:14]line Счет N : (1)342965 [10:23:14]line ИНН: 02508201610067 [10:23:14]line Контрольно-Кассовый Чек [10:23:14]line ПРОДАЖА [10:23:14]line ТРК (МРК, ГНК) : 54 [10:23:14]line Товар: 2710194210 [10:23:14]line ДТ-К-2 [10:23:14]line 13.130 * 76.20 [10:23:14]line = 1000.51 [10:23:14]line НДС 12% НСП 1% [10:23:14]line > о реализуемом товаре [10:23:14]line ОКРУГЛЕНИЕ: -0.51 [10:23:14]line ИТОГО: 1000.00 [10:23:14]line Внесено: 1000.00 [10:23:14]line СДАЧА: 0.00 [10:23:14]line НСП 1% : 8.85 [10:23:14]line НДС 12% : 106.25 [10:23:14]line Наличными: 1000.00 [10:23:14]line Безнал.: 0.00 [10:23:14]line Место: АЗС № 78 "Партнер Нефть" [10:23:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:23:14]line СНО: Общий режим [10:23:14]line Чек 57 21.10.2024 10:23 [10:23:14]line Смена: 115 ФФД: 1.0 [10:23:14]line ЗНМ: 0300000137 [10:23:14]line РНМ: 0000000000186857 [10:23:14]line Версия ККМ: v1.0 [10:23:14]line ФМ: 0000000002094219 [10:23:14]line ФД: 30560 [10:23:14]line ФПД: 79863249886334 [10:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102316&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30560&fm=79863249886334&tin=02508201610067®Number=0000000000186857&sum=100000 [10:23:14]OFD Sender: Processing packet 30560 [packets to send 10, broken 9] [10:23:14]ProducePacketName [10:23:14]name=ofd_packets/00030560 [10:23:14]OFD Sender: To server: pG, [10:23:14]CommunicateWithHost lk.salyk.kg:30040 [10:23:14]ConnectInit lk.salyk.kg [10:23:14]written 0, free lines is 4095 [10:23:14]Connected sock=10 [10:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F7 B9 04 01 A6 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 94 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 77 00 00 35 04 06 00 48 A2 9C A3 DC 7E 56 DA A3 00 6F 0F BA 56 [10:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4A 75 47 00 D9 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 60 77 00 00 F4 03 04 00 15 D6 15 67 B6 04 01 00 00 41 6C 3F 2C 11 02 07 C2 [10:23:14]CommunicateWithHost err = 0 [10:23:14]CheckOFDResponse [10:23:14]1017 (14) - 77093643461234 [10:23:14]1041 (16) - 0000000002094219 [10:23:14]1040 (4) - 30560 [10:23:14]1012 (4) - 21.10.2024 04:18 [10:23:14]1206 (1) - 0 [10:23:14]OFD Sender: Remove packet 30560 [10:23:14]ProducePacketName [10:23:14]name=ofd_packets/00030560 [10:23:14]NVStorageDeleteData [10:23:15]Write to MH i2c: 01 00 00 31 2F 60 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: 01 07 00 31 2F 00 00 00 00 00 F2 0C 65 [10:23:15]RasterBufferAndPrint [10:23:15]line [10:23:15]line [10:23:15]line [10:23:15]line [10:23:15]line [10:23:15]written 0, free lines is 3320 [10:23:15]MH_Cut [10:23:15]Write to MH i2c: D1 01 00 38 2F 01 39 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: D1 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: D1 01 00 [10:23:15]MH_I2C_Read... [10:23:15]Read from MH i2c: D1 01 00 38 2F 00 38 [10:23:15]Write to MH i2c: 01 00 00 39 2F 68 [10:23:15]Write i2c OK [10:23:15]MH_I2C_Read... [10:23:15]OFD Sender: No OFD packet to send [10:23:15]*** Cut start [10:23:15]*** Partial cut [10:23:15]*** CUTSNS_PIN = 1 [10:23:15]*** CUTSNS_PIN = 0 [10:23:15]*** Brake cut motor [10:23:16]Read from MH i2c: 01 [10:23:16]*** Stop cut motor [10:23:16]*** Cut end [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: 01 07 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: 01 07 00 39 2F 00 00 00 00 00 FF 0F 7D [10:23:16]process_action close_receipt done [10:23:16]requested_data is exist [10:23:16]produce_requested_data [10:23:16]requested_item fm.sn is exist - process it [10:23:16]wFMCommunicate request_size=4 [10:23:16]MH_SAM_APDU [10:23:16]CAPDU: 80 11 00 00 [10:23:16]Write to MH i2c: E2 08 00 3A 2F 80 11 00 00 00 00 00 00 E3 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 17 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 17 00 3A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 31 [10:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:23:16]wFMCommunicate OK [10:23:16]requested_item fd.num is exist - process it [10:23:16]SAM_PROTO_GetFieldsCounters [10:23:16]wFMCommunicate request_size=4 [10:23:16]MH_SAM_APDU [10:23:16]CAPDU: 80 13 00 00 [10:23:16]Write to MH i2c: E2 08 00 3B 2F 80 13 00 00 00 00 00 00 E6 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 62 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 62 00 3B 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 77 00 00 0E 04 04 00 73 00 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 01 [10:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 60 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:16]wFMCommunicate OK [10:23:16]SAM_PROTO_GetFieldsCounters done [10:23:16]requested_item shift.num is exist - process it [10:23:16]requested_item shift.opened is exist - process it [10:23:16]req_shift_opened [10:23:16]FM_GetShiftState [10:23:16]SAM_PROTO_GetShiftState [10:23:16]wFMCommunicate request_size=4 [10:23:16]MH_SAM_APDU [10:23:16]CAPDU: 80 13 01 00 [10:23:16]Write to MH i2c: E2 08 00 3C 2F 80 13 01 00 00 00 00 00 E8 [10:23:16]Write i2c OK [10:23:16]MH_I2C_Read... [10:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:16]Read from MH i2c: E2 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 [10:23:16]MH_I2C_Read... [10:23:16]Read from MH i2c: E2 0E 00 3C 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 64 [10:23:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:23:16]wFMCommunicate OK [10:23:16]SAM_PROTO_GetShiftState done [10:23:16]FM_GetShiftState done [10:23:16]req_shift_opened done [10:23:16]requested_item shift.open_date is exist - process it [10:23:16]req_shift_open_date [10:23:16]req_shift_open_date done [10:23:16]produce_requested_data done [10:23:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30560,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:23:16]process_action_free close_receipt [10:23:16]json_value_free [10:23:16]json_value_free done [10:23:16]process_json_proto returns [10:23:16]Send response to host [10:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30560,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:23:16]free response buf [10:23:16]execute_script done [10:23:16]execute_script returns [10:23:16]free content buf [10:23:16]Sock 9.Close socket [10:23:16]Sock 9.Thread stoped [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:41]accept exits with 7 [10:23:41]New connection [10:23:41]New thread 3067346276 created [10:23:41]Thread 3067489636 joined [10:23:41]Waiting for new connection... [10:23:41] Sock 7.Parse request [10:23:41]Sock 7.Check first char [10:23:41]Sock 7.First char is OK [10:23:41]request: POST /json_proto HTTP/1.0 [10:23:41]Method: POST [10:23:41]URL: /json_proto [10:23:41]Method is POST - this is cgi request [10:23:41]url: /json_proto [10:23:41]query_string will be loaded in cgi processing [10:23:41]execute_cgi json_proto POST (null) [10:23:41]execute_cgi path=json_proto method=POST [10:23:41]POST find Content-Length [10:23:41]Host: 172.17.51.3:8080 [10:23:41]Content-Length: 683 [10:23:41]Content-Type: application/json [10:23:41] [10:23:41]POST finish read [10:23:41]Found Content-Length = 683 [10:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:41]execute_script... [10:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:41]POST & json_proto [10:23:41]process_json_proto [10:23:41]json parsed OK: [10:23:41]protocol is kg_v1.0 [10:23:41]action value=close_receipt [10:23:41]process_action close_receipt [10:23:41]cmd_close_receipt [10:23:41]MH_GetDate [10:23:41]Write to MH i2c: F0 00 00 3D 2F 5B [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 09 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: F0 09 00 3D 2F 00 B1 2B 16 67 04 C1 95 66 7D [10:23:41]GetLastDocTimeStamp 1729506196 [10:23:41]current date 1729506225 [10:23:41]FM_GetShiftState [10:23:41]SAM_PROTO_GetShiftState [10:23:41]wFMCommunicate request_size=4 [10:23:41]MH_SAM_APDU [10:23:41]CAPDU: 80 13 01 00 [10:23:41]Write to MH i2c: E2 08 00 3E 2F 80 13 01 00 00 00 00 00 EA [10:23:41]Write i2c OK [10:23:41]MH_I2C_Read... [10:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:41]Read from MH i2c: E2 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 [10:23:41]MH_I2C_Read... [10:23:41]Read from MH i2c: E2 0E 00 3E 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 66 [10:23:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:23:41]wFMCommunicate OK [10:23:41]SAM_PROTO_GetShiftState done [10:23:41]FM_GetShiftState done [10:23:41]opened in 1729471058 [10:23:41]opened+sec_in_day 1729557458 [10:23:41]quantity*price = 70020 [10:23:41]sum+1 = 70021 [10:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 58 21.10.2024 10:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30561 ФПД: 116479644591918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102345&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30561&fm=116479644591918&tin=02508201610067®Number=0000000000186857&sum=70000 [10:23:42]StoreToDocumentArchive [10:23:42]shift 115 fd 30561 [10:23:42]save to /storage/0115/doc_00030561 [10:23:42]save last doc name /storage/0115/doc_00030561 to /storage/kkm_last_doc_name [10:23:42]save OK [10:23:42]Clear old archive folders... [10:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:23:42]tlvbuf is 01E05F20 [10:23:42]SAM_PROTO_ClearQueue [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 09 00 00 [10:23:42]Write to MH i2c: E2 08 00 4B 2F 80 09 00 00 00 00 00 00 EC [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 4B 2F 00 90 00 EE [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_ClearQueue done [10:23:42]KKMCreateOFDPacket [10:23:42]OFDProtocolAddRootSTLVToBuf [10:23:42]FM_MakeSignedData [10:23:42]FM_MakeSignedData [10:23:42]SAM_PROTO_SignData [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 01 02 [10:23:42]Write to MH i2c: E2 08 00 4C 2F 80 0D 01 02 00 00 00 00 F4 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 4C 2F 00 90 00 EF [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=255 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 77 00 [10:23:42]Write to MH i2c: E2 02 01 4D 2F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 77 00 00 00 52 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 4D 2F 00 90 00 F0 [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=16 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 69 F0 07 D6 E7 2E [10:23:42]Write to MH i2c: E2 13 00 4E 2F 80 0D 02 02 0B 00 00 35 04 06 00 69 F0 07 D6 E7 2E 00 00 97 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 03 00 4E 2F 00 90 00 F1 [10:23:42]RAPDU: 90 00 [10:23:42]wFMCommunicate OK [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 0D 03 02 [10:23:42]Write to MH i2c: E2 08 00 4F 2F 80 0D 03 02 00 00 00 00 F9 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0B 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 0B 00 4F 2F 00 C2 55 1C 39 1A B2 1D 34 90 00 83 [10:23:42]RAPDU: C2 55 1C 39 1A B2 1D 34 90 00 [10:23:42]wFMCommunicate OK [10:23:42]SAM_PROTO_SignData done [10:23:42]FM_MakeSignedData done [10:23:42]CreateOFDProtocolMessage [10:23:42]wFMCommunicate request_size=4 [10:23:42]MH_SAM_APDU [10:23:42]CAPDU: 80 11 00 00 [10:23:42]Write to MH i2c: E2 08 00 50 2F 80 11 00 00 00 00 00 00 F9 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:42]Read from MH i2c: E2 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: E2 17 00 50 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 47 [10:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:23:42]wFMCommunicate OK [10:23:42]CreateOFDProtocolMessage done [10:23:42]OFDSenderStorePacket 30561 [10:23:42]StoreOFDPacket docnum=30561 [10:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 33 97 0D 01 A3 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 77 00 00 35 04 06 00 69 F0 07 D6 E7 2E C2 55 1C 39 1A B2 1D 34 [10:23:42]CheckFolder [10:23:42]dirname=/storage/ofd_packets [10:23:42]CheckFolder done [10:23:42]ProducePacketName [10:23:42]name=ofd_packets/00030561 [10:23:42]NVStorageSaveData ofd_packets/00030561 [10:23:42]File name is /storage/ofd_packets/00030561 [10:23:42]Write 307 bytes [10:23:42]NVStorageSaveData done [10:23:42]OFDSenderStorePacket done [10:23:42]KKMCreateOFDPacket done [10:23:42]NVStorageSaveData kkm_last_timestamp [10:23:42]File name is /storage/kkm_last_timestamp [10:23:42]Write 4 bytes [10:23:42]NVStorageSaveData done [10:23:42]ExternCall_PrintAddStr [10:23:42]wPrintStart [10:23:42]Write to MH i2c: 01 00 00 51 2F 80 [10:23:42]Write i2c OK [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 [10:23:42]MH_I2C_Read... [10:23:42]Read from MH i2c: 01 07 00 51 2F 00 00 00 00 00 FF 0F 95 [10:23:42]RasterBufferAndPrint [10:23:42]line Счет N : (1)342966 [10:23:42]line ИНН: 02508201610067 [10:23:42]line Контрольно-Кассовый Чек [10:23:42]line ПРОДАЖА [10:23:42]line ТРК (МРК, ГНК) : 61 [10:23:42]line Товар: 2710194210 [10:23:42]line D-ENERGY Дт-К-2 [10:23:42]line 9.070 * 77.20 [10:23:42]line = 700.20 [10:23:42]line НДС 12% НСП 1% [10:23:42]line > о реализуемом товаре [10:23:42]line ОКРУГЛЕНИЕ: -0.20 [10:23:42]line ИТОГО: 700.00 [10:23:42]line Внесено: 700.00 [10:23:42]line СДАЧА: 0.00 [10:23:42]line НСП 1% : 6.20 [10:23:42]line НДС 12% : 74.36 [10:23:42]line Наличными: 700.00 [10:23:42]line Безнал.: 0.00 [10:23:42]line Место: АЗС № 78 "Партнер Нефть" [10:23:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:23:42]line СНО: Общий режим [10:23:42]line Чек 58 21.10.2024 10:23 [10:23:42]line Смена: 115 ФФД: 1.0 [10:23:42]line ЗНМ: 0300000137 [10:23:42]line РНМ: 0000000000186857 [10:23:42]line Версия ККМ: v1.0 [10:23:42]line ФМ: 0000000002094219 [10:23:42]line ФД: 30561 [10:23:42]line ФПД: 116479644591918 [10:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102345&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30561&fm=116479644591918&tin=02508201610067®Number=0000000000186857&sum=70000 [10:23:43]OFD Sender: Processing packet 30561 [packets to send 10, broken 9] [10:23:43]ProducePacketName [10:23:43]name=ofd_packets/00030561 [10:23:43]OFD Sender: To server: pG, [10:23:43]CommunicateWithHost lk.salyk.kg:30040 [10:23:43]ConnectInit lk.salyk.kg [10:23:43]written 0, free lines is 4095 [10:23:43]Connected sock=10 [10:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 33 97 0D 01 A3 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 2B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 77 00 00 35 04 06 00 69 F0 07 D6 E7 2E C2 55 1C 39 1A B2 1D 34 [10:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB 31 47 00 4C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 61 77 00 00 F4 03 04 00 32 D6 15 67 B6 04 01 00 00 6A FF E3 FC F5 E2 B5 37 [10:23:43]CommunicateWithHost err = 0 [10:23:43]CheckOFDResponse [10:23:43]1017 (14) - 77093643461234 [10:23:43]1041 (16) - 0000000002094219 [10:23:43]1040 (4) - 30561 [10:23:43]1012 (4) - 21.10.2024 04:18 [10:23:43]1206 (1) - 0 [10:23:43]OFD Sender: Remove packet 30561 [10:23:43]ProducePacketName [10:23:43]name=ofd_packets/00030561 [10:23:43]NVStorageDeleteData [10:23:43]Write to MH i2c: 01 00 00 7C 2F AB [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: 01 07 00 7C 2F 00 00 00 00 00 F9 0C B7 [10:23:43]RasterBufferAndPrint [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]line [10:23:43]written 0, free lines is 3329 [10:23:43]MH_Cut [10:23:43]Write to MH i2c: D1 01 00 83 2F 01 84 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 [10:23:43]MH_I2C_Read... [10:23:43]Read from MH i2c: D1 01 00 83 2F 00 83 [10:23:43]Write to MH i2c: 01 00 00 84 2F B3 [10:23:43]Write i2c OK [10:23:43]MH_I2C_Read... [10:23:44]OFD Sender: No OFD packet to send [10:23:44]*** Cut start [10:23:44]*** Partial cut [10:23:44]*** CUTSNS_PIN = 1 [10:23:44]*** CUTSNS_PIN = 0 [10:23:44]*** Brake cut motor [10:23:44]Read from MH i2c: 01 [10:23:44]MH_I2C_Read... [10:23:44]*** Stop cut motor [10:23:44]*** Cut end [10:23:44]Read from MH i2c: 01 07 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: 01 07 00 84 2F 00 00 00 00 00 FF 0F C8 [10:23:44]process_action close_receipt done [10:23:44]requested_data is exist [10:23:44]produce_requested_data [10:23:44]requested_item fm.sn is exist - process it [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 11 00 00 [10:23:44]Write to MH i2c: E2 08 00 85 2F 80 11 00 00 00 00 00 00 2E [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:44]Read from MH i2c: E2 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 [10:23:44]MH_I2C_Read... [10:23:44]Read from MH i2c: E2 17 00 85 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7C [10:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:23:44]wFMCommunicate OK [10:23:44]requested_item fd.num is exist - process it [10:23:44]SAM_PROTO_GetFieldsCounters [10:23:44]wFMCommunicate request_size=4 [10:23:44]MH_SAM_APDU [10:23:44]CAPDU: 80 13 00 00 [10:23:44]Write to MH i2c: E2 08 00 86 2F 80 13 00 00 00 00 00 00 31 [10:23:44]Write i2c OK [10:23:44]MH_I2C_Read... [10:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:45]Read from MH i2c: E2 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 62 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 62 00 86 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 77 00 00 0E 04 04 00 73 00 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 50 [10:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 61 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:45]wFMCommunicate OK [10:23:45]SAM_PROTO_GetFieldsCounters done [10:23:45]requested_item shift.num is exist - process it [10:23:45]requested_item shift.opened is exist - process it [10:23:45]req_shift_opened [10:23:45]FM_GetShiftState [10:23:45]SAM_PROTO_GetShiftState [10:23:45]wFMCommunicate request_size=4 [10:23:45]MH_SAM_APDU [10:23:45]CAPDU: 80 13 01 00 [10:23:45]Write to MH i2c: E2 08 00 87 2F 80 13 01 00 00 00 00 00 33 [10:23:45]Write i2c OK [10:23:45]MH_I2C_Read... [10:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:45]Read from MH i2c: E2 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 0E 00 [10:23:45]MH_I2C_Read... [10:23:45]Read from MH i2c: E2 0E 00 87 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AF [10:23:45]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:23:45]wFMCommunicate OK [10:23:45]SAM_PROTO_GetShiftState done [10:23:45]FM_GetShiftState done [10:23:45]req_shift_opened done [10:23:45]requested_item shift.open_date is exist - process it [10:23:45]req_shift_open_date [10:23:45]req_shift_open_date done [10:23:45]produce_requested_data done [10:23:45]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30561,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:23:45]process_action_free close_receipt [10:23:45]json_value_free [10:23:45]json_value_free done [10:23:45]process_json_proto returns [10:23:45]Send response to host [10:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30561,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:23:45]free response buf [10:23:45]execute_script done [10:23:45]execute_script returns [10:23:45]free content buf [10:23:45]Sock 7.Close socket [10:23:45]Sock 7.Thread stoped [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:17]accept exits with 9 [10:27:17]New connection [10:27:17]New thread 3067489636 created [10:27:17]Thread 3067346276 joined [10:27:17]Waiting for new connection... [10:27:17] Sock 9.Parse request [10:27:17]Sock 9.Check first char [10:27:17]Sock 9.First char is OK [10:27:17]request: POST /json_proto HTTP/1.0 [10:27:17]Method: POST [10:27:17]URL: /json_proto [10:27:17]Method is POST - this is cgi request [10:27:17]url: /json_proto [10:27:17]query_string will be loaded in cgi processing [10:27:17]execute_cgi json_proto POST (null) [10:27:17]execute_cgi path=json_proto method=POST [10:27:17]POST find Content-Length [10:27:17]Host: 172.17.51.3:8080 [10:27:17]Content-Length: 677 [10:27:17]Content-Type: application/json [10:27:17] [10:27:17]POST finish read [10:27:17]Found Content-Length = 677 [10:27:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:17]execute_script... [10:27:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:17]POST & json_proto [10:27:17]process_json_proto [10:27:17]json parsed OK: [10:27:17]protocol is kg_v1.0 [10:27:17]action value=close_receipt [10:27:17]process_action close_receipt [10:27:17]cmd_close_receipt [10:27:17]MH_GetDate [10:27:17]Write to MH i2c: F0 00 00 88 2F A6 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: F0 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: F0 09 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: F0 09 00 88 2F 00 89 2C 16 67 04 C1 95 66 A1 [10:27:17]GetLastDocTimeStamp 1729506225 [10:27:17]current date 1729506441 [10:27:17]FM_GetShiftState [10:27:17]SAM_PROTO_GetShiftState [10:27:17]wFMCommunicate request_size=4 [10:27:17]MH_SAM_APDU [10:27:17]CAPDU: 80 13 01 00 [10:27:17]Write to MH i2c: E2 08 00 89 2F 80 13 01 00 00 00 00 00 35 [10:27:17]Write i2c OK [10:27:17]MH_I2C_Read... [10:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:17]Read from MH i2c: E2 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 [10:27:17]MH_I2C_Read... [10:27:17]Read from MH i2c: E2 0E 00 89 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B1 [10:27:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:27:17]wFMCommunicate OK [10:27:17]SAM_PROTO_GetShiftState done [10:27:17]FM_GetShiftState done [10:27:17]opened in 1729471058 [10:27:17]opened+sec_in_day 1729557458 [10:27:17]quantity*price = 50041 [10:27:17]sum+1 = 50042 [10:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 59 21.10.2024 10:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30562 ФПД: 262266460467041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30562&fm=262266460467041&tin=02508201610067®Number=0000000000186857&sum=50000 [10:27:18]StoreToDocumentArchive [10:27:18]shift 115 fd 30562 [10:27:18]save to /storage/0115/doc_00030562 [10:27:18]save last doc name /storage/0115/doc_00030562 to /storage/kkm_last_doc_name [10:27:18]save OK [10:27:18]Clear old archive folders... [10:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:18]tlvbuf is 01E2AD40 [10:27:18]SAM_PROTO_ClearQueue [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 09 00 00 [10:27:18]Write to MH i2c: E2 08 00 96 2F 80 09 00 00 00 00 00 00 37 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 96 2F 00 90 00 39 [10:27:18]RAPDU: 90 00 [10:27:18]wFMCommunicate OK [10:27:18]SAM_PROTO_ClearQueue done [10:27:18]KKMCreateOFDPacket [10:27:18]OFDProtocolAddRootSTLVToBuf [10:27:18]FM_MakeSignedData [10:27:18]FM_MakeSignedData [10:27:18]SAM_PROTO_SignData [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 0D 01 02 [10:27:18]Write to MH i2c: E2 08 00 97 2F 80 0D 01 02 00 00 00 00 3F [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [10:27:18]RAPDU: 90 00 [10:27:18]wFMCommunicate OK [10:27:18]wFMCommunicate request_size=255 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 77 00 00 35 04 06 00 EE [10:27:18]Write to MH i2c: E2 02 01 98 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 77 00 00 35 04 06 00 EE 00 00 77 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 98 2F 00 90 00 3B [10:27:18]RAPDU: 90 00 [10:27:18]wFMCommunicate OK [10:27:18]wFMCommunicate request_size=10 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 0D 02 02 05 87 AB 36 6F 61 [10:27:18]Write to MH i2c: E2 0D 00 99 2F 80 0D 02 02 05 00 87 AB 36 6F 61 00 00 84 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [10:27:18]RAPDU: 90 00 [10:27:18]wFMCommunicate OK [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 0D 03 02 [10:27:18]Write to MH i2c: E2 08 00 9A 2F 80 0D 03 02 00 00 00 00 44 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0B 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 0B 00 9A 2F 00 70 A9 07 C2 A5 3F EA 9E 90 00 93 [10:27:18]RAPDU: 70 A9 07 C2 A5 3F EA 9E 90 00 [10:27:18]wFMCommunicate OK [10:27:18]SAM_PROTO_SignData done [10:27:18]FM_MakeSignedData done [10:27:18]CreateOFDProtocolMessage [10:27:18]wFMCommunicate request_size=4 [10:27:18]MH_SAM_APDU [10:27:18]CAPDU: 80 11 00 00 [10:27:18]Write to MH i2c: E2 08 00 9B 2F 80 11 00 00 00 00 00 00 44 [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:18]Read from MH i2c: E2 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 17 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: E2 17 00 9B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 92 [10:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:18]wFMCommunicate OK [10:27:18]CreateOFDProtocolMessage done [10:27:18]OFDSenderStorePacket 30562 [10:27:18]StoreOFDPacket docnum=30562 [10:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 27 06 07 01 A6 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 77 00 00 35 04 06 00 EE 87 AB 36 6F 61 70 A9 07 C2 A5 3F EA 9E [10:27:18]CheckFolder [10:27:18]dirname=/storage/ofd_packets [10:27:18]CheckFolder done [10:27:18]ProducePacketName [10:27:18]name=ofd_packets/00030562 [10:27:18]NVStorageSaveData ofd_packets/00030562 [10:27:18]File name is /storage/ofd_packets/00030562 [10:27:18]Write 301 bytes [10:27:18]NVStorageSaveData done [10:27:18]OFDSenderStorePacket done [10:27:18]KKMCreateOFDPacket done [10:27:18]NVStorageSaveData kkm_last_timestamp [10:27:18]File name is /storage/kkm_last_timestamp [10:27:18]Write 4 bytes [10:27:18]NVStorageSaveData done [10:27:18]ExternCall_PrintAddStr [10:27:18]wPrintStart [10:27:18]Write to MH i2c: 01 00 00 9C 2F CB [10:27:18]Write i2c OK [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: 01 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: 01 07 00 [10:27:18]MH_I2C_Read... [10:27:18]Read from MH i2c: 01 07 00 9C 2F 00 00 00 00 00 FF 0F E0 [10:27:18]RasterBufferAndPrint [10:27:18]line Счет N : (1)342967 [10:27:18]line ИНН: 02508201610067 [10:27:18]line Контрольно-Кассовый Чек [10:27:18]line ПРОДАЖА [10:27:18]line ТРК (МРК, ГНК) : 53 [10:27:18]line Товар: 2710124130 [10:27:18]line Аи-92-К-2 [10:27:18]line 7.480 * 66.90 [10:27:18]line = 500.41 [10:27:18]line НДС 12% НСП 1% [10:27:18]line > о реализуемом товаре [10:27:18]line ОКРУГЛЕНИЕ: -0.41 [10:27:18]line ИТОГО: 500.00 [10:27:18]line Внесено: 500.00 [10:27:18]line СДАЧА: 0.00 [10:27:18]line НСП 1% : 4.43 [10:27:18]line НДС 12% : 53.14 [10:27:18]line Наличными: 500.00 [10:27:18]line Безнал.: 0.00 [10:27:18]line Место: АЗС № 78 "Партнер Нефть" [10:27:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:27:18]line СНО: Общий режим [10:27:18]line Чек 59 21.10.2024 10:27 [10:27:18]line Смена: 115 ФФД: 1.0 [10:27:18]line ЗНМ: 0300000137 [10:27:18]line РНМ: 0000000000186857 [10:27:18]line Версия ККМ: v1.0 [10:27:18]line ФМ: 0000000002094219 [10:27:18]line ФД: 30562 [10:27:18]line ФПД: 262266460467041 [10:27:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30562&fm=262266460467041&tin=02508201610067®Number=0000000000186857&sum=50000 [10:27:19]OFD Sender: Processing packet 30562 [packets to send 10, broken 9] [10:27:19]ProducePacketName [10:27:19]name=ofd_packets/00030562 [10:27:19]OFD Sender: To server: pG, [10:27:19]CommunicateWithHost lk.salyk.kg:30040 [10:27:19]ConnectInit lk.salyk.kg [10:27:19]written 0, free lines is 4095 [10:27:19]Connected sock=10 [10:27:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 27 06 07 01 A6 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 89 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 77 00 00 35 04 06 00 EE 87 AB 36 6F 61 70 A9 07 C2 A5 3F EA 9E [10:27:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D6 C1 47 00 F0 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 62 77 00 00 F4 03 04 00 0A D7 15 67 B6 04 01 00 00 B3 45 F9 CA 6C 10 E8 CD [10:27:19]CommunicateWithHost err = 0 [10:27:19]CheckOFDResponse [10:27:19]1017 (14) - 77093643461234 [10:27:19]1041 (16) - 0000000002094219 [10:27:19]1040 (4) - 30562 [10:27:19]1012 (4) - 21.10.2024 04:22 [10:27:19]1206 (1) - 0 [10:27:19]OFD Sender: Remove packet 30562 [10:27:19]ProducePacketName [10:27:19]name=ofd_packets/00030562 [10:27:19]NVStorageDeleteData [10:27:19]Write to MH i2c: 01 00 00 C7 2F F6 [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 07 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: 01 07 00 C7 2F 00 00 00 00 00 F2 0C FB [10:27:19]RasterBufferAndPrint [10:27:19]line [10:27:19]line [10:27:19]line [10:27:19]line [10:27:19]line [10:27:19]written 0, free lines is 3320 [10:27:19]MH_Cut [10:27:19]Write to MH i2c: D1 01 00 CE 2F 01 CF [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: D1 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: D1 01 00 [10:27:19]MH_I2C_Read... [10:27:19]Read from MH i2c: D1 01 00 CE 2F 00 CE [10:27:19]Write to MH i2c: 01 00 00 CF 2F FE [10:27:19]Write i2c OK [10:27:19]MH_I2C_Read... [10:27:19]OFD Sender: No OFD packet to send [10:27:20]*** Cut start [10:27:20]*** Partial cut [10:27:20]*** CUTSNS_PIN = 1 [10:27:20]*** CUTSNS_PIN = 0 [10:27:20]*** Brake cut motor [10:27:20]Read from MH i2c: 01 [10:27:20]MH_I2C_Read... [10:27:20]*** Stop cut motor [10:27:20]*** Cut end [10:27:20]Read from MH i2c: 01 07 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: 01 07 00 CF 2F 00 00 00 00 00 FF 0F 13 [10:27:20]process_action close_receipt done [10:27:20]requested_data is exist [10:27:20]produce_requested_data [10:27:20]requested_item fm.sn is exist - process it [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 11 00 00 [10:27:20]Write to MH i2c: E2 08 00 D0 2F 80 11 00 00 00 00 00 00 79 [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 17 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 17 00 D0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [10:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:20]wFMCommunicate OK [10:27:20]requested_item fd.num is exist - process it [10:27:20]SAM_PROTO_GetFieldsCounters [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 13 00 00 [10:27:20]Write to MH i2c: E2 08 00 D1 2F 80 13 00 00 00 00 00 00 7C [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:20]Read from MH i2c: E2 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 62 00 [10:27:20]MH_I2C_Read... [10:27:20]Read from MH i2c: E2 62 00 D1 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 77 00 00 0E 04 04 00 73 00 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 9F [10:27:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 62 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:20]wFMCommunicate OK [10:27:20]SAM_PROTO_GetFieldsCounters done [10:27:20]requested_item shift.num is exist - process it [10:27:20]requested_item shift.opened is exist - process it [10:27:20]req_shift_opened [10:27:20]FM_GetShiftState [10:27:20]SAM_PROTO_GetShiftState [10:27:20]wFMCommunicate request_size=4 [10:27:20]MH_SAM_APDU [10:27:20]CAPDU: 80 13 01 00 [10:27:20]Write to MH i2c: E2 08 00 D2 2F 80 13 01 00 00 00 00 00 7E [10:27:20]Write i2c OK [10:27:20]MH_I2C_Read... [10:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:21]Read from MH i2c: E2 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0E 00 [10:27:21]MH_I2C_Read... [10:27:21]Read from MH i2c: E2 0E 00 D2 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FA [10:27:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:27:21]wFMCommunicate OK [10:27:21]SAM_PROTO_GetShiftState done [10:27:21]FM_GetShiftState done [10:27:21]req_shift_opened done [10:27:21]requested_item shift.open_date is exist - process it [10:27:21]req_shift_open_date [10:27:21]req_shift_open_date done [10:27:21]produce_requested_data done [10:27:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30562,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:27:21]process_action_free close_receipt [10:27:21]json_value_free [10:27:21]json_value_free done [10:27:21]process_json_proto returns [10:27:21]Send response to host [10:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30562,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:27:21]free response buf [10:27:21]execute_script done [10:27:21]execute_script returns [10:27:21]free content buf [10:27:21]Sock 9.Close socket [10:27:21]Sock 9.Thread stoped [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:49]accept exits with 7 [10:27:49]New connection [10:27:49]New thread 3067346276 created [10:27:49]Thread 3067489636 joined [10:27:49]Waiting for new connection... [10:27:49] Sock 7.Parse request [10:27:49]Sock 7.Check first char [10:27:49]Sock 7.First char is OK [10:27:49]request: POST /json_proto HTTP/1.0 [10:27:49]Method: POST [10:27:49]URL: /json_proto [10:27:49]Method is POST - this is cgi request [10:27:49]url: /json_proto [10:27:49]query_string will be loaded in cgi processing [10:27:49]execute_cgi json_proto POST (null) [10:27:49]execute_cgi path=json_proto method=POST [10:27:49]POST find Content-Length [10:27:49]Host: 172.17.51.3:8080 [10:27:49]Content-Length: 677 [10:27:49]Content-Type: application/json [10:27:49] [10:27:49]POST finish read [10:27:49]Found Content-Length = 677 [10:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:49]execute_script... [10:27:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:49]POST & json_proto [10:27:49]process_json_proto [10:27:49]json parsed OK: [10:27:49]protocol is kg_v1.0 [10:27:49]action value=close_receipt [10:27:49]process_action close_receipt [10:27:49]cmd_close_receipt [10:27:49]MH_GetDate [10:27:49]Write to MH i2c: F0 00 00 D3 2F F1 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 D3 2F 00 AA 2C 16 67 04 C1 95 66 0D [10:27:49]GetLastDocTimeStamp 1729506441 [10:27:49]current date 1729506474 [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 D4 2F 80 13 01 00 00 00 00 00 80 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 D4 2F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FC [10:27:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetShiftState done [10:27:50]FM_GetShiftState done [10:27:50]opened in 1729471058 [10:27:50]opened+sec_in_day 1729557458 [10:27:50]quantity*price = 30038 [10:27:50]sum+1 = 30039 [10:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 60 21.10.2024 10:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30563 ФПД: 5372378631685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30563&fm=5372378631685&tin=02508201610067®Number=0000000000186857&sum=30000 [10:27:51]StoreToDocumentArchive [10:27:51]shift 115 fd 30563 [10:27:51]save to /storage/0115/doc_00030563 [10:27:51]save last doc name /storage/0115/doc_00030563 to /storage/kkm_last_doc_name [10:27:51]save OK [10:27:51]Clear old archive folders... [10:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:51]tlvbuf is 01E11690 [10:27:51]SAM_PROTO_ClearQueue [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 09 00 00 [10:27:51]Write to MH i2c: E2 08 00 E1 2F 80 09 00 00 00 00 00 00 82 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 E1 2F 00 90 00 84 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_ClearQueue done [10:27:51]KKMCreateOFDPacket [10:27:51]OFDProtocolAddRootSTLVToBuf [10:27:51]FM_MakeSignedData [10:27:51]FM_MakeSignedData [10:27:51]SAM_PROTO_SignData [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 01 02 [10:27:51]Write to MH i2c: E2 08 00 E2 2F 80 0D 01 02 00 00 00 00 8A [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=255 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 77 00 00 35 04 06 00 04 [10:27:51]Write to MH i2c: E2 02 01 E3 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 77 00 00 35 04 06 00 04 00 00 EF [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=10 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 02 02 05 E2 DA B8 4E 05 [10:27:51]Write to MH i2c: E2 0D 00 E4 2F 80 0D 02 02 05 00 E2 DA B8 4E 05 00 00 5E [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 03 02 [10:27:51]Write to MH i2c: E2 08 00 E5 2F 80 0D 03 02 00 00 00 00 8F [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 E5 2F 00 BB 08 0A 14 C9 AA F5 9D 90 00 76 [10:27:51]RAPDU: BB 08 0A 14 C9 AA F5 9D 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_SignData done [10:27:51]FM_MakeSignedData done [10:27:51]CreateOFDProtocolMessage [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 11 00 00 [10:27:51]Write to MH i2c: E2 08 00 E6 2F 80 11 00 00 00 00 00 00 8F [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 E6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [10:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:51]wFMCommunicate OK [10:27:51]CreateOFDProtocolMessage done [10:27:51]OFDSenderStorePacket 30563 [10:27:51]StoreOFDPacket docnum=30563 [10:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 F6 07 01 28 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 77 00 00 35 04 06 00 04 E2 DA B8 4E 05 BB 08 0A 14 C9 AA F5 9D [10:27:51]CheckFolder [10:27:51]dirname=/storage/ofd_packets [10:27:51]CheckFolder done [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00030563 [10:27:51]NVStorageSaveData ofd_packets/00030563 [10:27:51]File name is /storage/ofd_packets/00030563 [10:27:51]Write 301 bytes [10:27:51]NVStorageSaveData done [10:27:51]OFDSenderStorePacket done [10:27:51]KKMCreateOFDPacket done [10:27:51]NVStorageSaveData kkm_last_timestamp [10:27:51]File name is /storage/kkm_last_timestamp [10:27:51]Write 4 bytes [10:27:51]NVStorageSaveData done [10:27:51]ExternCall_PrintAddStr [10:27:51]wPrintStart [10:27:51]Write to MH i2c: 01 00 00 E7 2F 16 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 E7 2F 00 00 00 00 00 FF 0F 2B [10:27:51]RasterBufferAndPrint [10:27:51]line Счет N : (1)342969 [10:27:51]line ИНН: 02508201610067 [10:27:51]line Контрольно-Кассовый Чек [10:27:51]line ПРОДАЖА [10:27:51]line ТРК (МРК, ГНК) : 63 [10:27:51]line Товар: 2710124130 [10:27:51]line Аи-92-К-2 [10:27:51]line 4.490 * 66.90 [10:27:51]line = 300.38 [10:27:51]line НДС 12% НСП 1% [10:27:51]line > о реализуемом товаре [10:27:51]line ОКРУГЛЕНИЕ: -0.38 [10:27:51]line ИТОГО: 300.00 [10:27:51]line Внесено: 300.00 [10:27:51]line СДАЧА: 0.00 [10:27:51]line НСП 1% : 2.66 [10:27:51]line НДС 12% : 31.90 [10:27:51]line Наличными: 300.00 [10:27:51]line Безнал.: 0.00 [10:27:51]line Место: АЗС № 78 "Партнер Нефть" [10:27:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:27:51]line СНО: Общий режим [10:27:51]line Чек 60 21.10.2024 10:27 [10:27:51]line Смена: 115 ФФД: 1.0 [10:27:51]line ЗНМ: 0300000137 [10:27:51]line РНМ: 0000000000186857 [10:27:51]line Версия ККМ: v1.0 [10:27:51]line ФМ: 0000000002094219 [10:27:51]line ФД: 30563 [10:27:51]line ФПД: 5372378631685 [10:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102754&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30563&fm=5372378631685&tin=02508201610067®Number=0000000000186857&sum=30000 [10:27:51]OFD Sender: Processing packet 30563 [packets to send 10, broken 9] [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00030563 [10:27:51]OFD Sender: To server: pG, [10:27:51]CommunicateWithHost lk.salyk.kg:30040 [10:27:51]ConnectInit lk.salyk.kg [10:27:51]written 0, free lines is 4095 [10:27:52]Connected sock=10 [10:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 06 F6 07 01 28 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 AA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 77 00 00 35 04 06 00 04 E2 DA B8 4E 05 BB 08 0A 14 C9 AA F5 9D [10:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2A 70 47 00 5B 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 63 77 00 00 F4 03 04 00 2B D7 15 67 B6 04 01 00 00 C4 9E 85 28 1A 2E 04 A6 [10:27:52]CommunicateWithHost err = 0 [10:27:52]CheckOFDResponse [10:27:52]1017 (14) - 77093643461234 [10:27:52]1041 (16) - 0000000002094219 [10:27:52]1040 (4) - 30563 [10:27:52]1012 (4) - 21.10.2024 04:23 [10:27:52]1206 (1) - 0 [10:27:52]OFD Sender: Remove packet 30563 [10:27:52]ProducePacketName [10:27:52]name=ofd_packets/00030563 [10:27:52]NVStorageDeleteData [10:27:52]Write to MH i2c: 01 00 00 12 30 42 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 12 30 00 00 00 00 00 F9 0C 4E [10:27:52]RasterBufferAndPrint [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]written 0, free lines is 3328 [10:27:52]MH_Cut [10:27:52]Write to MH i2c: D1 01 00 19 30 01 1B [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 19 30 00 1A [10:27:52]Write to MH i2c: 01 00 00 1A 30 4A [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]OFD Sender: No OFD packet to send [10:27:53]*** Cut start [10:27:53]*** Partial cut [10:27:53]*** CUTSNS_PIN = 1 [10:27:53]*** CUTSNS_PIN = 0 [10:27:53]*** Brake cut motor [10:27:53]Read from MH i2c: 01 [10:27:53]MH_I2C_Read... [10:27:53]*** Stop cut motor [10:27:53]*** Cut end [10:27:53]Read from MH i2c: 01 07 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: 01 07 00 1A 30 00 00 00 00 00 FF 0F 5F [10:27:53]process_action close_receipt done [10:27:53]requested_data is exist [10:27:53]produce_requested_data [10:27:53]requested_item fm.sn is exist - process it [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 11 00 00 [10:27:53]Write to MH i2c: E2 08 00 1B 30 80 11 00 00 00 00 00 00 C5 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 1B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [10:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:27:53]wFMCommunicate OK [10:27:53]requested_item fd.num is exist - process it [10:27:53]SAM_PROTO_GetFieldsCounters [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 00 00 [10:27:53]Write to MH i2c: E2 08 00 1C 30 80 13 00 00 00 00 00 00 C8 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 1C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 77 00 00 0E 04 04 00 73 00 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 EF [10:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 63 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetFieldsCounters done [10:27:53]requested_item shift.num is exist - process it [10:27:53]requested_item shift.opened is exist - process it [10:27:53]req_shift_opened [10:27:53]FM_GetShiftState [10:27:53]SAM_PROTO_GetShiftState [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 01 00 [10:27:53]Write to MH i2c: E2 08 00 1D 30 80 13 01 00 00 00 00 00 CA [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 1D 30 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 46 [10:27:53]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetShiftState done [10:27:53]FM_GetShiftState done [10:27:53]req_shift_opened done [10:27:53]requested_item shift.open_date is exist - process it [10:27:53]req_shift_open_date [10:27:53]req_shift_open_date done [10:27:53]produce_requested_data done [10:27:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30563,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:27:53]process_action_free close_receipt [10:27:53]json_value_free [10:27:53]json_value_free done [10:27:53]process_json_proto returns [10:27:53]Send response to host [10:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30563,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:27:53]free response buf [10:27:53]execute_script done [10:27:53]execute_script returns [10:27:53]free content buf [10:27:53]Sock 7.Close socket [10:27:53]Sock 7.Thread stoped [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:05]accept exits with 9 [10:28:05]New connection [10:28:05]New thread 3067489636 created [10:28:05]Thread 3067346276 joined [10:28:05]Waiting for new connection... [10:28:05] Sock 9.Parse request [10:28:05]Sock 9.Check first char [10:28:05]Sock 9.First char is OK [10:28:05]request: POST /json_proto HTTP/1.0 [10:28:05]Method: POST [10:28:05]URL: /json_proto [10:28:05]Method is POST - this is cgi request [10:28:05]url: /json_proto [10:28:05]query_string will be loaded in cgi processing [10:28:05]execute_cgi json_proto POST (null) [10:28:05]execute_cgi path=json_proto method=POST [10:28:05]POST find Content-Length [10:28:05]Host: 172.17.51.3:8080 [10:28:05]Content-Length: 677 [10:28:05]Content-Type: application/json [10:28:05] [10:28:05]POST finish read [10:28:05]Found Content-Length = 677 [10:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:05]execute_script... [10:28:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:05]POST & json_proto [10:28:05]process_json_proto [10:28:05]json parsed OK: [10:28:05]protocol is kg_v1.0 [10:28:05]action value=close_receipt [10:28:05]process_action close_receipt [10:28:05]cmd_close_receipt [10:28:05]MH_GetDate [10:28:05]Write to MH i2c: F0 00 00 1E 30 3D [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 09 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: F0 09 00 1E 30 00 BA 2C 16 67 04 C1 95 66 69 [10:28:05]GetLastDocTimeStamp 1729506474 [10:28:05]current date 1729506490 [10:28:05]FM_GetShiftState [10:28:05]SAM_PROTO_GetShiftState [10:28:05]wFMCommunicate request_size=4 [10:28:05]MH_SAM_APDU [10:28:05]CAPDU: 80 13 01 00 [10:28:05]Write to MH i2c: E2 08 00 1F 30 80 13 01 00 00 00 00 00 CC [10:28:05]Write i2c OK [10:28:05]MH_I2C_Read... [10:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:05]Read from MH i2c: E2 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 [10:28:05]MH_I2C_Read... [10:28:05]Read from MH i2c: E2 0E 00 1F 30 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 48 [10:28:05]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:28:05]wFMCommunicate OK [10:28:05]SAM_PROTO_GetShiftState done [10:28:05]FM_GetShiftState done [10:28:05]opened in 1729471058 [10:28:05]opened+sec_in_day 1729557458 [10:28:05]quantity*price = 20003 [10:28:05]sum+1 = 20004 [10:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 61 21.10.2024 10:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30564 ФПД: 3484656078906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30564&fm=3484656078906&tin=02508201610067®Number=0000000000186857&sum=20000 [10:28:07]StoreToDocumentArchive [10:28:07]shift 115 fd 30564 [10:28:07]save to /storage/0115/doc_00030564 [10:28:07]save last doc name /storage/0115/doc_00030564 to /storage/kkm_last_doc_name [10:28:07]save OK [10:28:07]Clear old archive folders... [10:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:07]tlvbuf is 01DB6BC0 [10:28:07]SAM_PROTO_ClearQueue [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 09 00 00 [10:28:07]Write to MH i2c: E2 08 00 2C 30 80 09 00 00 00 00 00 00 CE [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 2C 30 00 90 00 D0 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]SAM_PROTO_ClearQueue done [10:28:07]KKMCreateOFDPacket [10:28:07]OFDProtocolAddRootSTLVToBuf [10:28:07]FM_MakeSignedData [10:28:07]FM_MakeSignedData [10:28:07]SAM_PROTO_SignData [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 01 02 [10:28:07]Write to MH i2c: E2 08 00 2D 30 80 0D 01 02 00 00 00 00 D6 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 2D 30 00 90 00 D1 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]wFMCommunicate request_size=255 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3D 00 00 00 F4 03 04 00 BA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 77 00 00 35 04 06 00 03 [10:28:07]Write to MH i2c: E2 02 01 2E 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3D 00 00 00 F4 03 04 00 BA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 77 00 00 35 04 06 00 03 00 00 1A [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 2E 30 00 90 00 D2 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]wFMCommunicate request_size=10 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 02 02 05 2B 55 B0 10 3A [10:28:07]Write to MH i2c: E2 0D 00 2F 30 80 0D 02 02 05 00 2B 55 B0 10 3A 00 00 5D [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 03 00 2F 30 00 90 00 D3 [10:28:07]RAPDU: 90 00 [10:28:07]wFMCommunicate OK [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 0D 03 02 [10:28:07]Write to MH i2c: E2 08 00 30 30 80 0D 03 02 00 00 00 00 DB [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 0B 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 0B 00 30 30 00 8A 86 1E CD 05 ED 47 1A 90 00 2A [10:28:07]RAPDU: 8A 86 1E CD 05 ED 47 1A 90 00 [10:28:07]wFMCommunicate OK [10:28:07]SAM_PROTO_SignData done [10:28:07]FM_MakeSignedData done [10:28:07]CreateOFDProtocolMessage [10:28:07]wFMCommunicate request_size=4 [10:28:07]MH_SAM_APDU [10:28:07]CAPDU: 80 11 00 00 [10:28:07]Write to MH i2c: E2 08 00 31 30 80 11 00 00 00 00 00 00 DB [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:07]Read from MH i2c: E2 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: E2 17 00 31 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [10:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:07]wFMCommunicate OK [10:28:07]CreateOFDProtocolMessage done [10:28:07]OFDSenderStorePacket 30564 [10:28:07]StoreOFDPacket docnum=30564 [10:28:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 38 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3D 00 00 00 F4 03 04 00 BA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 77 00 00 35 04 06 00 03 2B 55 B0 10 3A 8A 86 1E CD 05 ED 47 1A [10:28:07]CheckFolder [10:28:07]dirname=/storage/ofd_packets [10:28:07]CheckFolder done [10:28:07]ProducePacketName [10:28:07]name=ofd_packets/00030564 [10:28:07]NVStorageSaveData ofd_packets/00030564 [10:28:07]File name is /storage/ofd_packets/00030564 [10:28:07]Write 301 bytes [10:28:07]NVStorageSaveData done [10:28:07]OFDSenderStorePacket done [10:28:07]KKMCreateOFDPacket done [10:28:07]NVStorageSaveData kkm_last_timestamp [10:28:07]File name is /storage/kkm_last_timestamp [10:28:07]Write 4 bytes [10:28:07]NVStorageSaveData done [10:28:07]ExternCall_PrintAddStr [10:28:07]wPrintStart [10:28:07]Write to MH i2c: 01 00 00 32 30 62 [10:28:07]Write i2c OK [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 [10:28:07]MH_I2C_Read... [10:28:07]Read from MH i2c: 01 07 00 32 30 00 00 00 00 00 FF 0F 77 [10:28:07]RasterBufferAndPrint [10:28:07]line Счет N : (1)342968 [10:28:07]line ИНН: 02508201610067 [10:28:07]line Контрольно-Кассовый Чек [10:28:07]line ПРОДАЖА [10:28:07]line ТРК (МРК, ГНК) : 43 [10:28:07]line Товар: 2710124130 [10:28:07]line Аи-92-К-2 [10:28:07]line 2.990 * 66.90 [10:28:07]line = 200.03 [10:28:07]line НДС 12% НСП 1% [10:28:07]line > о реализуемом товаре [10:28:07]line ОКРУГЛЕНИЕ: -0.03 [10:28:07]line ИТОГО: 200.00 [10:28:07]line Внесено: 200.00 [10:28:07]line СДАЧА: 0.00 [10:28:07]line НСП 1% : 1.77 [10:28:07]line НДС 12% : 21.24 [10:28:07]line Наличными: 200.00 [10:28:07]line Безнал.: 0.00 [10:28:07]line Место: АЗС № 78 "Партнер Нефть" [10:28:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:28:07]line СНО: Общий режим [10:28:07]line Чек 61 21.10.2024 10:28 [10:28:07]line Смена: 115 ФФД: 1.0 [10:28:07]line ЗНМ: 0300000137 [10:28:07]line РНМ: 0000000000186857 [10:28:07]line Версия ККМ: v1.0 [10:28:07]line ФМ: 0000000002094219 [10:28:07]line ФД: 30564 [10:28:07]line ФПД: 3484656078906 [10:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102810&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30564&fm=3484656078906&tin=02508201610067®Number=0000000000186857&sum=20000 [10:28:07]OFD Sender: Processing packet 30564 [packets to send 10, broken 9] [10:28:07]ProducePacketName [10:28:07]name=ofd_packets/00030564 [10:28:07]OFD Sender: To server: pG, [10:28:07]CommunicateWithHost lk.salyk.kg:30040 [10:28:07]ConnectInit lk.salyk.kg [10:28:07]written 0, free lines is 4095 [10:28:08]Connected sock=10 [10:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4F 38 07 01 F7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 3D 00 00 00 F4 03 04 00 BA 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 77 00 00 35 04 06 00 03 2B 55 B0 10 3A 8A 86 1E CD 05 ED 47 1A [10:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 86 B6 47 00 54 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 64 77 00 00 F4 03 04 00 3B D7 15 67 B6 04 01 00 00 2F D7 E7 7F 69 48 69 74 [10:28:08]CommunicateWithHost err = 0 [10:28:08]CheckOFDResponse [10:28:08]1017 (14) - 77093643461234 [10:28:08]1041 (16) - 0000000002094219 [10:28:08]1040 (4) - 30564 [10:28:08]1012 (4) - 21.10.2024 04:23 [10:28:08]1206 (1) - 0 [10:28:08]OFD Sender: Remove packet 30564 [10:28:08]ProducePacketName [10:28:08]name=ofd_packets/00030564 [10:28:08]NVStorageDeleteData [10:28:08]Write to MH i2c: 01 00 00 5D 30 8D [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: 01 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: 01 07 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: 01 07 00 5D 30 00 00 00 00 00 F2 0C 92 [10:28:08]RasterBufferAndPrint [10:28:08]line [10:28:08]line [10:28:08]line [10:28:08]line [10:28:08]line [10:28:08]written 0, free lines is 3320 [10:28:08]MH_Cut [10:28:08]Write to MH i2c: D1 01 00 64 30 01 66 [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: D1 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: D1 01 00 [10:28:08]MH_I2C_Read... [10:28:08]Read from MH i2c: D1 01 00 64 30 00 65 [10:28:08]Write to MH i2c: 01 00 00 65 30 95 [10:28:08]Write i2c OK [10:28:08]MH_I2C_Read... [10:28:08]OFD Sender: No OFD packet to send [10:28:09]int [10:28:09]*** FLAG_PRN_PAP2 set [10:28:09]*** Cut start [10:28:09]*** Partial cut [10:28:09]*** CUTSNS_PIN = 1 [10:28:09]*** CUTSNS_PIN = 0 [10:28:09]*** Brake cut motor [10:28:09]Read from MH i2c: 01 [10:28:09]MH_I2C_Read... [10:28:09]*** Stop cut motor [10:28:09]*** Cut end [10:28:09]Read from MH i2c: 01 07 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: 01 07 00 65 30 00 02 00 00 00 FF 0F AC [10:28:09]process_action close_receipt done [10:28:09]requested_data is exist [10:28:09]produce_requested_data [10:28:09]requested_item fm.sn is exist - process it [10:28:09]wFMCommunicate request_size=4 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 11 00 00 [10:28:09]Write to MH i2c: E2 08 00 66 30 80 11 00 00 00 00 00 00 10 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:09]Read from MH i2c: E2 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 17 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 17 00 66 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [10:28:09]RAPDU: Write to MH i2c: 11 01 04 10 00 00 00 30 67 30 30 30 97 30 [10:28:09]30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:28:09]wFMCommunicate OK [10:28:09]requested_item fd.num is exist - process it [10:28:09]SAM_PROTO_GetFieldsCounters [10:28:09]wFMCommunicate request_size=4 [10:28:09]Write i2c OK [10:28:09]MH_SAM_APDU [10:28:09]MH_I2C_Read... [10:28:09]CAPDU: 80 13 Read from MH i2c: 00 01 00 [10:28:09] [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: 01 07 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: 01 07 00 67 30 00 02 00 00 00 FF 0F AE [10:28:09]Write to MH i2c: E2 state=0 [10:28:09]08 Cover opened [10:28:09]00 68 30 80 13 00 00 00 00 00 00 14 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:09]Read from MH i2c: E2 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 62 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 62 00 68 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 77 00 00 0E 04 04 00 73 00 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 3F [10:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 64 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:09]wFMCommunicate OK [10:28:09]SAM_PROTO_GetFieldsCounters done [10:28:09]requested_item shift.num is exist - process it [10:28:09]requested_item shift.opened is exist - process it [10:28:09]req_shift_opened [10:28:09]FM_GetShiftState [10:28:09]SAM_PROTO_GetShiftState [10:28:09]wFMCommunicate request_size=4 [10:28:09]MH_SAM_APDU [10:28:09]CAPDU: 80 13 01 00 [10:28:09]Write to MH i2c: E2 08 00 69 30 80 13 01 00 00 00 00 00 16 [10:28:09]Write i2c OK [10:28:09]MH_I2C_Read... [10:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:09]Read from MH i2c: E2 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 0E 00 [10:28:09]MH_I2C_Read... [10:28:09]Read from MH i2c: E2 0E 00 69 30 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 92 [10:28:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:28:09]wFMCommunicate OK [10:28:09]SAM_PROTO_GetShiftState done [10:28:09]FM_GetShiftState done [10:28:09]req_shift_opened done [10:28:09]requested_item shift.open_date is exist - process it [10:28:09]req_shift_open_date [10:28:09]req_shift_open_date done [10:28:09]produce_requested_data done [10:28:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30564,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:28:09]process_action_free close_receipt [10:28:09]json_value_free [10:28:09]json_value_free done [10:28:09]process_json_proto returns [10:28:09]Send response to host [10:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30564,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:28:09]free response buf [10:28:09]execute_script done [10:28:09]execute_script returns [10:28:09]free content buf [10:28:09]Sock 9.Close socket [10:28:09]Sock 9.Thread stoped [10:28:13]OFD Sender: No OFD packet to send [10:28:14]Write to MH i2c: 01 00 00 6A 30 9A [10:28:14]Write i2c OK [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 [10:28:14]MH_I2C_Read... [10:28:14]Read from MH i2c: 01 07 00 6A 30 00 02 00 00 00 FF 0F B1 [10:28:14]state=3 [10:28:14]Cover opened [10:28:18]OFD Sender: No OFD packet to send [10:28:19]Write to MH i2c: 01 00 00 6B 30 9B [10:28:19]Write i2c OK [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 07 00 [10:28:19]MH_I2C_Read... [10:28:19]Read from MH i2c: 01 07 00 6B 30 00 02 00 00 00 FF 0F B2 [10:28:19]state=3 [10:28:19]Cover opened [10:28:23]OFD Sender: No OFD packet to send [10:28:24]Write to MH i2c: 01 00 00 6C 30 9C [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 6C 30 00 02 00 00 00 FF 0F B3 [10:28:24]state=3 [10:28:24]Cover opened [10:28:28]OFD Sender: No OFD packet to send [10:28:29]Write to MH i2c: 01 00 00 6D 30 9D [10:28:29]Write i2c OK [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 [10:28:29]MH_I2C_Read... [10:28:29]Read from MH i2c: 01 07 00 6D 30 00 02 00 00 00 FF 0F B4 [10:28:29]state=3 [10:28:29]Cover opened [10:28:33]OFD Sender: No OFD packet to send [10:28:34]Write to MH i2c: 01 00 00 6E 30 9E [10:28:34]Write i2c OK [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 [10:28:34]MH_I2C_Read... [10:28:34]Read from MH i2c: 01 07 00 6E 30 00 02 00 00 00 FF 0F B5 [10:28:34]state=3 [10:28:34]Cover opened [10:28:38]OFD Sender: No OFD packet to send [10:28:39]Write to MH i2c: 01 00 00 6F 30 9F [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 6F 30 00 02 00 00 00 FF 0F B6 [10:28:39]state=3 [10:28:39]Cover opened [10:28:43]OFD Sender: No OFD packet to send [10:28:44]Write to MH i2c: 01 00 00 70 30 A0 [10:28:44]Write i2c OK [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 07 00 [10:28:44]MH_I2C_Read... [10:28:44]Read from MH i2c: 01 07 00 70 30 00 02 00 00 00 FF 0F B7 [10:28:44]state=3 [10:28:44]Cover opened [10:28:48]OFD Sender: No OFD packet to send [10:28:49]Write to MH i2c: 01 00 00 71 30 A1 [10:28:49]Write i2c OK [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: 01 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: 01 07 00 [10:28:49]MH_I2C_Read... [10:28:49]Read from MH i2c: 01 07 00 71 30 00 02 00 00 00 FF 0F B8 [10:28:49]state=3 [10:28:49]Cover opened [10:28:53]OFD Sender: No OFD packet to send [10:28:54]Write to MH i2c: 01 00 00 72 30 A2 [10:28:54]Write i2c OK [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 [10:28:54]MH_I2C_Read... [10:28:54]Read from MH i2c: 01 07 00 72 30 00 02 00 00 00 FF 0F B9 [10:28:54]state=3 [10:28:54]Cover opened [10:28:58]OFD Sender: No OFD packet to send [10:28:59]accept exits with 7 [10:28:59]New connection [10:28:59]New thread 3067346276 created [10:28:59]Thread 3067489636 joined [10:28:59]Waiting for new connection... [10:28:59] Sock 7.Parse request [10:28:59]Sock 7.Check first char [10:28:59]Sock 7.First char is OK [10:28:59]request: POST /json_proto HTTP/1.0 [10:28:59]Method: POST [10:28:59]URL: /json_proto [10:28:59]Method is POST - this is cgi request [10:28:59]url: /json_proto [10:28:59]query_string will be loaded in cgi processing [10:28:59]execute_cgi json_proto POST (null) [10:28:59]execute_cgi path=json_proto method=POST [10:28:59]POST find Content-Length [10:28:59]Host: 172.17.51.3:8080 [10:28:59]Content-Length: 674 [10:28:59]Content-Type: application/json [10:28:59] [10:28:59]POST finish read [10:28:59]Found Content-Length = 674 [10:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:59]execute_script... [10:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:59]POST & json_proto [10:28:59]process_json_proto [10:28:59]json parsed OK: [10:28:59]protocol is kg_v1.0 [10:28:59]action value=close_receipt [10:28:59]process_action close_receipt [10:28:59]cmd_close_receipt [10:28:59]MH_GetDate [10:28:59]Write to MH i2c: F0 00 00 73 30 92 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 09 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: F0 09 00 73 30 00 EF 2C 16 67 04 C1 95 66 F3 [10:28:59]GetLastDocTimeStamp 1729506490 [10:28:59]current date 1729506543 [10:28:59]FM_GetShiftState [10:28:59]SAM_PROTO_GetShiftState [10:28:59]wFMCommunicate request_size=4 [10:28:59]MH_SAM_APDU [10:28:59]CAPDU: 80 13 01 00 [10:28:59]Write to MH i2c: E2 08 00 74 30 80 13 01 00 00 00 00 00 21 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:59]Read from MH i2c: E2 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 0E 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 0E 00 74 30 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9D [10:28:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:28:59]wFMCommunicate OK [10:28:59]SAM_PROTO_GetShiftState done [10:28:59]FM_GetShiftState done [10:28:59]opened in 1729471058 [10:28:59]opened+sec_in_day 1729557458 [10:28:59]quantity*price = 50063 [10:28:59]sum+1 = 50064 [10:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 62 21.10.2024 10:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30565 ФПД: 231123816409982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30565&fm=231123816409982&tin=02508201610067®Number=0000000000186857&sum=50000 [10:29:00]StoreToDocumentArchive [10:29:00]shift 115 fd 30565 [10:29:00]save to /storage/0115/doc_00030565 [10:29:00]save last doc name /storage/0115/doc_00030565 to /storage/kkm_last_doc_name [10:29:00]save OK [10:29:00]Clear old archive folders... [10:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:00]tlvbuf is 01DCC740 [10:29:00]SAM_PROTO_ClearQueue [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 09 00 00 [10:29:00]Write to MH i2c: E2 08 00 82 30 80 09 00 00 00 00 00 00 24 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 82 30 00 90 00 26 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]SAM_PROTO_ClearQueue done [10:29:00]KKMCreateOFDPacket [10:29:00]OFDProtocolAddRootSTLVToBuf [10:29:00]FM_MakeSignedData [10:29:00]FM_MakeSignedData [10:29:00]SAM_PROTO_SignData [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 01 02 [10:29:00]Write to MH i2c: E2 08 00 83 30 80 0D 01 02 00 00 00 00 2C [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=255 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EF 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 77 00 00 35 04 06 00 D2 34 B4 F9 [10:29:00]Write to MH i2c: E2 02 01 84 30 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EF 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 77 00 00 35 04 06 00 D2 34 B4 F9 00 00 13 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=7 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 02 02 02 EB 7E [10:29:00]Write to MH i2c: E2 0A 00 85 30 80 0D 02 02 02 00 EB 7E 00 00 9C [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [10:29:00]RAPDU: 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 0D 03 02 [10:29:00]Write to MH i2c: E2 08 00 86 30 80 0D 03 02 00 00 00 00 31 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 0B 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 0B 00 86 30 00 EE 45 C2 6E 81 C5 07 4F 90 00 31 [10:29:00]RAPDU: EE 45 C2 6E 81 C5 07 4F 90 00 [10:29:00]wFMCommunicate OK [10:29:00]SAM_PROTO_SignData done [10:29:00]FM_MakeSignedData done [10:29:00]CreateOFDProtocolMessage [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 11 00 00 [10:29:00]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 17 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [10:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:29:00]wFMCommunicate OK [10:29:00]CreateOFDProtocolMessage done [10:29:00]OFDSenderStorePacket 30565 [10:29:00]StoreOFDPacket docnum=30565 [10:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F1 91 04 01 58 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EF 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 77 00 00 35 04 06 00 D2 34 B4 F9 EB 7E EE 45 C2 6E 81 C5 07 4F [10:29:00]CheckFolder [10:29:00]dirname=/storage/ofd_packets [10:29:00]CheckFolder done [10:29:00]ProducePacketName [10:29:00]name=ofd_packets/00030565 [10:29:00]NVStorageSaveData ofd_packets/00030565 [10:29:00]File name is /storage/ofd_packets/00030565 [10:29:00]Write 298 bytes [10:29:00]NVStorageSaveData done [10:29:00]OFDSenderStorePacket done [10:29:00]KKMCreateOFDPacket done [10:29:00]NVStorageSaveData kkm_last_timestamp [10:29:00]File name is /storage/kkm_last_timestamp [10:29:00]Write 4 bytes [10:29:00]NVStorageSaveData done [10:29:00]ExternCall_PrintAddStr [10:29:00]wPrintStart [10:29:00]Write to MH i2c: 01 00 00 88 30 B8 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: 01 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: 01 07 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: 01 07 00 88 30 00 02 00 00 00 FF 0F CF [10:29:00]RasterBufferAndPrint [10:29:00]line Счет N : (1)342970 [10:29:00]line ИНН: 02508201610067 [10:29:00]line Контрольно-Кассовый Чек [10:29:00]line ПРОДАЖА [10:29:00]line ТРК (МРК, ГНК) : 44 [10:29:00]line Товар: 2710194210 [10:29:00]line ДТ-К-2 [10:29:00]line 6.570 * 76.20 [10:29:00]line = 500.63 [10:29:00]line НДС 12% НСП 1% [10:29:00]line > о реализуемом товаре [10:29:00]line ОКРУГЛЕНИЕ: -0.63 [10:29:00]line ИТОГО: 500.00 [10:29:00]line Внесено: 500.00 [10:29:00]line СДАЧА: 0.00 [10:29:00]line НСП 1% : 4.43 [10:29:00]line НДС 12% : 53.16 [10:29:00]line Наличными: 500.00 [10:29:00]line Безнал.: 0.00 [10:29:00]line Место: АЗС № 78 "Партнер Нефть" [10:29:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:29:01]line СНО: Общий режим [10:29:01]line Чек 62 21.10.2024 10:29 [10:29:01]line Смена: 115 ФФД: 1.0 [10:29:01]line ЗНМ: 0300000137 [10:29:01]line РНМ: 0000000000186857 [10:29:01]line Версия ККМ: v1.0 [10:29:01]line ФМ: 0000000002094219 [10:29:01]line ФД: 30565 [10:29:01]line ФПД: 231123816409982 [10:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30565&fm=231123816409982&tin=02508201610067®Number=0000000000186857&sum=50000 [10:29:01]OFD Sender: Processing packet 30565 [packets to send 10, broken 9] [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00030565 [10:29:01]OFD Sender: To server: pG, [10:29:01]CommunicateWithHost lk.salyk.kg:30040 [10:29:01]ConnectInit lk.salyk.kg [10:29:01]written 0, free lines is 4095 [10:29:01]Error from MH - 05 [10:29:01]process_action_free close_receipt [10:29:01]json_value_free [10:29:01]json_value_free done [10:29:01]process_json_proto returns [10:29:01]Send response to host [10:29:01]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [10:29:01]free response buf [10:29:01]execute_script done [10:29:01]execute_script returns [10:29:01]free content buf [10:29:01]Sock 7.Close socket [10:29:01]Sock 7.Thread stoped [10:29:01]Connected sock=6 [10:29:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F1 91 04 01 58 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EF 2C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 65 77 00 00 35 04 06 00 D2 34 B4 F9 EB 7E EE 45 C2 6E 81 C5 07 4F [10:29:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BB 59 47 00 8A 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 32 30 39 34 32 31 39 10 04 04 00 65 77 00 00 F4 03 04 00 70 D7 15 67 B6 04 01 00 00 47 6B C3 0C C5 B8 28 22 [10:29:01]CommunicateWithHost err = 0 [10:29:01]CheckOFDResponse [10:29:01]1017 (14) - 77093643461234 [10:29:01]1041 (16) - 0000000002094219 [10:29:01]1040 (4) - 30565 [10:29:01]1012 (4) - 21.10.2024 04:24 [10:29:01]1206 (1) - 0 [10:29:01]OFD Sender: Remove packet 30565 [10:29:01]ProducePacketName [10:29:01]name=ofd_packets/00030565 [10:29:01]NVStorageDeleteData [10:29:02]OFD Sender: No OFD packet to send [10:29:05]Write to MH i2c: 01 00 00 8B 30 BB [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: 01 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: 01 07 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: 01 07 00 8B 30 00 02 00 00 00 FF 0F D2 [10:29:05]state=3 [10:29:05]Cover opened [10:29:07]OFD Sender: No OFD packet to send [10:29:10]Write to MH i2c: 01 00 00 8C 30 BC [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: 01 07 00 8C 30 00 02 00 00 00 FF 0F D3 [10:29:10]state=3 [10:29:10]Cover opened [10:29:12]OFD Sender: No OFD packet to send [10:29:15]Write to MH i2c: 01 00 00 8D 30 BD [10:29:15]Write i2c OK [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: 01 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: 01 07 00 [10:29:15]MH_I2C_Read... [10:29:15]Read from MH i2c: 01 07 00 8D 30 00 02 00 00 00 FF 0F D4 [10:29:15]state=3 [10:29:15]Cover opened [10:29:17]OFD Sender: No OFD packet to send [10:29:20]Write to MH i2c: 01 00 00 8E 30 BE [10:29:20]Write i2c OK [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 07 00 [10:29:20]MH_I2C_Read... [10:29:20]Read from MH i2c: 01 07 00 8E 30 00 02 00 00 00 FF 0F D5 [10:29:20]state=3 [10:29:20]Cover opened [10:29:22]OFD Sender: No OFD packet to send [10:29:25]Write to MH i2c: 01 00 00 8F 30 BF [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 8F 30 00 02 00 00 00 FF 0F D6 [10:29:25]state=3 [10:29:25]Cover opened [10:29:27]OFD Sender: No OFD packet to send [10:29:30]Write to MH i2c: 01 00 00 90 30 C0 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 90 30 00 02 00 00 00 FF 0F D7 [10:29:30]state=3 [10:29:30]Cover opened [10:29:32]OFD Sender: No OFD packet to send [10:29:35]Write to MH i2c: 01 00 00 91 30 C1 [10:29:35]Write i2c OK [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 [10:29:35]MH_I2C_Read... [10:29:35]Read from MH i2c: 01 07 00 91 30 00 02 00 00 00 FF 0F D8 [10:29:35]state=3 [10:29:35]Cover opened [10:29:37]OFD Sender: No OFD packet to send [10:29:40]Write to MH i2c: 01 00 00 92 30 C2 [10:29:40]Write i2c OK [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 [10:29:40]MH_I2C_Read... [10:29:40]Read from MH i2c: 01 07 00 92 30 00 02 00 00 00 FF 0F D9 [10:29:40]state=3 [10:29:40]Cover opened [10:29:42]OFD Sender: No OFD packet to send [10:29:45]Write to MH i2c: 01 00 00 93 30 C3 [10:29:45]Write i2c OK [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 [10:29:45]MH_I2C_Read... [10:29:45]Read from MH i2c: 01 07 00 93 30 00 02 00 00 00 FF 0F DA [10:29:45]state=3 [10:29:45]Cover opened [10:29:47]OFD Sender: No OFD packet to send [10:29:50]Write to MH i2c: 01 00 00 94 30 C4 [10:29:50]Write i2c OK [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: 01 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: 01 07 00 [10:29:50]MH_I2C_Read... [10:29:50]Read from MH i2c: 01 07 00 94 30 00 02 00 00 00 FF 0F DB [10:29:50]state=3 [10:29:50]Cover opened [10:29:52]OFD Sender: No OFD packet to send [10:29:55]Write to MH i2c: 01 00 00 95 30 C5 [10:29:55]Write i2c OK [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 [10:29:55]MH_I2C_Read... [10:29:55]Read from MH i2c: 01 07 00 95 30 00 02 00 00 00 FF 0F DC [10:29:55]state=3 [10:29:55]Cover opened [10:29:57]OFD Sender: No OFD packet to send [10:30:00]Write to MH i2c: 01 00 00 96 30 C6 [10:30:00]Write i2c OK [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: 01 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: 01 07 00 [10:30:00]MH_I2C_Read... [10:30:00]Read from MH i2c: 01 07 00 96 30 00 02 00 00 00 FF 0F DD [10:30:00]state=3 [10:30:00]Cover opened [10:30:02]OFD Sender: No OFD packet to send [10:30:05]Write to MH i2c: 01 00 00 97 30 C7 [10:30:05]Write i2c OK [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 07 00 [10:30:05]MH_I2C_Read... [10:30:05]Read from MH i2c: 01 07 00 97 30 00 02 00 00 00 FF 0F DE [10:30:05]state=3 [10:30:05]Cover opened [10:30:07]OFD Sender: No OFD packet to send [10:30:10]Write to MH i2c: 01 00 00 98 30 C8 [10:30:10]Write i2c OK [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: 01 [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: 01 07 00 [10:30:10]MH_I2C_Read... [10:30:10]Read from MH i2c: 01 07 00 98 30 00 02 00 00 00 FF 0F DF [10:30:10]state=3 [10:30:10]Cover opened [10:30:12]OFD Sender: No OFD packet to send [10:30:15]Write to MH i2c: 01 00 00 99 30 C9 [10:30:15]Write i2c OK [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 07 00 [10:30:15]MH_I2C_Read... [10:30:15]Read from MH i2c: 01 07 00 99 30 00 02 00 00 00 FF 0F E0 [10:30:15]state=3 [10:30:15]Cover opened [10:30:17]OFD Sender: No OFD packet to send [10:30:20]Write to MH i2c: 01 00 00 9A 30 CA [10:30:20]Write i2c OK [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 [10:30:20]MH_I2C_Read... [10:30:20]Read from MH i2c: 01 07 00 9A 30 00 02 00 00 00 FF 0F E1 [10:30:20]state=3 [10:30:20]Cover opened [10:30:22]OFD Sender: No OFD packet to send [10:30:25]Write to MH i2c: 01 00 00 9B 30 CB [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 9B 30 00 02 00 00 00 FF 0F E2 [10:30:25]state=3 [10:30:25]Cover opened [10:30:27]OFD Sender: No OFD packet to send [10:30:30]Write to MH i2c: 01 00 00 9C 30 CC [10:30:30]Write i2c OK [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 07 00 [10:30:30]MH_I2C_Read... [10:30:30]Read from MH i2c: 01 07 00 9C 30 00 02 00 00 00 FF 0F E3 [10:30:30]state=3 [10:30:30]Cover opened [10:30:32]OFD Sender: No OFD packet to send [10:30:35]Write to MH i2c: 01 00 00 9D 30 CD [10:30:35]Write i2c OK [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 07 00 [10:30:35]MH_I2C_Read... [10:30:35]Read from MH i2c: 01 07 00 9D 30 00 02 00 00 00 FF 0F E4 [10:30:35]state=3 [10:30:35]Cover opened [10:30:37]OFD Sender: No OFD packet to send [10:30:40]Write to MH i2c: 01 00 00 9E 30 CE [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: 01 07 00 9E 30 00 02 00 00 00 FF 0F E5 [10:30:40]state=3 [10:30:40]Cover opened [10:30:42]OFD Sender: No OFD packet to send [10:30:45]Write to MH i2c: 01 00 00 9F 30 CF [10:30:45]Write i2c OK [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: 01 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: 01 07 00 [10:30:45]MH_I2C_Read... [10:30:45]Read from MH i2c: 01 07 00 9F 30 00 02 00 00 00 FF 0F E6 [10:30:45]state=3 [10:30:45]Cover opened [10:30:47]OFD Sender: No OFD packet to send [10:30:50]Write to MH i2c: 01 00 00 A0 30 D0 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 A0 30 00 02 00 00 00 FF 0F E7 [10:30:50]state=3 [10:30:50]Cover opened [10:30:52]OFD Sender: No OFD packet to send [10:30:55]Write to MH i2c: 01 00 00 A1 30 D1 [10:30:55]Write i2c OK [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 [10:30:55]MH_I2C_Read... [10:30:55]Read from MH i2c: 01 07 00 A1 30 00 02 00 00 00 FF 0F E8 [10:30:55]state=3 [10:30:55]Cover opened [10:30:57]OFD Sender: No OFD packet to send [10:31:00]Write to MH i2c: 01 00 00 A2 30 D2 [10:31:00]Write i2c OK [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: 01 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: 01 07 00 [10:31:00]MH_I2C_Read... [10:31:00]Read from MH i2c: 01 07 00 A2 30 00 02 00 00 00 FF 0F E9 [10:31:00]state=3 [10:31:00]Cover opened [10:31:02]OFD Sender: No OFD packet to send [10:31:05]Write to MH i2c: 01 00 00 A3 30 D3 [10:31:05]Write i2c OK [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: 01 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: 01 07 00 [10:31:05]MH_I2C_Read... [10:31:05]Read from MH i2c: 01 07 00 A3 30 00 02 00 00 00 FF 0F EA [10:31:05]state=3 [10:31:05]Cover opened [10:31:07]OFD Sender: No OFD packet to send [10:31:10]Write to MH i2c: 01 00 00 A4 30 D4 [10:31:10]Write i2c OK [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 07 00 [10:31:10]MH_I2C_Read... [10:31:10]Read from MH i2c: 01 07 00 A4 30 00 02 00 00 00 FF 0F EB [10:31:10]state=3 [10:31:10]Cover opened [10:31:12]OFD Sender: No OFD packet to send [10:31:15]Write to MH i2c: 01 00 00 A5 30 D5 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 A5 30 00 02 00 00 00 FF 0F EC [10:31:15]state=3 [10:31:15]Cover opened [10:31:17]OFD Sender: No OFD packet to send [10:31:20]Write to MH i2c: 01 00 00 A6 30 D6 [10:31:20]Write i2c OK [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 [10:31:20]MH_I2C_Read... [10:31:20]Read from MH i2c: 01 07 00 A6 30 00 02 00 00 00 FF 0F ED [10:31:20]state=3 [10:31:20]Cover opened [10:31:22]OFD Sender: No OFD packet to send [10:31:25]Write to MH i2c: 01 00 00 A7 30 D7 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 A7 30 00 02 00 00 00 FF 0F EE [10:31:25]state=3 [10:31:25]Cover opened [10:31:27]OFD Sender: No OFD packet to send [10:31:30]Write to MH i2c: 01 00 00 A8 30 D8 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 07 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: 01 07 00 A8 30 00 02 00 00 00 FF 0F EF [10:31:30]state=3 [10:31:30]Cover opened [10:31:32]OFD Sender: No OFD packet to send [10:31:35]Write to MH i2c: 01 00 00 A9 30 D9 [10:31:35]Write i2c OK [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 07 00 [10:31:35]MH_I2C_Read... [10:31:35]Read from MH i2c: 01 07 00 A9 30 00 02 00 00 00 FF 0F F0 [10:31:35]state=3 [10:31:35]Cover opened [10:31:37]OFD Sender: No OFD packet to send [10:31:40]Write to MH i2c: 01 00 00 AA 30 DA [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: 01 07 00 AA 30 00 02 00 00 00 FF 0F F1 [10:31:40]state=3 [10:31:40]Cover opened [10:31:42]OFD Sender: No OFD packet to send [10:31:45]Write to MH i2c: 01 00 00 AB 30 DB [10:31:45]Write i2c OK [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 [10:31:45]MH_I2C_Read... [10:31:45]Read from MH i2c: 01 07 00 AB 30 00 02 00 00 00 FF 0F F2 [10:31:45]state=3 [10:31:45]Cover opened [10:31:47]OFD Sender: No OFD packet to send [10:31:50]Write to MH i2c: 01 00 00 AC 30 DC [10:31:50]Write i2c OK [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 [10:31:50]MH_I2C_Read... [10:31:50]Read from MH i2c: 01 07 00 AC 30 00 02 00 00 00 FF 0F F3 [10:31:50]state=3 [10:31:50]Cover opened [10:31:52]OFD Sender: No OFD packet to send [10:31:55]Write to MH i2c: 01 00 00 AD 30 DD [10:31:55]Write i2c OK [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: 01 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: 01 07 00 [10:31:55]MH_I2C_Read... [10:31:55]Read from MH i2c: 01 07 00 AD 30 00 02 00 00 00 FF 0F F4 [10:31:55]state=3 [10:31:55]Cover opened [10:31:57]OFD Sender: No OFD packet to send [10:32:00]Write to MH i2c: 01 00 00 AE 30 DE [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 AE 30 00 02 00 00 00 FF 0F F5 [10:32:00]state=3 [10:32:00]Cover opened [10:32:02]OFD Sender: No OFD packet to send [10:32:05]Write to MH i2c: 01 00 00 AF 30 DF [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: 01 07 00 AF 30 00 02 00 00 00 FF 0F F6 [10:32:05]state=3 [10:32:05]Cover opened [10:32:07]OFD Sender: No OFD packet to send [10:32:10]Write to MH i2c: 01 00 00 B0 30 E0 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 B0 30 00 02 00 00 00 FF 0F F7 [10:32:10]state=3 [10:32:10]Cover opened [10:32:12]OFD Sender: No OFD packet to send [10:32:15]Write to MH i2c: 01 00 00 B1 30 E1 [10:32:15]Write i2c OK [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 [10:32:15]MH_I2C_Read... [10:32:15]Read from MH i2c: 01 07 00 B1 30 00 02 00 00 00 FF 0F F8 [10:32:15]state=3 [10:32:15]Cover opened [10:32:17]OFD Sender: No OFD packet to send [10:32:20]Write to MH i2c: 01 00 00 B2 30 E2 [10:32:20]Write i2c OK [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 [10:32:20]MH_I2C_Read... [10:32:20]Read from MH i2c: 01 07 00 B2 30 00 02 00 00 00 FF 0F F9 [10:32:20]state=3 [10:32:20]Cover opened [10:32:22]OFD Sender: No OFD packet to send [10:32:25]Write to MH i2c: 01 00 00 B3 30 E3 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 B3 30 00 02 00 00 00 FF 0F FA [10:32:25]state=3 [10:32:25]Cover opened [10:32:27]OFD Sender: No OFD packet to send [10:32:30]Write to MH i2c: 01 00 00 B4 30 E4 [10:32:30]Write i2c OK [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 [10:32:30]MH_I2C_Read... [10:32:30]Read from MH i2c: 01 07 00 B4 30 00 02 00 00 00 FF 0F FB [10:32:30]state=3 [10:32:30]Cover opened [10:32:32]OFD Sender: No OFD packet to send [10:32:35]Write to MH i2c: 01 00 00 B5 30 E5 [10:32:35]Write i2c OK [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 [10:32:35]MH_I2C_Read... [10:32:35]Read from MH i2c: 01 07 00 B5 30 00 02 00 00 00 FF 0F FC [10:32:35]state=3 [10:32:35]Cover opened [10:32:37]OFD Sender: No OFD packet to send [10:32:40]Write to MH i2c: 01 00 00 B6 30 E6 [10:32:40]Write i2c OK [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 07 00 [10:32:40]MH_I2C_Read... [10:32:40]Read from MH i2c: 01 07 00 B6 30 00 02 00 00 00 FF 0F FD [10:32:40]state=3 [10:32:40]Cover opened [10:32:42]OFD Sender: No OFD packet to send [10:32:45]Write to MH i2c: 01 00 00 B7 30 E7 [10:32:45]Write i2c OK [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 07 00 [10:32:45]MH_I2C_Read... [10:32:45]Read from MH i2c: 01 07 00 B7 30 00 02 00 00 00 FF 0F FE [10:32:45]state=3 [10:32:45]Cover opened [10:32:47]OFD Sender: No OFD packet to send [10:32:50]Write to MH i2c: 01 00 00 B8 30 E8 [10:32:50]Write i2c OK [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: 01 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: 01 07 00 [10:32:50]MH_I2C_Read... [10:32:50]Read from MH i2c: 01 07 00 B8 30 00 02 00 00 00 FF 0F FF [10:32:50]state=3 [10:32:50]Cover opened [10:32:52]OFD Sender: No OFD packet to send [10:32:55]Write to MH i2c: 01 00 00 B9 30 E9 [10:32:55]Write i2c OK [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 [10:32:55]MH_I2C_Read... [10:32:55]Read from MH i2c: 01 07 00 B9 30 00 02 00 00 00 FF 0F 00 [10:32:55]state=3 [10:32:55]Cover opened [10:32:57]OFD Sender: No OFD packet to send [10:33:00]Write to MH i2c: 01 00 00 BA 30 EA [10:33:00]Write i2c OK [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 [10:33:00]MH_I2C_Read... [10:33:00]Read from MH i2c: 01 07 00 BA 30 00 02 00 00 00 FF 0F 01 [10:33:00]state=3 [10:33:00]Cover opened [10:33:02]OFD Sender: No OFD packet to send [10:33:05]Write to MH i2c: 01 00 00 BB 30 EB [10:33:05]Write i2c OK [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: 01 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: 01 07 00 [10:33:05]MH_I2C_Read... [10:33:05]Read from MH i2c: 01 07 00 BB 30 00 02 00 00 00 FF 0F 02 [10:33:05]state=3 [10:33:05]Cover opened [10:33:07]OFD Sender: No OFD packet to send [10:33:10]Write to MH i2c: 01 00 00 BC 30 EC [10:33:10]Write i2c OK [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: 01 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: 01 07 00 [10:33:10]MH_I2C_Read... [10:33:10]Read from MH i2c: 01 07 00 BC 30 00 02 00 00 00 FF 0F 03 [10:33:10]state=3 [10:33:10]Cover opened [10:33:12]OFD Sender: No OFD packet to send [10:33:15]Write to MH i2c: 01 00 00 BD 30 ED [10:33:15]Write i2c OK [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 07 00 [10:33:15]MH_I2C_Read... [10:33:15]Read from MH i2c: 01 07 00 BD 30 00 02 00 00 00 FF 0F 04 [10:33:15]state=3 [10:33:15]Cover opened [10:33:17]OFD Sender: No OFD packet to send [10:33:20]Write to MH i2c: 01 00 00 BE 30 EE [10:33:20]Write i2c OK [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 07 00 [10:33:20]MH_I2C_Read... [10:33:20]Read from MH i2c: 01 07 00 BE 30 00 02 00 00 00 FF 0F 05 [10:33:20]state=3 [10:33:20]Cover opened [10:33:22]OFD Sender: No OFD packet to send [10:33:25]Write to MH i2c: 01 00 00 BF 30 EF [10:33:25]Write i2c OK [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 [10:33:25]MH_I2C_Read... [10:33:25]Read from MH i2c: 01 07 00 BF 30 00 02 00 00 00 FF 0F 06 [10:33:25]state=3 [10:33:25]Cover opened [10:33:27]OFD Sender: No OFD packet to send [10:33:30]Write to MH i2c: 01 00 00 C0 30 F0 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: 01 07 00 C0 30 00 02 00 00 00 FF 0F 07 [10:33:30]state=3 [10:33:30]Cover opened [10:33:32]OFD Sender: No OFD packet to send [10:33:35]Write to MH i2c: 01 00 00 C1 30 F1 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: 01 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: 01 07 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: 01 07 00 C1 30 00 02 00 00 00 FF 0F 08 [10:33:35]state=3 [10:33:35]Cover opened [10:33:37]OFD Sender: No OFD packet to send [10:33:40]int [10:33:40]Write to MH i2c: 01 00 00 C2 30 F2 [10:33:40]*** FLAG_PRN_PAP1 set [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 C2 30 00 03 00 00 00 FF 0F 0A [10:33:40]state=3 [10:33:40]No paper [10:33:40]Cover opened [10:33:40]int [10:33:40]Write to MH i2c: 01 00 00 C3 30 F3 [10:33:40]*** FLAG_PRN_PAP2 reset [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 C3 30 00 01 00 00 00 FF 0F 09 [10:33:40]state=3 [10:33:40]No paper [10:33:40]Cover closed [10:33:40]int [10:33:40]Write to MH i2c: 01 00 00 C4 30 F4 [10:33:40]*** FLAG_PRN_PAP2 set [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 C4 30 00 03 00 00 00 FF 0F 0C [10:33:40]state=0 [10:33:40]No paper [10:33:40]Cover opened [10:33:40]int [10:33:40]Write to MH i2c: 01 00 00 C5 30 F5 [10:33:40]*** FLAG_PRN_PAP2 reset [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 C5 30 00 01 00 00 00 FF 0F 0B [10:33:40]state=3 [10:33:40]No paper [10:33:40]Cover closed [10:33:40]int [10:33:40]Write to MH i2c: 01 00 00 C6 30 F6 [10:33:40]*** FLAG_PRN_PAP2 set [10:33:40]Write i2c OK [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 [10:33:40]MH_I2C_Read... [10:33:40]Read from MH i2c: 01 07 00 C6 30 00 03 00 00 00 FF 0F 0E [10:33:40]state=0 [10:33:40]No paper [10:33:40]Cover opened [10:33:42]OFD Sender: No OFD packet to send [10:33:45]Write to MH i2c: 01 00 00 C7 30 F7 [10:33:45]Write i2c OK [10:33:45]MH_I2C_Read... [10:33:45]Read from MH i2c: 01 [10:33:45]MH_I2C_Read... [10:33:45]Read from MH i2c: 01 07 00 [10:33:45]MH_I2C_Read... [10:33:45]Read from MH i2c: 01 07 00 C7 30 00 03 00 00 00 FF 0F 0F [10:33:45]state=3 [10:33:45]No paper [10:33:45]Cover opened [10:33:47]OFD Sender: No OFD packet to send [10:33:50]Write to MH i2c: 01 00 00 C8 30 F8 [10:33:50]Write i2c OK [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 [10:33:50]MH_I2C_Read... [10:33:50]Read from MH i2c: 01 07 00 C8 30 00 03 00 00 00 FF 0F 10 [10:33:50]state=3 [10:33:50]No paper [10:33:50]Cover opened [10:33:52]OFD Sender: No OFD packet to send [10:33:55]Write to MH i2c: 01 00 00 C9 30 F9 [10:33:55]Write i2c OK [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: 01 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: 01 07 00 [10:33:55]MH_I2C_Read... [10:33:55]Read from MH i2c: 01 07 00 C9 30 00 03 00 00 00 FF 0F 11 [10:33:55]state=3 [10:33:55]No paper [10:33:55]Cover opened [10:33:57]OFD Sender: No OFD packet to send [10:33:59]int [10:33:59]Write to MH i2c: 01 00 00 CA 30 FA [10:33:59]*** FLAG_PRN_PAP1 reset [10:33:59]Write i2c OK [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 [10:33:59]MH_I2C_Read... [10:33:59]Read from MH i2c: 01 07 00 [10:33:59]MH_I2C_Read... [10:33:59]*** FLAG_PRN_PAP2 reset [10:33:59]Read from MH i2c: 01 07 00 CA 30 00 00 00 00 00 FF 0F 0F [10:33:59]state=3 [10:33:59]Cover closed [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:28]accept exits with 9 [10:34:28]New connection [10:34:28]New thread 3067489636 created [10:34:28]Thread 3067346276 joined [10:34:28]Waiting for new connection... [10:34:28] Sock 9.Parse request [10:34:28]Sock 9.Check first char [10:34:28]Sock 9.First char is OK [10:34:28]request: POST /json_proto HTTP/1.0 [10:34:28]Method: POST [10:34:28]URL: /json_proto [10:34:28]Method is POST - this is cgi request [10:34:28]url: /json_proto [10:34:28]query_string will be loaded in cgi processing [10:34:28]execute_cgi json_proto POST (null) [10:34:28]execute_cgi path=json_proto method=POST [10:34:28]POST find Content-Length [10:34:28]Host: 172.17.51.3:8080 [10:34:28]Content-Length: 215 [10:34:28]Content-Type: application/json [10:34:28] [10:34:28]POST finish read [10:34:28]Found Content-Length = 215 [10:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:28]execute_script... [10:34:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:28]POST & json_proto [10:34:28]process_json_proto [10:34:28]json parsed OK: [10:34:28]protocol is kg_v1.0 [10:34:28]action value=get_value [10:34:28]process_action get_value [10:34:28]cmd_get_value [10:34:28]process_action get_value done [10:34:28]requested_data is exist [10:34:28]produce_requested_data [10:34:28]requested_item kkm.sn is exist - process it [10:34:28]requested_item kkm.ver is exist - process it [10:34:28]requested_item fm.sn is exist - process it [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 11 00 00 [10:34:28]Write to MH i2c: E2 08 00 CB 30 80 11 00 00 00 00 00 00 75 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 17 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 17 00 CB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [10:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:34:28]wFMCommunicate OK [10:34:28]requested_item fd.num is exist - process it [10:34:28]SAM_PROTO_GetFieldsCounters [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 13 00 00 [10:34:28]Write to MH i2c: E2 08 00 CC 30 80 13 00 00 00 00 00 00 78 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:28]Read from MH i2c: E2 62 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 62 00 CC 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 77 00 00 0E 04 04 00 73 00 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 A7 [10:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 65 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_GetFieldsCounters done [10:34:28]requested_item shift.num is exist - process it [10:34:28]requested_item shift.opened is exist - process it [10:34:28]req_shift_opened [10:34:28]FM_GetShiftState [10:34:28]SAM_PROTO_GetShiftState [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 13 01 00 [10:34:28]Write to MH i2c: E2 08 00 CD 30 80 13 01 00 00 00 00 00 7A [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 CD 30 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F6 [10:34:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_GetShiftState done [10:34:28]FM_GetShiftState done [10:34:28]req_shift_opened done [10:34:28]requested_item shift.open_date is exist - process it [10:34:28]req_shift_open_date [10:34:28]req_shift_open_date done [10:34:28]produce_requested_data done [10:34:28]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30565,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:34:28]process_action_free get_value [10:34:28]json_value_free [10:34:28]json_value_free done [10:34:28]process_json_proto returns [10:34:28]Send response to host [10:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30565,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:34:28]free response buf [10:34:28]execute_script done [10:34:28]execute_script returns [10:34:28]free content buf [10:34:28]Sock 9.Close socket [10:34:28]Sock 9.Thread stoped [10:34:28]accept exits with 7 [10:34:28]New connection [10:34:28]New thread 3067346276 created [10:34:28]Thread 3067489636 joined [10:34:28]Waiting for new connection... [10:34:28] Sock 7.Parse request [10:34:28]Sock 7.Check first char [10:34:28]Sock 7.First char is OK [10:34:28]request: POST /json_proto HTTP/1.0 [10:34:28]Method: POST [10:34:28]URL: /json_proto [10:34:28]Method is POST - this is cgi request [10:34:28]url: /json_proto [10:34:28]query_string will be loaded in cgi processing [10:34:28]execute_cgi json_proto POST (null) [10:34:28]execute_cgi path=json_proto method=POST [10:34:28]POST find Content-Length [10:34:28]Host: 172.17.51.3:8080 [10:34:28]Content-Length: 331 [10:34:28]Content-Type: application/json [10:34:28] [10:34:28]POST finish read [10:34:28]Found Content-Length = 331 [10:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:34:28]execute_script... [10:34:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:34:28]POST & json_proto [10:34:28]process_json_proto [10:34:28]json parsed OK: [10:34:28]protocol is kg_v1.0 [10:34:28]action value=get_value [10:34:28]process_action get_value [10:34:28]cmd_get_value [10:34:28]process_action get_value done [10:34:28]requested_data is exist [10:34:28]produce_requested_data [10:34:28]requested_item fm.sale.total is exist - process it [10:34:28]SAM_PROTO_GetFMData [10:34:28]wFMCommunicate request_size=4 [10:34:28]MH_SAM_APDU [10:34:28]CAPDU: 80 13 03 00 [10:34:28]Write to MH i2c: E2 08 00 CE 30 80 13 03 00 00 00 00 00 7D [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 CE 30 00 BF 04 85 04 BB 04 6E 04 04 00 7F 76 00 00 69 04 A1 00 6F 04 04 00 70 76 00 00 B1 04 04 00 8F 18 1B A4 70 04 04 00 00 0B 85 83 72 04 04 00 8F 0D 96 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 9B 6E 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 50 E0 73 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 12 [10:34:29]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 7F 76 00 00 69 04 A1 00 6F 04 04 00 70 76 00 00 B1 04 04 00 8F 18 1B A4 70 04 04 00 00 0B 85 83 72 04 04 00 8F 0D 96 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A4 9B 6E 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 50 E0 73 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 17 00 00 [10:34:29]Write to MH i2c: E2 08 00 CF 30 80 17 00 00 00 00 00 00 7F [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 CF 30 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 50 [10:34:29]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 17 00 00 [10:34:29]Write to MH i2c: E2 08 00 D0 30 80 17 00 00 00 00 00 00 80 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 D0 30 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 24 [10:34:29]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 17 00 00 [10:34:29]Write to MH i2c: E2 08 00 D1 30 80 17 00 00 00 00 00 00 81 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:29]Read from MH i2c: E2 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 [10:34:29]MH_I2C_Read... [10:34:29]Read from MH i2c: E2 FD 00 D1 30 00 00 04 F7 03 00 00 EF 03 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 90 00 FB [10:34:29]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [10:34:29]wFMCommunicate OK [10:34:29]wFMCommunicate request_size=4 [10:34:29]MH_SAM_APDU [10:34:29]CAPDU: 80 17 00 00 [10:34:29]Write to MH i2c: E2 08 00 D2 30 80 17 00 00 00 00 00 00 82 [10:34:29]Write i2c OK [10:34:29]MH_I2C_Read... [10:34:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:34:30]Read from MH i2c: E2 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 DC 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 DC 00 D2 30 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [10:34:30]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:34:30]wFMCommunicate OK [10:34:30]SAM_PROTO_GetFMData done [10:34:30]requested_item fm.sale_refund.total is exist - process it [10:34:30]requested_item fm.buy.total is exist - process it [10:34:30]requested_item shift.sale.total is exist - process it [10:34:30]SAM_PROTO_GetShiftData [10:34:30]wFMCommunicate request_size=4 [10:34:30]MH_SAM_APDU [10:34:30]CAPDU: 80 13 02 00 [10:34:30]Write to MH i2c: E2 08 00 D3 30 80 13 02 00 00 00 00 00 81 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:34:30]Read from MH i2c: E2 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 FD 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 FD 00 D3 30 00 AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 BE 4A 48 70 04 03 00 EC 53 38 72 04 03 00 D2 F6 0F 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 EF AD 07 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 D4 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 76 [10:34:30]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 3E 00 00 00 69 04 9B 00 6F 04 04 00 3E 00 00 00 B1 04 03 00 BE 4A 48 70 04 03 00 EC 53 38 72 04 03 00 D2 F6 0F 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 EF AD 07 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 D4 A3 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 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 90 00 [10:34:30]wFMCommunicate OK [10:34:30]wFMCommunicate request_size=4 [10:34:30]MH_SAM_APDU [10:34:30]CAPDU: 80 17 00 00 [10:34:30]Write to MH i2c: E2 08 00 D4 30 80 17 00 00 00 00 00 00 84 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:30]Read from MH i2c: E2 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 FD 00 [10:34:30]MH_I2C_Read... [10:34:30]Read from MH i2c: E2 FD 00 D4 30 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 A6 [10:34:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [10:34:30]wFMCommunicate OK [10:34:30]wFMCommunicate request_size=4 [10:34:30]MH_SAM_APDU [10:34:30]CAPDU: 80 17 00 00 [10:34:30]Write to MH i2c: E2 08 00 D5 30 80 17 00 00 00 00 00 00 85 [10:34:30]Write i2c OK [10:34:30]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 FD 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 FD 00 D5 30 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 3C [10:34:31]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 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 [10:34:31]wFMCommunicate OK [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 17 00 00 [10:34:31]Write to MH i2c: E2 08 00 D6 30 80 17 00 00 00 00 00 00 86 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 FD 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 FD 00 D6 30 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F8 [10:34:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:34:31]wFMCommunicate OK [10:34:31]wFMCommunicate request_size=4 [10:34:31]MH_SAM_APDU [10:34:31]CAPDU: 80 17 00 00 [10:34:31]Write to MH i2c: E2 08 00 D7 30 80 17 00 00 00 00 00 00 87 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:34:31]Read from MH i2c: E2 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 CB 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: E2 CB 00 D7 30 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [10:34:31]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:34:31]wFMCommunicate OK [10:34:31]SAM_PROTO_GetShiftData done [10:34:31]requested_item shift.sale.total_cash is exist - process it [10:34:31]requested_item shift.sale_refund.total is exist - process it [10:34:31]requested_item shift.sale_refund.total_cash is exist - process it [10:34:31]requested_item shift.buy.total is exist - process it [10:34:31]requested_item shift.buy.total_cash is exist - process it [10:34:31]produce_requested_data done [10:34:31]produce_requested_data return {"fm.sale.total":27532391.83,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":47377.26,"shift.sale.total_cash":36915.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} [10:34:31]process_action_free get_value [10:34:31]json_value_free [10:34:31]json_value_free done [10:34:31]process_json_proto returns [10:34:31]Send response to host [10:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27532391.83,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":47377.26,"shift.sale.total_cash":36915.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}}} [10:34:31]free response buf [10:34:31]execute_script done [10:34:31]execute_script returns [10:34:31]free content buf [10:34:31]Sock 7.Close socket [10:34:31]Sock 7.Thread stoped [10:34:31]accept exits with 9 [10:34:31]New connection [10:34:31]New thread 3067489636 created [10:34:31]Thread 3067346276 joined [10:34:31]Waiting for new connection... [10:34:31] Sock 9.Parse request [10:34:31]Sock 9.Check first char [10:34:31]Sock 9.First char is OK [10:34:31]request: POST /json_proto HTTP/1.0 [10:34:31]Method: POST [10:34:31]URL: /json_proto [10:34:31]Method is POST - this is cgi request [10:34:31]url: /json_proto [10:34:31]query_string will be loaded in cgi processing [10:34:31]execute_cgi json_proto POST (null) [10:34:31]execute_cgi path=json_proto method=POST [10:34:31]POST find Content-Length [10:34:31]Host: 172.17.51.3:8080 [10:34:31]Content-Length: 144 [10:34:31]Content-Type: application/json [10:34:31] [10:34:31]POST finish read [10:34:31]Found Content-Length = 144 [10:34:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:34:31]execute_script... [10:34:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:34:31]POST & json_proto [10:34:31]process_json_proto [10:34:31]json parsed OK: [10:34:31]protocol is kg_v1.0 [10:34:31]action value=print_doc [10:34:31]process_action print_doc [10:34:31]ExternCall_PrintAddStr [10:34:31]wPrintStart [10:34:31]Write to MH i2c: 01 00 00 D8 30 08 [10:34:31]Write i2c OK [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 [10:34:31]MH_I2C_Read... [10:34:31]Read from MH i2c: 01 07 00 D8 30 00 00 00 00 00 FF 0F 1D [10:34:31]RasterBufferAndPrint [10:34:31]line Счет N : (1)342970 [10:34:31]line ИНН: 02508201610067 [10:34:31]line Контрольно-Кассовый Чек [10:34:31]line ПРОДАЖА [10:34:31]line ТРК (МРК, ГНК) : 44 [10:34:31]line Товар: 2710194210 [10:34:31]line ДТ-К-2 [10:34:31]line 6.570 * 76.20 [10:34:31]line = 500.63 [10:34:31]line НДС 12% НСП 1% [10:34:31]line > о реализуемом товаре [10:34:31]line ОКРУГЛЕНИЕ: -0.63 [10:34:31]line ИТОГО: 500.00 [10:34:31]line Внесено: 500.00 [10:34:31]line СДАЧА: 0.00 [10:34:31]line НСП 1% : 4.43 [10:34:31]line НДС 12% : 53.16 [10:34:31]line Наличными: 500.00 [10:34:31]line Безнал.: 0.00 [10:34:31]line Место: АЗС № 78 "Партнер Нефть" [10:34:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:34:31]line СНО: Общий режим [10:34:31]line Чек 62 21.10.2024 10:29 [10:34:31]line Смена: 115 ФФД: 1.0 [10:34:31]line ЗНМ: 0300000137 [10:34:31]line РНМ: 0000000000186857 [10:34:31]line Версия ККМ: v1.0 [10:34:31]line ФМ: 0000000002094219 [10:34:31]line ФД: 30565 [10:34:31]line ФПД: 231123816409982 [10:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30565&fm=231123816409982&tin=02508201610067®Number=0000000000186857&sum=50000 [10:34:31]written 0, free lines is 4095 [10:34:32]Write to MH i2c: 01 00 00 03 31 34 [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 07 00 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: 01 07 00 03 31 00 00 00 00 00 E7 0C 2E [10:34:32]RasterBufferAndPrint [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]line [10:34:32]written 0, free lines is 3318 [10:34:32]MH_Cut [10:34:32]Write to MH i2c: D1 01 00 0A 31 01 0D [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 01 00 [10:34:32]MH_I2C_Read... [10:34:32]Read from MH i2c: D1 01 00 0A 31 00 0C [10:34:32]Write to MH i2c: 01 00 00 0B 31 3C [10:34:32]Write i2c OK [10:34:32]MH_I2C_Read... [10:34:32]OFD Sender: No OFD packet to send [10:34:33]*** Cut start [10:34:33]*** Partial cut [10:34:33]*** CUTSNS_PIN = 1 [10:34:33]*** CUTSNS_PIN = 0 [10:34:33]*** Brake cut motor [10:34:33]Read from MH i2c: 01 [10:34:33]MH_I2C_Read... [10:34:33]*** Stop cut motor [10:34:33]*** Cut end [10:34:33]Read from MH i2c: 01 07 00 [10:34:33]MH_I2C_Read... [10:34:33]Read from MH i2c: 01 07 00 0B 31 00 00 00 00 00 FF 0F 51 [10:34:33]process_action print_doc done [10:34:33]requested_data is exist [10:34:33]produce_requested_data [10:34:33]produce_requested_data return (null) [10:34:33]process_action_free print_doc [10:34:33]json_value_free [10:34:33]json_value_free done [10:34:33]process_json_proto returns [10:34:33]Send response to host [10:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:34:33]free response buf [10:34:33]execute_script done [10:34:33]execute_script returns [10:34:33]free content buf [10:34:33]Sock 9.Close socket [10:34:33]Sock 9.Thread stoped [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:42]accept exits with 7 [10:35:42]New connection [10:35:42]New thread 3067346276 created [10:35:42]Thread 3067489636 joined [10:35:42]Waiting for new connection... [10:35:42] Sock 7.Parse request [10:35:42]Sock 7.Check first char [10:35:42]Sock 7.First char is OK [10:35:42]request: POST /json_proto HTTP/1.0 [10:35:42]Method: POST [10:35:42]URL: /json_proto [10:35:42]Method is POST - this is cgi request [10:35:42]url: /json_proto [10:35:42]query_string will be loaded in cgi processing [10:35:42]execute_cgi json_proto POST (null) [10:35:42]execute_cgi path=json_proto method=POST [10:35:42]POST find Content-Length [10:35:42]Host: 172.17.51.3:8080 [10:35:42]Content-Length: 679 [10:35:42]Content-Type: application/json [10:35:42] [10:35:42]POST finish read [10:35:42]Found Content-Length = 679 [10:35:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:42]execute_script... [10:35:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:42]POST & json_proto [10:35:42]process_json_proto [10:35:42]json parsed OK: [10:35:42]protocol is kg_v1.0 [10:35:42]action value=close_receipt [10:35:42]process_action close_receipt [10:35:42]cmd_close_receipt [10:35:42]MH_GetDate [10:35:42]Write to MH i2c: F0 00 00 0C 31 2C [10:35:42]Write i2c OK [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: F0 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: F0 09 00 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: F0 09 00 0C 31 00 83 2E 16 67 04 C1 95 66 23 [10:35:42]GetLastDocTimeStamp 1729506543 [10:35:42]current date 1729506947 [10:35:42]FM_GetShiftState [10:35:42]SAM_PROTO_GetShiftState [10:35:42]wFMCommunicate request_size=4 [10:35:42]MH_SAM_APDU [10:35:42]CAPDU: 80 13 01 00 [10:35:42]Write to MH i2c: E2 08 00 0D 31 80 13 01 00 00 00 00 00 BB [10:35:42]Write i2c OK [10:35:42]MH_I2C_Read... [10:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:42]Read from MH i2c: E2 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: E2 0E 00 [10:35:42]MH_I2C_Read... [10:35:42]Read from MH i2c: E2 0E 00 0D 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 37 [10:35:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:35:42]wFMCommunicate OK [10:35:42]SAM_PROTO_GetShiftState done [10:35:42]FM_GetShiftState done [10:35:42]opened in 1729471058 [10:35:42]opened+sec_in_day 1729557458 [10:35:42]quantity*price = 100050 [10:35:42]sum+1 = 100052 [10:35:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 63 21.10.2024 10:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30566 ФПД: 141952507056168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103547&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30566&fm=141952507056168&tin=02508201610067®Number=0000000000186857&sum=100000 [10:35:43]StoreToDocumentArchive [10:35:43]shift 115 fd 30566 [10:35:43]save to /storage/0115/doc_00030566 [10:35:43]save last doc name /storage/0115/doc_00030566 to /storage/kkm_last_doc_name [10:35:43]save OK [10:35:43]Clear old archive folders... [10:35:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:43]tlvbuf is 01DFC7F0 [10:35:43]SAM_PROTO_ClearQueue [10:35:43]wFMCommunicate request_size=4 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 09 00 00 [10:35:43]Write to MH i2c: E2 08 00 1A 31 80 09 00 00 00 00 00 00 BD [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:43]Read from MH i2c: E2 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 [10:35:43]MH_I2C_Read... [10:35:43]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [10:35:43]RAPDU: 90 00 [10:35:43]wFMCommunicate OK [10:35:43]SAM_PROTO_ClearQueue done [10:35:43]KKMCreateOFDPacket [10:35:43]OFDProtocolAddRootSTLVToBuf [10:35:43]FM_MakeSignedData [10:35:43]FM_MakeSignedData [10:35:43]SAM_PROTO_SignData [10:35:43]wFMCommunicate request_size=4 [10:35:43]MH_SAM_APDU [10:35:43]CAPDU: 80 0D 01 02 [10:35:43]Write to MH i2c: E2 08 00 1B 31 80 0D 01 02 00 00 00 00 C5 [10:35:43]Write i2c OK [10:35:43]MH_I2C_Read... [10:35:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:44]Read from MH i2c: E2 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [10:35:44]RAPDU: 90 00 [10:35:44]wFMCommunicate OK [10:35:44]wFMCommunicate request_size=255 [10:35:44]MH_SAM_APDU [10:35:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 83 2E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 77 00 00 35 04 06 00 81 1A E4 C2 [10:35:44]Write to MH i2c: E2 02 01 1C 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 83 2E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 77 00 00 35 04 06 00 81 1A E4 C2 00 00 4A [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:44]Read from MH i2c: E2 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 1C 31 00 90 00 C1 [10:35:44]RAPDU: 90 00 [10:35:44]wFMCommunicate OK [10:35:44]wFMCommunicate request_size=7 [10:35:44]MH_SAM_APDU [10:35:44]CAPDU: 80 0D 02 02 02 10 28 [10:35:44]Write to MH i2c: E2 0A 00 1D 31 80 0D 02 02 02 00 10 28 00 00 04 [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:44]Read from MH i2c: E2 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 03 00 1D 31 00 90 00 C2 [10:35:44]RAPDU: 90 00 [10:35:44]wFMCommunicate OK [10:35:44]wFMCommunicate request_size=4 [10:35:44]MH_SAM_APDU [10:35:44]CAPDU: 80 0D 03 02 [10:35:44]Write to MH i2c: E2 08 00 1E 31 80 0D 03 02 00 00 00 00 CA [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:44]Read from MH i2c: E2 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 0B 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 0B 00 1E 31 00 DE 59 FA 0E 8D 69 42 B2 90 00 F4 [10:35:44]RAPDU: DE 59 FA 0E 8D 69 42 B2 90 00 [10:35:44]wFMCommunicate OK [10:35:44]SAM_PROTO_SignData done [10:35:44]FM_MakeSignedData done [10:35:44]CreateOFDProtocolMessage [10:35:44]wFMCommunicate request_size=4 [10:35:44]MH_SAM_APDU [10:35:44]CAPDU: 80 11 00 00 [10:35:44]Write to MH i2c: E2 08 00 1F 31 80 11 00 00 00 00 00 00 CA [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:44]Read from MH i2c: E2 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 17 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: E2 17 00 1F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [10:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:35:44]wFMCommunicate OK [10:35:44]CreateOFDProtocolMessage done [10:35:44]OFDSenderStorePacket 30566 [10:35:44]StoreOFDPacket docnum=30566 [10:35:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2B 7E 04 01 3D CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 83 2E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 77 00 00 35 04 06 00 81 1A E4 C2 10 28 DE 59 FA 0E 8D 69 42 B2 [10:35:44]CheckFolder [10:35:44]dirname=/storage/ofd_packets [10:35:44]CheckFolder done [10:35:44]ProducePacketName [10:35:44]name=ofd_packets/00030566 [10:35:44]NVStorageSaveData ofd_packets/00030566 [10:35:44]File name is /storage/ofd_packets/00030566 [10:35:44]Write 298 bytes [10:35:44]NVStorageSaveData done [10:35:44]OFDSenderStorePacket done [10:35:44]KKMCreateOFDPacket done [10:35:44]NVStorageSaveData kkm_last_timestamp [10:35:44]File name is /storage/kkm_last_timestamp [10:35:44]Write 4 bytes [10:35:44]NVStorageSaveData done [10:35:44]ExternCall_PrintAddStr [10:35:44]wPrintStart [10:35:44]Write to MH i2c: 01 00 00 20 31 51 [10:35:44]Write i2c OK [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 07 00 [10:35:44]MH_I2C_Read... [10:35:44]Read from MH i2c: 01 07 00 20 31 00 00 00 00 00 FF 0F 66 [10:35:44]RasterBufferAndPrint [10:35:44]line Счет N : (1)342973 [10:35:44]line ИНН: 02508201610067 [10:35:44]line Контрольно-Кассовый Чек [10:35:44]line ПРОДАЖА [10:35:44]line ТРК (МРК, ГНК) : 34 [10:35:44]line Товар: 2710194210 [10:35:44]line ДТ-К-2 [10:35:44]line 13.130 * 76.20 [10:35:44]line = 1000.51 [10:35:44]line НДС 12% НСП 1% [10:35:44]line > о реализуемом товаре [10:35:44]line ОКРУГЛЕНИЕ: -0.51 [10:35:44]line ИТОГО: 1000.00 [10:35:44]line Внесено: 1000.00 [10:35:44]line СДАЧА: 0.00 [10:35:44]line НСП 1% : 8.85 [10:35:44]line НДС 12% : 106.25 [10:35:44]line Наличными: 1000.00 [10:35:44]line Безнал.: 0.00 [10:35:44]line Место: АЗС № 78 "Партнер Нефть" [10:35:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:35:44]line СНО: Общий режим [10:35:44]line Чек 63 21.10.2024 10:35 [10:35:44]line Смена: 115 ФФД: 1.0 [10:35:44]line ЗНМ: 0300000137 [10:35:44]line РНМ: 0000000000186857 [10:35:44]line Версия ККМ: v1.0 [10:35:44]line ФМ: 0000000002094219 [10:35:44]line ФД: 30566 [10:35:44]line ФПД: 141952507056168 [10:35:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103547&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30566&fm=141952507056168&tin=02508201610067®Number=0000000000186857&sum=100000 [10:35:44]written 0, free lines is 4095 [10:35:44]OFD Sender: Processing packet 30566 [packets to send 10, broken 9] [10:35:44]ProducePacketName [10:35:44]name=ofd_packets/00030566 [10:35:44]OFD Sender: To server: pG, [10:35:44]CommunicateWithHost lk.salyk.kg:30040 [10:35:44]ConnectInit lk.salyk.kg [10:35:44]Connected sock=10 [10:35:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2B 7E 04 01 3D CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 83 2E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 77 00 00 35 04 06 00 81 1A E4 C2 10 28 DE 59 FA 0E 8D 69 42 B2 [10:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2A AE 47 00 50 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 66 77 00 00 F4 03 04 00 04 D9 15 67 B6 04 01 00 00 F5 65 16 CB 1B 0D E6 33 [10:35:45]CommunicateWithHost err = 0 [10:35:45]CheckOFDResponse [10:35:45]1017 (14) - 77093643461234 [10:35:45]1041 (16) - 0000000002094219 [10:35:45]1040 (4) - 30566 [10:35:45]1012 (4) - 21.10.2024 04:31 [10:35:45]1206 (1) - 0 [10:35:45]OFD Sender: Remove packet 30566 [10:35:45]ProducePacketName [10:35:45]name=ofd_packets/00030566 [10:35:45]NVStorageDeleteData [10:35:45]Write to MH i2c: 01 00 00 4B 31 7C [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: 01 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: 01 07 00 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: 01 07 00 4B 31 00 00 00 00 00 E0 0C 6F [10:35:45]RasterBufferAndPrint [10:35:45]line [10:35:45]line [10:35:45]line [10:35:45]line [10:35:45]line [10:35:45]written 0, free lines is 3302 [10:35:45]MH_Cut [10:35:45]Write to MH i2c: D1 01 00 52 31 01 55 [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: D1 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: D1 01 00 [10:35:45]MH_I2C_Read... [10:35:45]Read from MH i2c: D1 01 00 52 31 00 54 [10:35:45]Write to MH i2c: 01 00 00 53 31 84 [10:35:45]Write i2c OK [10:35:45]MH_I2C_Read... [10:35:45]OFD Sender: No OFD packet to send [10:35:45]*** Cut start [10:35:45]*** Partial cut [10:35:45]*** CUTSNS_PIN = 1 [10:35:45]*** CUTSNS_PIN = 0 [10:35:46]*** Brake cut motor [10:35:46]Read from MH i2c: 01 [10:35:46]MH_I2C_Read... [10:35:46]*** Stop cut motor [10:35:46]*** Cut end [10:35:46]Read from MH i2c: 01 07 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: 01 07 00 53 31 00 00 00 00 00 FF 0F 99 [10:35:46]process_action close_receipt done [10:35:46]requested_data is exist [10:35:46]produce_requested_data [10:35:46]requested_item fm.sn is exist - process it [10:35:46]wFMCommunicate request_size=4 [10:35:46]MH_SAM_APDU [10:35:46]CAPDU: 80 11 00 00 [10:35:46]Write to MH i2c: E2 08 00 54 31 80 11 00 00 00 00 00 00 FF [10:35:46]Write i2c OK [10:35:46]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 17 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 17 00 54 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [10:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:35:46]wFMCommunicate OK [10:35:46]requested_item fd.num is exist - process it [10:35:46]SAM_PROTO_GetFieldsCounters [10:35:46]wFMCommunicate request_size=4 [10:35:46]MH_SAM_APDU [10:35:46]CAPDU: 80 13 00 00 [10:35:46]Write to MH i2c: E2 08 00 55 31 80 13 00 00 00 00 00 00 02 [10:35:46]Write i2c OK [10:35:46]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 62 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 62 00 55 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 77 00 00 0E 04 04 00 73 00 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 35 [10:35:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 66 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:46]wFMCommunicate OK [10:35:46]SAM_PROTO_GetFieldsCounters done [10:35:46]requested_item shift.num is exist - process it [10:35:46]requested_item shift.opened is exist - process it [10:35:46]req_shift_opened [10:35:46]FM_GetShiftState [10:35:46]SAM_PROTO_GetShiftState [10:35:46]wFMCommunicate request_size=4 [10:35:46]MH_SAM_APDU [10:35:46]CAPDU: 80 13 01 00 [10:35:46]Write to MH i2c: E2 08 00 56 31 80 13 01 00 00 00 00 00 04 [10:35:46]Write i2c OK [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 [10:35:46]MH_I2C_Read... [10:35:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:46]Read from MH i2c: E2 0E 00 [10:35:46]MH_I2C_Read... [10:35:46]Read from MH i2c: E2 0E 00 56 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 80 [10:35:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:35:46]wFMCommunicate OK [10:35:46]SAM_PROTO_GetShiftState done [10:35:46]FM_GetShiftState done [10:35:46]req_shift_opened done [10:35:46]requested_item shift.open_date is exist - process it [10:35:46]req_shift_open_date [10:35:46]req_shift_open_date done [10:35:46]produce_requested_data done [10:35:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30566,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:35:46]process_action_free close_receipt [10:35:46]json_value_free [10:35:46]json_value_free done [10:35:46]process_json_proto returns [10:35:46]Send response to host [10:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30566,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:35:46]free response buf [10:35:46]execute_script done [10:35:46]execute_script returns [10:35:46]free content buf [10:35:46]Sock 7.Close socket [10:35:46]Sock 7.Thread stoped [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:04]accept exits with 9 [10:42:04]New connection [10:42:04]New thread 3067489636 created [10:42:04]Thread 3067346276 joined [10:42:04]Waiting for new connection... [10:42:04] Sock 9.Parse request [10:42:04]Sock 9.Check first char [10:42:04]Sock 9.First char is OK [10:42:04]request: POST /json_proto HTTP/1.0 [10:42:04]Method: POST [10:42:04]URL: /json_proto [10:42:04]Method is POST - this is cgi request [10:42:04]url: /json_proto [10:42:04]query_string will be loaded in cgi processing [10:42:04]execute_cgi json_proto POST (null) [10:42:04]execute_cgi path=json_proto method=POST [10:42:04]POST find Content-Length [10:42:04]Host: 172.17.51.3:8080 [10:42:04]Content-Length: 677 [10:42:04]Content-Type: application/json [10:42:04] [10:42:04]POST finish read [10:42:04]Found Content-Length = 677 [10:42:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:04]execute_script... [10:42:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:04]POST & json_proto [10:42:04]process_json_proto [10:42:04]json parsed OK: [10:42:04]protocol is kg_v1.0 [10:42:04]action value=close_receipt [10:42:04]process_action close_receipt [10:42:04]cmd_close_receipt [10:42:04]MH_GetDate [10:42:04]Write to MH i2c: F0 00 00 57 31 77 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 09 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: F0 09 00 57 31 00 00 30 16 67 04 C1 95 66 ED [10:42:04]GetLastDocTimeStamp 1729506947 [10:42:04]current date 1729507328 [10:42:04]FM_GetShiftState [10:42:04]SAM_PROTO_GetShiftState [10:42:04]wFMCommunicate request_size=4 [10:42:04]MH_SAM_APDU [10:42:04]CAPDU: 80 13 01 00 [10:42:04]Write to MH i2c: E2 08 00 58 31 80 13 01 00 00 00 00 00 06 [10:42:04]Write i2c OK [10:42:04]MH_I2C_Read... [10:42:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:04]Read from MH i2c: E2 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 0E 00 [10:42:04]MH_I2C_Read... [10:42:04]Read from MH i2c: E2 0E 00 58 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 82 [10:42:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:42:04]wFMCommunicate OK [10:42:04]SAM_PROTO_GetShiftState done [10:42:04]FM_GetShiftState done [10:42:04]opened in 1729471058 [10:42:04]opened+sec_in_day 1729557458 [10:42:04]quantity*price = 40006 [10:42:04]sum+1 = 40007 [10:42:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 64 21.10.2024 10:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30567 ФПД: 49949271336068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104208&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30567&fm=49949271336068&tin=02508201610067®Number=0000000000186857&sum=40000 [10:42:05]StoreToDocumentArchive [10:42:05]shift 115 fd 30567 [10:42:05]save to /storage/0115/doc_00030567 [10:42:05]save last doc name /storage/0115/doc_00030567 to /storage/kkm_last_doc_name [10:42:05]save OK [10:42:05]Clear old archive folders... [10:42:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:05]tlvbuf is 01DFA940 [10:42:05]SAM_PROTO_ClearQueue [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 09 00 00 [10:42:05]Write to MH i2c: E2 08 00 65 31 80 09 00 00 00 00 00 00 08 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_ClearQueue done [10:42:05]KKMCreateOFDPacket [10:42:05]OFDProtocolAddRootSTLVToBuf [10:42:05]FM_MakeSignedData [10:42:05]FM_MakeSignedData [10:42:05]SAM_PROTO_SignData [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 01 02 [10:42:05]Write to MH i2c: E2 08 00 66 31 80 0D 01 02 00 00 00 00 10 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 66 31 00 90 00 0B [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=255 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 00 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 77 00 00 35 04 06 00 2D [10:42:05]Write to MH i2c: E2 02 01 67 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 00 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 77 00 00 35 04 06 00 2D 00 00 DB [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 67 31 00 90 00 0C [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=10 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 02 02 05 6D B8 93 24 84 [10:42:05]Write to MH i2c: E2 0D 00 68 31 80 0D 02 02 05 00 6D B8 93 24 84 00 00 7D [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 03 00 68 31 00 90 00 0D [10:42:05]RAPDU: 90 00 [10:42:05]wFMCommunicate OK [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 0D 03 02 [10:42:05]Write to MH i2c: E2 08 00 69 31 80 0D 03 02 00 00 00 00 15 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0B 00 69 31 00 80 EC 86 DD 44 4E 0B A9 90 00 2B [10:42:05]RAPDU: 80 EC 86 DD 44 4E 0B A9 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_SignData done [10:42:05]FM_MakeSignedData done [10:42:05]CreateOFDProtocolMessage [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 11 00 00 [10:42:05]Write to MH i2c: E2 08 00 6A 31 80 11 00 00 00 00 00 00 15 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]OFD Sender: No OFD packet to send [10:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 17 00 6A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [10:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:42:05]wFMCommunicate OK [10:42:05]CreateOFDProtocolMessage done [10:42:05]OFDSenderStorePacket 30567 [10:42:05]StoreOFDPacket docnum=30567 [10:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B DD 07 01 5C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 00 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 77 00 00 35 04 06 00 2D 6D B8 93 24 84 80 EC 86 DD 44 4E 0B A9 [10:42:05]CheckFolder [10:42:05]dirname=/storage/ofd_packets [10:42:05]CheckFolder done [10:42:05]ProducePacketName [10:42:05]name=ofd_packets/00030567 [10:42:05]NVStorageSaveData ofd_packets/00030567 [10:42:05]File name is /storage/ofd_packets/00030567 [10:42:05]Write 301 bytes [10:42:05]NVStorageSaveData done [10:42:05]OFDSenderStorePacket done [10:42:05]KKMCreateOFDPacket done [10:42:05]NVStorageSaveData kkm_last_timestamp [10:42:05]File name is /storage/kkm_last_timestamp [10:42:05]Write 4 bytes [10:42:05]NVStorageSaveData done [10:42:05]ExternCall_PrintAddStr [10:42:05]wPrintStart [10:42:05]Write to MH i2c: 01 00 00 6B 31 9C [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: 01 07 00 6B 31 00 00 00 00 00 FF 0F B1 [10:42:05]RasterBufferAndPrint [10:42:05]line Счет N : (1)342974 [10:42:05]line ИНН: 02508201610067 [10:42:05]line Контрольно-Кассовый Чек [10:42:05]line ПРОДАЖА [10:42:05]line ТРК (МРК, ГНК) : 63 [10:42:05]line Товар: 2710124130 [10:42:05]line Аи-92-К-2 [10:42:05]line 5.980 * 66.90 [10:42:05]line = 400.06 [10:42:05]line НДС 12% НСП 1% [10:42:05]line > о реализуемом товаре [10:42:05]line ОКРУГЛЕНИЕ: -0.06 [10:42:05]line ИТОГО: 400.00 [10:42:05]line Внесено: 400.00 [10:42:05]line СДАЧА: 0.00 [10:42:05]line НСП 1% : 3.54 [10:42:05]line НДС 12% : 42.48 [10:42:05]line Наличными: 400.00 [10:42:05]line Безнал.: 0.00 [10:42:05]line Место: АЗС № 78 "Партнер Нефть" [10:42:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:42:05]line СНО: Общий режим [10:42:05]line Чек 64 21.10.2024 10:42 [10:42:05]line Смена: 115 ФФД: 1.0 [10:42:06]line ЗНМ: 0300000137 [10:42:06]line РНМ: 0000000000186857 [10:42:06]line Версия ККМ: v1.0 [10:42:06]line ФМ: 0000000002094219 [10:42:06]line ФД: 30567 [10:42:06]line ФПД: 49949271336068 [10:42:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104208&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30567&fm=49949271336068&tin=02508201610067®Number=0000000000186857&sum=40000 [10:42:06]OFD Sender: Processing packet 30567 [packets to send 10, broken 9] [10:42:06]ProducePacketName [10:42:06]name=ofd_packets/00030567 [10:42:06]OFD Sender: To server: pG, [10:42:06]CommunicateWithHost lk.salyk.kg:30040 [10:42:06]ConnectInit lk.salyk.kg [10:42:06]written 0, free lines is 4095 [10:42:06]Connected sock=10 [10:42:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B DD 07 01 5C B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 00 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 67 77 00 00 35 04 06 00 2D 6D B8 93 24 84 80 EC 86 DD 44 4E 0B A9 [10:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BB 22 47 00 90 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 32 30 39 34 32 31 39 10 04 04 00 67 77 00 00 F4 03 04 00 81 DA 15 67 B6 04 01 00 00 3B 72 CF 6B C5 8E AE 11 [10:42:06]CommunicateWithHost err = 0 [10:42:06]CheckOFDResponse [10:42:06]1017 (14) - 77093643461234 [10:42:06]1041 (16) - 0000000002094219 [10:42:06]1040 (4) - 30567 [10:42:06]1012 (4) - 21.10.2024 04:37 [10:42:06]1206 (1) - 0 [10:42:06]OFD Sender: Remove packet 30567 [10:42:06]ProducePacketName [10:42:06]name=ofd_packets/00030567 [10:42:06]NVStorageDeleteData [10:42:06]Write to MH i2c: 01 00 00 96 31 C7 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: 01 07 00 96 31 00 00 00 00 00 F4 0C CE [10:42:06]RasterBufferAndPrint [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]line [10:42:06]written 0, free lines is 3322 [10:42:06]MH_Cut [10:42:06]Write to MH i2c: D1 01 00 9D 31 01 A0 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: D1 01 00 9D 31 00 9F [10:42:06]Write to MH i2c: 01 00 00 9E 31 CF [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:07]OFD Sender: No OFD packet to send [10:42:07]*** Cut start [10:42:07]*** Partial cut [10:42:07]*** CUTSNS_PIN = 1 [10:42:07]*** CUTSNS_PIN = 0 [10:42:07]*** Brake cut motor [10:42:07]Read from MH i2c: 01 [10:42:07]MH_I2C_Read... [10:42:07]*** Stop cut motor [10:42:07]*** Cut end [10:42:07]Read from MH i2c: 01 07 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 9E 31 00 00 00 00 00 FF 0F E4 [10:42:07]process_action close_receipt done [10:42:07]requested_data is exist [10:42:07]produce_requested_data [10:42:07]requested_item fm.sn is exist - process it [10:42:07]wFMCommunicate request_size=4 [10:42:07]MH_SAM_APDU [10:42:07]CAPDU: 80 11 00 00 [10:42:07]Write to MH i2c: E2 08 00 9F 31 80 11 00 00 00 00 00 00 4A [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:08]Read from MH i2c: E2 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 17 00 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 17 00 9F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [10:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:42:08]wFMCommunicate OK [10:42:08]requested_item fd.num is exist - process it [10:42:08]SAM_PROTO_GetFieldsCounters [10:42:08]wFMCommunicate request_size=4 [10:42:08]MH_SAM_APDU [10:42:08]CAPDU: 80 13 00 00 [10:42:08]Write to MH i2c: E2 08 00 A0 31 80 13 00 00 00 00 00 00 4D [10:42:08]Write i2c OK [10:42:08]MH_I2C_Read... [10:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:08]Read from MH i2c: E2 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 62 00 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 62 00 A0 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 77 00 00 0E 04 04 00 73 00 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 84 [10:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 67 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:42:08]wFMCommunicate OK [10:42:08]SAM_PROTO_GetFieldsCounters done [10:42:08]requested_item shift.num is exist - process it [10:42:08]requested_item shift.opened is exist - process it [10:42:08]req_shift_opened [10:42:08]FM_GetShiftState [10:42:08]SAM_PROTO_GetShiftState [10:42:08]wFMCommunicate request_size=4 [10:42:08]MH_SAM_APDU [10:42:08]CAPDU: 80 13 01 00 [10:42:08]Write to MH i2c: E2 08 00 A1 31 80 13 01 00 00 00 00 00 4F [10:42:08]Write i2c OK [10:42:08]MH_I2C_Read... [10:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:08]Read from MH i2c: E2 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 0E 00 [10:42:08]MH_I2C_Read... [10:42:08]Read from MH i2c: E2 0E 00 A1 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CB [10:42:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:42:08]wFMCommunicate OK [10:42:08]SAM_PROTO_GetShiftState done [10:42:08]FM_GetShiftState done [10:42:08]req_shift_opened done [10:42:08]requested_item shift.open_date is exist - process it [10:42:08]req_shift_open_date [10:42:08]req_shift_open_date done [10:42:08]produce_requested_data done [10:42:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30567,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:42:08]process_action_free close_receipt [10:42:08]json_value_free [10:42:08]json_value_free done [10:42:08]process_json_proto returns [10:42:08]Send response to host [10:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30567,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:42:08]free response buf [10:42:08]execute_script done [10:42:08]execute_script returns [10:42:08]free content buf [10:42:08]Sock 9.Close socket [10:42:08]Sock 9.Thread stoped [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:31]accept exits with 7 [10:45:31]New connection [10:45:31]New thread 3067346276 created [10:45:31]Thread 3067489636 joined [10:45:31]Waiting for new connection... [10:45:31] Sock 7.Parse request [10:45:31]Sock 7.Check first char [10:45:31]Sock 7.First char is OK [10:45:31]request: POST /json_proto HTTP/1.0 [10:45:31]Method: POST [10:45:31]URL: /json_proto [10:45:31]Method is POST - this is cgi request [10:45:31]url: /json_proto [10:45:31]query_string will be loaded in cgi processing [10:45:31]execute_cgi json_proto POST (null) [10:45:31]execute_cgi path=json_proto method=POST [10:45:31]POST find Content-Length [10:45:31]Host: 172.17.51.3:8080 [10:45:31]Content-Length: 682 [10:45:31]Content-Type: application/json [10:45:31] [10:45:31]POST finish read [10:45:31]Found Content-Length = 682 [10:45:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:31]execute_script... [10:45:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:31]POST & json_proto [10:45:31]process_json_proto [10:45:31]json parsed OK: [10:45:31]protocol is kg_v1.0 [10:45:31]action value=close_receipt [10:45:31]process_action close_receipt [10:45:31]cmd_close_receipt [10:45:31]MH_GetDate [10:45:31]Write to MH i2c: F0 00 00 A2 31 C2 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 09 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: F0 09 00 A2 31 00 CF 30 16 67 04 C1 95 66 07 [10:45:31]GetLastDocTimeStamp 1729507328 [10:45:31]current date 1729507535 [10:45:31]FM_GetShiftState [10:45:31]SAM_PROTO_GetShiftState [10:45:31]wFMCommunicate request_size=4 [10:45:31]MH_SAM_APDU [10:45:31]CAPDU: 80 13 01 00 [10:45:31]Write to MH i2c: E2 08 00 A3 31 80 13 01 00 00 00 00 00 51 [10:45:31]Write i2c OK [10:45:31]MH_I2C_Read... [10:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:31]Read from MH i2c: E2 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0E 00 [10:45:31]MH_I2C_Read... [10:45:31]Read from MH i2c: E2 0E 00 A3 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CD [10:45:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:45:31]wFMCommunicate OK [10:45:31]SAM_PROTO_GetShiftState done [10:45:31]FM_GetShiftState done [10:45:31]opened in 1729471058 [10:45:31]opened+sec_in_day 1729557458 [10:45:31]quantity*price = 150032 [10:45:31]sum+1 = 150033 [10:45:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 65 21.10.2024 10:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30568 ФПД: 61273080272871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104535&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30568&fm=61273080272871&tin=02508201610067®Number=0000000000186857&sum=150000 [10:45:32]StoreToDocumentArchive [10:45:32]shift 115 fd 30568 [10:45:32]save to /storage/0115/doc_00030568 [10:45:32]save last doc name /storage/0115/doc_00030568 to /storage/kkm_last_doc_name [10:45:32]save OK [10:45:32]Clear old archive folders... [10:45:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:32]tlvbuf is B6FD8010 [10:45:32]SAM_PROTO_ClearQueue [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 09 00 00 [10:45:32]Write to MH i2c: E2 08 00 B0 31 80 09 00 00 00 00 00 00 53 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [10:45:32]RAPDU: 90 00 [10:45:32]wFMCommunicate OK [10:45:32]SAM_PROTO_ClearQueue done [10:45:32]KKMCreateOFDPacket [10:45:32]OFDProtocolAddRootSTLVToBuf [10:45:32]FM_MakeSignedData [10:45:32]FM_MakeSignedData [10:45:32]SAM_PROTO_SignData [10:45:32]wFMCommunicate request_size=4 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 0D 01 02 [10:45:32]Write to MH i2c: E2 08 00 B1 31 80 0D 01 02 00 00 00 00 5B [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:32]Read from MH i2c: E2 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 [10:45:32]MH_I2C_Read... [10:45:32]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [10:45:32]RAPDU: 90 00 [10:45:32]wFMCommunicate OK [10:45:32]wFMCommunicate request_size=255 [10:45:32]MH_SAM_APDU [10:45:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 77 00 00 35 04 06 00 37 [10:45:32]Write to MH i2c: E2 02 01 B2 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 77 00 00 35 04 06 00 37 00 00 96 [10:45:32]Write i2c OK [10:45:32]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 B2 31 00 90 00 57 [10:45:33]RAPDU: 90 00 [10:45:33]wFMCommunicate OK [10:45:33]wFMCommunicate request_size=10 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 0D 02 02 05 BA 40 2F 17 E7 [10:45:33]Write to MH i2c: E2 0D 00 B3 31 80 0D 02 02 05 00 BA 40 2F 17 E7 00 00 8F [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 03 00 B3 31 00 90 00 58 [10:45:33]RAPDU: 90 00 [10:45:33]wFMCommunicate OK [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 0D 03 02 [10:45:33]Write to MH i2c: E2 08 00 B4 31 80 0D 03 02 00 00 00 00 60 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0B 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 0B 00 B4 31 00 34 87 A8 E2 58 65 F8 B5 90 00 10 [10:45:33]RAPDU: 34 87 A8 E2 58 65 F8 B5 90 00 [10:45:33]wFMCommunicate OK [10:45:33]SAM_PROTO_SignData done [10:45:33]FM_MakeSignedData done [10:45:33]CreateOFDProtocolMessage [10:45:33]wFMCommunicate request_size=4 [10:45:33]MH_SAM_APDU [10:45:33]CAPDU: 80 11 00 00 [10:45:33]Write to MH i2c: E2 08 00 B5 31 80 11 00 00 00 00 00 00 60 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:33]Read from MH i2c: E2 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: E2 17 00 B5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [10:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:45:33]wFMCommunicate OK [10:45:33]CreateOFDProtocolMessage done [10:45:33]OFDSenderStorePacket 30568 [10:45:33]StoreOFDPacket docnum=30568 [10:45:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 EF 07 01 31 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 77 00 00 35 04 06 00 37 BA 40 2F 17 E7 34 87 A8 E2 58 65 F8 B5 [10:45:33]CheckFolder [10:45:33]dirname=/storage/ofd_packets [10:45:33]CheckFolder done [10:45:33]ProducePacketName [10:45:33]name=ofd_packets/00030568 [10:45:33]NVStorageSaveData ofd_packets/00030568 [10:45:33]File name is /storage/ofd_packets/00030568 [10:45:33]Write 301 bytes [10:45:33]NVStorageSaveData done [10:45:33]OFDSenderStorePacket done [10:45:33]KKMCreateOFDPacket done [10:45:33]NVStorageSaveData kkm_last_timestamp [10:45:33]File name is /storage/kkm_last_timestamp [10:45:33]Write 4 bytes [10:45:33]NVStorageSaveData done [10:45:33]ExternCall_PrintAddStr [10:45:33]wPrintStart [10:45:33]Write to MH i2c: 01 00 00 B6 31 E7 [10:45:33]Write i2c OK [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 [10:45:33]MH_I2C_Read... [10:45:33]Read from MH i2c: 01 07 00 B6 31 00 00 00 00 00 FF 0F FC [10:45:33]RasterBufferAndPrint [10:45:33]line Счет N : (1)342975 [10:45:33]line ИНН: 02508201610067 [10:45:33]line Контрольно-Кассовый Чек [10:45:33]line ПРОДАЖА [10:45:33]line ТРК (МРК, ГНК) : 42 [10:45:33]line Товар: 2710124500 [10:45:33]line Аи-95-К-3 [10:45:33]line 20.220 * 74.20 [10:45:33]line = 1500.32 [10:45:33]line НДС 12% НСП 1% [10:45:33]line > о реализуемом товаре [10:45:33]line ОКРУГЛЕНИЕ: -0.32 [10:45:33]line ИТОГО: 1500.00 [10:45:33]line Внесено: 1500.00 [10:45:33]line СДАЧА: 0.00 [10:45:33]line НСП 1% : 13.28 [10:45:33]line НДС 12% : 159.33 [10:45:33]line Наличными: 1500.00 [10:45:33]line Безнал.: 0.00 [10:45:33]line Место: АЗС № 78 "Партнер Нефть" [10:45:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:45:33]line СНО: Общий режим [10:45:33]line Чек 65 21.10.2024 10:45 [10:45:33]line Смена: 115 ФФД: 1.0 [10:45:33]line ЗНМ: 0300000137 [10:45:33]line РНМ: 0000000000186857 [10:45:33]line Версия ККМ: v1.0 [10:45:33]line ФМ: 0000000002094219 [10:45:33]line ФД: 30568 [10:45:33]line ФПД: 61273080272871 [10:45:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104535&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30568&fm=61273080272871&tin=02508201610067®Number=0000000000186857&sum=150000 [10:45:33]OFD Sender: Processing packet 30568 [packets to send 10, broken 9] [10:45:33]ProducePacketName [10:45:33]name=ofd_packets/00030568 [10:45:33]OFD Sender: To server: pG, [10:45:33]CommunicateWithHost lk.salyk.kg:30040 [10:45:33]ConnectInit lk.salyk.kg [10:45:33]written 0, free lines is 4095 [10:45:33]Connected sock=10 [10:45:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 EF 07 01 31 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 CF 30 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 68 77 00 00 35 04 06 00 37 BA 40 2F 17 E7 34 87 A8 E2 58 65 F8 B5 [10:45:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D0 A4 47 00 19 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 32 30 39 34 32 31 39 10 04 04 00 68 77 00 00 F4 03 04 00 50 DB 15 67 B6 04 01 00 00 44 30 9D 3C C6 F9 00 38 [10:45:33]CommunicateWithHost err = 0 [10:45:33]CheckOFDResponse [10:45:33]1017 (14) - 77093643461234 [10:45:33]1041 (16) - 0000000002094219 [10:45:33]1040 (4) - 30568 [10:45:33]1012 (4) - 21.10.2024 04:40 [10:45:33]1206 (1) - 0 [10:45:33]OFD Sender: Remove packet 30568 [10:45:33]ProducePacketName [10:45:33]name=ofd_packets/00030568 [10:45:33]NVStorageDeleteData [10:45:34]Write to MH i2c: 01 00 00 E1 31 12 [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: 01 07 00 E1 31 00 00 00 00 00 E5 0C 0A [10:45:34]RasterBufferAndPrint [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]line [10:45:34]written 0, free lines is 3307 [10:45:34]MH_Cut [10:45:34]Write to MH i2c: D1 01 00 E8 31 01 EB [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 01 00 [10:45:34]MH_I2C_Read... [10:45:34]Read from MH i2c: D1 01 00 E8 31 00 EA [10:45:34]Write to MH i2c: 01 00 00 E9 31 1A [10:45:34]Write i2c OK [10:45:34]MH_I2C_Read... [10:45:34]OFD Sender: No OFD packet to send [10:45:34]*** Cut start [10:45:34]*** Partial cut [10:45:34]*** CUTSNS_PIN = 1 [10:45:34]*** CUTSNS_PIN = 0 [10:45:34]*** Brake cut motor [10:45:35]Read from MH i2c: 01 [10:45:35]MH_I2C_Read... [10:45:35]*** Stop cut motor [10:45:35]*** Cut end [10:45:35]Read from MH i2c: 01 07 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: 01 07 00 E9 31 00 00 00 00 00 FF 0F 2F [10:45:35]process_action close_receipt done [10:45:35]requested_data is exist [10:45:35]produce_requested_data [10:45:35]requested_item fm.sn is exist - process it [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 11 00 00 [10:45:35]Write to MH i2c: E2 08 00 EA 31 80 11 00 00 00 00 00 00 95 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:35]Read from MH i2c: E2 17 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 17 00 EA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [10:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:45:35]wFMCommunicate OK [10:45:35]requested_item fd.num is exist - process it [10:45:35]SAM_PROTO_GetFieldsCounters [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 13 00 00 [10:45:35]Write to MH i2c: E2 08 00 EB 31 80 13 00 00 00 00 00 00 98 [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 62 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 62 00 EB 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [10:45:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 68 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:35]wFMCommunicate OK [10:45:35]SAM_PROTO_GetFieldsCounters done [10:45:35]requested_item shift.num is exist - process it [10:45:35]requested_item shift.opened is exist - process it [10:45:35]req_shift_opened [10:45:35]FM_GetShiftState [10:45:35]SAM_PROTO_GetShiftState [10:45:35]wFMCommunicate request_size=4 [10:45:35]MH_SAM_APDU [10:45:35]CAPDU: 80 13 01 00 [10:45:35]Write to MH i2c: E2 08 00 EC 31 80 13 01 00 00 00 00 00 9A [10:45:35]Write i2c OK [10:45:35]MH_I2C_Read... [10:45:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:35]Read from MH i2c: E2 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 0E 00 [10:45:35]MH_I2C_Read... [10:45:35]Read from MH i2c: E2 0E 00 EC 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 16 [10:45:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:45:35]wFMCommunicate OK [10:45:35]SAM_PROTO_GetShiftState done [10:45:35]FM_GetShiftState done [10:45:35]req_shift_opened done [10:45:35]requested_item shift.open_date is exist - process it [10:45:35]req_shift_open_date [10:45:35]req_shift_open_date done [10:45:35]produce_requested_data done [10:45:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30568,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:45:35]process_action_free close_receipt [10:45:35]json_value_free [10:45:35]json_value_free done [10:45:35]process_json_proto returns [10:45:35]Send response to host [10:45:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30568,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:45:35]free response buf [10:45:35]execute_script done [10:45:35]execute_script returns [10:45:35]free content buf [10:45:35]Sock 7.Close socket [10:45:35]Sock 7.Thread stoped [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:21]accept exits with 9 [10:47:21]New connection [10:47:21]New thread 3067489636 created [10:47:21]Thread 3067346276 joined [10:47:21]Waiting for new connection... [10:47:21] Sock 9.Parse request [10:47:21]Sock 9.Check first char [10:47:21]Sock 9.First char is OK [10:47:21]request: POST /json_proto HTTP/1.0 [10:47:21]Method: POST [10:47:21]URL: /json_proto [10:47:21]Method is POST - this is cgi request [10:47:21]url: /json_proto [10:47:21]query_string will be loaded in cgi processing [10:47:21]execute_cgi json_proto POST (null) [10:47:21]execute_cgi path=json_proto method=POST [10:47:21]POST find Content-Length [10:47:21]Host: 172.17.51.3:8080 [10:47:21]Content-Length: 677 [10:47:21]Content-Type: application/json [10:47:21] [10:47:21]POST finish read [10:47:21]Found Content-Length = 677 [10:47:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:21]execute_script... [10:47:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:21]POST & json_proto [10:47:21]process_json_proto [10:47:21]json parsed OK: [10:47:21]protocol is kg_v1.0 [10:47:21]action value=close_receipt [10:47:21]process_action close_receipt [10:47:21]cmd_close_receipt [10:47:21]MH_GetDate [10:47:21]Write to MH i2c: F0 00 00 ED 31 0D [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 09 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: F0 09 00 ED 31 00 3D 31 16 67 04 C1 95 66 C1 [10:47:21]GetLastDocTimeStamp 1729507535 [10:47:21]current date 1729507645 [10:47:21]FM_GetShiftState [10:47:21]SAM_PROTO_GetShiftState [10:47:21]wFMCommunicate request_size=4 [10:47:21]MH_SAM_APDU [10:47:21]CAPDU: 80 13 01 00 [10:47:21]Write to MH i2c: E2 08 00 EE 31 80 13 01 00 00 00 00 00 9C [10:47:21]Write i2c OK [10:47:21]MH_I2C_Read... [10:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:21]Read from MH i2c: E2 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0E 00 [10:47:21]MH_I2C_Read... [10:47:21]Read from MH i2c: E2 0E 00 EE 31 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 18 [10:47:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:47:21]wFMCommunicate OK [10:47:21]SAM_PROTO_GetShiftState done [10:47:21]FM_GetShiftState done [10:47:21]opened in 1729471058 [10:47:21]opened+sec_in_day 1729557458 [10:47:21]quantity*price = 15052 [10:47:21]sum+1 = 15054 [10:47:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 66 21.10.2024 10:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30569 ФПД: 94926122763501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104725&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30569&fm=94926122763501&tin=02508201610067®Number=0000000000186857&sum=15000 [10:47:22]StoreToDocumentArchive [10:47:22]shift 115 fd 30569 [10:47:22]save to /storage/0115/doc_00030569 [10:47:22]save last doc name /storage/0115/doc_00030569 to /storage/kkm_last_doc_name [10:47:22]save OK [10:47:22]Clear old archive folders... [10:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:22]tlvbuf is 01E22D00 [10:47:22]SAM_PROTO_ClearQueue [10:47:22]wFMCommunicate request_size=4 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 09 00 00 [10:47:22]Write to MH i2c: E2 08 00 FB 31 80 09 00 00 00 00 00 00 9E [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 FB 31 00 90 00 A0 [10:47:22]RAPDU: 90 00 [10:47:22]wFMCommunicate OK [10:47:22]SAM_PROTO_ClearQueue done [10:47:22]KKMCreateOFDPacket [10:47:22]OFDProtocolAddRootSTLVToBuf [10:47:22]FM_MakeSignedData [10:47:22]FM_MakeSignedData [10:47:22]SAM_PROTO_SignData [10:47:22]wFMCommunicate request_size=4 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 0D 01 02 [10:47:22]Write to MH i2c: E2 08 00 FC 31 80 0D 01 02 00 00 00 00 A6 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 FC 31 00 90 00 A1 [10:47:22]RAPDU: 90 00 [10:47:22]wFMCommunicate OK [10:47:22]wFMCommunicate request_size=255 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 42 00 00 00 F4 03 04 00 3D 31 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 77 00 00 35 04 06 00 56 [10:47:22]Write to MH i2c: E2 02 01 FD 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 42 00 00 00 F4 03 04 00 3D 31 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 77 00 00 35 04 06 00 56 00 00 0A [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 FD 31 00 90 00 A2 [10:47:22]RAPDU: 90 00 [10:47:22]wFMCommunicate OK [10:47:22]wFMCommunicate request_size=10 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 0D 02 02 05 55 B5 D3 C4 ED [10:47:22]Write to MH i2c: E2 0D 00 FE 31 80 0D 02 02 05 00 55 B5 D3 C4 ED 00 00 41 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 03 00 FE 31 00 90 00 A3 [10:47:22]RAPDU: 90 00 [10:47:22]wFMCommunicate OK [10:47:22]wFMCommunicate request_size=4 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 0D 03 02 [10:47:22]Write to MH i2c: E2 08 00 FF 31 80 0D 03 02 00 00 00 00 AB [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 0B 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 0B 00 FF 31 00 B9 A7 82 9F F8 FF 9C 62 90 00 22 [10:47:22]RAPDU: B9 A7 82 9F F8 FF 9C 62 90 00 [10:47:22]wFMCommunicate OK [10:47:22]SAM_PROTO_SignData done [10:47:22]FM_MakeSignedData done [10:47:22]CreateOFDProtocolMessage [10:47:22]wFMCommunicate request_size=4 [10:47:22]MH_SAM_APDU [10:47:22]CAPDU: 80 11 00 00 [10:47:22]Write to MH i2c: E2 08 00 00 32 80 11 00 00 00 00 00 00 AC [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:22]Read from MH i2c: E2 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 17 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: E2 17 00 00 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [10:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:47:22]wFMCommunicate OK [10:47:22]CreateOFDProtocolMessage done [10:47:22]OFDSenderStorePacket 30569 [10:47:22]StoreOFDPacket docnum=30569 [10:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A6 6F 07 01 2D 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 42 00 00 00 F4 03 04 00 3D 31 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 77 00 00 35 04 06 00 56 55 B5 D3 C4 ED B9 A7 82 9F F8 FF 9C 62 [10:47:22]CheckFolder [10:47:22]dirname=/storage/ofd_packets [10:47:22]CheckFolder done [10:47:22]ProducePacketName [10:47:22]name=ofd_packets/00030569 [10:47:22]NVStorageSaveData ofd_packets/00030569 [10:47:22]File name is /storage/ofd_packets/00030569 [10:47:22]Write 301 bytes [10:47:22]NVStorageSaveData done [10:47:22]OFDSenderStorePacket done [10:47:22]KKMCreateOFDPacket done [10:47:22]NVStorageSaveData kkm_last_timestamp [10:47:22]File name is /storage/kkm_last_timestamp [10:47:22]Write 4 bytes [10:47:22]NVStorageSaveData done [10:47:22]ExternCall_PrintAddStr [10:47:22]wPrintStart [10:47:22]Write to MH i2c: 01 00 00 01 32 33 [10:47:22]Write i2c OK [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 [10:47:22]MH_I2C_Read... [10:47:22]Read from MH i2c: 01 07 00 01 32 00 00 00 00 00 FF 0F 48 [10:47:22]RasterBufferAndPrint [10:47:22]line Счет N : (1)342976 [10:47:22]line ИНН: 02508201610067 [10:47:22]line Контрольно-Кассовый Чек [10:47:22]line ПРОДАЖА [10:47:22]line ТРК (МРК, ГНК) : 33 [10:47:22]line Товар: 2710124130 [10:47:22]line Аи-92-К-2 [10:47:22]line 2.250 * 66.90 [10:47:22]line = 150.53 [10:47:22]line НДС 12% НСП 1% [10:47:22]line > о реализуемом товаре [10:47:22]line ОКРУГЛЕНИЕ: -0.53 [10:47:22]line ИТОГО: 150.00 [10:47:22]line Внесено: 150.00 [10:47:22]line СДАЧА: 0.00 [10:47:22]line НСП 1% : 1.33 [10:47:22]line НДС 12% : 15.98 [10:47:22]line Наличными: 150.00 [10:47:22]line Безнал.: 0.00 [10:47:22]line Место: АЗС № 78 "Партнер Нефть" [10:47:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:47:22]line СНО: Общий режим [10:47:22]line Чек 66 21.10.2024 10:47 [10:47:22]line Смена: 115 ФФД: 1.0 [10:47:23]line ЗНМ: 0300000137 [10:47:23]line РНМ: 0000000000186857 [10:47:23]line Версия ККМ: v1.0 [10:47:23]line ФМ: 0000000002094219 [10:47:23]line ФД: 30569 [10:47:23]line ФПД: 94926122763501 [10:47:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104725&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30569&fm=94926122763501&tin=02508201610067®Number=0000000000186857&sum=15000 [10:47:23]OFD Sender: Processing packet 30569 [packets to send 10, broken 9] [10:47:23]ProducePacketName [10:47:23]name=ofd_packets/00030569 [10:47:23]OFD Sender: To server: pG, [10:47:23]CommunicateWithHost lk.salyk.kg:30040 [10:47:23]ConnectInit lk.salyk.kg [10:47:23]written 0, free lines is 4095 [10:47:23]Connected sock=10 [10:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A6 6F 07 01 2D 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 42 00 00 00 F4 03 04 00 3D 31 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 77 00 00 35 04 06 00 56 55 B5 D3 C4 ED B9 A7 82 9F F8 FF 9C 62 [10:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A4 80 47 00 F8 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 69 77 00 00 F4 03 04 00 BE DB 15 67 B6 04 01 00 00 BF 86 DB A5 ED DD 63 CA [10:47:23]CommunicateWithHost err = 0 [10:47:23]CheckOFDResponse [10:47:23]1017 (14) - 77093643461234 [10:47:23]1041 (16) - 0000000002094219 [10:47:23]1040 (4) - 30569 [10:47:23]1012 (4) - 21.10.2024 04:42 [10:47:23]1206 (1) - 0 [10:47:23]OFD Sender: Remove packet 30569 [10:47:23]ProducePacketName [10:47:23]name=ofd_packets/00030569 [10:47:23]NVStorageDeleteData [10:47:23]Write to MH i2c: 01 00 00 2C 32 5E [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: 01 07 00 2C 32 00 00 00 00 00 E8 0C 59 [10:47:23]RasterBufferAndPrint [10:47:23]line [10:47:23]line [10:47:23]line [10:47:23]line [10:47:23]line [10:47:23]written 0, free lines is 3310 [10:47:23]MH_Cut [10:47:23]Write to MH i2c: D1 01 00 33 32 01 37 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: D1 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: D1 01 00 [10:47:23]MH_I2C_Read... [10:47:23]Read from MH i2c: D1 01 00 33 32 00 36 [10:47:23]Write to MH i2c: 01 00 00 34 32 66 [10:47:23]Write i2c OK [10:47:23]MH_I2C_Read... [10:47:23]OFD Sender: No OFD packet to send [10:47:24]*** Cut start [10:47:24]*** Partial cut [10:47:24]*** CUTSNS_PIN = 1 [10:47:24]*** CUTSNS_PIN = 0 [10:47:24]*** Brake cut motor [10:47:24]Read from MH i2c: 01 [10:47:24]MH_I2C_Read... [10:47:24]*** Stop cut motor [10:47:24]*** Cut end [10:47:24]Read from MH i2c: 01 07 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 FF 0F 7B [10:47:24]process_action close_receipt done [10:47:24]requested_data is exist [10:47:24]produce_requested_data [10:47:24]requested_item fm.sn is exist - process it [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 11 00 00 [10:47:24]Write to MH i2c: E2 08 00 35 32 80 11 00 00 00 00 00 00 E1 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:24]Read from MH i2c: E2 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 [10:47:24]MH_I2C_Read... [10:47:24]Read from MH i2c: E2 17 00 35 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2F [10:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:47:24]wFMCommunicate OK [10:47:24]requested_item fd.num is exist - process it [10:47:24]SAM_PROTO_GetFieldsCounters [10:47:24]wFMCommunicate request_size=4 [10:47:24]MH_SAM_APDU [10:47:24]CAPDU: 80 13 00 00 [10:47:24]Write to MH i2c: E2 08 00 36 32 80 13 00 00 00 00 00 00 E4 [10:47:24]Write i2c OK [10:47:24]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 62 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 62 00 36 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 77 00 00 0E 04 04 00 73 00 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 23 [10:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 69 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_GetFieldsCounters done [10:47:25]requested_item shift.num is exist - process it [10:47:25]requested_item shift.opened is exist - process it [10:47:25]req_shift_opened [10:47:25]FM_GetShiftState [10:47:25]SAM_PROTO_GetShiftState [10:47:25]wFMCommunicate request_size=4 [10:47:25]MH_SAM_APDU [10:47:25]CAPDU: 80 13 01 00 [10:47:25]Write to MH i2c: E2 08 00 37 32 80 13 01 00 00 00 00 00 E6 [10:47:25]Write i2c OK [10:47:25]MH_I2C_Read... [10:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:25]Read from MH i2c: E2 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 0E 00 [10:47:25]MH_I2C_Read... [10:47:25]Read from MH i2c: E2 0E 00 37 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 62 [10:47:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:47:25]wFMCommunicate OK [10:47:25]SAM_PROTO_GetShiftState done [10:47:25]FM_GetShiftState done [10:47:25]req_shift_opened done [10:47:25]requested_item shift.open_date is exist - process it [10:47:25]req_shift_open_date [10:47:25]req_shift_open_date done [10:47:25]produce_requested_data done [10:47:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30569,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:47:25]process_action_free close_receipt [10:47:25]json_value_free [10:47:25]json_value_free done [10:47:25]process_json_proto returns [10:47:25]Send response to host [10:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30569,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:47:25]free response buf [10:47:25]execute_script done [10:47:25]execute_script returns [10:47:25]free content buf [10:47:25]Sock 9.Close socket [10:47:25]Sock 9.Thread stoped [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:49]OFD Sender: No OFD packet to send [10:50:54]OFD Sender: No OFD packet to send [10:50:59]OFD Sender: No OFD packet to send [10:51:04]OFD Sender: No OFD packet to send [10:51:09]OFD Sender: No OFD packet to send [10:51:14]OFD Sender: No OFD packet to send [10:51:19]OFD Sender: No OFD packet to send [10:51:24]OFD Sender: No OFD packet to send [10:51:29]OFD Sender: No OFD packet to send [10:51:34]OFD Sender: No OFD packet to send [10:51:35]accept exits with 7 [10:51:35]New connection [10:51:35]New thread 3067346276 created [10:51:35]Thread 3067489636 joined [10:51:35]Waiting for new connection... [10:51:35] Sock 7.Parse request [10:51:35]Sock 7.Check first char [10:51:35]Sock 7.First char is OK [10:51:35]request: POST /json_proto HTTP/1.0 [10:51:35]Method: POST [10:51:35]URL: /json_proto [10:51:35]Method is POST - this is cgi request [10:51:35]url: /json_proto [10:51:35]query_string will be loaded in cgi processing [10:51:35]execute_cgi json_proto POST (null) [10:51:35]execute_cgi path=json_proto method=POST [10:51:35]POST find Content-Length [10:51:35]Host: 172.17.51.3:8080 [10:51:35]Content-Length: 677 [10:51:35]Content-Type: application/json [10:51:35] [10:51:35]POST finish read [10:51:35]Found Content-Length = 677 [10:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]execute_script... [10:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:35]POST & json_proto [10:51:35]process_json_proto [10:51:35]json parsed OK: [10:51:35]protocol is kg_v1.0 [10:51:35]action value=close_receipt [10:51:35]process_action close_receipt [10:51:35]cmd_close_receipt [10:51:35]MH_GetDate [10:51:35]Write to MH i2c: F0 00 00 38 32 59 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 09 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: F0 09 00 38 32 00 3B 32 16 67 04 C1 95 66 0C [10:51:35]GetLastDocTimeStamp 1729507645 [10:51:35]current date 1729507899 [10:51:35]FM_GetShiftState [10:51:35]SAM_PROTO_GetShiftState [10:51:35]wFMCommunicate request_size=4 [10:51:35]MH_SAM_APDU [10:51:35]CAPDU: 80 13 01 00 [10:51:35]Write to MH i2c: E2 08 00 39 32 80 13 01 00 00 00 00 00 E8 [10:51:35]Write i2c OK [10:51:35]MH_I2C_Read... [10:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:35]Read from MH i2c: E2 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: E2 0E 00 [10:51:35]MH_I2C_Read... [10:51:35]Read from MH i2c: E2 0E 00 39 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 64 [10:51:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:51:35]wFMCommunicate OK [10:51:35]SAM_PROTO_GetShiftState done [10:51:35]FM_GetShiftState done [10:51:35]opened in 1729471058 [10:51:35]opened+sec_in_day 1729557458 [10:51:35]quantity*price = 40006 [10:51:35]sum+1 = 40007 [10:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 67 21.10.2024 10:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30570 ФПД: 223175522047060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105139&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30570&fm=223175522047060&tin=02508201610067®Number=0000000000186857&sum=40000 [10:51:36]StoreToDocumentArchive [10:51:36]shift 115 fd 30570 [10:51:36]save to /storage/0115/doc_00030570 [10:51:36]save last doc name /storage/0115/doc_00030570 to /storage/kkm_last_doc_name [10:51:36]save OK [10:51:36]Clear old archive folders... [10:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:36]tlvbuf is 01E13410 [10:51:36]SAM_PROTO_ClearQueue [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 09 00 00 [10:51:36]Write to MH i2c: E2 08 00 46 32 80 09 00 00 00 00 00 00 EA [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 46 32 00 90 00 EC [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]SAM_PROTO_ClearQueue done [10:51:36]KKMCreateOFDPacket [10:51:36]OFDProtocolAddRootSTLVToBuf [10:51:36]FM_MakeSignedData [10:51:36]FM_MakeSignedData [10:51:36]SAM_PROTO_SignData [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 01 02 [10:51:36]Write to MH i2c: E2 08 00 47 32 80 0D 01 02 00 00 00 00 F2 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 47 32 00 90 00 ED [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=255 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3B 32 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 77 00 00 35 04 06 00 CA [10:51:36]Write to MH i2c: E2 02 01 48 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3B 32 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 77 00 00 35 04 06 00 CA 00 00 9D [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 48 32 00 90 00 EE [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=10 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 02 02 05 FA 19 B6 D4 54 [10:51:36]Write to MH i2c: E2 0D 00 49 32 80 0D 02 02 05 00 FA 19 B6 D4 54 00 00 F0 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 03 00 49 32 00 90 00 EF [10:51:36]RAPDU: 90 00 [10:51:36]wFMCommunicate OK [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 0D 03 02 [10:51:36]Write to MH i2c: E2 08 00 4A 32 80 0D 03 02 00 00 00 00 F7 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 0B 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 0B 00 4A 32 00 09 27 97 12 E6 90 57 FE 90 00 9C [10:51:36]RAPDU: 09 27 97 12 E6 90 57 FE 90 00 [10:51:36]wFMCommunicate OK [10:51:36]SAM_PROTO_SignData done [10:51:36]FM_MakeSignedData done [10:51:36]CreateOFDProtocolMessage [10:51:36]wFMCommunicate request_size=4 [10:51:36]MH_SAM_APDU [10:51:36]CAPDU: 80 11 00 00 [10:51:36]Write to MH i2c: E2 08 00 4B 32 80 11 00 00 00 00 00 00 F7 [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:36]Read from MH i2c: E2 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: E2 17 00 4B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [10:51:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:51:36]wFMCommunicate OK [10:51:36]CreateOFDProtocolMessage done [10:51:36]OFDSenderStorePacket 30570 [10:51:36]StoreOFDPacket docnum=30570 [10:51:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 20 07 01 61 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3B 32 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 77 00 00 35 04 06 00 CA FA 19 B6 D4 54 09 27 97 12 E6 90 57 FE [10:51:36]CheckFolder [10:51:36]dirname=/storage/ofd_packets [10:51:36]CheckFolder done [10:51:36]ProducePacketName [10:51:36]name=ofd_packets/00030570 [10:51:36]NVStorageSaveData ofd_packets/00030570 [10:51:36]File name is /storage/ofd_packets/00030570 [10:51:36]Write 301 bytes [10:51:36]NVStorageSaveData done [10:51:36]OFDSenderStorePacket done [10:51:36]KKMCreateOFDPacket done [10:51:36]NVStorageSaveData kkm_last_timestamp [10:51:36]File name is /storage/kkm_last_timestamp [10:51:36]Write 4 bytes [10:51:36]NVStorageSaveData done [10:51:36]ExternCall_PrintAddStr [10:51:36]wPrintStart [10:51:36]Write to MH i2c: 01 00 00 4C 32 7E [10:51:36]Write i2c OK [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 [10:51:36]MH_I2C_Read... [10:51:36]Read from MH i2c: 01 07 00 4C 32 00 00 00 00 00 FF 0F 93 [10:51:36]RasterBufferAndPrint [10:51:36]line Счет N : (1)342977 [10:51:36]line ИНН: 02508201610067 [10:51:36]line Контрольно-Кассовый Чек [10:51:36]line ПРОДАЖА [10:51:36]line ТРК (МРК, ГНК) : 63 [10:51:36]line Товар: 2710124130 [10:51:36]line Аи-92-К-2 [10:51:36]line 5.980 * 66.90 [10:51:36]line = 400.06 [10:51:36]line НДС 12% НСП 1% [10:51:36]line > о реализуемом товаре [10:51:36]line ОКРУГЛЕНИЕ: -0.06 [10:51:36]line ИТОГО: 400.00 [10:51:36]line Внесено: 400.00 [10:51:36]line СДАЧА: 0.00 [10:51:36]line НСП 1% : 3.54 [10:51:36]line НДС 12% : 42.48 [10:51:36]line Наличными: 400.00 [10:51:36]line Безнал.: 0.00 [10:51:36]line Место: АЗС № 78 "Партнер Нефть" [10:51:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:51:36]line СНО: Общий режим [10:51:36]line Чек 67 21.10.2024 10:51 [10:51:36]line Смена: 115 ФФД: 1.0 [10:51:36]line ЗНМ: 0300000137 [10:51:36]line РНМ: 0000000000186857 [10:51:36]line Версия ККМ: v1.0 [10:51:36]line ФМ: 0000000002094219 [10:51:36]line ФД: 30570 [10:51:36]line ФПД: 223175522047060 [10:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105139&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30570&fm=223175522047060&tin=02508201610067®Number=0000000000186857&sum=40000 [10:51:37]OFD Sender: Processing packet 30570 [packets to send 10, broken 9] [10:51:37]ProducePacketName [10:51:37]name=ofd_packets/00030570 [10:51:37]OFD Sender: To server: pG, [10:51:37]CommunicateWithHost lk.salyk.kg:30040 [10:51:37]ConnectInit lk.salyk.kg [10:51:37]written 0, free lines is 4095 [10:51:37]Connected sock=10 [10:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 20 07 01 61 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 3B 32 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6A 77 00 00 35 04 06 00 CA FA 19 B6 D4 54 09 27 97 12 E6 90 57 FE [10:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2C 79 47 00 37 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 32 30 39 34 32 31 39 10 04 04 00 6A 77 00 00 F4 03 04 00 BC DC 15 67 B6 04 01 00 00 01 0C AA 99 D1 F9 51 AC [10:51:37]CommunicateWithHost err = 0 [10:51:37]CheckOFDResponse [10:51:37]1017 (14) - 77093643461234 [10:51:37]1041 (16) - 0000000002094219 [10:51:37]1040 (4) - 30570 [10:51:37]1012 (4) - 21.10.2024 04:46 [10:51:37]1206 (1) - 0 [10:51:37]OFD Sender: Remove packet 30570 [10:51:37]ProducePacketName [10:51:37]name=ofd_packets/00030570 [10:51:37]NVStorageDeleteData [10:51:37]Write to MH i2c: 01 00 00 77 32 A9 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 07 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: 01 07 00 77 32 00 00 00 00 00 EA 0C A6 [10:51:37]RasterBufferAndPrint [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]line [10:51:37]written 0, free lines is 3312 [10:51:37]MH_Cut [10:51:37]Write to MH i2c: D1 01 00 7E 32 01 82 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 01 00 [10:51:37]MH_I2C_Read... [10:51:37]Read from MH i2c: D1 01 00 7E 32 00 81 [10:51:37]Write to MH i2c: 01 00 00 7F 32 B1 [10:51:37]Write i2c OK [10:51:37]MH_I2C_Read... [10:51:38]OFD Sender: No OFD packet to send [10:51:38]*** Cut start [10:51:38]*** Partial cut [10:51:38]*** CUTSNS_PIN = 1 [10:51:38]*** CUTSNS_PIN = 0 [10:51:38]*** Brake cut motor [10:51:38]Read from MH i2c: 01 [10:51:38]MH_I2C_Read... [10:51:38]*** Stop cut motor [10:51:38]*** Cut end [10:51:38]Read from MH i2c: 01 07 00 [10:51:38]MH_I2C_Read... [10:51:38]Read from MH i2c: 01 07 00 7F 32 00 00 00 00 00 FF 0F C6 [10:51:38]process_action close_receipt done [10:51:38]requested_data is exist [10:51:38]produce_requested_data [10:51:38]requested_item fm.sn is exist - process it [10:51:38]wFMCommunicate request_size=4 [10:51:38]MH_SAM_APDU [10:51:38]CAPDU: 80 11 00 00 [10:51:38]Write to MH i2c: E2 08 00 80 32 80 11 00 00 00 00 00 00 2C [10:51:38]Write i2c OK [10:51:38]MH_I2C_Read... [10:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:39]Read from MH i2c: E2 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 17 00 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 17 00 80 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [10:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:51:39]wFMCommunicate OK [10:51:39]requested_item fd.num is exist - process it [10:51:39]SAM_PROTO_GetFieldsCounters [10:51:39]wFMCommunicate request_size=4 [10:51:39]MH_SAM_APDU [10:51:39]CAPDU: 80 13 00 00 [10:51:39]Write to MH i2c: E2 08 00 81 32 80 13 00 00 00 00 00 00 2F [10:51:39]Write i2c OK [10:51:39]MH_I2C_Read... [10:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:39]Read from MH i2c: E2 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 62 00 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 62 00 81 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 77 00 00 0E 04 04 00 73 00 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 72 [10:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:39]wFMCommunicate OK [10:51:39]SAM_PROTO_GetFieldsCounters done [10:51:39]requested_item shift.num is exist - process it [10:51:39]requested_item shift.opened is exist - process it [10:51:39]req_shift_opened [10:51:39]FM_GetShiftState [10:51:39]SAM_PROTO_GetShiftState [10:51:39]wFMCommunicate request_size=4 [10:51:39]MH_SAM_APDU [10:51:39]CAPDU: 80 13 01 00 [10:51:39]Write to MH i2c: E2 08 00 82 32 80 13 01 00 00 00 00 00 31 [10:51:39]Write i2c OK [10:51:39]MH_I2C_Read... [10:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:39]Read from MH i2c: E2 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 0E 00 [10:51:39]MH_I2C_Read... [10:51:39]Read from MH i2c: E2 0E 00 82 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AD [10:51:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:51:39]wFMCommunicate OK [10:51:39]SAM_PROTO_GetShiftState done [10:51:39]FM_GetShiftState done [10:51:39]req_shift_opened done [10:51:39]requested_item shift.open_date is exist - process it [10:51:39]req_shift_open_date [10:51:39]req_shift_open_date done [10:51:39]produce_requested_data done [10:51:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30570,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:51:39]process_action_free close_receipt [10:51:39]json_value_free [10:51:39]json_value_free done [10:51:39]process_json_proto returns [10:51:39]Send response to host [10:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30570,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:51:39]free response buf [10:51:39]execute_script done [10:51:39]execute_script returns [10:51:39]free content buf [10:51:39]Sock 7.Close socket [10:51:39]Sock 7.Thread stoped [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:48]OFD Sender: No OFD packet to send [10:55:53]OFD Sender: No OFD packet to send [10:55:58]OFD Sender: No OFD packet to send [10:56:03]OFD Sender: No OFD packet to send [10:56:08]OFD Sender: No OFD packet to send [10:56:13]OFD Sender: No OFD packet to send [10:56:18]OFD Sender: No OFD packet to send [10:56:23]OFD Sender: No OFD packet to send [10:56:28]OFD Sender: No OFD packet to send [10:56:33]OFD Sender: No OFD packet to send [10:56:38]OFD Sender: No OFD packet to send [10:56:43]OFD Sender: No OFD packet to send [10:56:48]OFD Sender: No OFD packet to send [10:56:53]OFD Sender: No OFD packet to send [10:57:03]OFD Sender: No OFD packet to send [10:57:08]OFD Sender: No OFD packet to send [10:57:12]accept exits with 9 [10:57:12]New connection [10:57:12]New thread 3067489636 created [10:57:12]Thread 3067346276 joined [10:57:12]Waiting for new connection... [10:57:12] Sock 9.Parse request [10:57:12]Sock 9.Check first char [10:57:12]Sock 9.First char is OK [10:57:12]request: POST /json_proto HTTP/1.0 [10:57:12]Method: POST [10:57:12]URL: /json_proto [10:57:12]Method is POST - this is cgi request [10:57:12]url: /json_proto [10:57:12]query_string will be loaded in cgi processing [10:57:12]execute_cgi json_proto POST (null) [10:57:12]execute_cgi path=json_proto method=POST [10:57:12]POST find Content-Length [10:57:12]Host: 172.17.51.3:8080 [10:57:12]Content-Length: 679 [10:57:12]Content-Type: application/json [10:57:12] [10:57:12]POST finish read [10:57:12]Found Content-Length = 679 [10:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:12]execute_script... [10:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:12]POST & json_proto [10:57:12]process_json_proto [10:57:12]json parsed OK: [10:57:12]protocol is kg_v1.0 [10:57:12]action value=close_receipt [10:57:12]process_action close_receipt [10:57:12]cmd_close_receipt [10:57:12]MH_GetDate [10:57:12]Write to MH i2c: F0 00 00 83 32 A4 [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: F0 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: F0 09 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: F0 09 00 83 32 00 8D 33 16 67 04 C1 95 66 AA [10:57:12]GetLastDocTimeStamp 1729507899 [10:57:12]current date 1729508237 [10:57:12]FM_GetShiftState [10:57:12]SAM_PROTO_GetShiftState [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 13 01 00 [10:57:12]Write to MH i2c: E2 08 00 84 32 80 13 01 00 00 00 00 00 33 [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:13]Read from MH i2c: E2 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 [10:57:13]MH_I2C_Read... [10:57:13]Read from MH i2c: E2 0E 00 84 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AF [10:57:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:57:13]wFMCommunicate OK [10:57:13]SAM_PROTO_GetShiftState done [10:57:13]FM_GetShiftState done [10:57:13]opened in 1729471058 [10:57:13]opened+sec_in_day 1729557458 [10:57:13]quantity*price = 100050 [10:57:13]sum+1 = 100052 [10:57:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 68 21.10.2024 10:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30571 ФПД: 141200010441209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105717&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30571&fm=141200010441209&tin=02508201610067®Number=0000000000186857&sum=100000 [10:57:14]StoreToDocumentArchive [10:57:14]shift 115 fd 30571 [10:57:14]save to /storage/0115/doc_00030571 [10:57:14]save last doc name /storage/0115/doc_00030571 to /storage/kkm_last_doc_name [10:57:14]save OK [10:57:14]Clear old archive folders... [10:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:14]tlvbuf is 01DD6C90 [10:57:14]SAM_PROTO_ClearQueue [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 09 00 00 [10:57:14]Write to MH i2c: E2 08 00 91 32 80 09 00 00 00 00 00 00 35 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 91 32 00 90 00 37 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_ClearQueue done [10:57:14]KKMCreateOFDPacket [10:57:14]OFDProtocolAddRootSTLVToBuf [10:57:14]FM_MakeSignedData [10:57:14]FM_MakeSignedData [10:57:14]SAM_PROTO_SignData [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 01 02 [10:57:14]Write to MH i2c: E2 08 00 92 32 80 0D 01 02 00 00 00 00 3D [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 92 32 00 90 00 38 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]wFMCommunicate request_size=255 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8D 33 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 77 00 00 35 04 06 00 80 6B B0 76 [10:57:14]Write to MH i2c: E2 02 01 93 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8D 33 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 77 00 00 35 04 06 00 80 6B B0 76 00 00 AB [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 93 32 00 90 00 39 [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]wFMCommunicate request_size=7 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 02 02 02 F1 F9 [10:57:14]Write to MH i2c: E2 0A 00 94 32 80 0D 02 02 02 00 F1 F9 00 00 2E [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 03 00 94 32 00 90 00 3A [10:57:14]RAPDU: 90 00 [10:57:14]wFMCommunicate OK [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 0D 03 02 [10:57:14]Write to MH i2c: E2 08 00 95 32 80 0D 03 02 00 00 00 00 42 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0B 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 0B 00 95 32 00 E5 4F B1 59 9E 1B AA 67 90 00 4B [10:57:14]RAPDU: E5 4F B1 59 9E 1B AA 67 90 00 [10:57:14]wFMCommunicate OK [10:57:14]SAM_PROTO_SignData done [10:57:14]FM_MakeSignedData done [10:57:14]CreateOFDProtocolMessage [10:57:14]wFMCommunicate request_size=4 [10:57:14]MH_SAM_APDU [10:57:14]CAPDU: 80 11 00 00 [10:57:14]Write to MH i2c: E2 08 00 96 32 80 11 00 00 00 00 00 00 42 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:14]Read from MH i2c: E2 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 17 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: E2 17 00 96 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [10:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:57:14]wFMCommunicate OK [10:57:14]CreateOFDProtocolMessage done [10:57:14]OFDSenderStorePacket 30571 [10:57:14]StoreOFDPacket docnum=30571 [10:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 61 2A 04 01 70 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8D 33 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 77 00 00 35 04 06 00 80 6B B0 76 F1 F9 E5 4F B1 59 9E 1B AA 67 [10:57:14]CheckFolder [10:57:14]dirname=/storage/ofd_packets [10:57:14]CheckFolder done [10:57:14]ProducePacketName [10:57:14]name=ofd_packets/00030571 [10:57:14]NVStorageSaveData ofd_packets/00030571 [10:57:14]File name is /storage/ofd_packets/00030571 [10:57:14]Write 298 bytes [10:57:14]NVStorageSaveData done [10:57:14]OFDSenderStorePacket done [10:57:14]KKMCreateOFDPacket done [10:57:14]NVStorageSaveData kkm_last_timestamp [10:57:14]File name is /storage/kkm_last_timestamp [10:57:14]Write 4 bytes [10:57:14]NVStorageSaveData done [10:57:14]ExternCall_PrintAddStr [10:57:14]wPrintStart [10:57:14]Write to MH i2c: 01 00 00 97 32 C9 [10:57:14]Write i2c OK [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: 01 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: 01 07 00 [10:57:14]MH_I2C_Read... [10:57:14]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 FF 0F DE [10:57:14]RasterBufferAndPrint [10:57:14]line Счет N : (1)342978 [10:57:14]line ИНН: 02508201610067 [10:57:14]line Контрольно-Кассовый Чек [10:57:14]line ПРОДАЖА [10:57:14]line ТРК (МРК, ГНК) : 34 [10:57:14]line Товар: 2710194210 [10:57:14]line ДТ-К-2 [10:57:14]line 13.130 * 76.20 [10:57:14]line = 1000.51 [10:57:14]line НДС 12% НСП 1% [10:57:14]line > о реализуемом товаре [10:57:14]line ОКРУГЛЕНИЕ: -0.51 [10:57:14]line ИТОГО: 1000.00 [10:57:14]line Внесено: 1000.00 [10:57:14]line СДАЧА: 0.00 [10:57:14]line НСП 1% : 8.85 [10:57:14]line НДС 12% : 106.25 [10:57:14]line Наличными: 1000.00 [10:57:14]line Безнал.: 0.00 [10:57:14]line Место: АЗС № 78 "Партнер Нефть" [10:57:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [10:57:14]line СНО: Общий режим [10:57:14]line Чек 68 21.10.2024 10:57 [10:57:14]line Смена: 115 ФФД: 1.0 [10:57:14]line ЗНМ: 0300000137 [10:57:14]line РНМ: 0000000000186857 [10:57:14]line Версия ККМ: v1.0 [10:57:14]line ФМ: 0000000002094219 [10:57:14]line ФД: 30571 [10:57:14]line ФПД: 141200010441209 [10:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105717&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30571&fm=141200010441209&tin=02508201610067®Number=0000000000186857&sum=100000 [10:57:14]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:57:14]ProducePacketName [10:57:14]name=ofd_packets/00030571 [10:57:14]OFD Sender: To server: pG, [10:57:14]CommunicateWithHost lk.salyk.kg:30040 [10:57:14]ConnectInit lk.salyk.kg [10:57:14]written 0, free lines is 4095 [10:57:15]Write to MH i2c: 01 00 00 C2 32 F4 [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 D7 0C DE [10:57:15]RasterBufferAndPrint [10:57:15]line [10:57:15]line [10:57:15]line [10:57:15]line [10:57:15]line [10:57:15]written 0, free lines is 3293 [10:57:15]MH_Cut [10:57:15]Write to MH i2c: D1 01 00 C9 32 01 CD [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: D1 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: D1 01 00 [10:57:15]MH_I2C_Read... [10:57:15]Read from MH i2c: D1 01 00 C9 32 00 CC [10:57:15]Write to MH i2c: 01 00 00 CA 32 FC [10:57:15]Write i2c OK [10:57:15]MH_I2C_Read... [10:57:16]*** Cut start [10:57:16]*** Partial cut [10:57:16]*** CUTSNS_PIN = 1 [10:57:16]*** CUTSNS_PIN = 0 [10:57:16]*** Brake cut motor [10:57:16]Read from MH i2c: 01 [10:57:16]MH_I2C_Read... [10:57:16]*** Stop cut motor [10:57:16]*** Cut end [10:57:16]Read from MH i2c: 01 07 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: 01 07 00 CA 32 00 00 00 00 00 FF 0F 11 [10:57:16]process_action close_receipt done [10:57:16]requested_data is exist [10:57:16]produce_requested_data [10:57:16]requested_item fm.sn is exist - process it [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 11 00 00 [10:57:16]Write to MH i2c: E2 08 00 CB 32 80 11 00 00 00 00 00 00 77 [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 17 00 CB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [10:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [10:57:16]wFMCommunicate OK [10:57:16]requested_item fd.num is exist - process it [10:57:16]SAM_PROTO_GetFieldsCounters [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 13 00 00 [10:57:16]Write to MH i2c: E2 08 00 CC 32 80 13 00 00 00 00 00 00 7A [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 62 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 62 00 CC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 77 00 00 0E 04 04 00 73 00 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 C1 [10:57:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:16]wFMCommunicate OK [10:57:16]SAM_PROTO_GetFieldsCounters done [10:57:16]requested_item shift.num is exist - process it [10:57:16]requested_item shift.opened is exist - process it [10:57:16]req_shift_opened [10:57:16]FM_GetShiftState [10:57:16]SAM_PROTO_GetShiftState [10:57:16]wFMCommunicate request_size=4 [10:57:16]MH_SAM_APDU [10:57:16]CAPDU: 80 13 01 00 [10:57:16]Write to MH i2c: E2 08 00 CD 32 80 13 01 00 00 00 00 00 7C [10:57:16]Write i2c OK [10:57:16]MH_I2C_Read... [10:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:16]Read from MH i2c: E2 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0E 00 [10:57:16]MH_I2C_Read... [10:57:16]Read from MH i2c: E2 0E 00 CD 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F8 [10:57:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [10:57:16]wFMCommunicate OK [10:57:16]SAM_PROTO_GetShiftState done [10:57:16]FM_GetShiftState done [10:57:16]req_shift_opened done [10:57:16]requested_item shift.open_date is exist - process it [10:57:16]req_shift_open_date [10:57:16]req_shift_open_date done [10:57:16]produce_requested_data done [10:57:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30571,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [10:57:16]process_action_free close_receipt [10:57:16]json_value_free [10:57:16]json_value_free done [10:57:16]process_json_proto returns [10:57:16]Send response to host [10:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30571,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [10:57:16]free response buf [10:57:16]execute_script done [10:57:16]execute_script returns [10:57:16]free content buf [10:57:16]Sock 9.Close socket [10:57:16]Sock 9.Thread stoped [10:57:19]ConnectInit Can't take IP for lk.salyk.kg [10:57:19]CommunicateWithHost connect error [10:57:19]CommunicateWithHost err = -1 [10:57:19]OFD Sender: Server communicate error [10:57:24]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:57:24]ProducePacketName [10:57:24]name=ofd_packets/00030571 [10:57:24]OFD Sender: To server: pG, [10:57:24]CommunicateWithHost lk.salyk.kg:30040 [10:57:24]ConnectInit lk.salyk.kg [10:57:29]ConnectInit Can't take IP for lk.salyk.kg [10:57:29]CommunicateWithHost connect error [10:57:29]CommunicateWithHost err = -1 [10:57:29]OFD Sender: Server communicate error [10:57:34]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:57:34]ProducePacketName [10:57:34]name=ofd_packets/00030571 [10:57:34]OFD Sender: To server: pG, [10:57:35]CommunicateWithHost lk.salyk.kg:30040 [10:57:35]ConnectInit lk.salyk.kg [10:57:40]ConnectInit Can't take IP for lk.salyk.kg [10:57:40]CommunicateWithHost connect error [10:57:40]CommunicateWithHost err = -1 [10:57:40]OFD Sender: Server communicate error [10:57:45]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:57:45]ProducePacketName [10:57:45]name=ofd_packets/00030571 [10:57:45]OFD Sender: To server: pG, [10:57:45]CommunicateWithHost lk.salyk.kg:30040 [10:57:45]ConnectInit lk.salyk.kg [10:57:50]ConnectInit Can't take IP for lk.salyk.kg [10:57:50]CommunicateWithHost connect error [10:57:50]CommunicateWithHost err = -1 [10:57:50]OFD Sender: Server communicate error [10:57:55]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:57:55]ProducePacketName [10:57:55]name=ofd_packets/00030571 [10:57:55]OFD Sender: To server: pG, [10:57:55]CommunicateWithHost lk.salyk.kg:30040 [10:57:55]ConnectInit lk.salyk.kg [10:58:00]ConnectInit Can't take IP for lk.salyk.kg [10:58:00]CommunicateWithHost connect error [10:58:00]CommunicateWithHost err = -1 [10:58:00]OFD Sender: Server communicate error [10:58:03]ConnectInit Can't connect to host [10:58:05]OFD Sender: Processing packet 30571 [packets to send 10, broken 9] [10:58:05]ProducePacketName [10:58:05]name=ofd_packets/00030571 [10:58:05]OFD Sender: To server: pG, [10:58:05]CommunicateWithHost lk.salyk.kg:30040 [10:58:05]ConnectInit lk.salyk.kg [10:58:07]Connected sock=7 [10:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 61 2A 04 01 70 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 8D 33 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 77 00 00 35 04 06 00 80 6B B0 76 F1 F9 E5 4F B1 59 9E 1B AA 67 [10:58:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 59 44 47 00 96 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6B 77 00 00 F4 03 04 00 42 DE 15 67 B6 04 01 00 00 96 00 19 E5 1B F7 C8 FC [10:58:07]CommunicateWithHost err = 0 [10:58:07]CheckOFDResponse [10:58:07]1017 (14) - 77093643461234 [10:58:07]1041 (16) - 0000000002094219 [10:58:07]1040 (4) - 30571 [10:58:07]1012 (4) - 21.10.2024 04:53 [10:58:07]1206 (1) - 0 [10:58:07]OFD Sender: Remove packet 30571 [10:58:07]ProducePacketName [10:58:07]name=ofd_packets/00030571 [10:58:07]NVStorageDeleteData [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:18]OFD Sender: No OFD packet to send [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:34]accept exits with 10 [11:03:34]New connection [11:03:34]New thread 3067346276 created [11:03:34]Thread 3067489636 joined [11:03:34]Waiting for new connection... [11:03:34] Sock 10.Parse request [11:03:34]Sock 10.Check first char [11:03:34]Sock 10.First char is OK [11:03:34]request: POST /json_proto HTTP/1.0 [11:03:34]Method: POST [11:03:34]URL: /json_proto [11:03:34]Method is POST - this is cgi request [11:03:34]url: /json_proto [11:03:34]query_string will be loaded in cgi processing [11:03:34]execute_cgi json_proto POST (null) [11:03:34]execute_cgi path=json_proto method=POST [11:03:34]POST find Content-Length [11:03:34]Host: 172.17.51.3:8080 [11:03:34]Content-Length: 684 [11:03:34]Content-Type: application/json [11:03:34] [11:03:34]POST finish read [11:03:34]Found Content-Length = 684 [11:03:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]execute_script... [11:03:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:34]POST & json_proto [11:03:34]process_json_proto [11:03:34]json parsed OK: [11:03:34]protocol is kg_v1.0 [11:03:34]action value=close_receipt [11:03:34]process_action close_receipt [11:03:34]cmd_close_receipt [11:03:34]MH_GetDate [11:03:34]Write to MH i2c: F0 00 00 CE 32 EF [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: F0 09 00 CE 32 00 0A 35 16 67 04 C1 95 66 74 [11:03:34]GetLastDocTimeStamp 1729508237 [11:03:34]current date 1729508618 [11:03:34]FM_GetShiftState [11:03:34]SAM_PROTO_GetShiftState [11:03:34]wFMCommunicate request_size=4 [11:03:34]MH_SAM_APDU [11:03:34]CAPDU: 80 13 01 00 [11:03:34]Write to MH i2c: E2 08 00 CF 32 80 13 01 00 00 00 00 00 7E [11:03:34]Write i2c OK [11:03:34]MH_I2C_Read... [11:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:34]Read from MH i2c: E2 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 [11:03:34]MH_I2C_Read... [11:03:34]Read from MH i2c: E2 0E 00 CF 32 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FA [11:03:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:03:34]wFMCommunicate OK [11:03:34]SAM_PROTO_GetShiftState done [11:03:34]FM_GetShiftState done [11:03:34]opened in 1729471058 [11:03:34]opened+sec_in_day 1729557458 [11:03:34]quantity*price = 80056 [11:03:34]sum+1 = 80057 [11:03:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 69 21.10.2024 11:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30572 ФПД: 144421331096173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110338&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30572&fm=144421331096173&tin=02508201610067®Number=0000000000186857&sum=80000 [11:03:35]StoreToDocumentArchive [11:03:35]shift 115 fd 30572 [11:03:35]save to /storage/0115/doc_00030572 [11:03:35]save last doc name /storage/0115/doc_00030572 to /storage/kkm_last_doc_name [11:03:35]save OK [11:03:35]Clear old archive folders... [11:03:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:03:35]tlvbuf is 01E859D0 [11:03:35]SAM_PROTO_ClearQueue [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 09 00 00 [11:03:35]Write to MH i2c: E2 08 00 DC 32 80 09 00 00 00 00 00 00 80 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]SAM_PROTO_ClearQueue done [11:03:35]KKMCreateOFDPacket [11:03:35]OFDProtocolAddRootSTLVToBuf [11:03:35]FM_MakeSignedData [11:03:35]FM_MakeSignedData [11:03:35]SAM_PROTO_SignData [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 01 02 [11:03:35]Write to MH i2c: E2 08 00 DD 32 80 0D 01 02 00 00 00 00 88 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=255 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0A 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 77 00 [11:03:35]Write to MH i2c: E2 02 01 DE 32 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0A 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 77 00 00 00 C6 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 DE 32 00 90 00 84 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=16 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 83 59 B6 23 52 6D [11:03:35]Write to MH i2c: E2 13 00 DF 32 80 0D 02 02 0B 00 00 35 04 06 00 83 59 B6 23 52 6D 00 00 54 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [11:03:35]RAPDU: 90 00 [11:03:35]wFMCommunicate OK [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 0D 03 02 [11:03:35]Write to MH i2c: E2 08 00 E0 32 80 0D 03 02 00 00 00 00 8D [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 0B 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 0B 00 E0 32 00 14 3F 59 69 58 A9 DE 8C 90 00 0E [11:03:35]RAPDU: 14 3F 59 69 58 A9 DE 8C 90 00 [11:03:35]wFMCommunicate OK [11:03:35]SAM_PROTO_SignData done [11:03:35]FM_MakeSignedData done [11:03:35]CreateOFDProtocolMessage [11:03:35]wFMCommunicate request_size=4 [11:03:35]MH_SAM_APDU [11:03:35]CAPDU: 80 11 00 00 [11:03:35]Write to MH i2c: E2 08 00 E1 32 80 11 00 00 00 00 00 00 8D [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:35]Read from MH i2c: E2 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 17 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: E2 17 00 E1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [11:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:03:35]wFMCommunicate OK [11:03:35]CreateOFDProtocolMessage done [11:03:35]OFDSenderStorePacket 30572 [11:03:35]StoreOFDPacket docnum=30572 [11:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 BA 93 0D 01 88 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0A 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 77 00 00 35 04 06 00 83 59 B6 23 52 6D 14 3F 59 69 58 A9 DE 8C [11:03:35]CheckFolder [11:03:35]dirname=/storage/ofd_packets [11:03:35]CheckFolder done [11:03:35]ProducePacketName [11:03:35]name=ofd_packets/00030572 [11:03:35]NVStorageSaveData ofd_packets/00030572 [11:03:35]File name is /storage/ofd_packets/00030572 [11:03:35]Write 307 bytes [11:03:35]NVStorageSaveData done [11:03:35]OFDSenderStorePacket done [11:03:35]KKMCreateOFDPacket done [11:03:35]NVStorageSaveData kkm_last_timestamp [11:03:35]File name is /storage/kkm_last_timestamp [11:03:35]Write 4 bytes [11:03:35]NVStorageSaveData done [11:03:35]ExternCall_PrintAddStr [11:03:35]wPrintStart [11:03:35]Write to MH i2c: 01 00 00 E2 32 14 [11:03:35]Write i2c OK [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 [11:03:35]MH_I2C_Read... [11:03:35]Read from MH i2c: 01 07 00 E2 32 00 00 00 00 00 FF 0F 29 [11:03:35]RasterBufferAndPrint [11:03:35]line Счет N : (1)342979 [11:03:35]line ИНН: 02508201610067 [11:03:35]line Контрольно-Кассовый Чек [11:03:35]line ПРОДАЖА [11:03:35]line ТРК (МРК, ГНК) : 61 [11:03:35]line Товар: 2710194210 [11:03:35]line D-ENERGY Дт-К-2 [11:03:35]line 10.370 * 77.20 [11:03:35]line = 800.56 [11:03:35]line НДС 12% НСП 1% [11:03:35]line > о реализуемом товаре [11:03:35]line ОКРУГЛЕНИЕ: -0.56 [11:03:35]line ИТОГО: 800.00 [11:03:35]line Внесено: 800.00 [11:03:35]line СДАЧА: 0.00 [11:03:35]line НСП 1% : 7.08 [11:03:35]line НДС 12% : 85.01 [11:03:35]line Наличными: 800.00 [11:03:35]line Безнал.: 0.00 [11:03:35]line Место: АЗС № 78 "Партнер Нефть" [11:03:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:03:35]line СНО: Общий режим [11:03:35]line Чек 69 21.10.2024 11:03 [11:03:35]line Смена: 115 ФФД: 1.0 [11:03:35]line ЗНМ: 0300000137 [11:03:35]line РНМ: 0000000000186857 [11:03:35]line Версия ККМ: v1.0 [11:03:35]line ФМ: 0000000002094219 [11:03:35]line ФД: 30572 [11:03:35]line ФПД: 144421331096173 [11:03:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110338&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30572&fm=144421331096173&tin=02508201610067®Number=0000000000186857&sum=80000 [11:03:36]OFD Sender: Processing packet 30572 [packets to send 10, broken 9] [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00030572 [11:03:36]OFD Sender: To server: pG, [11:03:36]CommunicateWithHost lk.salyk.kg:30040 [11:03:36]ConnectInit lk.salyk.kg [11:03:36]written 0, free lines is 4095 [11:03:36]Connected sock=9 [11:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 BA 93 0D 01 88 C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 0A 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 77 00 00 35 04 06 00 83 59 B6 23 52 6D 14 3F 59 69 58 A9 DE 8C [11:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1D D7 47 00 DE 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6C 77 00 00 F4 03 04 00 8B DF 15 67 B6 04 01 00 00 54 AF 26 E9 D9 96 BE DC [11:03:36]CommunicateWithHost err = 0 [11:03:36]CheckOFDResponse [11:03:36]1017 (14) - 77093643461234 [11:03:36]1041 (16) - 0000000002094219 [11:03:36]1040 (4) - 30572 [11:03:36]1012 (4) - 21.10.2024 04:58 [11:03:36]1206 (1) - 0 [11:03:36]OFD Sender: Remove packet 30572 [11:03:36]ProducePacketName [11:03:36]name=ofd_packets/00030572 [11:03:36]NVStorageDeleteData [11:03:36]Write to MH i2c: 01 00 00 0D 33 40 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: 01 07 00 0D 33 00 00 00 00 00 E6 0C 39 [11:03:36]RasterBufferAndPrint [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]line [11:03:36]written 0, free lines is 3309 [11:03:36]MH_Cut [11:03:36]Write to MH i2c: D1 01 00 14 33 01 19 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 01 00 [11:03:36]MH_I2C_Read... [11:03:36]Read from MH i2c: D1 01 00 14 33 00 18 [11:03:36]Write to MH i2c: 01 00 00 15 33 48 [11:03:36]Write i2c OK [11:03:36]MH_I2C_Read... [11:03:36]OFD Sender: No OFD packet to send [11:03:37]*** Cut start [11:03:37]*** Partial cut [11:03:37]*** CUTSNS_PIN = 1 [11:03:37]*** CUTSNS_PIN = 0 [11:03:37]*** Brake cut motor [11:03:37]Read from MH i2c: 01 [11:03:37]MH_I2C_Read... [11:03:37]*** Stop cut motor [11:03:37]*** Cut end [11:03:37]Read from MH i2c: 01 07 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 FF 0F 5D [11:03:37]process_action close_receipt done [11:03:37]requested_data is exist [11:03:37]produce_requested_data [11:03:37]requested_item fm.sn is exist - process it [11:03:37]wFMCommunicate request_size=4 [11:03:37]MH_SAM_APDU [11:03:37]CAPDU: 80 11 00 00 [11:03:37]Write to MH i2c: E2 08 00 16 33 80 11 00 00 00 00 00 00 C3 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:37]Read from MH i2c: E2 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: E2 17 00 [11:03:37]MH_I2C_Read... [11:03:37]Read from MH i2c: E2 17 00 16 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 11 [11:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:03:37]wFMCommunicate OK [11:03:37]requested_item fd.num is exist - process it [11:03:37]SAM_PROTO_GetFieldsCounters [11:03:37]wFMCommunicate request_size=4 [11:03:37]MH_SAM_APDU [11:03:37]CAPDU: 80 13 00 00 [11:03:37]Write to MH i2c: E2 08 00 17 33 80 13 00 00 00 00 00 00 C6 [11:03:37]Write i2c OK [11:03:37]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 62 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 62 00 17 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 77 00 00 0E 04 04 00 73 00 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 11 [11:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6C 77 00 00 0E 04 04 00 73 00 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 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_GetFieldsCounters done [11:03:38]requested_item shift.num is exist - process it [11:03:38]requested_item shift.opened is exist - process it [11:03:38]req_shift_opened [11:03:38]FM_GetShiftState [11:03:38]SAM_PROTO_GetShiftState [11:03:38]wFMCommunicate request_size=4 [11:03:38]MH_SAM_APDU [11:03:38]CAPDU: 80 13 01 00 [11:03:38]Write to MH i2c: E2 08 00 18 33 80 13 01 00 00 00 00 00 C8 [11:03:38]Write i2c OK [11:03:38]MH_I2C_Read... [11:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:38]Read from MH i2c: E2 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 [11:03:38]MH_I2C_Read... [11:03:38]Read from MH i2c: E2 0E 00 18 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 44 [11:03:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:03:38]wFMCommunicate OK [11:03:38]SAM_PROTO_GetShiftState done [11:03:38]FM_GetShiftState done [11:03:38]req_shift_opened done [11:03:38]requested_item shift.open_date is exist - process it [11:03:38]req_shift_open_date [11:03:38]req_shift_open_date done [11:03:38]produce_requested_data done [11:03:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30572,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:03:38]process_action_free close_receipt [11:03:38]json_value_free [11:03:38]json_value_free done [11:03:38]process_json_proto returns [11:03:38]Send response to host [11:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30572,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:03:38]free response buf [11:03:38]execute_script done [11:03:38]execute_script returns [11:03:38]free content buf [11:03:38]Sock 10.Close socket [11:03:38]Sock 10.Thread stoped [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:17]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:33]accept exits with 7 [11:06:33]New connection [11:06:33]New thread 3067489636 created [11:06:33]Thread 3067346276 joined [11:06:33]Waiting for new connection... [11:06:33] Sock 7.Parse request [11:06:33]Sock 7.Check first char [11:06:33]Sock 7.First char is OK [11:06:33]request: POST /json_proto HTTP/1.0 [11:06:33]Method: POST [11:06:33]URL: /json_proto [11:06:33]Method is POST - this is cgi request [11:06:33]url: /json_proto [11:06:33]query_string will be loaded in cgi processing [11:06:33]execute_cgi json_proto POST (null) [11:06:33]execute_cgi path=json_proto method=POST [11:06:33]POST find Content-Length [11:06:33]Host: 172.17.51.3:8080 [11:06:33]Content-Length: 682 [11:06:33]Content-Type: application/json [11:06:33] [11:06:33]POST finish read [11:06:33]Found Content-Length = 682 [11:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:33]execute_script... [11:06:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:33]POST & json_proto [11:06:33]process_json_proto [11:06:33]json parsed OK: [11:06:33]protocol is kg_v1.0 [11:06:33]action value=close_receipt [11:06:33]process_action close_receipt [11:06:33]cmd_close_receipt [11:06:33]MH_GetDate [11:06:33]Write to MH i2c: F0 00 00 19 33 3B [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: F0 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: F0 09 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: F0 09 00 19 33 00 BE 35 16 67 04 C1 95 66 74 [11:06:33]GetLastDocTimeStamp 1729508618 [11:06:33]current date 1729508798 [11:06:33]FM_GetShiftState [11:06:33]SAM_PROTO_GetShiftState [11:06:33]wFMCommunicate request_size=4 [11:06:33]MH_SAM_APDU [11:06:33]CAPDU: 80 13 01 00 [11:06:33]Write to MH i2c: E2 08 00 1A 33 80 13 01 00 00 00 00 00 CA [11:06:33]Write i2c OK [11:06:33]MH_I2C_Read... [11:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:33]Read from MH i2c: E2 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 0E 00 [11:06:33]MH_I2C_Read... [11:06:33]Read from MH i2c: E2 0E 00 1A 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 46 [11:06:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:06:33]wFMCommunicate OK [11:06:33]SAM_PROTO_GetShiftState done [11:06:33]FM_GetShiftState done [11:06:33]opened in 1729471058 [11:06:33]opened+sec_in_day 1729557458 [11:06:33]quantity*price = 100015 [11:06:33]sum+1 = 100017 [11:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 70 21.10.2024 11:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30573 ФПД: 41435459180542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110638&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30573&fm=41435459180542&tin=02508201610067®Number=0000000000186857&sum=100000 [11:06:34]StoreToDocumentArchive [11:06:34]shift 115 fd 30573 [11:06:34]save to /storage/0115/doc_00030573 [11:06:34]save last doc name /storage/0115/doc_00030573 to /storage/kkm_last_doc_name [11:06:34]save OK [11:06:34]Clear old archive folders... [11:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:34]tlvbuf is 01DB6810 [11:06:34]SAM_PROTO_ClearQueue [11:06:34]wFMCommunicate request_size=4 [11:06:34]MH_SAM_APDU [11:06:34]CAPDU: 80 09 00 00 [11:06:34]Write to MH i2c: E2 08 00 27 33 80 09 00 00 00 00 00 00 CC [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:34]Read from MH i2c: E2 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: E2 03 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: E2 03 00 27 33 00 90 00 CE [11:06:34]RAPDU: 90 00 [11:06:34]wFMCommunicate OK [11:06:34]SAM_PROTO_ClearQueue done [11:06:34]KKMCreateOFDPacket [11:06:34]OFDProtocolAddRootSTLVToBuf [11:06:34]FM_MakeSignedData [11:06:34]FM_MakeSignedData [11:06:34]SAM_PROTO_SignData [11:06:34]wFMCommunicate request_size=4 [11:06:34]MH_SAM_APDU [11:06:34]CAPDU: 80 0D 01 02 [11:06:34]Write to MH i2c: E2 08 00 28 33 80 0D 01 02 00 00 00 00 D4 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:34]Read from MH i2c: E2 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: E2 03 00 [11:06:34]MH_I2C_Read... [11:06:34]Read from MH i2c: E2 03 00 28 33 00 90 00 CF [11:06:34]RAPDU: 90 00 [11:06:34]wFMCommunicate OK [11:06:34]wFMCommunicate request_size=255 [11:06:34]MH_SAM_APDU [11:06:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 BE 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 77 00 00 35 04 06 00 25 [11:06:34]Write to MH i2c: E2 02 01 29 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 BE 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 77 00 00 35 04 06 00 25 00 00 91 [11:06:34]Write i2c OK [11:06:34]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 03 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 03 00 29 33 00 90 00 D0 [11:06:35]RAPDU: 90 00 [11:06:35]wFMCommunicate OK [11:06:35]wFMCommunicate request_size=10 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 0D 02 02 05 AF 71 D3 57 FE [11:06:35]Write to MH i2c: E2 0D 00 2A 33 80 0D 02 02 05 00 AF 71 D3 57 FE 00 00 29 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 03 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 03 00 2A 33 00 90 00 D1 [11:06:35]RAPDU: 90 00 [11:06:35]wFMCommunicate OK [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 0D 03 02 [11:06:35]Write to MH i2c: E2 08 00 2B 33 80 0D 03 02 00 00 00 00 D9 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0B 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 0B 00 2B 33 00 AE 02 42 38 FC 06 19 35 90 00 54 [11:06:35]RAPDU: AE 02 42 38 FC 06 19 35 90 00 [11:06:35]wFMCommunicate OK [11:06:35]SAM_PROTO_SignData done [11:06:35]FM_MakeSignedData done [11:06:35]CreateOFDProtocolMessage [11:06:35]wFMCommunicate request_size=4 [11:06:35]MH_SAM_APDU [11:06:35]CAPDU: 80 11 00 00 [11:06:35]Write to MH i2c: E2 08 00 2C 33 80 11 00 00 00 00 00 00 D9 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:35]Read from MH i2c: E2 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: E2 17 00 2C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [11:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:06:35]wFMCommunicate OK [11:06:35]CreateOFDProtocolMessage done [11:06:35]OFDSenderStorePacket 30573 [11:06:35]StoreOFDPacket docnum=30573 [11:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 12 07 01 19 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 BE 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 77 00 00 35 04 06 00 25 AF 71 D3 57 FE AE 02 42 38 FC 06 19 35 [11:06:35]CheckFolder [11:06:35]dirname=/storage/ofd_packets [11:06:35]CheckFolder done [11:06:35]ProducePacketName [11:06:35]name=ofd_packets/00030573 [11:06:35]NVStorageSaveData ofd_packets/00030573 [11:06:35]File name is /storage/ofd_packets/00030573 [11:06:35]Write 301 bytes [11:06:35]NVStorageSaveData done [11:06:35]OFDSenderStorePacket done [11:06:35]KKMCreateOFDPacket done [11:06:35]NVStorageSaveData kkm_last_timestamp [11:06:35]File name is /storage/kkm_last_timestamp [11:06:35]Write 4 bytes [11:06:35]NVStorageSaveData done [11:06:35]ExternCall_PrintAddStr [11:06:35]wPrintStart [11:06:35]Write to MH i2c: 01 00 00 2D 33 60 [11:06:35]Write i2c OK [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 07 00 [11:06:35]MH_I2C_Read... [11:06:35]Read from MH i2c: 01 07 00 2D 33 00 00 00 00 00 FF 0F 75 [11:06:35]RasterBufferAndPrint [11:06:35]line Счет N : (1)342980 [11:06:35]line ИНН: 02508201610067 [11:06:35]line Контрольно-Кассовый Чек [11:06:35]line ПРОДАЖА [11:06:35]line ТРК (МРК, ГНК) : 43 [11:06:35]line Товар: 2710124130 [11:06:35]line Аи-92-К-2 [11:06:35]line 14.950 * 66.90 [11:06:35]line = 1000.16 [11:06:35]line НДС 12% НСП 1% [11:06:35]line > о реализуемом товаре [11:06:35]line ОКРУГЛЕНИЕ: -0.16 [11:06:35]line ИТОГО: 1000.00 [11:06:35]line Внесено: 1000.00 [11:06:35]line СДАЧА: 0.00 [11:06:35]line НСП 1% : 8.85 [11:06:35]line НДС 12% : 106.21 [11:06:35]line Наличными: 1000.00 [11:06:35]line Безнал.: 0.00 [11:06:35]line Место: АЗС № 78 "Партнер Нефть" [11:06:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:06:35]line СНО: Общий режим [11:06:35]line Чек 70 21.10.2024 11:06 [11:06:35]line Смена: 115 ФФД: 1.0 [11:06:35]line ЗНМ: 0300000137 [11:06:35]line РНМ: 0000000000186857 [11:06:35]line Версия ККМ: v1.0 [11:06:35]line ФМ: 0000000002094219 [11:06:35]line ФД: 30573 [11:06:35]line ФПД: 41435459180542 [11:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110638&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30573&fm=41435459180542&tin=02508201610067®Number=0000000000186857&sum=100000 [11:06:35]OFD Sender: Processing packet 30573 [packets to send 10, broken 9] [11:06:35]ProducePacketName [11:06:35]name=ofd_packets/00030573 [11:06:35]OFD Sender: To server: pG, [11:06:35]CommunicateWithHost lk.salyk.kg:30040 [11:06:35]ConnectInit lk.salyk.kg [11:06:35]written 0, free lines is 4095 [11:06:35]Connected sock=10 [11:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 BB 12 07 01 19 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 BE 35 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 77 00 00 35 04 06 00 25 AF 71 D3 57 FE AE 02 42 38 FC 06 19 35 [11:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DE 22 47 00 87 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6D 77 00 00 F4 03 04 00 3E E0 15 67 B6 04 01 00 00 EE 6A 06 9D C4 34 39 BB [11:06:35]CommunicateWithHost err = 0 [11:06:35]CheckOFDResponse [11:06:35]1017 (14) - 77093643461234 [11:06:35]1041 (16) - 0000000002094219 [11:06:35]1040 (4) - 30573 [11:06:35]1012 (4) - 21.10.2024 05:01 [11:06:35]1206 (1) - 0 [11:06:35]OFD Sender: Remove packet 30573 [11:06:35]ProducePacketName [11:06:35]name=ofd_packets/00030573 [11:06:35]NVStorageDeleteData [11:06:36]Write to MH i2c: 01 00 00 58 33 8B [11:06:36]Write i2c OK [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: 01 [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: 01 07 00 [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: 01 07 00 58 33 00 00 00 00 00 E6 0C 84 [11:06:36]RasterBufferAndPrint [11:06:36]line [11:06:36]line [11:06:36]line [11:06:36]line [11:06:36]line [11:06:36]written 0, free lines is 3308 [11:06:36]MH_Cut [11:06:36]Write to MH i2c: D1 01 00 5F 33 01 64 [11:06:36]Write i2c OK [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: D1 [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: D1 01 00 [11:06:36]MH_I2C_Read... [11:06:36]Read from MH i2c: D1 01 00 5F 33 00 63 [11:06:36]Write to MH i2c: 01 00 00 60 33 93 [11:06:36]Write i2c OK [11:06:36]MH_I2C_Read... [11:06:36]OFD Sender: No OFD packet to send [11:06:36]*** Cut start [11:06:36]*** Partial cut [11:06:36]*** CUTSNS_PIN = 1 [11:06:36]*** CUTSNS_PIN = 0 [11:06:37]*** Brake cut motor [11:06:37]Read from MH i2c: 01 [11:06:37]MH_I2C_Read... [11:06:37]*** Stop cut motor [11:06:37]*** Cut end [11:06:37]Read from MH i2c: 01 07 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: 01 07 00 60 33 00 00 00 00 00 FF 0F A8 [11:06:37]process_action close_receipt done [11:06:37]requested_data is exist [11:06:37]produce_requested_data [11:06:37]requested_item fm.sn is exist - process it [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 11 00 00 [11:06:37]Write to MH i2c: E2 08 00 61 33 80 11 00 00 00 00 00 00 0E [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 17 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 17 00 61 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5C [11:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:06:37]wFMCommunicate OK [11:06:37]requested_item fd.num is exist - process it [11:06:37]SAM_PROTO_GetFieldsCounters [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 13 00 00 [11:06:37]Write to MH i2c: E2 08 00 62 33 80 13 00 00 00 00 00 00 11 [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 62 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 62 00 62 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 77 00 00 0E 04 04 00 73 00 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 60 [11:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6D 77 00 00 0E 04 04 00 73 00 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 [11:06:37]wFMCommunicate OK [11:06:37]SAM_PROTO_GetFieldsCounters done [11:06:37]requested_item shift.num is exist - process it [11:06:37]requested_item shift.opened is exist - process it [11:06:37]req_shift_opened [11:06:37]FM_GetShiftState [11:06:37]SAM_PROTO_GetShiftState [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 13 01 00 [11:06:37]Write to MH i2c: E2 08 00 63 33 80 13 01 00 00 00 00 00 13 [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 63 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8F [11:06:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:06:37]wFMCommunicate OK [11:06:37]SAM_PROTO_GetShiftState done [11:06:37]FM_GetShiftState done [11:06:37]req_shift_opened done [11:06:37]requested_item shift.open_date is exist - process it [11:06:37]req_shift_open_date [11:06:37]req_shift_open_date done [11:06:37]produce_requested_data done [11:06:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30573,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:06:37]process_action_free close_receipt [11:06:37]json_value_free [11:06:37]json_value_free done [11:06:37]process_json_proto returns [11:06:37]Send response to host [11:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30573,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:06:37]free response buf [11:06:37]execute_script done [11:06:37]execute_script returns [11:06:37]free content buf [11:06:37]Sock 7.Close socket [11:06:37]Sock 7.Thread stoped [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:15]accept exits with 9 [11:08:15]New connection [11:08:15]New thread 3067346276 created [11:08:15]Thread 3067489636 joined [11:08:15]Waiting for new connection... [11:08:15] Sock 9.Parse request [11:08:15]Sock 9.Check first char [11:08:15]Sock 9.First char is OK [11:08:15]request: POST /json_proto HTTP/1.0 [11:08:15]Method: POST [11:08:15]URL: /json_proto [11:08:15]Method is POST - this is cgi request [11:08:15]url: /json_proto [11:08:15]query_string will be loaded in cgi processing [11:08:15]execute_cgi json_proto POST (null) [11:08:15]execute_cgi path=json_proto method=POST [11:08:15]POST find Content-Length [11:08:15]Host: 172.17.51.3:8080 [11:08:15]Content-Length: 840 [11:08:15]Content-Type: application/json [11:08:15] [11:08:15]POST finish read [11:08:15]Found Content-Length = 840 [11:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:15]execute_script... [11:08:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:15]POST & json_proto [11:08:15]process_json_proto [11:08:15]json parsed OK: [11:08:15]protocol is kg_v1.0 [11:08:15]action value=close_receipt [11:08:15]process_action close_receipt [11:08:15]cmd_close_receipt [11:08:15]MH_GetDate [11:08:15]Write to MH i2c: F0 00 00 64 33 86 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: F0 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: F0 09 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: F0 09 00 64 33 00 24 36 16 67 04 C1 95 66 26 [11:08:15]GetLastDocTimeStamp 1729508798 [11:08:15]current date 1729508900 [11:08:15]FM_GetShiftState [11:08:15]SAM_PROTO_GetShiftState [11:08:15]wFMCommunicate request_size=4 [11:08:15]MH_SAM_APDU [11:08:15]CAPDU: 80 13 01 00 [11:08:15]Write to MH i2c: E2 08 00 65 33 80 13 01 00 00 00 00 00 15 [11:08:15]Write i2c OK [11:08:15]MH_I2C_Read... [11:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:15]Read from MH i2c: E2 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0E 00 [11:08:15]MH_I2C_Read... [11:08:15]Read from MH i2c: E2 0E 00 65 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 91 [11:08:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:08:15]wFMCommunicate OK [11:08:15]SAM_PROTO_GetShiftState done [11:08:15]FM_GetShiftState done [11:08:15]opened in 1729471058 [11:08:15]opened+sec_in_day 1729557458 [11:08:15]quantity*price = 100050 [11:08:15]sum+1 = 100052 [11:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 71 21.10.2024 11:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30574 ФПД: 184397768356241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110820&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30574&fm=184397768356241&tin=02508201610067®Number=0000000000186857&sum=100051 [11:08:16]StoreToDocumentArchive [11:08:16]shift 115 fd 30574 [11:08:16]save to /storage/0115/doc_00030574 [11:08:16]save last doc name /storage/0115/doc_00030574 to /storage/kkm_last_doc_name [11:08:16]save OK [11:08:16]Clear old archive folders... [11:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:08:16]tlvbuf is 01E1C950 [11:08:16]SAM_PROTO_ClearQueue [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 09 00 00 [11:08:16]Write to MH i2c: E2 08 00 72 33 80 09 00 00 00 00 00 00 17 [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 03 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 03 00 72 33 00 90 00 19 [11:08:16]RAPDU: 90 00 [11:08:16]wFMCommunicate OK [11:08:16]SAM_PROTO_ClearQueue done [11:08:16]KKMCreateOFDPacket [11:08:16]OFDProtocolAddRootSTLVToBuf [11:08:16]FM_MakeSignedData [11:08:16]FM_MakeSignedData [11:08:16]SAM_PROTO_SignData [11:08:16]wFMCommunicate request_size=4 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 0D 01 02 [11:08:16]Write to MH i2c: E2 08 00 73 33 80 0D 01 02 00 00 00 00 1F [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:16]Read from MH i2c: E2 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 03 00 [11:08:16]MH_I2C_Read... [11:08:16]Read from MH i2c: E2 03 00 73 33 00 90 00 1A [11:08:16]RAPDU: 90 00 [11:08:16]wFMCommunicate OK [11:08:16]wFMCommunicate request_size=255 [11:08:16]MH_SAM_APDU [11:08:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 24 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 77 00 00 35 04 06 00 A7 B5 73 7A [11:08:16]Write to MH i2c: E2 02 01 74 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 24 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 77 00 00 35 04 06 00 A7 B5 73 7A 00 00 CB [11:08:16]Write i2c OK [11:08:16]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 74 33 00 90 00 1B [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]wFMCommunicate request_size=7 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 02 02 02 F1 91 [11:08:17]Write to MH i2c: E2 0A 00 75 33 80 0D 02 02 02 00 F1 91 00 00 A8 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 03 00 75 33 00 90 00 1C [11:08:17]RAPDU: 90 00 [11:08:17]wFMCommunicate OK [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 0D 03 02 [11:08:17]Write to MH i2c: E2 08 00 76 33 80 0D 03 02 00 00 00 00 24 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 0B 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 0B 00 76 33 00 9A 3C BA 1A 88 1F 1D 92 90 00 25 [11:08:17]RAPDU: 9A 3C BA 1A 88 1F 1D 92 90 00 [11:08:17]wFMCommunicate OK [11:08:17]SAM_PROTO_SignData done [11:08:17]FM_MakeSignedData done [11:08:17]CreateOFDProtocolMessage [11:08:17]wFMCommunicate request_size=4 [11:08:17]MH_SAM_APDU [11:08:17]CAPDU: 80 11 00 00 [11:08:17]Write to MH i2c: E2 08 00 77 33 80 11 00 00 00 00 00 00 24 [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:17]Read from MH i2c: E2 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 17 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: E2 17 00 77 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [11:08:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:17]wFMCommunicate OK [11:08:17]CreateOFDProtocolMessage done [11:08:17]OFDSenderStorePacket 30574 [11:08:17]StoreOFDPacket docnum=30574 [11:08:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 72 DD 04 01 1F 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 24 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 77 00 00 35 04 06 00 A7 B5 73 7A F1 91 9A 3C BA 1A 88 1F 1D 92 [11:08:17]CheckFolder [11:08:17]dirname=/storage/ofd_packets [11:08:17]CheckFolder done [11:08:17]ProducePacketName [11:08:17]name=ofd_packets/00030574 [11:08:17]NVStorageSaveData ofd_packets/00030574 [11:08:17]File name is /storage/ofd_packets/00030574 [11:08:17]Write 298 bytes [11:08:17]NVStorageSaveData done [11:08:17]OFDSenderStorePacket done [11:08:17]KKMCreateOFDPacket done [11:08:17]NVStorageSaveData kkm_last_timestamp [11:08:17]File name is /storage/kkm_last_timestamp [11:08:17]Write 4 bytes [11:08:17]NVStorageSaveData done [11:08:17]ExternCall_PrintAddStr [11:08:17]wPrintStart [11:08:17]Write to MH i2c: 01 00 00 78 33 AB [11:08:17]Write i2c OK [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 07 00 [11:08:17]MH_I2C_Read... [11:08:17]Read from MH i2c: 01 07 00 78 33 00 00 00 00 00 FF 0F C0 [11:08:17]RasterBufferAndPrint [11:08:17]line Счет N : (1)342981 [11:08:17]line ИНН: 02508201610067 [11:08:17]line Контрольно-Кассовый Чек [11:08:17]line ПРОДАЖА [11:08:17]line ТРК (МРК, ГНК) : 34 [11:08:17]line Товар: 2710194210 [11:08:17]line ДТ-К-2 [11:08:17]line 13.130 * 76.20 [11:08:17]line = 1000.51 [11:08:17]line НДС 12% НСП 1% [11:08:17]line > о реализуемом товаре [11:08:17]line ИТОГО: 1000.51 [11:08:17]line НСП 1% : 8.85 [11:08:17]line НДС 12% : 106.25 [11:08:17]line Наличными: 0.00 [11:08:17]line Безнал.: 1000.51 [11:08:17]line Место: АЗС № 78 "Партнер Нефть" [11:08:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:08:17]line СНО: Общий режим [11:08:17]line Чек 71 21.10.2024 11:08 [11:08:17]line Смена: 115 ФФД: 1.0 [11:08:17]line ЗНМ: 0300000137 [11:08:17]line РНМ: 0000000000186857 [11:08:17]line Версия ККМ: v1.0 [11:08:17]line Платежная система: АКБ Кыргызстан [11:08:17]line ФМ: 0000000002094219 [11:08:17]line ФД: 30574 [11:08:17]line ФПД: 184397768356241 [11:08:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110820&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30574&fm=184397768356241&tin=02508201610067®Number=0000000000186857&sum=100051 [11:08:17]OFD Sender: Processing packet 30574 [packets to send 10, broken 9] [11:08:17]ProducePacketName [11:08:17]name=ofd_packets/00030574 [11:08:17]OFD Sender: To server: pG, [11:08:17]CommunicateWithHost lk.salyk.kg:30040 [11:08:17]ConnectInit lk.salyk.kg [11:08:17]written 0, free lines is 4095 [11:08:17]Connected sock=10 [11:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 72 DD 04 01 1F 6B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 24 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 77 00 00 35 04 06 00 A7 B5 73 7A F1 91 9A 3C BA 1A 88 1F 1D 92 [11:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5D 9D 47 00 8A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6E 77 00 00 F4 03 04 00 A4 E0 15 67 B6 04 01 00 00 61 31 40 0A 32 49 C3 87 [11:08:17]CommunicateWithHost err = 0 [11:08:17]CheckOFDResponse [11:08:17]1017 (14) - 77093643461234 [11:08:17]1041 (16) - 0000000002094219 [11:08:17]1040 (4) - 30574 [11:08:17]1012 (4) - 21.10.2024 05:03 [11:08:17]1206 (1) - 0 [11:08:17]OFD Sender: Remove packet 30574 [11:08:17]ProducePacketName [11:08:17]name=ofd_packets/00030574 [11:08:17]NVStorageDeleteData [11:08:18]Write to MH i2c: 01 00 00 A2 33 D5 [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: 01 07 00 A2 33 00 00 00 00 00 FB 0C E3 [11:08:18]RasterBufferAndPrint [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]line [11:08:18]written 0, free lines is 3330 [11:08:18]MH_Cut [11:08:18]Write to MH i2c: D1 01 00 A9 33 01 AE [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 [11:08:18]MH_I2C_Read... [11:08:18]Read from MH i2c: D1 01 00 A9 33 00 AD [11:08:18]Write to MH i2c: 01 00 00 AA 33 DD [11:08:18]Write i2c OK [11:08:18]MH_I2C_Read... [11:08:18]OFD Sender: No OFD packet to send [11:08:18]*** Cut start [11:08:18]*** Partial cut [11:08:18]*** CUTSNS_PIN = 1 [11:08:18]*** CUTSNS_PIN = 0 [11:08:19]*** Brake cut motor [11:08:19]Read from MH i2c: 01 [11:08:19]MH_I2C_Read... [11:08:19]*** Stop cut motor [11:08:19]*** Cut end [11:08:19]Read from MH i2c: 01 07 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: 01 07 00 AA 33 00 00 00 00 00 FF 0F F2 [11:08:19]process_action close_receipt done [11:08:19]requested_data is exist [11:08:19]produce_requested_data [11:08:19]requested_item fm.sn is exist - process it [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 11 00 00 [11:08:19]Write to MH i2c: E2 08 00 AB 33 80 11 00 00 00 00 00 00 58 [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 17 00 AB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [11:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:08:19]wFMCommunicate OK [11:08:19]requested_item fd.num is exist - process it [11:08:19]SAM_PROTO_GetFieldsCounters [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 13 00 00 [11:08:19]Write to MH i2c: E2 08 00 AC 33 80 13 00 00 00 00 00 00 5B [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 62 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 62 00 AC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 77 00 00 0E 04 04 00 73 00 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 AE [11:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:19]wFMCommunicate OK [11:08:19]SAM_PROTO_GetFieldsCounters done [11:08:19]requested_item shift.num is exist - process it [11:08:19]requested_item shift.opened is exist - process it [11:08:19]req_shift_opened [11:08:19]FM_GetShiftState [11:08:19]SAM_PROTO_GetShiftState [11:08:19]wFMCommunicate request_size=4 [11:08:19]MH_SAM_APDU [11:08:19]CAPDU: 80 13 01 00 [11:08:19]Write to MH i2c: E2 08 00 AD 33 80 13 01 00 00 00 00 00 5D [11:08:19]Write i2c OK [11:08:19]MH_I2C_Read... [11:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:19]Read from MH i2c: E2 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 0E 00 [11:08:19]MH_I2C_Read... [11:08:19]Read from MH i2c: E2 0E 00 AD 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D9 [11:08:19]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:08:19]wFMCommunicate OK [11:08:19]SAM_PROTO_GetShiftState done [11:08:19]FM_GetShiftState done [11:08:19]req_shift_opened done [11:08:19]requested_item shift.open_date is exist - process it [11:08:19]req_shift_open_date [11:08:19]req_shift_open_date done [11:08:19]produce_requested_data done [11:08:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30574,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:08:19]process_action_free close_receipt [11:08:19]json_value_free [11:08:19]json_value_free done [11:08:19]process_json_proto returns [11:08:19]Send response to host [11:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30574,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:08:19]free response buf [11:08:19]execute_script done [11:08:19]execute_script returns [11:08:19]free content buf [11:08:19]Sock 9.Close socket [11:08:19]Sock 9.Thread stoped [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:17]accept exits with 7 [11:09:17]New connection [11:09:17]New thread 3067489636 created [11:09:17]Thread 3067346276 joined [11:09:17]Waiting for new connection... [11:09:17] Sock 7.Parse request [11:09:17]Sock 7.Check first char [11:09:17]Sock 7.First char is OK [11:09:17]request: POST /json_proto HTTP/1.0 [11:09:17]Method: POST [11:09:17]URL: /json_proto [11:09:17]Method is POST - this is cgi request [11:09:17]url: /json_proto [11:09:17]query_string will be loaded in cgi processing [11:09:17]execute_cgi json_proto POST (null) [11:09:17]execute_cgi path=json_proto method=POST [11:09:17]POST find Content-Length [11:09:17]Host: 172.17.51.3:8080 [11:09:17]Content-Length: 679 [11:09:17]Content-Type: application/json [11:09:17] [11:09:17]POST finish read [11:09:17]Found Content-Length = 679 [11:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:17]execute_script... [11:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:17]POST & json_proto [11:09:17]process_json_proto [11:09:17]json parsed OK: [11:09:17]protocol is kg_v1.0 [11:09:17]action value=close_receipt [11:09:17]process_action close_receipt [11:09:17]cmd_close_receipt [11:09:17]MH_GetDate [11:09:17]Write to MH i2c: F0 00 00 AE 33 D0 [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 09 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: F0 09 00 AE 33 00 62 36 16 67 04 C1 95 66 AE [11:09:17]GetLastDocTimeStamp 1729508900 [11:09:17]current date 1729508962 [11:09:17]FM_GetShiftState [11:09:17]SAM_PROTO_GetShiftState [11:09:17]wFMCommunicate request_size=4 [11:09:17]MH_SAM_APDU [11:09:17]CAPDU: 80 13 01 00 [11:09:17]Write to MH i2c: E2 08 00 AF 33 80 13 01 00 00 00 00 00 5F [11:09:17]Write i2c OK [11:09:17]MH_I2C_Read... [11:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:17]Read from MH i2c: E2 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 [11:09:17]MH_I2C_Read... [11:09:17]Read from MH i2c: E2 0E 00 AF 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DB [11:09:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:09:17]wFMCommunicate OK [11:09:17]SAM_PROTO_GetShiftState done [11:09:17]FM_GetShiftState done [11:09:17]opened in 1729471058 [11:09:17]opened+sec_in_day 1729557458 [11:09:17]quantity*price = 100050 [11:09:17]sum+1 = 100052 [11:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 72 21.10.2024 11:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30575 ФПД: 183839118608618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110922&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30575&fm=183839118608618&tin=02508201610067®Number=0000000000186857&sum=100000 [11:09:19]StoreToDocumentArchive [11:09:19]shift 115 fd 30575 [11:09:19]save to /storage/0115/doc_00030575 [11:09:19]save last doc name /storage/0115/doc_00030575 to /storage/kkm_last_doc_name [11:09:19]save OK [11:09:19]Clear old archive folders... [11:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:09:19]tlvbuf is 01DAF8C0 [11:09:19]SAM_PROTO_ClearQueue [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 09 00 00 [11:09:19]Write to MH i2c: E2 08 00 BC 33 80 09 00 00 00 00 00 00 61 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]SAM_PROTO_ClearQueue done [11:09:19]KKMCreateOFDPacket [11:09:19]OFDProtocolAddRootSTLVToBuf [11:09:19]FM_MakeSignedData [11:09:19]FM_MakeSignedData [11:09:19]SAM_PROTO_SignData [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 01 02 [11:09:19]Write to MH i2c: E2 08 00 BD 33 80 0D 01 02 00 00 00 00 69 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 BD 33 00 90 00 64 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]wFMCommunicate request_size=255 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 77 00 00 35 04 06 00 A7 33 61 5C [11:09:19]Write to MH i2c: E2 02 01 BE 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 77 00 00 35 04 06 00 A7 33 61 5C 00 00 3D [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 BE 33 00 90 00 65 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]wFMCommunicate request_size=7 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 02 02 02 48 EA [11:09:19]Write to MH i2c: E2 0A 00 BF 33 80 0D 02 02 02 00 48 EA 00 00 A2 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 03 00 BF 33 00 90 00 66 [11:09:19]RAPDU: 90 00 [11:09:19]wFMCommunicate OK [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 0D 03 02 [11:09:19]Write to MH i2c: E2 08 00 C0 33 80 0D 03 02 00 00 00 00 6E [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 0B 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 0B 00 C0 33 00 9E 9D 51 B1 64 49 5C 61 90 00 16 [11:09:19]RAPDU: 9E 9D 51 B1 64 49 5C 61 90 00 [11:09:19]wFMCommunicate OK [11:09:19]SAM_PROTO_SignData done [11:09:19]FM_MakeSignedData done [11:09:19]CreateOFDProtocolMessage [11:09:19]wFMCommunicate request_size=4 [11:09:19]MH_SAM_APDU [11:09:19]CAPDU: 80 11 00 00 [11:09:19]Write to MH i2c: E2 08 00 C1 33 80 11 00 00 00 00 00 00 6E [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:19]Read from MH i2c: E2 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: E2 17 00 C1 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [11:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:19]wFMCommunicate OK [11:09:19]CreateOFDProtocolMessage done [11:09:19]OFDSenderStorePacket 30575 [11:09:19]StoreOFDPacket docnum=30575 [11:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 46 25 04 01 53 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 77 00 00 35 04 06 00 A7 33 61 5C 48 EA 9E 9D 51 B1 64 49 5C 61 [11:09:19]CheckFolder [11:09:19]dirname=/storage/ofd_packets [11:09:19]CheckFolder done [11:09:19]ProducePacketName [11:09:19]name=ofd_packets/00030575 [11:09:19]NVStorageSaveData ofd_packets/00030575 [11:09:19]File name is /storage/ofd_packets/00030575 [11:09:19]Write 298 bytes [11:09:19]NVStorageSaveData done [11:09:19]OFDSenderStorePacket done [11:09:19]KKMCreateOFDPacket done [11:09:19]NVStorageSaveData kkm_last_timestamp [11:09:19]File name is /storage/kkm_last_timestamp [11:09:19]Write 4 bytes [11:09:19]NVStorageSaveData done [11:09:19]ExternCall_PrintAddStr [11:09:19]wPrintStart [11:09:19]Write to MH i2c: 01 00 00 C2 33 F5 [11:09:19]Write i2c OK [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 07 00 [11:09:19]MH_I2C_Read... [11:09:19]Read from MH i2c: 01 07 00 C2 33 00 00 00 00 00 FF 0F 0A [11:09:19]RasterBufferAndPrint [11:09:19]line Счет N : (1)342982 [11:09:19]line ИНН: 02508201610067 [11:09:19]line Контрольно-Кассовый Чек [11:09:19]line ПРОДАЖА [11:09:19]line ТРК (МРК, ГНК) : 54 [11:09:19]line Товар: 2710194210 [11:09:19]line ДТ-К-2 [11:09:19]line 13.130 * 76.20 [11:09:19]line = 1000.51 [11:09:19]line НДС 12% НСП 1% [11:09:19]line > о реализуемом товаре [11:09:19]line ОКРУГЛЕНИЕ: -0.51 [11:09:19]line ИТОГО: 1000.00 [11:09:19]line Внесено: 1000.00 [11:09:19]line СДАЧА: 0.00 [11:09:19]line НСП 1% : 8.85 [11:09:19]line НДС 12% : 106.25 [11:09:19]line Наличными: 1000.00 [11:09:19]line Безнал.: 0.00 [11:09:19]line Место: АЗС № 78 "Партнер Нефть" [11:09:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:09:19]line СНО: Общий режим [11:09:19]line Чек 72 21.10.2024 11:09 [11:09:19]line Смена: 115 ФФД: 1.0 [11:09:19]line ЗНМ: 0300000137 [11:09:19]line РНМ: 0000000000186857 [11:09:19]line Версия ККМ: v1.0 [11:09:19]line ФМ: 0000000002094219 [11:09:19]line ФД: 30575 [11:09:19]line ФПД: 183839118608618 [11:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110922&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30575&fm=183839118608618&tin=02508201610067®Number=0000000000186857&sum=100000 [11:09:19]OFD Sender: Processing packet 30575 [packets to send 10, broken 9] [11:09:19]ProducePacketName [11:09:19]name=ofd_packets/00030575 [11:09:19]OFD Sender: To server: pG, [11:09:19]CommunicateWithHost lk.salyk.kg:30040 [11:09:19]ConnectInit lk.salyk.kg [11:09:19]written 0, free lines is 4095 [11:09:19]Connected sock=10 [11:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 46 25 04 01 53 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 62 36 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 77 00 00 35 04 06 00 A7 33 61 5C 48 EA 9E 9D 51 B1 64 49 5C 61 [11:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EE 3C 47 00 41 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 6F 77 00 00 F4 03 04 00 E3 E0 15 67 B6 04 01 00 00 73 2D A5 21 37 59 02 A3 [11:09:20]CommunicateWithHost err = 0 [11:09:20]CheckOFDResponse [11:09:20]1017 (14) - 77093643461234 [11:09:20]1041 (16) - 0000000002094219 [11:09:20]1040 (4) - 30575 [11:09:20]1012 (4) - 21.10.2024 05:04 [11:09:20]1206 (1) - 0 [11:09:20]OFD Sender: Remove packet 30575 [11:09:20]ProducePacketName [11:09:20]name=ofd_packets/00030575 [11:09:20]NVStorageDeleteData [11:09:20]Write to MH i2c: 01 00 00 ED 33 20 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 07 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: 01 07 00 ED 33 00 00 00 00 00 EC 0C 1F [11:09:20]RasterBufferAndPrint [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]line [11:09:20]written 0, free lines is 3314 [11:09:20]MH_Cut [11:09:20]Write to MH i2c: D1 01 00 F4 33 01 F9 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 01 00 [11:09:20]MH_I2C_Read... [11:09:20]Read from MH i2c: D1 01 00 F4 33 00 F8 [11:09:20]Write to MH i2c: 01 00 00 F5 33 28 [11:09:20]Write i2c OK [11:09:20]MH_I2C_Read... [11:09:20]OFD Sender: No OFD packet to send [11:09:21]*** Cut start [11:09:21]*** Partial cut [11:09:21]*** CUTSNS_PIN = 1 [11:09:21]*** CUTSNS_PIN = 0 [11:09:21]*** Brake cut motor [11:09:21]Read from MH i2c: 01 [11:09:21]MH_I2C_Read... [11:09:21]*** Stop cut motor [11:09:21]*** Cut end [11:09:21]Read from MH i2c: 01 07 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: 01 07 00 F5 33 00 00 00 00 00 FF 0F 3D [11:09:21]process_action close_receipt done [11:09:21]requested_data is exist [11:09:21]produce_requested_data [11:09:21]requested_item fm.sn is exist - process it [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 11 00 00 [11:09:21]Write to MH i2c: E2 08 00 F6 33 80 11 00 00 00 00 00 00 A3 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 17 00 F6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [11:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:09:21]wFMCommunicate OK [11:09:21]requested_item fd.num is exist - process it [11:09:21]SAM_PROTO_GetFieldsCounters [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 00 00 [11:09:21]Write to MH i2c: E2 08 00 F7 33 80 13 00 00 00 00 00 00 A6 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 62 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 62 00 F7 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 77 00 00 0E 04 04 00 73 00 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 FD [11:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 6F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetFieldsCounters done [11:09:21]requested_item shift.num is exist - process it [11:09:21]requested_item shift.opened is exist - process it [11:09:21]req_shift_opened [11:09:21]FM_GetShiftState [11:09:21]SAM_PROTO_GetShiftState [11:09:21]wFMCommunicate request_size=4 [11:09:21]MH_SAM_APDU [11:09:21]CAPDU: 80 13 01 00 [11:09:21]Write to MH i2c: E2 08 00 F8 33 80 13 01 00 00 00 00 00 A8 [11:09:21]Write i2c OK [11:09:21]MH_I2C_Read... [11:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:21]Read from MH i2c: E2 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 [11:09:21]MH_I2C_Read... [11:09:21]Read from MH i2c: E2 0E 00 F8 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 24 [11:09:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:09:21]wFMCommunicate OK [11:09:21]SAM_PROTO_GetShiftState done [11:09:21]FM_GetShiftState done [11:09:21]req_shift_opened done [11:09:21]requested_item shift.open_date is exist - process it [11:09:21]req_shift_open_date [11:09:21]req_shift_open_date done [11:09:21]produce_requested_data done [11:09:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30575,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:09:21]process_action_free close_receipt [11:09:21]json_value_free [11:09:21]json_value_free done [11:09:21]process_json_proto returns [11:09:21]Send response to host [11:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30575,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:09:21]free response buf [11:09:21]execute_script done [11:09:21]execute_script returns [11:09:21]free content buf [11:09:21]Sock 7.Close socket [11:09:21]Sock 7.Thread stoped [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]accept exits with 9 [11:15:00]New connection [11:15:00]New thread 3067346276 created [11:15:00]Thread 3067489636 joined [11:15:00]Waiting for new connection... [11:15:00] Sock 9.Parse request [11:15:00]Sock 9.Check first char [11:15:00]Sock 9.First char is OK [11:15:00]request: POST /json_proto HTTP/1.0 [11:15:00]Method: POST [11:15:00]URL: /json_proto [11:15:00]Method is POST - this is cgi request [11:15:00]url: /json_proto [11:15:00]query_string will be loaded in cgi processing [11:15:00]execute_cgi json_proto POST (null) [11:15:00]execute_cgi path=json_proto method=POST [11:15:00]POST find Content-Length [11:15:00]Host: 172.17.51.3:8080 [11:15:00]Content-Length: 682 [11:15:00]Content-Type: application/json [11:15:00] [11:15:00]POST finish read [11:15:00]Found Content-Length = 682 [11:15:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]execute_script... [11:15:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:00]POST & json_proto [11:15:00]process_json_proto [11:15:00]json parsed OK: [11:15:00]protocol is kg_v1.0 [11:15:00]action value=close_receipt [11:15:00]process_action close_receipt [11:15:00]cmd_close_receipt [11:15:00]MH_GetDate [11:15:00]Write to MH i2c: F0 00 00 F9 33 1B [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: F0 09 00 F9 33 00 B8 37 16 67 04 C1 95 66 50 [11:15:00]GetLastDocTimeStamp 1729508962 [11:15:00]current date 1729509304 [11:15:00]FM_GetShiftState [11:15:00]SAM_PROTO_GetShiftState [11:15:00]wFMCommunicate request_size=4 [11:15:00]MH_SAM_APDU [11:15:00]CAPDU: 80 13 01 00 [11:15:00]Write to MH i2c: E2 08 00 FA 33 80 13 01 00 00 00 00 00 AA [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:00]Read from MH i2c: E2 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: E2 0E 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: E2 0E 00 FA 33 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 26 [11:15:00]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:15:00]wFMCommunicate OK [11:15:00]SAM_PROTO_GetShiftState done [11:15:00]FM_GetShiftState done [11:15:00]opened in 1729471058 [11:15:00]opened+sec_in_day 1729557458 [11:15:00]quantity*price = 300046 [11:15:00]sum+1 = 300048 [11:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 73 21.10.2024 11:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30576 ФПД: 84520109312347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111505&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30576&fm=84520109312347&tin=02508201610067®Number=0000000000186857&sum=300000 [11:15:01]StoreToDocumentArchive [11:15:01]shift 115 fd 30576 [11:15:01]save to /storage/0115/doc_00030576 [11:15:01]save last doc name /storage/0115/doc_00030576 to /storage/kkm_last_doc_name [11:15:01]save OK [11:15:01]Clear old archive folders... [11:15:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:01]tlvbuf is 01DAF8C0 [11:15:01]SAM_PROTO_ClearQueue [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 09 00 00 [11:15:01]Write to MH i2c: E2 08 00 07 34 80 09 00 00 00 00 00 00 AD [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 03 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 03 00 07 34 00 90 00 AF [11:15:01]RAPDU: 90 00 [11:15:01]wFMCommunicate OK [11:15:01]SAM_PROTO_ClearQueue done [11:15:01]KKMCreateOFDPacket [11:15:01]OFDProtocolAddRootSTLVToBuf [11:15:01]FM_MakeSignedData [11:15:01]FM_MakeSignedData [11:15:01]SAM_PROTO_SignData [11:15:01]wFMCommunicate request_size=4 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 0D 01 02 [11:15:01]Write to MH i2c: E2 08 00 08 34 80 0D 01 02 00 00 00 00 B5 [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:01]Read from MH i2c: E2 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 03 00 [11:15:01]MH_I2C_Read... [11:15:01]Read from MH i2c: E2 03 00 08 34 00 90 00 B0 [11:15:01]RAPDU: 90 00 [11:15:01]wFMCommunicate OK [11:15:01]wFMCommunicate request_size=255 [11:15:01]MH_SAM_APDU [11:15:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B9 37 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 77 00 00 35 04 06 00 4C [11:15:01]Write to MH i2c: E2 02 01 09 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B9 37 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 77 00 00 35 04 06 00 4C 00 00 2B [11:15:01]Write i2c OK [11:15:01]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 09 34 00 90 00 B1 [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=10 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 02 02 05 DE DF 17 89 5B [11:15:02]Write to MH i2c: E2 0D 00 0A 34 80 0D 02 02 05 00 DE DF 17 89 5B 00 00 7A [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 03 00 0A 34 00 90 00 B2 [11:15:02]RAPDU: 90 00 [11:15:02]wFMCommunicate OK [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 0D 03 02 [11:15:02]Write to MH i2c: E2 08 00 0B 34 80 0D 03 02 00 00 00 00 BA [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 0B 00 0B 34 00 B8 E4 81 AC 59 DE 26 5F 90 00 40 [11:15:02]RAPDU: B8 E4 81 AC 59 DE 26 5F 90 00 [11:15:02]wFMCommunicate OK [11:15:02]SAM_PROTO_SignData done [11:15:02]FM_MakeSignedData done [11:15:02]CreateOFDProtocolMessage [11:15:02]wFMCommunicate request_size=4 [11:15:02]MH_SAM_APDU [11:15:02]CAPDU: 80 11 00 00 [11:15:02]Write to MH i2c: E2 08 00 0C 34 80 11 00 00 00 00 00 00 BA [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:02]Read from MH i2c: E2 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: E2 17 00 0C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [11:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:15:02]wFMCommunicate OK [11:15:02]CreateOFDProtocolMessage done [11:15:02]OFDSenderStorePacket 30576 [11:15:02]StoreOFDPacket docnum=30576 [11:15:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E DF 07 01 F3 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B9 37 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 77 00 00 35 04 06 00 4C DE DF 17 89 5B B8 E4 81 AC 59 DE 26 5F [11:15:02]CheckFolder [11:15:02]dirname=/storage/ofd_packets [11:15:02]CheckFolder done [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00030576 [11:15:02]NVStorageSaveData ofd_packets/00030576 [11:15:02]File name is /storage/ofd_packets/00030576 [11:15:02]Write 301 bytes [11:15:02]NVStorageSaveData done [11:15:02]OFDSenderStorePacket done [11:15:02]KKMCreateOFDPacket done [11:15:02]NVStorageSaveData kkm_last_timestamp [11:15:02]File name is /storage/kkm_last_timestamp [11:15:02]Write 4 bytes [11:15:02]NVStorageSaveData done [11:15:02]ExternCall_PrintAddStr [11:15:02]wPrintStart [11:15:02]Write to MH i2c: 01 00 00 0D 34 41 [11:15:02]Write i2c OK [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 [11:15:02]MH_I2C_Read... [11:15:02]Read from MH i2c: 01 07 00 0D 34 00 00 00 00 00 FF 0F 56 [11:15:02]RasterBufferAndPrint [11:15:02]line Счет N : (1)342983 [11:15:02]line ИНН: 02508201610067 [11:15:02]line Контрольно-Кассовый Чек [11:15:02]line ПРОДАЖА [11:15:02]line ТРК (МРК, ГНК) : 43 [11:15:02]line Товар: 2710124130 [11:15:02]line Аи-92-К-2 [11:15:02]line 44.850 * 66.90 [11:15:02]line = 3000.47 [11:15:02]line НДС 12% НСП 1% [11:15:02]line > о реализуемом товаре [11:15:02]line ОКРУГЛЕНИЕ: -0.47 [11:15:02]line ИТОГО: 3000.00 [11:15:02]line Внесено: 3000.00 [11:15:02]line СДАЧА: 0.00 [11:15:02]line НСП 1% : 26.55 [11:15:02]line НДС 12% : 318.63 [11:15:02]line Наличными: 3000.00 [11:15:02]line Безнал.: 0.00 [11:15:02]line Место: АЗС № 78 "Партнер Нефть" [11:15:02]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:15:02]line СНО: Общий режим [11:15:02]line Чек 73 21.10.2024 11:15 [11:15:02]line Смена: 115 ФФД: 1.0 [11:15:02]line ЗНМ: 0300000137 [11:15:02]line РНМ: 0000000000186857 [11:15:02]line Версия ККМ: v1.0 [11:15:02]line ФМ: 0000000002094219 [11:15:02]line ФД: 30576 [11:15:02]line ФПД: 84520109312347 [11:15:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111505&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30576&fm=84520109312347&tin=02508201610067®Number=0000000000186857&sum=300000 [11:15:02]OFD Sender: Processing packet 30576 [packets to send 10, broken 9] [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00030576 [11:15:02]OFD Sender: To server: pG, [11:15:02]CommunicateWithHost lk.salyk.kg:30040 [11:15:02]ConnectInit lk.salyk.kg [11:15:02]written 0, free lines is 4095 [11:15:02]Connected sock=10 [11:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3E DF 07 01 F3 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 B9 37 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 77 00 00 35 04 06 00 4C DE DF 17 89 5B B8 E4 81 AC 59 DE 26 5F [11:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 84 E4 47 00 E5 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 70 77 00 00 F4 03 04 00 39 E2 15 67 B6 04 01 00 00 C1 86 CB 5A 26 3E 53 C5 [11:15:02]CommunicateWithHost err = 0 [11:15:02]CheckOFDResponse [11:15:02]1017 (14) - 77093643461234 [11:15:02]1041 (16) - 0000000002094219 [11:15:02]1040 (4) - 30576 [11:15:02]1012 (4) - 21.10.2024 05:10 [11:15:02]1206 (1) - 0 [11:15:02]OFD Sender: Remove packet 30576 [11:15:02]ProducePacketName [11:15:02]name=ofd_packets/00030576 [11:15:02]NVStorageDeleteData [11:15:03]Write to MH i2c: 01 00 00 38 34 6C [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: 01 07 00 38 34 00 00 00 00 00 F5 0C 74 [11:15:03]RasterBufferAndPrint [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]line [11:15:03]written 0, free lines is 3323 [11:15:03]MH_Cut [11:15:03]Write to MH i2c: D1 01 00 3F 34 01 45 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 01 00 [11:15:03]MH_I2C_Read... [11:15:03]Read from MH i2c: D1 01 00 3F 34 00 44 [11:15:03]Write to MH i2c: 01 00 00 40 34 74 [11:15:03]Write i2c OK [11:15:03]MH_I2C_Read... [11:15:03]OFD Sender: No OFD packet to send [11:15:03]*** Cut start [11:15:03]*** Partial cut [11:15:03]*** CUTSNS_PIN = 1 [11:15:03]*** CUTSNS_PIN = 0 [11:15:03]*** Brake cut motor [11:15:04]Read from MH i2c: 01 [11:15:04]MH_I2C_Read... [11:15:04]*** Stop cut motor [11:15:04]*** Cut end [11:15:04]Read from MH i2c: 01 07 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: 01 07 00 40 34 00 00 00 00 00 FF 0F 89 [11:15:04]process_action close_receipt done [11:15:04]requested_data is exist [11:15:04]produce_requested_data [11:15:04]requested_item fm.sn is exist - process it [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 11 00 00 [11:15:04]Write to MH i2c: E2 08 00 41 34 80 11 00 00 00 00 00 00 EF [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 17 00 41 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [11:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:15:04]wFMCommunicate OK [11:15:04]requested_item fd.num is exist - process it [11:15:04]SAM_PROTO_GetFieldsCounters [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 13 00 00 [11:15:04]Write to MH i2c: E2 08 00 42 34 80 13 00 00 00 00 00 00 F2 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 62 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 62 00 42 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 77 00 00 0E 04 04 00 73 00 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 4D [11:15:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 70 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:04]wFMCommunicate OK [11:15:04]SAM_PROTO_GetFieldsCounters done [11:15:04]requested_item shift.num is exist - process it [11:15:04]requested_item shift.opened is exist - process it [11:15:04]req_shift_opened [11:15:04]FM_GetShiftState [11:15:04]SAM_PROTO_GetShiftState [11:15:04]wFMCommunicate request_size=4 [11:15:04]MH_SAM_APDU [11:15:04]CAPDU: 80 13 01 00 [11:15:04]Write to MH i2c: E2 08 00 43 34 80 13 01 00 00 00 00 00 F4 [11:15:04]Write i2c OK [11:15:04]MH_I2C_Read... [11:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:04]Read from MH i2c: E2 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 0E 00 [11:15:04]MH_I2C_Read... [11:15:04]Read from MH i2c: E2 0E 00 43 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 70 [11:15:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:15:04]wFMCommunicate OK [11:15:04]SAM_PROTO_GetShiftState done [11:15:04]FM_GetShiftState done [11:15:04]req_shift_opened done [11:15:04]requested_item shift.open_date is exist - process it [11:15:04]req_shift_open_date [11:15:04]req_shift_open_date done [11:15:04]produce_requested_data done [11:15:04]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30576,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:15:04]process_action_free close_receipt [11:15:04]json_value_free [11:15:04]json_value_free done [11:15:04]process_json_proto returns [11:15:04]Send response to host [11:15:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30576,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:15:04]free response buf [11:15:04]execute_script done [11:15:04]execute_script returns [11:15:04]free content buf [11:15:04]Sock 9.Close socket [11:15:04]Sock 9.Thread stoped [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]accept exits with 7 [11:16:38]New connection [11:16:38]New thread 3067489636 created [11:16:38]Thread 3067346276 joined [11:16:38]Waiting for new connection... [11:16:38] Sock 7.Parse request [11:16:38]Sock 7.Check first char [11:16:38]Sock 7.First char is OK [11:16:38]request: POST /json_proto HTTP/1.0 [11:16:38]Method: POST [11:16:38]URL: /json_proto [11:16:38]Method is POST - this is cgi request [11:16:38]url: /json_proto [11:16:38]query_string will be loaded in cgi processing [11:16:38]execute_cgi json_proto POST (null) [11:16:38]execute_cgi path=json_proto method=POST [11:16:38]POST find Content-Length [11:16:38]Host: 172.17.51.3:8080 [11:16:38]Content-Length: 679 [11:16:38]Content-Type: application/json [11:16:38] [11:16:38]POST finish read [11:16:38]Found Content-Length = 679 [11:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:38]execute_script... [11:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:38]POST & json_proto [11:16:38]process_json_proto [11:16:38]json parsed OK: [11:16:38]protocol is kg_v1.0 [11:16:38]action value=close_receipt [11:16:38]process_action close_receipt [11:16:38]cmd_close_receipt [11:16:38]MH_GetDate [11:16:38]Write to MH i2c: F0 00 00 44 34 67 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 09 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: F0 09 00 44 34 00 1A 38 16 67 04 C1 95 66 FF [11:16:38]GetLastDocTimeStamp 1729509305 [11:16:38]current date 1729509402 [11:16:38]FM_GetShiftState [11:16:38]SAM_PROTO_GetShiftState [11:16:38]wFMCommunicate request_size=4 [11:16:38]MH_SAM_APDU [11:16:38]CAPDU: 80 13 01 00 [11:16:38]Write to MH i2c: E2 08 00 45 34 80 13 01 00 00 00 00 00 F6 [11:16:38]Write i2c OK [11:16:38]MH_I2C_Read... [11:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:38]Read from MH i2c: E2 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0E 00 [11:16:38]MH_I2C_Read... [11:16:38]Read from MH i2c: E2 0E 00 45 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 72 [11:16:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:16:38]wFMCommunicate OK [11:16:38]SAM_PROTO_GetShiftState done [11:16:38]FM_GetShiftState done [11:16:38]opened in 1729471058 [11:16:38]opened+sec_in_day 1729557458 [11:16:38]quantity*price = 100050 [11:16:38]sum+1 = 100052 [11:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 74 21.10.2024 11:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30577 ФПД: 70117548346712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30577&fm=70117548346712&tin=02508201610067®Number=0000000000186857&sum=100000 [11:16:39]StoreToDocumentArchive [11:16:39]shift 115 fd 30577 [11:16:39]save to /storage/0115/doc_00030577 [11:16:39]save last doc name /storage/0115/doc_00030577 to /storage/kkm_last_doc_name [11:16:39]save OK [11:16:39]Clear old archive folders... [11:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:16:39]tlvbuf is 01DAF600 [11:16:39]SAM_PROTO_ClearQueue [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 09 00 00 [11:16:39]Write to MH i2c: E2 08 00 52 34 80 09 00 00 00 00 00 00 F8 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 52 34 00 90 00 FA [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]SAM_PROTO_ClearQueue done [11:16:39]KKMCreateOFDPacket [11:16:39]OFDProtocolAddRootSTLVToBuf [11:16:39]FM_MakeSignedData [11:16:39]FM_MakeSignedData [11:16:39]SAM_PROTO_SignData [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 0D 01 02 [11:16:39]Write to MH i2c: E2 08 00 53 34 80 0D 01 02 00 00 00 00 00 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 53 34 00 90 00 FB [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]wFMCommunicate request_size=255 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1A 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 77 00 00 35 04 06 00 3F C5 83 8F [11:16:39]Write to MH i2c: E2 02 01 54 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1A 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 77 00 00 35 04 06 00 3F C5 83 8F 00 00 11 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 54 34 00 90 00 FC [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]wFMCommunicate request_size=7 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 0D 02 02 02 CD 58 [11:16:39]Write to MH i2c: E2 0A 00 55 34 80 0D 02 02 02 00 CD 58 00 00 2C [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:39]Read from MH i2c: E2 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 [11:16:39]MH_I2C_Read... [11:16:39]Read from MH i2c: E2 03 00 55 34 00 90 00 FD [11:16:39]RAPDU: 90 00 [11:16:39]wFMCommunicate OK [11:16:39]wFMCommunicate request_size=4 [11:16:39]MH_SAM_APDU [11:16:39]CAPDU: 80 0D 03 02 [11:16:39]Write to MH i2c: E2 08 00 56 34 80 0D 03 02 00 00 00 00 05 [11:16:39]Write i2c OK [11:16:39]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0B 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 0B 00 56 34 00 53 83 E0 6F 65 C3 AE 59 90 00 5A [11:16:40]RAPDU: 53 83 E0 6F 65 C3 AE 59 90 00 [11:16:40]wFMCommunicate OK [11:16:40]SAM_PROTO_SignData done [11:16:40]FM_MakeSignedData done [11:16:40]CreateOFDProtocolMessage [11:16:40]wFMCommunicate request_size=4 [11:16:40]MH_SAM_APDU [11:16:40]CAPDU: 80 11 00 00 [11:16:40]Write to MH i2c: E2 08 00 57 34 80 11 00 00 00 00 00 00 05 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:40]Read from MH i2c: E2 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: E2 17 00 57 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [11:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:40]wFMCommunicate OK [11:16:40]CreateOFDProtocolMessage done [11:16:40]OFDSenderStorePacket 30577 [11:16:40]StoreOFDPacket docnum=30577 [11:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A9 E7 04 01 E1 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1A 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 77 00 00 35 04 06 00 3F C5 83 8F CD 58 53 83 E0 6F 65 C3 AE 59 [11:16:40]CheckFolder [11:16:40]dirname=/storage/ofd_packets [11:16:40]CheckFolder done [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00030577 [11:16:40]NVStorageSaveData ofd_packets/00030577 [11:16:40]File name is /storage/ofd_packets/00030577 [11:16:40]Write 298 bytes [11:16:40]NVStorageSaveData done [11:16:40]OFDSenderStorePacket done [11:16:40]KKMCreateOFDPacket done [11:16:40]NVStorageSaveData kkm_last_timestamp [11:16:40]File name is /storage/kkm_last_timestamp [11:16:40]Write 4 bytes [11:16:40]NVStorageSaveData done [11:16:40]ExternCall_PrintAddStr [11:16:40]wPrintStart [11:16:40]Write to MH i2c: 01 00 00 58 34 8C [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 58 34 00 00 00 00 00 FF 0F A1 [11:16:40]RasterBufferAndPrint [11:16:40]line Счет N : (1)342984 [11:16:40]line ИНН: 02508201610067 [11:16:40]line Контрольно-Кассовый Чек [11:16:40]line ПРОДАЖА [11:16:40]line ТРК (МРК, ГНК) : 64 [11:16:40]line Товар: 2710194210 [11:16:40]line ДТ-К-2 [11:16:40]line 13.130 * 76.20 [11:16:40]line = 1000.51 [11:16:40]line НДС 12% НСП 1% [11:16:40]line > о реализуемом товаре [11:16:40]line ОКРУГЛЕНИЕ: -0.51 [11:16:40]line ИТОГО: 1000.00 [11:16:40]line Внесено: 1000.00 [11:16:40]line СДАЧА: 0.00 [11:16:40]line НСП 1% : 8.85 [11:16:40]line НДС 12% : 106.25 [11:16:40]line Наличными: 1000.00 [11:16:40]line Безнал.: 0.00 [11:16:40]line Место: АЗС № 78 "Партнер Нефть" [11:16:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:16:40]line СНО: Общий режим [11:16:40]line Чек 74 21.10.2024 11:16 [11:16:40]line Смена: 115 ФФД: 1.0 [11:16:40]line ЗНМ: 0300000137 [11:16:40]line РНМ: 0000000000186857 [11:16:40]line Версия ККМ: v1.0 [11:16:40]line ФМ: 0000000002094219 [11:16:40]line ФД: 30577 [11:16:40]line ФПД: 70117548346712 [11:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111642&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30577&fm=70117548346712&tin=02508201610067®Number=0000000000186857&sum=100000 [11:16:40]OFD Sender: Processing packet 30577 [packets to send 10, broken 9] [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00030577 [11:16:40]OFD Sender: To server: pG, [11:16:40]CommunicateWithHost lk.salyk.kg:30040 [11:16:40]ConnectInit lk.salyk.kg [11:16:40]written 0, free lines is 4095 [11:16:40]Connected sock=10 [11:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 A9 E7 04 01 E1 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 1A 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 77 00 00 35 04 06 00 3F C5 83 8F CD 58 53 83 E0 6F 65 C3 AE 59 [11:16:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 45 04 47 00 05 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 71 77 00 00 F4 03 04 00 9B E2 15 67 B6 04 01 00 00 3A 79 9A 8A EC AB FB 07 [11:16:40]CommunicateWithHost err = 0 [11:16:40]CheckOFDResponse [11:16:40]1017 (14) - 77093643461234 [11:16:40]1041 (16) - 0000000002094219 [11:16:40]1040 (4) - 30577 [11:16:40]1012 (4) - 21.10.2024 05:11 [11:16:40]1206 (1) - 0 [11:16:40]OFD Sender: Remove packet 30577 [11:16:40]ProducePacketName [11:16:40]name=ofd_packets/00030577 [11:16:40]NVStorageDeleteData [11:16:40]Write to MH i2c: 01 00 00 83 34 B7 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: 01 07 00 83 34 00 00 00 00 00 F3 0C BD [11:16:40]RasterBufferAndPrint [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]line [11:16:40]written 0, free lines is 3321 [11:16:40]MH_Cut [11:16:40]Write to MH i2c: D1 01 00 8A 34 01 90 [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 01 00 [11:16:40]MH_I2C_Read... [11:16:40]Read from MH i2c: D1 01 00 8A 34 00 8F [11:16:40]Write to MH i2c: 01 00 00 8B 34 BF [11:16:40]Write i2c OK [11:16:40]MH_I2C_Read... [11:16:41]OFD Sender: No OFD packet to send [11:16:41]*** Cut start [11:16:41]*** Partial cut [11:16:41]*** CUTSNS_PIN = 1 [11:16:41]*** CUTSNS_PIN = 0 [11:16:41]*** Brake cut motor [11:16:42]Read from MH i2c: 01 [11:16:42]MH_I2C_Read... [11:16:42]*** Stop cut motor [11:16:42]*** Cut end [11:16:42]Read from MH i2c: 01 07 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 8B 34 00 00 00 00 00 FF 0F D4 [11:16:42]process_action close_receipt done [11:16:42]requested_data is exist [11:16:42]produce_requested_data [11:16:42]requested_item fm.sn is exist - process it [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 11 00 00 [11:16:42]Write to MH i2c: E2 08 00 8C 34 80 11 00 00 00 00 00 00 3A [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 17 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 17 00 8C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [11:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:16:42]wFMCommunicate OK [11:16:42]requested_item fd.num is exist - process it [11:16:42]SAM_PROTO_GetFieldsCounters [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 13 00 00 [11:16:42]Write to MH i2c: E2 08 00 8D 34 80 13 00 00 00 00 00 00 3D [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 62 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 62 00 8D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 77 00 00 0E 04 04 00 73 00 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 9C [11:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 71 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:42]wFMCommunicate OK [11:16:42]SAM_PROTO_GetFieldsCounters done [11:16:42]requested_item shift.num is exist - process it [11:16:42]requested_item shift.opened is exist - process it [11:16:42]req_shift_opened [11:16:42]FM_GetShiftState [11:16:42]SAM_PROTO_GetShiftState [11:16:42]wFMCommunicate request_size=4 [11:16:42]MH_SAM_APDU [11:16:42]CAPDU: 80 13 01 00 [11:16:42]Write to MH i2c: E2 08 00 8E 34 80 13 01 00 00 00 00 00 3F [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:42]Read from MH i2c: E2 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 0E 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: E2 0E 00 8E 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BB [11:16:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:16:42]wFMCommunicate OK [11:16:42]SAM_PROTO_GetShiftState done [11:16:42]FM_GetShiftState done [11:16:42]req_shift_opened done [11:16:42]requested_item shift.open_date is exist - process it [11:16:42]req_shift_open_date [11:16:42]req_shift_open_date done [11:16:42]produce_requested_data done [11:16:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30577,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:16:42]process_action_free close_receipt [11:16:42]json_value_free [11:16:42]json_value_free done [11:16:42]process_json_proto returns [11:16:42]Send response to host [11:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30577,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:16:42]free response buf [11:16:42]execute_script done [11:16:42]execute_script returns [11:16:42]free content buf [11:16:42]Sock 7.Close socket [11:16:42]Sock 7.Thread stoped [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]accept exits with 9 [11:18:51]New connection [11:18:51]New thread 3067346276 created [11:18:51]Thread 3067489636 joined [11:18:51]Waiting for new connection... [11:18:51] Sock 9.Parse request [11:18:51]Sock 9.Check first char [11:18:51]Sock 9.First char is OK [11:18:51]request: POST /json_proto HTTP/1.0 [11:18:51]Method: POST [11:18:51]URL: /json_proto [11:18:51]Method is POST - this is cgi request [11:18:51]url: /json_proto [11:18:51]query_string will be loaded in cgi processing [11:18:51]execute_cgi json_proto POST (null) [11:18:51]execute_cgi path=json_proto method=POST [11:18:51]POST find Content-Length [11:18:51]Host: 172.17.51.3:8080 [11:18:51]Content-Length: 751 [11:18:51]Content-Type: application/json [11:18:51] [11:18:51]POST finish read [11:18:51]Found Content-Length = 751 [11:18:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A68875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:51]execute_script... [11:18:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A68875", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:51]POST & json_proto [11:18:51]process_json_proto [11:18:51]json parsed OK: [11:18:51]protocol is kg_v1.0 [11:18:51]action value=close_receipt [11:18:51]process_action close_receipt [11:18:51]cmd_close_receipt [11:18:51]MH_GetDate [11:18:51]Write to MH i2c: F0 00 00 8F 34 B2 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 09 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: F0 09 00 8F 34 00 9F 38 16 67 04 C1 95 66 CF [11:18:51]GetLastDocTimeStamp 1729509402 [11:18:51]current date 1729509535 [11:18:51]FM_GetShiftState [11:18:51]SAM_PROTO_GetShiftState [11:18:51]wFMCommunicate request_size=4 [11:18:51]MH_SAM_APDU [11:18:51]CAPDU: 80 13 01 00 [11:18:51]Write to MH i2c: E2 08 00 90 34 80 13 01 00 00 00 00 00 41 [11:18:51]Write i2c OK [11:18:51]MH_I2C_Read... [11:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:51]Read from MH i2c: E2 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 0E 00 [11:18:51]MH_I2C_Read... [11:18:51]Read from MH i2c: E2 0E 00 90 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BD [11:18:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:18:51]wFMCommunicate OK [11:18:51]SAM_PROTO_GetShiftState done [11:18:51]FM_GetShiftState done [11:18:51]opened in 1729471058 [11:18:51]opened+sec_in_day 1729557458 [11:18:51]quantity*price = 0 [11:18:51]sum+1 = 1 [11:18:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 75 21.10.2024 11:18 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 68875 ФМ: 0000000002094219 ФД: 30578 ФПД: 217187703845507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111855&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30578&fm=217187703845507&tin=02508201610067®Number=0000000000186857&sum=0 [11:18:52]StoreToDocumentArchive [11:18:52]shift 115 fd 30578 [11:18:52]save to /storage/0115/doc_00030578 [11:18:52]save last doc name /storage/0115/doc_00030578 to /storage/kkm_last_doc_name [11:18:52]save OK [11:18:52]Clear old archive folders... [11:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:52]tlvbuf is 01E1C970 [11:18:52]SAM_PROTO_ClearQueue [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 09 00 00 [11:18:52]Write to MH i2c: E2 08 00 9D 34 80 09 00 00 00 00 00 00 43 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 9D 34 00 90 00 45 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]SAM_PROTO_ClearQueue done [11:18:52]KKMCreateOFDPacket [11:18:52]OFDProtocolAddRootSTLVToBuf [11:18:52]FM_MakeSignedData [11:18:52]FM_MakeSignedData [11:18:52]SAM_PROTO_SignData [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 01 02 [11:18:52]Write to MH i2c: E2 08 00 9E 34 80 0D 01 02 00 00 00 00 4B [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 9E 34 00 90 00 46 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=255 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 77 00 00 35 04 06 00 C5 [11:18:52]Write to MH i2c: E2 02 01 9F 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 77 00 00 35 04 06 00 C5 00 00 4E [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 9F 34 00 90 00 47 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=10 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 02 02 05 87 F3 EF F2 83 [11:18:52]Write to MH i2c: E2 0D 00 A0 34 80 0D 02 02 05 00 87 F3 EF F2 83 00 00 36 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [11:18:52]RAPDU: 90 00 [11:18:52]wFMCommunicate OK [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 0D 03 02 [11:18:52]Write to MH i2c: E2 08 00 A1 34 80 0D 03 02 00 00 00 00 50 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 0B 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 0B 00 A1 34 00 87 44 9C 36 7B 78 F3 FB 90 00 CF [11:18:52]RAPDU: 87 44 9C 36 7B 78 F3 FB 90 00 [11:18:52]wFMCommunicate OK [11:18:52]SAM_PROTO_SignData done [11:18:52]FM_MakeSignedData done [11:18:52]CreateOFDProtocolMessage [11:18:52]wFMCommunicate request_size=4 [11:18:52]MH_SAM_APDU [11:18:52]CAPDU: 80 11 00 00 [11:18:52]Write to MH i2c: E2 08 00 A2 34 80 11 00 00 00 00 00 00 50 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:52]Read from MH i2c: E2 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 17 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: E2 17 00 A2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [11:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:18:52]wFMCommunicate OK [11:18:52]CreateOFDProtocolMessage done [11:18:52]OFDSenderStorePacket 30578 [11:18:52]StoreOFDPacket docnum=30578 [11:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D BC 07 01 9F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 77 00 00 35 04 06 00 C5 87 F3 EF F2 83 87 44 9C 36 7B 78 F3 FB [11:18:52]CheckFolder [11:18:52]dirname=/storage/ofd_packets [11:18:52]CheckFolder done [11:18:52]ProducePacketName [11:18:52]name=ofd_packets/00030578 [11:18:52]NVStorageSaveData ofd_packets/00030578 [11:18:52]File name is /storage/ofd_packets/00030578 [11:18:52]Write 301 bytes [11:18:52]NVStorageSaveData done [11:18:52]OFDSenderStorePacket done [11:18:52]KKMCreateOFDPacket done [11:18:52]NVStorageSaveData kkm_last_timestamp [11:18:52]File name is /storage/kkm_last_timestamp [11:18:52]Write 4 bytes [11:18:52]NVStorageSaveData done [11:18:52]ExternCall_PrintAddStr [11:18:52]wPrintStart [11:18:52]Write to MH i2c: 01 00 00 A3 34 D7 [11:18:52]Write i2c OK [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: 01 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: 01 07 00 [11:18:52]MH_I2C_Read... [11:18:52]Read from MH i2c: 01 07 00 A3 34 00 00 00 00 00 FF 0F EC [11:18:52]RasterBufferAndPrint [11:18:52]line Счет N : (1)342985 [11:18:52]line ИНН: 02508201610067 [11:18:52]line Контрольно-Кассовый Чек [11:18:52]line ПРОДАЖА [11:18:52]line ТРК (МРК, ГНК) : 43 [11:18:52]line Товар: 2710124130 [11:18:52]line Аи-92-К-2 [11:18:52]line 10.000 * 0.00 [11:18:52]line = 0.00 [11:18:52]line НДС 12% НСП 1% [11:18:52]line > о реализуемом товаре [11:18:52]line ИТОГО: 0.00 [11:18:52]line НСП 1% : 0.00 [11:18:52]line НДС 12% : 0.00 [11:18:52]line Наличными: 0.00 [11:18:52]line Безнал.: 0.00 [11:18:52]line Место: АЗС № 78 "Партнер Нефть" [11:18:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:18:52]line СНО: Общий режим [11:18:52]line Чек 75 21.10.2024 11:18 [11:18:52]line Смена: 115 ФФД: 1.0 [11:18:52]line ЗНМ: 0300000137 [11:18:52]line РНМ: 0000000000186857 [11:18:52]line Версия ККМ: v1.0 [11:18:52]line Талоны: ТК ГПНА Online [11:18:52]line 68875 [11:18:52]line ФМ: 0000000002094219 [11:18:52]line ФД: 30578 [11:18:52]line ФПД: 217187703845507 [11:18:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111855&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30578&fm=217187703845507&tin=02508201610067®Number=0000000000186857&sum=0 [11:18:53]OFD Sender: Processing packet 30578 [packets to send 10, broken 9] [11:18:53]ProducePacketName [11:18:53]name=ofd_packets/00030578 [11:18:53]OFD Sender: To server: pG, [11:18:53]CommunicateWithHost lk.salyk.kg:30040 [11:18:53]ConnectInit lk.salyk.kg [11:18:53]written 0, free lines is 4095 [11:18:53]Connected sock=10 [11:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D BC 07 01 9F E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 9F 38 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 77 00 00 35 04 06 00 C5 87 F3 EF F2 83 87 44 9C 36 7B 78 F3 FB [11:18:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 19 A7 47 00 AD 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 72 77 00 00 F4 03 04 00 20 E3 15 67 B6 04 01 00 00 F7 41 15 87 5B 2F EE E8 [11:18:53]CommunicateWithHost err = 0 [11:18:53]CheckOFDResponse [11:18:53]1017 (14) - 77093643461234 [11:18:53]1041 (16) - 0000000002094219 [11:18:53]1040 (4) - 30578 [11:18:53]1012 (4) - 21.10.2024 05:14 [11:18:53]1206 (1) - 0 [11:18:53]OFD Sender: Remove packet 30578 [11:18:53]ProducePacketName [11:18:53]name=ofd_packets/00030578 [11:18:53]NVStorageDeleteData [11:18:53]Write to MH i2c: 01 00 00 CD 34 01 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 07 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: 01 07 00 CD 34 00 00 00 00 00 F7 0C 0B [11:18:53]RasterBufferAndPrint [11:18:53]line [11:18:53]line [11:18:53]line [11:18:53]line [11:18:53]line [11:18:53]written 0, free lines is 3325 [11:18:53]MH_Cut [11:18:53]Write to MH i2c: D1 01 00 D4 34 01 DA [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: D1 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: D1 01 00 [11:18:53]MH_I2C_Read... [11:18:53]Read from MH i2c: D1 01 00 D4 34 00 D9 [11:18:53]Write to MH i2c: 01 00 00 D5 34 09 [11:18:53]Write i2c OK [11:18:53]MH_I2C_Read... [11:18:53]OFD Sender: No OFD packet to send [11:18:54]*** Cut start [11:18:54]*** Partial cut [11:18:54]*** CUTSNS_PIN = 1 [11:18:54]*** CUTSNS_PIN = 0 [11:18:54]*** Brake cut motor [11:18:54]Read from MH i2c: 01 [11:18:54]MH_I2C_Read... [11:18:54]*** Stop cut motor [11:18:54]*** Cut end [11:18:54]Read from MH i2c: 01 07 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: 01 07 00 D5 34 00 00 00 00 00 FF 0F 1E [11:18:54]process_action close_receipt done [11:18:54]requested_data is exist [11:18:54]produce_requested_data [11:18:54]requested_item fm.sn is exist - process it [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 11 00 00 [11:18:54]Write to MH i2c: E2 08 00 D6 34 80 11 00 00 00 00 00 00 84 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 17 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 17 00 D6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [11:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:18:54]wFMCommunicate OK [11:18:54]requested_item fd.num is exist - process it [11:18:54]SAM_PROTO_GetFieldsCounters [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 13 00 00 [11:18:54]Write to MH i2c: E2 08 00 D7 34 80 13 00 00 00 00 00 00 87 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:54]Read from MH i2c: E2 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 62 00 [11:18:54]MH_I2C_Read... [11:18:54]Read from MH i2c: E2 62 00 D7 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 77 00 00 0E 04 04 00 73 00 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 EA [11:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 72 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:54]wFMCommunicate OK [11:18:54]SAM_PROTO_GetFieldsCounters done [11:18:54]requested_item shift.num is exist - process it [11:18:54]requested_item shift.opened is exist - process it [11:18:54]req_shift_opened [11:18:54]FM_GetShiftState [11:18:54]SAM_PROTO_GetShiftState [11:18:54]wFMCommunicate request_size=4 [11:18:54]MH_SAM_APDU [11:18:54]CAPDU: 80 13 01 00 [11:18:54]Write to MH i2c: E2 08 00 D8 34 80 13 01 00 00 00 00 00 89 [11:18:54]Write i2c OK [11:18:54]MH_I2C_Read... [11:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:55]Read from MH i2c: E2 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 0E 00 [11:18:55]MH_I2C_Read... [11:18:55]Read from MH i2c: E2 0E 00 D8 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 05 [11:18:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:18:55]wFMCommunicate OK [11:18:55]SAM_PROTO_GetShiftState done [11:18:55]FM_GetShiftState done [11:18:55]req_shift_opened done [11:18:55]requested_item shift.open_date is exist - process it [11:18:55]req_shift_open_date [11:18:55]req_shift_open_date done [11:18:55]produce_requested_data done [11:18:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30578,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:18:55]process_action_free close_receipt [11:18:55]json_value_free [11:18:55]json_value_free done [11:18:55]process_json_proto returns [11:18:55]Send response to host [11:18:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30578,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:18:55]free response buf [11:18:55]execute_script done [11:18:55]execute_script returns [11:18:55]free content buf [11:18:55]Sock 9.Close socket [11:18:55]Sock 9.Thread stoped [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]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:35]accept exits with 7 [11:20:35]New connection [11:20:35]New thread 3067489636 created [11:20:35]Thread 3067346276 joined [11:20:35]Waiting for new connection... [11:20:35] Sock 7.Parse request [11:20:35]Sock 7.Check first char [11:20:35]Sock 7.First char is OK [11:20:35]request: POST /json_proto HTTP/1.0 [11:20:35]Method: POST [11:20:35]URL: /json_proto [11:20:35]Method is POST - this is cgi request [11:20:35]url: /json_proto [11:20:35]query_string will be loaded in cgi processing [11:20:35]execute_cgi json_proto POST (null) [11:20:35]execute_cgi path=json_proto method=POST [11:20:35]POST find Content-Length [11:20:35]Host: 172.17.51.3:8080 [11:20:35]Content-Length: 679 [11:20:35]Content-Type: application/json [11:20:35] [11:20:35]POST finish read [11:20:35]Found Content-Length = 679 [11:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:35]execute_script... [11:20:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:35]POST & json_proto [11:20:35]process_json_proto [11:20:35]json parsed OK: [11:20:35]protocol is kg_v1.0 [11:20:35]action value=close_receipt [11:20:35]process_action close_receipt [11:20:35]cmd_close_receipt [11:20:35]MH_GetDate [11:20:35]Write to MH i2c: F0 00 00 D9 34 FC [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 09 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: F0 09 00 D9 34 00 07 39 16 67 04 C1 95 66 82 [11:20:35]GetLastDocTimeStamp 1729509535 [11:20:35]current date 1729509639 [11:20:35]FM_GetShiftState [11:20:35]SAM_PROTO_GetShiftState [11:20:35]wFMCommunicate request_size=4 [11:20:35]MH_SAM_APDU [11:20:35]CAPDU: 80 13 01 00 [11:20:35]Write to MH i2c: E2 08 00 DA 34 80 13 01 00 00 00 00 00 8B [11:20:35]Write i2c OK [11:20:35]MH_I2C_Read... [11:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:35]Read from MH i2c: E2 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0E 00 [11:20:35]MH_I2C_Read... [11:20:35]Read from MH i2c: E2 0E 00 DA 34 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 07 [11:20:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:20:35]wFMCommunicate OK [11:20:35]SAM_PROTO_GetShiftState done [11:20:35]FM_GetShiftState done [11:20:35]opened in 1729471058 [11:20:35]opened+sec_in_day 1729557458 [11:20:35]quantity*price = 100050 [11:20:35]sum+1 = 100052 [11:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 76 21.10.2024 11:20 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30579 ФПД: 41036188986664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112039&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30579&fm=41036188986664&tin=02508201610067®Number=0000000000186857&sum=100000 [11:20:36]StoreToDocumentArchive [11:20:36]shift 115 fd 30579 [11:20:36]save to /storage/0115/doc_00030579 [11:20:36]save last doc name /storage/0115/doc_00030579 to /storage/kkm_last_doc_name [11:20:36]save OK [11:20:36]Clear old archive folders... [11:20:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:36]tlvbuf is 01E2AE50 [11:20:36]SAM_PROTO_ClearQueue [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 09 00 00 [11:20:36]Write to MH i2c: E2 08 00 E7 34 80 09 00 00 00 00 00 00 8D [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E7 34 00 90 00 8F [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_ClearQueue done [11:20:36]KKMCreateOFDPacket [11:20:36]OFDProtocolAddRootSTLVToBuf [11:20:36]FM_MakeSignedData [11:20:36]FM_MakeSignedData [11:20:36]SAM_PROTO_SignData [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 01 02 [11:20:36]Write to MH i2c: E2 08 00 E8 34 80 0D 01 02 00 00 00 00 95 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=255 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 07 39 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 77 00 00 35 04 06 00 25 52 7B 77 [11:20:36]Write to MH i2c: E2 02 01 E9 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 07 39 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 77 00 00 35 04 06 00 25 52 7B 77 00 00 EB [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=7 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 02 02 02 AD 28 [11:20:36]Write to MH i2c: E2 0A 00 EA 34 80 0D 02 02 02 00 AD 28 00 00 71 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 03 00 EA 34 00 90 00 92 [11:20:36]RAPDU: 90 00 [11:20:36]wFMCommunicate OK [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 0D 03 02 [11:20:36]Write to MH i2c: E2 08 00 EB 34 80 0D 03 02 00 00 00 00 9A [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0B 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 0B 00 EB 34 00 67 27 A0 C3 9A 88 B3 EA 90 00 4B [11:20:36]RAPDU: 67 27 A0 C3 9A 88 B3 EA 90 00 [11:20:36]wFMCommunicate OK [11:20:36]SAM_PROTO_SignData done [11:20:36]FM_MakeSignedData done [11:20:36]CreateOFDProtocolMessage [11:20:36]wFMCommunicate request_size=4 [11:20:36]MH_SAM_APDU [11:20:36]CAPDU: 80 11 00 00 [11:20:36]Write to MH i2c: E2 08 00 EC 34 80 11 00 00 00 00 00 00 9A [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:36]Read from MH i2c: E2 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: E2 17 00 EC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E8 [11:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:20:36]wFMCommunicate OK [11:20:36]CreateOFDProtocolMessage done [11:20:36]OFDSenderStorePacket 30579 [11:20:36]StoreOFDPacket docnum=30579 [11:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FB D6 04 01 4D C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 07 39 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 77 00 00 35 04 06 00 25 52 7B 77 AD 28 67 27 A0 C3 9A 88 B3 EA [11:20:36]CheckFolder [11:20:36]dirname=/storage/ofd_packets [11:20:36]CheckFolder done [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00030579 [11:20:36]NVStorageSaveData ofd_packets/00030579 [11:20:36]File name is /storage/ofd_packets/00030579 [11:20:36]Write 298 bytes [11:20:36]NVStorageSaveData done [11:20:36]OFDSenderStorePacket done [11:20:36]KKMCreateOFDPacket done [11:20:36]NVStorageSaveData kkm_last_timestamp [11:20:36]File name is /storage/kkm_last_timestamp [11:20:36]Write 4 bytes [11:20:36]OFD Sender: Processing packet 30579 [packets to send 10, broken 9] [11:20:36]ProducePacketName [11:20:36]name=ofd_packets/00030579 [11:20:36]OFD Sender: To server: pG, [11:20:36]CommunicateWithHost lk.salyk.kg:30040 [11:20:36]ConnectInit lk.salyk.kg [11:20:36]NVStorageSaveData done [11:20:36]ExternCall_PrintAddStr [11:20:36]wPrintStart [11:20:36]Write to MH i2c: 01 00 00 ED 34 21 [11:20:36]Write i2c OK [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 [11:20:36]MH_I2C_Read... [11:20:36]Read from MH i2c: 01 07 00 ED 34 00 00 00 00 00 FF 0F 36 [11:20:36]RasterBufferAndPrint [11:20:36]line Счет N : (1)342987 [11:20:36]line ИНН: 02508201610067 [11:20:36]line Контрольно-Кассовый Чек [11:20:36]line ПРОДАЖА [11:20:36]line ТРК (МРК, ГНК) : 54 [11:20:36]line Товар: 2710194210 [11:20:36]line ДТ-К-2 [11:20:36]line 13.130 * 76.20 [11:20:36]line = 1000.51 [11:20:36]line НДС 12% НСП 1% [11:20:36]line > о реализуемом товаре [11:20:36]line ОКРУГЛЕНИЕ: -0.51 [11:20:36]line ИТОГО: 1000.00 [11:20:36]line Внесено: 1000.00 [11:20:36]line СДАЧА: 0.00 [11:20:36]line НСП 1% : 8.85 [11:20:36]line НДС 12% : 106.25 [11:20:36]line Наличными: 1000.00 [11:20:36]line Безнал.: 0.00 [11:20:36]line Место: АЗС № 78 "Партнер Нефть" [11:20:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:20:36]line СНО: Общий режим [11:20:36]line Чек 76 21.10.2024 11:20 [11:20:36]line Смена: 115 ФФД: 1.0 [11:20:36]line ЗНМ: 0300000137 [11:20:36]line РНМ: 0000000000186857 [11:20:37]line Версия ККМ: v1.0 [11:20:37]line ФМ: 0000000002094219 [11:20:37]line ФД: 30579 [11:20:37]line ФПД: 41036188986664 [11:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112039&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30579&fm=41036188986664&tin=02508201610067®Number=0000000000186857&sum=100000 [11:20:37]Connected sock=11 [11:20:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 FB D6 04 01 4D C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 07 39 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 73 77 00 00 35 04 06 00 25 52 7B 77 AD 28 67 27 A0 C3 9A 88 B3 EA [11:20:37]written 0, free lines is 4095 [11:20:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B3 BA 47 00 BB 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 32 30 39 34 32 31 39 10 04 04 00 73 77 00 00 F4 03 04 00 88 E3 15 67 B6 04 01 00 00 F0 3D 16 99 A2 AC A2 E1 [11:20:37]CommunicateWithHost err = 0 [11:20:37]CheckOFDResponse [11:20:37]1017 (14) - 77093643461234 [11:20:37]1041 (16) - 0000000002094219 [11:20:37]1040 (4) - 30579 [11:20:37]1012 (4) - 21.10.2024 05:15 [11:20:37]1206 (1) - 0 [11:20:37]OFD Sender: Remove packet 30579 [11:20:37]ProducePacketName [11:20:37]name=ofd_packets/00030579 [11:20:37]NVStorageDeleteData [11:20:37]Write to MH i2c: 01 00 00 18 35 4D [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: 01 07 00 18 35 00 00 00 00 00 EA 0C 4A [11:20:37]RasterBufferAndPrint [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]line [11:20:37]written 0, free lines is 3312 [11:20:37]MH_Cut [11:20:37]Write to MH i2c: D1 01 00 1F 35 01 26 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 01 00 [11:20:37]MH_I2C_Read... [11:20:37]Read from MH i2c: D1 01 00 1F 35 00 25 [11:20:37]Write to MH i2c: 01 00 00 20 35 55 [11:20:37]Write i2c OK [11:20:37]MH_I2C_Read... [11:20:37]OFD Sender: No OFD packet to send [11:20:38]*** Cut start [11:20:38]*** Partial cut [11:20:38]*** CUTSNS_PIN = 1 [11:20:38]*** CUTSNS_PIN = 0 [11:20:38]*** Brake cut motor [11:20:38]Read from MH i2c: 01 [11:20:38]MH_I2C_Read... [11:20:38]*** Stop cut motor [11:20:38]*** Cut end [11:20:38]Read from MH i2c: 01 07 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: 01 07 00 20 35 00 00 00 00 00 FF 0F 6A [11:20:38]process_action close_receipt done [11:20:38]requested_data is exist [11:20:38]produce_requested_data [11:20:38]requested_item fm.sn is exist - process it [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 11 00 00 [11:20:38]Write to MH i2c: E2 08 00 21 35 80 11 00 00 00 00 00 00 D0 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 17 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 17 00 21 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [11:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:20:39]wFMCommunicate OK [11:20:39]requested_item fd.num is exist - process it [11:20:39]SAM_PROTO_GetFieldsCounters [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 13 00 00 [11:20:39]Write to MH i2c: E2 08 00 22 35 80 13 00 00 00 00 00 00 D3 [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 62 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 62 00 22 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:20:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 73 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:39]wFMCommunicate OK [11:20:39]SAM_PROTO_GetFieldsCounters done [11:20:39]requested_item shift.num is exist - process it [11:20:39]requested_item shift.opened is exist - process it [11:20:39]req_shift_opened [11:20:39]FM_GetShiftState [11:20:39]SAM_PROTO_GetShiftState [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 13 01 00 [11:20:39]Write to MH i2c: E2 08 00 23 35 80 13 01 00 00 00 00 00 D5 [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 0E 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 0E 00 23 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 51 [11:20:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:20:39]wFMCommunicate OK [11:20:39]SAM_PROTO_GetShiftState done [11:20:39]FM_GetShiftState done [11:20:39]req_shift_opened done [11:20:39]requested_item shift.open_date is exist - process it [11:20:39]req_shift_open_date [11:20:39]req_shift_open_date done [11:20:39]produce_requested_data done [11:20:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30579,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:20:39]process_action_free close_receipt [11:20:39]json_value_free [11:20:39]json_value_free done [11:20:39]process_json_proto returns [11:20:39]Send response to host [11:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30579,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:20:39]free response buf [11:20:39]execute_script done [11:20:39]execute_script returns [11:20:39]free content buf [11:20:39]Sock 7.Close socket [11:20:39]Sock 7.Thread stoped [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25: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:37]accept exits with 9 [11:25:37]New connection [11:25:37]New thread 3067346276 created [11:25:37]Thread 3067489636 joined [11:25:37]Waiting for new connection... [11:25:37] Sock 9.Parse request [11:25:37]Sock 9.Check first char [11:25:37]Sock 9.First char is OK [11:25:37]request: POST /json_proto HTTP/1.0 [11:25:37]Method: POST [11:25:37]URL: /json_proto [11:25:37]Method is POST - this is cgi request [11:25:37]url: /json_proto [11:25:37]query_string will be loaded in cgi processing [11:25:37]execute_cgi json_proto POST (null) [11:25:37]execute_cgi path=json_proto method=POST [11:25:37]POST find Content-Length [11:25:37]Host: 172.17.51.3:8080 [11:25:37]Content-Length: 677 [11:25:37]Content-Type: application/json [11:25:37] [11:25:37]POST finish read [11:25:37]Found Content-Length = 677 [11:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]execute_script... [11:25:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342988", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:37]POST & json_proto [11:25:37]process_json_proto [11:25:37]json parsed OK: [11:25:37]protocol is kg_v1.0 [11:25:37]action value=close_receipt [11:25:37]process_action close_receipt [11:25:37]cmd_close_receipt [11:25:37]MH_GetDate [11:25:37]Write to MH i2c: F0 00 00 24 35 48 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: F0 09 00 24 35 00 35 3A 16 67 04 C1 95 66 FD [11:25:37]GetLastDocTimeStamp 1729509639 [11:25:37]current date 1729509941 [11:25:37]FM_GetShiftState [11:25:37]SAM_PROTO_GetShiftState [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 13 01 00 [11:25:37]Write to MH i2c: E2 08 00 25 35 80 13 01 00 00 00 00 00 D7 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0E 00 25 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 53 [11:25:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_GetShiftState done [11:25:37]FM_GetShiftState done [11:25:37]opened in 1729471058 [11:25:37]opened+sec_in_day 1729557458 [11:25:37]quantity*price = 20003 [11:25:37]sum+1 = 20004 [11:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 77 21.10.2024 11:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30580 ФПД: 45918904098976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112541&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30580&fm=45918904098976&tin=02508201610067®Number=0000000000186857&sum=20000 [11:25:38]StoreToDocumentArchive [11:25:38]shift 115 fd 30580 [11:25:38]save to /storage/0115/doc_00030580 [11:25:38]save last doc name /storage/0115/doc_00030580 to /storage/kkm_last_doc_name [11:25:38]save OK [11:25:38]Clear old archive folders... [11:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:25:38]tlvbuf is 01DAFD40 [11:25:38]SAM_PROTO_ClearQueue [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 09 00 00 [11:25:38]Write to MH i2c: E2 08 00 32 35 80 09 00 00 00 00 00 00 D9 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 32 35 00 90 00 DB [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]SAM_PROTO_ClearQueue done [11:25:38]KKMCreateOFDPacket [11:25:38]OFDProtocolAddRootSTLVToBuf [11:25:38]FM_MakeSignedData [11:25:38]FM_MakeSignedData [11:25:38]SAM_PROTO_SignData [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 0D 01 02 [11:25:38]Write to MH i2c: E2 08 00 33 35 80 0D 01 02 00 00 00 00 E1 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]OFD Sender: No OFD packet to send [11:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 33 35 00 90 00 DC [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]wFMCommunicate request_size=255 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4D 00 00 00 F4 03 04 00 35 3A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 77 00 00 35 04 06 00 29 [11:25:38]Write to MH i2c: E2 02 01 34 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4D 00 00 00 F4 03 04 00 35 3A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 77 00 00 35 04 06 00 29 00 00 F4 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 34 35 00 90 00 DD [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]wFMCommunicate request_size=10 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 0D 02 02 05 C3 53 F7 A0 A0 [11:25:38]Write to MH i2c: E2 0D 00 35 35 80 0D 02 02 05 00 C3 53 F7 A0 A0 00 00 3B [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 03 00 35 35 00 90 00 DE [11:25:38]RAPDU: 90 00 [11:25:38]wFMCommunicate OK [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 0D 03 02 [11:25:38]Write to MH i2c: E2 08 00 36 35 80 0D 03 02 00 00 00 00 E6 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 0B 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 0B 00 36 35 00 9F 7A DC BA 04 D4 B6 BB 90 00 DF [11:25:38]RAPDU: 9F 7A DC BA 04 D4 B6 BB 90 00 [11:25:38]wFMCommunicate OK [11:25:38]SAM_PROTO_SignData done [11:25:38]FM_MakeSignedData done [11:25:38]CreateOFDProtocolMessage [11:25:38]wFMCommunicate request_size=4 [11:25:38]MH_SAM_APDU [11:25:38]CAPDU: 80 11 00 00 [11:25:38]Write to MH i2c: E2 08 00 37 35 80 11 00 00 00 00 00 00 E6 [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:38]Read from MH i2c: E2 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 17 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: E2 17 00 37 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 34 [11:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:25:38]wFMCommunicate OK [11:25:38]CreateOFDProtocolMessage done [11:25:38]OFDSenderStorePacket 30580 [11:25:38]StoreOFDPacket docnum=30580 [11:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C4 08 07 01 31 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4D 00 00 00 F4 03 04 00 35 3A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 77 00 00 35 04 06 00 29 C3 53 F7 A0 A0 9F 7A DC BA 04 D4 B6 BB [11:25:38]CheckFolder [11:25:38]dirname=/storage/ofd_packets [11:25:38]CheckFolder done [11:25:38]ProducePacketName [11:25:38]name=ofd_packets/00030580 [11:25:38]NVStorageSaveData ofd_packets/00030580 [11:25:38]File name is /storage/ofd_packets/00030580 [11:25:38]Write 301 bytes [11:25:38]NVStorageSaveData done [11:25:38]OFDSenderStorePacket done [11:25:38]KKMCreateOFDPacket done [11:25:38]NVStorageSaveData kkm_last_timestamp [11:25:38]File name is /storage/kkm_last_timestamp [11:25:38]Write 4 bytes [11:25:38]NVStorageSaveData done [11:25:38]ExternCall_PrintAddStr [11:25:38]wPrintStart [11:25:38]Write to MH i2c: 01 00 00 38 35 6D [11:25:38]Write i2c OK [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 07 00 [11:25:38]MH_I2C_Read... [11:25:38]Read from MH i2c: 01 07 00 38 35 00 00 00 00 00 FF 0F 82 [11:25:38]RasterBufferAndPrint [11:25:38]line Счет N : (1)342988 [11:25:38]line ИНН: 02508201610067 [11:25:38]line Контрольно-Кассовый Чек [11:25:38]line ПРОДАЖА [11:25:38]line ТРК (МРК, ГНК) : 63 [11:25:38]line Товар: 2710124130 [11:25:38]line Аи-92-К-2 [11:25:38]line 2.990 * 66.90 [11:25:38]line = 200.03 [11:25:38]line НДС 12% НСП 1% [11:25:38]line > о реализуемом товаре [11:25:38]line ОКРУГЛЕНИЕ: -0.03 [11:25:38]line ИТОГО: 200.00 [11:25:38]line Внесено: 200.00 [11:25:38]line СДАЧА: 0.00 [11:25:38]line НСП 1% : 1.77 [11:25:38]line НДС 12% : 21.24 [11:25:38]line Наличными: 200.00 [11:25:38]line Безнал.: 0.00 [11:25:38]line Место: АЗС № 78 "Партнер Нефть" [11:25:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:25:38]line СНО: Общий режим [11:25:38]line Чек 77 21.10.2024 11:25 [11:25:38]line Смена: 115 ФФД: 1.0 [11:25:38]line ЗНМ: 0300000137 [11:25:38]line РНМ: 0000000000186857 [11:25:38]line Версия ККМ: v1.0 [11:25:38]line ФМ: 0000000002094219 [11:25:38]line ФД: 30580 [11:25:38]line ФПД: 45918904098976 [11:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112541&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30580&fm=45918904098976&tin=02508201610067®Number=0000000000186857&sum=20000 [11:25:39]OFD Sender: Processing packet 30580 [packets to send 10, broken 9] [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00030580 [11:25:39]OFD Sender: To server: pG, [11:25:39]CommunicateWithHost lk.salyk.kg:30040 [11:25:39]ConnectInit lk.salyk.kg [11:25:39]written 0, free lines is 4095 [11:25:39]Connected sock=11 [11:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C4 08 07 01 31 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4D 00 00 00 F4 03 04 00 35 3A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 74 77 00 00 35 04 06 00 29 C3 53 F7 A0 A0 9F 7A DC BA 04 D4 B6 BB [11:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 2B 47 00 5C 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 32 30 39 34 32 31 39 10 04 04 00 74 77 00 00 F4 03 04 00 B6 E4 15 67 B6 04 01 00 00 FE 24 11 79 1D A7 B4 50 [11:25:39]CommunicateWithHost err = 0 [11:25:39]CheckOFDResponse [11:25:39]1017 (14) - 77093643461234 [11:25:39]1041 (16) - 0000000002094219 [11:25:39]1040 (4) - 30580 [11:25:39]1012 (4) - 21.10.2024 05:20 [11:25:39]1206 (1) - 0 [11:25:39]OFD Sender: Remove packet 30580 [11:25:39]ProducePacketName [11:25:39]name=ofd_packets/00030580 [11:25:39]NVStorageDeleteData [11:25:39]Write to MH i2c: 01 00 00 63 35 98 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: 01 07 00 63 35 00 00 00 00 00 ED 0C 98 [11:25:39]RasterBufferAndPrint [11:25:39]line [11:25:39]line [11:25:39]line [11:25:39]line [11:25:39]line [11:25:39]written 0, free lines is 3315 [11:25:39]MH_Cut [11:25:39]Write to MH i2c: D1 01 00 6A 35 01 71 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: D1 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: D1 01 00 [11:25:39]MH_I2C_Read... [11:25:39]Read from MH i2c: D1 01 00 6A 35 00 70 [11:25:39]Write to MH i2c: 01 00 00 6B 35 A0 [11:25:39]Write i2c OK [11:25:39]MH_I2C_Read... [11:25:39]OFD Sender: No OFD packet to send [11:25:40]*** Cut start [11:25:40]*** Partial cut [11:25:40]*** CUTSNS_PIN = 1 [11:25:40]*** CUTSNS_PIN = 0 [11:25:40]*** Brake cut motor [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]*** Stop cut motor [11:25:40]*** Cut end [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 6B 35 00 00 00 00 00 FF 0F B5 [11:25:40]process_action close_receipt done [11:25:40]requested_data is exist [11:25:40]produce_requested_data [11:25:40]requested_item fm.sn is exist - process it [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 11 00 00 [11:25:40]Write to MH i2c: E2 08 00 6C 35 80 11 00 00 00 00 00 00 1B [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:40]Read from MH i2c: E2 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 17 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 17 00 6C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [11:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:25:40]wFMCommunicate OK [11:25:40]requested_item fd.num is exist - process it [11:25:40]SAM_PROTO_GetFieldsCounters [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 13 00 00 [11:25:40]Write to MH i2c: E2 08 00 6D 35 80 13 00 00 00 00 00 00 1E [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:40]Read from MH i2c: E2 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 62 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 62 00 6D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 77 00 00 0E 04 04 00 73 00 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 89 [11:25:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 74 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:40]wFMCommunicate OK [11:25:40]SAM_PROTO_GetFieldsCounters done [11:25:40]requested_item shift.num is exist - process it [11:25:40]requested_item shift.opened is exist - process it [11:25:40]req_shift_opened [11:25:40]FM_GetShiftState [11:25:40]SAM_PROTO_GetShiftState [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 13 01 00 [11:25:40]Write to MH i2c: E2 08 00 6E 35 80 13 01 00 00 00 00 00 20 [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 6E 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9C [11:25:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetShiftState done [11:25:41]FM_GetShiftState done [11:25:41]req_shift_opened done [11:25:41]requested_item shift.open_date is exist - process it [11:25:41]req_shift_open_date [11:25:41]req_shift_open_date done [11:25:41]produce_requested_data done [11:25:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30580,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:25:41]process_action_free close_receipt [11:25:41]json_value_free [11:25:41]json_value_free done [11:25:41]process_json_proto returns [11:25:41]Send response to host [11:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30580,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:25:41]free response buf [11:25:41]execute_script done [11:25:41]execute_script returns [11:25:41]free content buf [11:25:41]Sock 9.Close socket [11:25:41]Sock 9.Thread stoped [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:19]accept exits with 7 [11:32:19]New connection [11:32:19]New thread 3067489636 created [11:32:19]Thread 3067346276 joined [11:32:19]Waiting for new connection... [11:32:19] Sock 7.Parse request [11:32:19]Sock 7.Check first char [11:32:19]Sock 7.First char is OK [11:32:19]request: POST /json_proto HTTP/1.0 [11:32:19]Method: POST [11:32:19]URL: /json_proto [11:32:19]Method is POST - this is cgi request [11:32:19]url: /json_proto [11:32:19]query_string will be loaded in cgi processing [11:32:19]execute_cgi json_proto POST (null) [11:32:19]execute_cgi path=json_proto method=POST [11:32:19]POST find Content-Length [11:32:19]Host: 172.17.51.3:8080 [11:32:19]Content-Length: 677 [11:32:19]Content-Type: application/json [11:32:19] [11:32:19]POST finish read [11:32:19]Found Content-Length = 677 [11:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:19]execute_script... [11:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:19]POST & json_proto [11:32:19]process_json_proto [11:32:19]json parsed OK: [11:32:19]protocol is kg_v1.0 [11:32:19]action value=close_receipt [11:32:19]process_action close_receipt [11:32:19]cmd_close_receipt [11:32:19]MH_GetDate [11:32:19]Write to MH i2c: F0 00 00 6F 35 93 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 09 00 [11:32:19]MH_I2C_Read... [11:32:19]Read from MH i2c: F0 09 00 6F 35 00 C8 3B 16 67 04 C1 95 66 DC [11:32:19]GetLastDocTimeStamp 1729509941 [11:32:19]current date 1729510344 [11:32:19]FM_GetShiftState [11:32:19]SAM_PROTO_GetShiftState [11:32:19]wFMCommunicate request_size=4 [11:32:19]MH_SAM_APDU [11:32:19]CAPDU: 80 13 01 00 [11:32:19]Write to MH i2c: E2 08 00 70 35 80 13 01 00 00 00 00 00 22 [11:32:19]Write i2c OK [11:32:19]MH_I2C_Read... [11:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:20]Read from MH i2c: E2 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 [11:32:20]MH_I2C_Read... [11:32:20]Read from MH i2c: E2 0E 00 70 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9E [11:32:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:32:20]wFMCommunicate OK [11:32:20]SAM_PROTO_GetShiftState done [11:32:20]FM_GetShiftState done [11:32:20]opened in 1729471058 [11:32:20]opened+sec_in_day 1729557458 [11:32:20]quantity*price = 20003 [11:32:20]sum+1 = 20004 [11:32:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 78 21.10.2024 11:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30581 ФПД: 189324077441186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30581&fm=189324077441186&tin=02508201610067®Number=0000000000186857&sum=20000 [11:32:21]StoreToDocumentArchive [11:32:21]shift 115 fd 30581 [11:32:21]save to /storage/0115/doc_00030581 [11:32:21]save last doc name /storage/0115/doc_00030581 to /storage/kkm_last_doc_name [11:32:21]save OK [11:32:21]Clear old archive folders... [11:32:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:21]tlvbuf is 01E6F5B0 [11:32:21]SAM_PROTO_ClearQueue [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 09 00 00 [11:32:21]Write to MH i2c: E2 08 00 7D 35 80 09 00 00 00 00 00 00 24 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 7D 35 00 90 00 26 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]SAM_PROTO_ClearQueue done [11:32:21]KKMCreateOFDPacket [11:32:21]OFDProtocolAddRootSTLVToBuf [11:32:21]FM_MakeSignedData [11:32:21]FM_MakeSignedData [11:32:21]SAM_PROTO_SignData [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 01 02 [11:32:21]Write to MH i2c: E2 08 00 7E 35 80 0D 01 02 00 00 00 00 2C [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 7E 35 00 90 00 27 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=255 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4E 00 00 00 F4 03 04 00 C8 3B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 77 00 00 35 04 06 00 AC [11:32:21]Write to MH i2c: E2 02 01 7F 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4E 00 00 00 F4 03 04 00 C8 3B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 77 00 00 35 04 06 00 AC 00 00 58 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 7F 35 00 90 00 28 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=10 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 02 02 05 30 72 62 20 A2 [11:32:21]Write to MH i2c: E2 0D 00 80 35 80 0D 02 02 05 00 30 72 62 20 A2 00 00 FF [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 03 00 80 35 00 90 00 29 [11:32:21]RAPDU: 90 00 [11:32:21]wFMCommunicate OK [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 0D 03 02 [11:32:21]Write to MH i2c: E2 08 00 81 35 80 0D 03 02 00 00 00 00 31 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 0B 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 0B 00 81 35 00 70 60 8C 2E AF 9A C8 36 90 00 03 [11:32:21]RAPDU: 70 60 8C 2E AF 9A C8 36 90 00 [11:32:21]wFMCommunicate OK [11:32:21]SAM_PROTO_SignData done [11:32:21]FM_MakeSignedData done [11:32:21]CreateOFDProtocolMessage [11:32:21]wFMCommunicate request_size=4 [11:32:21]MH_SAM_APDU [11:32:21]CAPDU: 80 11 00 00 [11:32:21]Write to MH i2c: E2 08 00 82 35 80 11 00 00 00 00 00 00 31 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:21]Read from MH i2c: E2 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 17 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: E2 17 00 82 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [11:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:32:21]wFMCommunicate OK [11:32:21]CreateOFDProtocolMessage done [11:32:21]OFDSenderStorePacket 30581 [11:32:21]StoreOFDPacket docnum=30581 [11:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CE 34 07 01 11 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4E 00 00 00 F4 03 04 00 C8 3B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 77 00 00 35 04 06 00 AC 30 72 62 20 A2 70 60 8C 2E AF 9A C8 36 [11:32:21]CheckFolder [11:32:21]dirname=/storage/ofd_packets [11:32:21]CheckFolder done [11:32:21]ProducePacketName [11:32:21]name=ofd_packets/00030581 [11:32:21]NVStorageSaveData ofd_packets/00030581 [11:32:21]File name is /storage/ofd_packets/00030581 [11:32:21]Write 301 bytes [11:32:21]NVStorageSaveData done [11:32:21]OFDSenderStorePacket done [11:32:21]KKMCreateOFDPacket done [11:32:21]NVStorageSaveData kkm_last_timestamp [11:32:21]File name is /storage/kkm_last_timestamp [11:32:21]Write 4 bytes [11:32:21]NVStorageSaveData done [11:32:21]ExternCall_PrintAddStr [11:32:21]wPrintStart [11:32:21]Write to MH i2c: 01 00 00 83 35 B8 [11:32:21]Write i2c OK [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 07 00 [11:32:21]MH_I2C_Read... [11:32:21]Read from MH i2c: 01 07 00 83 35 00 00 00 00 00 FF 0F CD [11:32:21]RasterBufferAndPrint [11:32:21]line Счет N : (1)342989 [11:32:21]line ИНН: 02508201610067 [11:32:21]line Контрольно-Кассовый Чек [11:32:21]line ПРОДАЖА [11:32:21]line ТРК (МРК, ГНК) : 53 [11:32:21]line Товар: 2710124130 [11:32:21]line Аи-92-К-2 [11:32:21]line 2.990 * 66.90 [11:32:21]line = 200.03 [11:32:21]line НДС 12% НСП 1% [11:32:21]line > о реализуемом товаре [11:32:21]line ОКРУГЛЕНИЕ: -0.03 [11:32:21]line ИТОГО: 200.00 [11:32:21]line Внесено: 200.00 [11:32:21]line СДАЧА: 0.00 [11:32:21]line НСП 1% : 1.77 [11:32:21]line НДС 12% : 21.24 [11:32:21]line Наличными: 200.00 [11:32:21]line Безнал.: 0.00 [11:32:21]line Место: АЗС № 78 "Партнер Нефть" [11:32:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:32:21]line СНО: Общий режим [11:32:21]line Чек 78 21.10.2024 11:32 [11:32:21]line Смена: 115 ФФД: 1.0 [11:32:21]line ЗНМ: 0300000137 [11:32:21]line РНМ: 0000000000186857 [11:32:21]line Версия ККМ: v1.0 [11:32:21]line ФМ: 0000000002094219 [11:32:21]line ФД: 30581 [11:32:21]line ФПД: 189324077441186 [11:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113224&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30581&fm=189324077441186&tin=02508201610067®Number=0000000000186857&sum=20000 [11:32:21]OFD Sender: Processing packet 30581 [packets to send 10, broken 9] [11:32:21]ProducePacketName [11:32:21]name=ofd_packets/00030581 [11:32:21]OFD Sender: To server: pG, [11:32:21]CommunicateWithHost lk.salyk.kg:30040 [11:32:21]ConnectInit lk.salyk.kg [11:32:21]written 0, free lines is 4095 [11:32:22]Connected sock=10 [11:32:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CE 34 07 01 11 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4E 00 00 00 F4 03 04 00 C8 3B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 75 77 00 00 35 04 06 00 AC 30 72 62 20 A2 70 60 8C 2E AF 9A C8 36 [11:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E4 A6 47 00 6F 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 32 30 39 34 32 31 39 10 04 04 00 75 77 00 00 F4 03 04 00 49 E6 15 67 B6 04 01 00 00 56 19 6A 4B 88 F0 E7 8D [11:32:22]CommunicateWithHost err = 0 [11:32:22]CheckOFDResponse [11:32:22]1017 (14) - 77093643461234 [11:32:22]1041 (16) - 0000000002094219 [11:32:22]1040 (4) - 30581 [11:32:22]1012 (4) - 21.10.2024 05:27 [11:32:22]1206 (1) - 0 [11:32:22]OFD Sender: Remove packet 30581 [11:32:22]ProducePacketName [11:32:22]name=ofd_packets/00030581 [11:32:22]NVStorageDeleteData [11:32:22]Write to MH i2c: 01 00 00 AE 35 E3 [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: 01 07 00 AE 35 00 00 00 00 00 EC 0C E2 [11:32:22]RasterBufferAndPrint [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]line [11:32:22]written 0, free lines is 3314 [11:32:22]MH_Cut [11:32:22]Write to MH i2c: D1 01 00 B5 35 01 BC [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: D1 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: D1 01 00 [11:32:22]MH_I2C_Read... [11:32:22]Read from MH i2c: D1 01 00 B5 35 00 BB [11:32:22]Write to MH i2c: 01 00 00 B6 35 EB [11:32:22]Write i2c OK [11:32:22]MH_I2C_Read... [11:32:22]OFD Sender: No OFD packet to send [11:32:23]*** Cut start [11:32:23]*** Partial cut [11:32:23]*** CUTSNS_PIN = 1 [11:32:23]*** CUTSNS_PIN = 0 [11:32:23]*** Brake cut motor [11:32:23]Read from MH i2c: 01 [11:32:23]MH_I2C_Read... [11:32:23]*** Stop cut motor [11:32:23]*** Cut end [11:32:23]Read from MH i2c: 01 07 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: 01 07 00 B6 35 00 00 00 00 00 FF 0F 00 [11:32:23]process_action close_receipt done [11:32:23]requested_data is exist [11:32:23]produce_requested_data [11:32:23]requested_item fm.sn is exist - process it [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 11 00 00 [11:32:23]Write to MH i2c: E2 08 00 B7 35 80 11 00 00 00 00 00 00 66 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 17 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 17 00 B7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [11:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:32:23]wFMCommunicate OK [11:32:23]requested_item fd.num is exist - process it [11:32:23]SAM_PROTO_GetFieldsCounters [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 13 00 00 [11:32:23]Write to MH i2c: E2 08 00 B8 35 80 13 00 00 00 00 00 00 69 [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 62 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 62 00 B8 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 75 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:23]wFMCommunicate OK [11:32:23]SAM_PROTO_GetFieldsCounters done [11:32:23]requested_item shift.num is exist - process it [11:32:23]requested_item shift.opened is exist - process it [11:32:23]req_shift_opened [11:32:23]FM_GetShiftState [11:32:23]SAM_PROTO_GetShiftState [11:32:23]wFMCommunicate request_size=4 [11:32:23]MH_SAM_APDU [11:32:23]CAPDU: 80 13 01 00 [11:32:23]Write to MH i2c: E2 08 00 B9 35 80 13 01 00 00 00 00 00 6B [11:32:23]Write i2c OK [11:32:23]MH_I2C_Read... [11:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:23]Read from MH i2c: E2 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 0E 00 [11:32:23]MH_I2C_Read... [11:32:23]Read from MH i2c: E2 0E 00 B9 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E7 [11:32:23]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:32:23]wFMCommunicate OK [11:32:23]SAM_PROTO_GetShiftState done [11:32:23]FM_GetShiftState done [11:32:23]req_shift_opened done [11:32:23]requested_item shift.open_date is exist - process it [11:32:23]req_shift_open_date [11:32:23]req_shift_open_date done [11:32:23]produce_requested_data done [11:32:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30581,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:32:23]process_action_free close_receipt [11:32:23]json_value_free [11:32:23]json_value_free done [11:32:23]process_json_proto returns [11:32:23]Send response to host [11:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30581,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:32:23]free response buf [11:32:23]execute_script done [11:32:23]execute_script returns [11:32:23]free content buf [11:32:23]Sock 7.Close socket [11:32:23]Sock 7.Thread stoped [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:25]accept exits with 9 [11:33:25]New connection [11:33:25]New thread 3067346276 created [11:33:25]Thread 3067489636 joined [11:33:25]Waiting for new connection... [11:33:25] Sock 9.Parse request [11:33:25]Sock 9.Check first char [11:33:25]Sock 9.First char is OK [11:33:25]request: POST /json_proto HTTP/1.0 [11:33:25]Method: POST [11:33:25]URL: /json_proto [11:33:25]Method is POST - this is cgi request [11:33:25]url: /json_proto [11:33:25]query_string will be loaded in cgi processing [11:33:25]execute_cgi json_proto POST (null) [11:33:25]execute_cgi path=json_proto method=POST [11:33:25]POST find Content-Length [11:33:25]Host: 172.17.51.3:8080 [11:33:25]Content-Length: 840 [11:33:25]Content-Type: application/json [11:33:25] [11:33:25]POST finish read [11:33:25]Found Content-Length = 840 [11:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]execute_script... [11:33:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:25]POST & json_proto [11:33:25]process_json_proto [11:33:25]json parsed OK: [11:33:25]protocol is kg_v1.0 [11:33:25]action value=close_receipt [11:33:25]process_action close_receipt [11:33:25]cmd_close_receipt [11:33:25]MH_GetDate [11:33:25]Write to MH i2c: F0 00 00 BA 35 DE [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: F0 09 00 BA 35 00 09 3C 16 67 04 C1 95 66 69 [11:33:25]GetLastDocTimeStamp 1729510344 [11:33:25]current date 1729510409 [11:33:25]FM_GetShiftState [11:33:25]SAM_PROTO_GetShiftState [11:33:25]wFMCommunicate request_size=4 [11:33:25]MH_SAM_APDU [11:33:25]CAPDU: 80 13 01 00 [11:33:25]Write to MH i2c: E2 08 00 BB 35 80 13 01 00 00 00 00 00 6D [11:33:25]Write i2c OK [11:33:25]MH_I2C_Read... [11:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:25]Read from MH i2c: E2 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 [11:33:25]MH_I2C_Read... [11:33:25]Read from MH i2c: E2 0E 00 BB 35 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E9 [11:33:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:33:25]wFMCommunicate OK [11:33:25]SAM_PROTO_GetShiftState done [11:33:25]FM_GetShiftState done [11:33:25]opened in 1729471058 [11:33:25]opened+sec_in_day 1729557458 [11:33:25]quantity*price = 100050 [11:33:25]sum+1 = 100052 [11:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 79 21.10.2024 11:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30582 ФПД: 132657164990024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30582&fm=132657164990024&tin=02508201610067®Number=0000000000186857&sum=100051 [11:33:26]StoreToDocumentArchive [11:33:26]shift 115 fd 30582 [11:33:26]save to /storage/0115/doc_00030582 [11:33:26]save last doc name /storage/0115/doc_00030582 to /storage/kkm_last_doc_name [11:33:26]save OK [11:33:26]Clear old archive folders... [11:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:26]tlvbuf is 01DFF490 [11:33:26]SAM_PROTO_ClearQueue [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 09 00 00 [11:33:26]Write to MH i2c: E2 08 00 C8 35 80 09 00 00 00 00 00 00 6F [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 C8 35 00 90 00 71 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_ClearQueue done [11:33:26]KKMCreateOFDPacket [11:33:26]OFDProtocolAddRootSTLVToBuf [11:33:26]FM_MakeSignedData [11:33:26]FM_MakeSignedData [11:33:26]SAM_PROTO_SignData [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 0D 01 02 [11:33:26]Write to MH i2c: E2 08 00 C9 35 80 0D 01 02 00 00 00 00 77 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 C9 35 00 90 00 72 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]wFMCommunicate request_size=255 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 09 3C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 77 00 00 35 04 06 00 78 A6 A7 32 [11:33:26]Write to MH i2c: E2 02 01 CA 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 09 3C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 77 00 00 35 04 06 00 78 A6 A7 32 00 00 CC [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 CA 35 00 90 00 73 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]wFMCommunicate request_size=7 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 0D 02 02 02 36 48 [11:33:26]Write to MH i2c: E2 0A 00 CB 35 80 0D 02 02 02 00 36 48 00 00 FC [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 03 00 CB 35 00 90 00 74 [11:33:26]RAPDU: 90 00 [11:33:26]wFMCommunicate OK [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 0D 03 02 [11:33:26]Write to MH i2c: E2 08 00 CC 35 80 0D 03 02 00 00 00 00 7C [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0B 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 0B 00 CC 35 00 87 5B 52 26 25 A8 DE 18 90 00 9A [11:33:26]RAPDU: 87 5B 52 26 25 A8 DE 18 90 00 [11:33:26]wFMCommunicate OK [11:33:26]SAM_PROTO_SignData done [11:33:26]FM_MakeSignedData done [11:33:26]CreateOFDProtocolMessage [11:33:26]wFMCommunicate request_size=4 [11:33:26]MH_SAM_APDU [11:33:26]CAPDU: 80 11 00 00 [11:33:26]Write to MH i2c: E2 08 00 CD 35 80 11 00 00 00 00 00 00 7C [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:26]Read from MH i2c: E2 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 17 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: E2 17 00 CD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CA [11:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:33:26]wFMCommunicate OK [11:33:26]CreateOFDProtocolMessage done [11:33:26]OFDSenderStorePacket 30582 [11:33:26]StoreOFDPacket docnum=30582 [11:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 76 02 04 01 50 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 09 3C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 77 00 00 35 04 06 00 78 A6 A7 32 36 48 87 5B 52 26 25 A8 DE 18 [11:33:26]CheckFolder [11:33:26]dirname=/storage/ofd_packets [11:33:26]CheckFolder done [11:33:26]ProducePacketName [11:33:26]name=ofd_packets/00030582 [11:33:26]NVStorageSaveData ofd_packets/00030582 [11:33:26]File name is /storage/ofd_packets/00030582 [11:33:26]Write 298 bytes [11:33:26]NVStorageSaveData done [11:33:26]OFDSenderStorePacket done [11:33:26]KKMCreateOFDPacket done [11:33:26]NVStorageSaveData kkm_last_timestamp [11:33:26]File name is /storage/kkm_last_timestamp [11:33:26]Write 4 bytes [11:33:26]NVStorageSaveData done [11:33:26]ExternCall_PrintAddStr [11:33:26]wPrintStart [11:33:26]Write to MH i2c: 01 00 00 CE 35 03 [11:33:26]Write i2c OK [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: 01 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: 01 07 00 [11:33:26]MH_I2C_Read... [11:33:26]Read from MH i2c: 01 07 00 CE 35 00 00 00 00 00 FF 0F 18 [11:33:26]RasterBufferAndPrint [11:33:26]line Счет N : (1)342990 [11:33:26]line ИНН: 02508201610067 [11:33:26]line Контрольно-Кассовый Чек [11:33:26]line ПРОДАЖА [11:33:26]line ТРК (МРК, ГНК) : 64 [11:33:26]line Товар: 2710194210 [11:33:26]line ДТ-К-2 [11:33:26]line 13.130 * 76.20 [11:33:26]line = 1000.51 [11:33:26]line НДС 12% НСП 1% [11:33:26]line > о реализуемом товаре [11:33:26]line ИТОГО: 1000.51 [11:33:26]line НСП 1% : 8.85 [11:33:26]line НДС 12% : 106.25 [11:33:26]line Наличными: 0.00 [11:33:26]line Безнал.: 1000.51 [11:33:26]line Место: АЗС № 78 "Партнер Нефть" [11:33:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:33:26]line СНО: Общий режим [11:33:26]line Чек 79 21.10.2024 11:33 [11:33:26]line Смена: 115 ФФД: 1.0 [11:33:26]line ЗНМ: 0300000137 [11:33:26]line РНМ: 0000000000186857 [11:33:26]line Версия ККМ: v1.0 [11:33:26]line Платежная система: АКБ Кыргызстан [11:33:26]line ФМ: 0000000002094219 [11:33:26]line ФД: 30582 [11:33:26]line ФПД: 132657164990024 [11:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113329&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30582&fm=132657164990024&tin=02508201610067®Number=0000000000186857&sum=100051 [11:33:27]OFD Sender: Processing packet 30582 [packets to send 10, broken 9] [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00030582 [11:33:27]OFD Sender: To server: pG, [11:33:27]CommunicateWithHost lk.salyk.kg:30040 [11:33:27]ConnectInit lk.salyk.kg [11:33:27]written 0, free lines is 4095 [11:33:27]Connected sock=10 [11:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 76 02 04 01 50 59 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 09 3C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 77 00 00 35 04 06 00 78 A6 A7 32 36 48 87 5B 52 26 25 A8 DE 18 [11:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 36 77 47 00 C0 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 76 77 00 00 F4 03 04 00 8A E6 15 67 B6 04 01 00 00 77 5B 15 61 0E 99 EF 5A [11:33:27]CommunicateWithHost err = 0 [11:33:27]CheckOFDResponse [11:33:27]1017 (14) - 77093643461234 [11:33:27]1041 (16) - 0000000002094219 [11:33:27]1040 (4) - 30582 [11:33:27]1012 (4) - 21.10.2024 05:28 [11:33:27]1206 (1) - 0 [11:33:27]OFD Sender: Remove packet 30582 [11:33:27]ProducePacketName [11:33:27]name=ofd_packets/00030582 [11:33:27]NVStorageDeleteData [11:33:27]Write to MH i2c: 01 00 00 F8 35 2D [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: 01 07 00 F8 35 00 00 00 00 00 0D 0D 4E [11:33:27]RasterBufferAndPrint [11:33:27]line [11:33:27]line [11:33:27]line [11:33:27]line [11:33:27]line [11:33:27]written 0, free lines is 3347 [11:33:27]MH_Cut [11:33:27]Write to MH i2c: D1 01 00 FF 35 01 06 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: D1 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: D1 01 00 [11:33:27]MH_I2C_Read... [11:33:27]Read from MH i2c: D1 01 00 FF 35 00 05 [11:33:27]Write to MH i2c: 01 00 00 00 36 36 [11:33:27]Write i2c OK [11:33:27]MH_I2C_Read... [11:33:28]OFD Sender: No OFD packet to send [11:33:28]*** Cut start [11:33:28]*** Partial cut [11:33:28]*** CUTSNS_PIN = 1 [11:33:28]*** CUTSNS_PIN = 0 [11:33:28]*** Brake cut motor [11:33:28]Read from MH i2c: 01 [11:33:28]MH_I2C_Read... [11:33:28]*** Stop cut motor [11:33:28]*** Cut end [11:33:28]Read from MH i2c: 01 07 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: 01 07 00 00 36 00 00 00 00 00 FF 0F 4B [11:33:28]process_action close_receipt done [11:33:28]requested_data is exist [11:33:28]produce_requested_data [11:33:28]requested_item fm.sn is exist - process it [11:33:28]wFMCommunicate request_size=4 [11:33:28]MH_SAM_APDU [11:33:28]CAPDU: 80 11 00 00 [11:33:28]Write to MH i2c: E2 08 00 01 36 80 11 00 00 00 00 00 00 B1 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:28]Read from MH i2c: E2 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 17 00 [11:33:28]MH_I2C_Read... [11:33:28]Read from MH i2c: E2 17 00 01 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [11:33:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:33:28]wFMCommunicate OK [11:33:28]requested_item fd.num is exist - process it [11:33:28]SAM_PROTO_GetFieldsCounters [11:33:28]wFMCommunicate request_size=4 [11:33:28]MH_SAM_APDU [11:33:28]CAPDU: 80 13 00 00 [11:33:28]Write to MH i2c: E2 08 00 02 36 80 13 00 00 00 00 00 00 B4 [11:33:28]Write i2c OK [11:33:28]MH_I2C_Read... [11:33:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 62 00 02 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [11:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 76 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetFieldsCounters done [11:33:29]requested_item shift.num is exist - process it [11:33:29]requested_item shift.opened is exist - process it [11:33:29]req_shift_opened [11:33:29]FM_GetShiftState [11:33:29]SAM_PROTO_GetShiftState [11:33:29]wFMCommunicate request_size=4 [11:33:29]MH_SAM_APDU [11:33:29]CAPDU: 80 13 01 00 [11:33:29]Write to MH i2c: E2 08 00 03 36 80 13 01 00 00 00 00 00 B6 [11:33:29]Write i2c OK [11:33:29]MH_I2C_Read... [11:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:29]Read from MH i2c: E2 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 [11:33:29]MH_I2C_Read... [11:33:29]Read from MH i2c: E2 0E 00 03 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 32 [11:33:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:33:29]wFMCommunicate OK [11:33:29]SAM_PROTO_GetShiftState done [11:33:29]FM_GetShiftState done [11:33:29]req_shift_opened done [11:33:29]requested_item shift.open_date is exist - process it [11:33:29]req_shift_open_date [11:33:29]req_shift_open_date done [11:33:29]produce_requested_data done [11:33:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30582,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:33:29]process_action_free close_receipt [11:33:29]json_value_free [11:33:29]json_value_free done [11:33:29]process_json_proto returns [11:33:29]Send response to host [11:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30582,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:33:29]free response buf [11:33:29]execute_script done [11:33:29]execute_script returns [11:33:29]free content buf [11:33:29]Sock 9.Close socket [11:33:29]Sock 9.Thread stoped [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:23]accept exits with 7 [11:40:23]New connection [11:40:23]New thread 3067489636 created [11:40:23]Thread 3067346276 joined [11:40:23]Waiting for new connection... [11:40:23] Sock 7.Parse request [11:40:23]Sock 7.Check first char [11:40:23]Sock 7.First char is OK [11:40:23]request: POST /json_proto HTTP/1.0 [11:40:23]Method: POST [11:40:23]URL: /json_proto [11:40:23]Method is POST - this is cgi request [11:40:23]url: /json_proto [11:40:23]query_string will be loaded in cgi processing [11:40:23]execute_cgi json_proto POST (null) [11:40:23]execute_cgi path=json_proto method=POST [11:40:23]POST find Content-Length [11:40:23]Host: 172.17.51.3:8080 [11:40:23]Content-Length: 840 [11:40:23]Content-Type: application/json [11:40:23] [11:40:23]POST finish read [11:40:23]Found Content-Length = 840 [11:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:23]execute_script... [11:40:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:23]POST & json_proto [11:40:23]process_json_proto [11:40:23]json parsed OK: [11:40:23]protocol is kg_v1.0 [11:40:23]action value=close_receipt [11:40:23]process_action close_receipt [11:40:23]cmd_close_receipt [11:40:23]MH_GetDate [11:40:23]Write to MH i2c: F0 00 00 04 36 29 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: F0 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: F0 09 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: F0 09 00 04 36 00 AC 3D 16 67 04 C1 95 66 58 [11:40:23]GetLastDocTimeStamp 1729510409 [11:40:23]current date 1729510828 [11:40:23]FM_GetShiftState [11:40:23]SAM_PROTO_GetShiftState [11:40:23]wFMCommunicate request_size=4 [11:40:23]MH_SAM_APDU [11:40:23]CAPDU: 80 13 01 00 [11:40:23]Write to MH i2c: E2 08 00 05 36 80 13 01 00 00 00 00 00 B8 [11:40:23]Write i2c OK [11:40:23]MH_I2C_Read... [11:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:23]Read from MH i2c: E2 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 0E 00 [11:40:23]MH_I2C_Read... [11:40:23]Read from MH i2c: E2 0E 00 05 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 34 [11:40:23]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:40:23]wFMCommunicate OK [11:40:23]SAM_PROTO_GetShiftState done [11:40:23]FM_GetShiftState done [11:40:23]opened in 1729471058 [11:40:23]opened+sec_in_day 1729557458 [11:40:23]quantity*price = 50041 [11:40:23]sum+1 = 50042 [11:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 80 21.10.2024 11:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30583 ФПД: 150591552246635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30583&fm=150591552246635&tin=02508201610067®Number=0000000000186857&sum=50041 [11:40:24]StoreToDocumentArchive [11:40:24]shift 115 fd 30583 [11:40:24]save to /storage/0115/doc_00030583 [11:40:24]save last doc name /storage/0115/doc_00030583 to /storage/kkm_last_doc_name [11:40:24]save OK [11:40:24]Clear old archive folders... [11:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:24]tlvbuf is 01DAF660 [11:40:24]SAM_PROTO_ClearQueue [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 09 00 00 [11:40:24]Write to MH i2c: E2 08 00 12 36 80 09 00 00 00 00 00 00 BA [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 12 36 00 90 00 BC [11:40:24]RAPDU: 90 00 [11:40:24]wFMCommunicate OK [11:40:24]SAM_PROTO_ClearQueue done [11:40:24]KKMCreateOFDPacket [11:40:24]OFDProtocolAddRootSTLVToBuf [11:40:24]FM_MakeSignedData [11:40:24]FM_MakeSignedData [11:40:24]SAM_PROTO_SignData [11:40:24]wFMCommunicate request_size=4 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 0D 01 02 [11:40:24]Write to MH i2c: E2 08 00 13 36 80 0D 01 02 00 00 00 00 C2 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:24]Read from MH i2c: E2 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 [11:40:24]MH_I2C_Read... [11:40:24]Read from MH i2c: E2 03 00 13 36 00 90 00 BD [11:40:24]RAPDU: 90 00 [11:40:24]wFMCommunicate OK [11:40:24]wFMCommunicate request_size=255 [11:40:24]MH_SAM_APDU [11:40:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 3D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 77 00 00 35 04 06 00 88 [11:40:24]Write to MH i2c: E2 02 01 14 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 3D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 77 00 00 35 04 06 00 88 00 00 44 [11:40:24]Write i2c OK [11:40:24]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 03 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 03 00 14 36 00 90 00 BE [11:40:25]RAPDU: 90 00 [11:40:25]wFMCommunicate OK [11:40:25]wFMCommunicate request_size=10 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 0D 02 02 05 F6 53 FA 53 6B [11:40:25]Write to MH i2c: E2 0D 00 15 36 80 0D 02 02 05 00 F6 53 FA 53 6B 00 00 D0 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 03 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 03 00 15 36 00 90 00 BF [11:40:25]RAPDU: 90 00 [11:40:25]wFMCommunicate OK [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 0D 03 02 [11:40:25]Write to MH i2c: E2 08 00 16 36 80 0D 03 02 00 00 00 00 C7 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0B 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0B 00 16 36 00 C3 FD 34 7E 1B 57 0D E2 90 00 9B [11:40:25]RAPDU: C3 FD 34 7E 1B 57 0D E2 90 00 [11:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_SignData done [11:40:25]FM_MakeSignedData done [11:40:25]CreateOFDProtocolMessage [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 11 00 00 [11:40:25]Write to MH i2c: E2 08 00 17 36 80 11 00 00 00 00 00 00 C7 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 17 00 17 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [11:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:40:25]wFMCommunicate OK [11:40:25]CreateOFDProtocolMessage done [11:40:25]OFDSenderStorePacket 30583 [11:40:25]StoreOFDPacket docnum=30583 [11:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 8B 07 01 47 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 3D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 77 00 00 35 04 06 00 88 F6 53 FA 53 6B C3 FD 34 7E 1B 57 0D E2 [11:40:25]CheckFolder [11:40:25]dirname=/storage/ofd_packets [11:40:25]CheckFolder done [11:40:25]ProducePacketName [11:40:25]name=ofd_packets/00030583 [11:40:25]NVStorageSaveData ofd_packets/00030583 [11:40:25]File name is /storage/ofd_packets/00030583 [11:40:25]Write 301 bytes [11:40:25]NVStorageSaveData done [11:40:25]OFDSenderStorePacket done [11:40:25]KKMCreateOFDPacket done [11:40:25]NVStorageSaveData kkm_last_timestamp [11:40:25]File name is /storage/kkm_last_timestamp [11:40:25]Write 4 bytes [11:40:25]NVStorageSaveData done [11:40:25]ExternCall_PrintAddStr [11:40:25]wPrintStart [11:40:25]Write to MH i2c: 01 00 00 18 36 4E [11:40:25]OFD Sender: Processing packet 30583 [packets to send 10, broken 9] [11:40:25]ProducePacketName [11:40:25]name=ofd_packets/00030583 [11:40:25]OFD Sender: To server: pG, [11:40:25]CommunicateWithHost lk.salyk.kg:30040 [11:40:25]ConnectInit lk.salyk.kg [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 07 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: 01 07 00 18 36 00 00 00 00 00 FF 0F 63 [11:40:25]RasterBufferAndPrint [11:40:25]line Счет N : (1)342991 [11:40:25]line ИНН: 02508201610067 [11:40:25]line Контрольно-Кассовый Чек [11:40:25]line ПРОДАЖА [11:40:25]line ТРК (МРК, ГНК) : 33 [11:40:25]line Товар: 2710124130 [11:40:25]line Аи-92-К-2 [11:40:25]line 7.480 * 66.90 [11:40:25]line = 500.41 [11:40:25]line НДС 12% НСП 1% [11:40:25]line > о реализуемом товаре [11:40:25]line ИТОГО: 500.41 [11:40:25]line НСП 1% : 4.43 [11:40:25]line НДС 12% : 53.14 [11:40:25]line Наличными: 0.00 [11:40:25]line Безнал.: 500.41 [11:40:25]line Место: АЗС № 78 "Партнер Нефть" [11:40:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:40:25]line СНО: Общий режим [11:40:25]line Чек 80 21.10.2024 11:40 [11:40:25]line Смена: 115 ФФД: 1.0 [11:40:25]line ЗНМ: 0300000137 [11:40:25]line РНМ: 0000000000186857 [11:40:25]line Версия ККМ: v1.0 [11:40:25]line Платежная система: АКБ Кыргызстан [11:40:25]line ФМ: 0000000002094219 [11:40:25]line ФД: 30583 [11:40:25]line ФПД: 150591552246635 [11:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30583&fm=150591552246635&tin=02508201610067®Number=0000000000186857&sum=50041 [11:40:25]Connected sock=10 [11:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 8B 07 01 47 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 AC 3D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 77 00 00 35 04 06 00 88 F6 53 FA 53 6B C3 FD 34 7E 1B 57 0D E2 [11:40:25]written 0, free lines is 4095 [11:40:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B4 8E 47 00 B3 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 77 77 00 00 F4 03 04 00 2C E8 15 67 B6 04 01 00 00 EF 0E EA 9F 4D B9 98 17 [11:40:25]CommunicateWithHost err = 0 [11:40:25]CheckOFDResponse [11:40:25]1017 (14) - 77093643461234 [11:40:25]1041 (16) - 0000000002094219 [11:40:25]1040 (4) - 30583 [11:40:25]1012 (4) - 21.10.2024 05:35 [11:40:25]1206 (1) - 0 [11:40:25]OFD Sender: Remove packet 30583 [11:40:25]ProducePacketName [11:40:25]name=ofd_packets/00030583 [11:40:25]NVStorageDeleteData [11:40:26]Write to MH i2c: 01 00 00 42 36 78 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 07 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: 01 07 00 42 36 00 00 00 00 00 FF 0C 8A [11:40:26]RasterBufferAndPrint [11:40:26]line [11:40:26]line [11:40:26]line [11:40:26]line [11:40:26]line [11:40:26]written 0, free lines is 3335 [11:40:26]MH_Cut [11:40:26]Write to MH i2c: D1 01 00 49 36 01 51 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: D1 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: D1 01 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: D1 01 00 49 36 00 50 [11:40:26]Write to MH i2c: 01 00 00 4A 36 80 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]OFD Sender: No OFD packet to send [11:40:26]*** Cut start [11:40:26]*** Partial cut [11:40:26]*** CUTSNS_PIN = 1 [11:40:26]*** CUTSNS_PIN = 0 [11:40:27]*** Brake cut motor [11:40:27]Read from MH i2c: 01 [11:40:27]MH_I2C_Read... [11:40:27]*** Stop cut motor [11:40:27]*** Cut end [11:40:27]Read from MH i2c: 01 07 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 4A 36 00 00 00 00 00 FF 0F 95 [11:40:27]process_action close_receipt done [11:40:27]requested_data is exist [11:40:27]produce_requested_data [11:40:27]requested_item fm.sn is exist - process it [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 11 00 00 [11:40:27]Write to MH i2c: E2 08 00 4B 36 80 11 00 00 00 00 00 00 FB [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 17 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 17 00 4B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [11:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:40:27]wFMCommunicate OK [11:40:27]requested_item fd.num is exist - process it [11:40:27]SAM_PROTO_GetFieldsCounters [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 13 00 00 [11:40:27]Write to MH i2c: E2 08 00 4C 36 80 13 00 00 00 00 00 00 FE [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 62 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 62 00 4C 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 77 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:27]wFMCommunicate OK [11:40:27]SAM_PROTO_GetFieldsCounters done [11:40:27]requested_item shift.num is exist - process it [11:40:27]requested_item shift.opened is exist - process it [11:40:27]req_shift_opened [11:40:27]FM_GetShiftState [11:40:27]SAM_PROTO_GetShiftState [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 13 01 00 [11:40:27]Write to MH i2c: E2 08 00 4D 36 80 13 01 00 00 00 00 00 00 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 0E 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 0E 00 4D 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7C [11:40:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:40:27]wFMCommunicate OK [11:40:27]SAM_PROTO_GetShiftState done [11:40:27]FM_GetShiftState done [11:40:27]req_shift_opened done [11:40:27]requested_item shift.open_date is exist - process it [11:40:27]req_shift_open_date [11:40:27]req_shift_open_date done [11:40:27]produce_requested_data done [11:40:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30583,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:40:27]process_action_free close_receipt [11:40:27]json_value_free [11:40:27]json_value_free done [11:40:27]process_json_proto returns [11:40:27]Send response to host [11:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30583,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:40:27]free response buf [11:40:27]execute_script done [11:40:27]execute_script returns [11:40:27]free content buf [11:40:27]Sock 7.Close socket [11:40:27]Sock 7.Thread stoped [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:44]accept exits with 9 [11:42:44]New connection [11:42:44]New thread 3067346276 created [11:42:44]Thread 3067489636 joined [11:42:44]Waiting for new connection... [11:42:44] Sock 9.Parse request [11:42:44]Sock 9.Check first char [11:42:44]Sock 9.First char is OK [11:42:44]request: POST /json_proto HTTP/1.0 [11:42:44]Method: POST [11:42:44]URL: /json_proto [11:42:44]Method is POST - this is cgi request [11:42:44]url: /json_proto [11:42:44]query_string will be loaded in cgi processing [11:42:44]execute_cgi json_proto POST (null) [11:42:44]execute_cgi path=json_proto method=POST [11:42:44]POST find Content-Length [11:42:44]Host: 172.17.51.3:8080 [11:42:44]Content-Length: 677 [11:42:44]Content-Type: application/json [11:42:44] [11:42:44]POST finish read [11:42:44]Found Content-Length = 677 [11:42:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:44]execute_script... [11:42:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:44]POST & json_proto [11:42:44]process_json_proto [11:42:44]json parsed OK: [11:42:44]protocol is kg_v1.0 [11:42:44]action value=close_receipt [11:42:44]process_action close_receipt [11:42:44]cmd_close_receipt [11:42:44]MH_GetDate [11:42:44]Write to MH i2c: F0 00 00 4E 36 73 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: F0 09 00 4E 36 00 39 3E 16 67 04 C1 95 66 30 [11:42:44]GetLastDocTimeStamp 1729510828 [11:42:44]current date 1729510969 [11:42:44]FM_GetShiftState [11:42:44]SAM_PROTO_GetShiftState [11:42:44]wFMCommunicate request_size=4 [11:42:44]MH_SAM_APDU [11:42:44]CAPDU: 80 13 01 00 [11:42:44]Write to MH i2c: E2 08 00 4F 36 80 13 01 00 00 00 00 00 02 [11:42:44]Write i2c OK [11:42:44]MH_I2C_Read... [11:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:44]Read from MH i2c: E2 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 [11:42:44]MH_I2C_Read... [11:42:44]Read from MH i2c: E2 0E 00 4F 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7E [11:42:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:42:44]wFMCommunicate OK [11:42:44]SAM_PROTO_GetShiftState done [11:42:44]FM_GetShiftState done [11:42:44]opened in 1729471058 [11:42:44]opened+sec_in_day 1729557458 [11:42:44]quantity*price = 40006 [11:42:44]sum+1 = 40007 [11:42:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 81 21.10.2024 11:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30584 ФПД: 175719410001323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114249&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30584&fm=175719410001323&tin=02508201610067®Number=0000000000186857&sum=40000 [11:42:45]StoreToDocumentArchive [11:42:45]shift 115 fd 30584 [11:42:45]save to /storage/0115/doc_00030584 [11:42:45]save last doc name /storage/0115/doc_00030584 to /storage/kkm_last_doc_name [11:42:45]save OK [11:42:45]Clear old archive folders... [11:42:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:45]tlvbuf is 01E060F0 [11:42:45]SAM_PROTO_ClearQueue [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 09 00 00 [11:42:45]Write to MH i2c: E2 08 00 5C 36 80 09 00 00 00 00 00 00 04 [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 5C 36 00 90 00 06 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]SAM_PROTO_ClearQueue done [11:42:45]KKMCreateOFDPacket [11:42:45]OFDProtocolAddRootSTLVToBuf [11:42:45]FM_MakeSignedData [11:42:45]FM_MakeSignedData [11:42:45]SAM_PROTO_SignData [11:42:45]wFMCommunicate request_size=4 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 0D 01 02 [11:42:45]Write to MH i2c: E2 08 00 5D 36 80 0D 01 02 00 00 00 00 0C [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:45]Read from MH i2c: E2 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 [11:42:45]MH_I2C_Read... [11:42:45]Read from MH i2c: E2 03 00 5D 36 00 90 00 07 [11:42:45]RAPDU: 90 00 [11:42:45]wFMCommunicate OK [11:42:45]wFMCommunicate request_size=255 [11:42:45]MH_SAM_APDU [11:42:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 3E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 77 00 00 35 04 06 00 9F [11:42:45]Write to MH i2c: E2 02 01 5E 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 3E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 77 00 00 35 04 06 00 9F 00 00 B2 [11:42:45]Write i2c OK [11:42:45]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 5E 36 00 90 00 08 [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=10 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 02 02 05 D0 DD 03 65 AB [11:42:46]Write to MH i2c: E2 0D 00 5F 36 80 0D 02 02 05 00 D0 DD 03 65 AB 00 00 D9 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 03 00 5F 36 00 90 00 09 [11:42:46]RAPDU: 90 00 [11:42:46]wFMCommunicate OK [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 0D 03 02 [11:42:46]Write to MH i2c: E2 08 00 60 36 80 0D 03 02 00 00 00 00 11 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 0B 00 60 36 00 F0 9B F1 66 73 CA 74 B5 90 00 5A [11:42:46]RAPDU: F0 9B F1 66 73 CA 74 B5 90 00 [11:42:46]wFMCommunicate OK [11:42:46]SAM_PROTO_SignData done [11:42:46]FM_MakeSignedData done [11:42:46]CreateOFDProtocolMessage [11:42:46]wFMCommunicate request_size=4 [11:42:46]MH_SAM_APDU [11:42:46]CAPDU: 80 11 00 00 [11:42:46]Write to MH i2c: E2 08 00 61 36 80 11 00 00 00 00 00 00 11 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:46]Read from MH i2c: E2 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: E2 17 00 61 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [11:42:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:42:46]wFMCommunicate OK [11:42:46]CreateOFDProtocolMessage done [11:42:46]OFDSenderStorePacket 30584 [11:42:46]StoreOFDPacket docnum=30584 [11:42:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 63 07 01 91 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 3E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 77 00 00 35 04 06 00 9F D0 DD 03 65 AB F0 9B F1 66 73 CA 74 B5 [11:42:46]CheckFolder [11:42:46]dirname=/storage/ofd_packets [11:42:46]CheckFolder done [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00030584 [11:42:46]NVStorageSaveData ofd_packets/00030584 [11:42:46]File name is /storage/ofd_packets/00030584 [11:42:46]Write 301 bytes [11:42:46]NVStorageSaveData done [11:42:46]OFDSenderStorePacket done [11:42:46]KKMCreateOFDPacket done [11:42:46]NVStorageSaveData kkm_last_timestamp [11:42:46]File name is /storage/kkm_last_timestamp [11:42:46]Write 4 bytes [11:42:46]NVStorageSaveData done [11:42:46]ExternCall_PrintAddStr [11:42:46]wPrintStart [11:42:46]Write to MH i2c: 01 00 00 62 36 98 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 62 36 00 00 00 00 00 FF 0F AD [11:42:46]RasterBufferAndPrint [11:42:46]line Счет N : (1)342992 [11:42:46]line ИНН: 02508201610067 [11:42:46]line Контрольно-Кассовый Чек [11:42:46]line ПРОДАЖА [11:42:46]line ТРК (МРК, ГНК) : 63 [11:42:46]line Товар: 2710124130 [11:42:46]line Аи-92-К-2 [11:42:46]line 5.980 * 66.90 [11:42:46]line = 400.06 [11:42:46]line НДС 12% НСП 1% [11:42:46]line > о реализуемом товаре [11:42:46]line ОКРУГЛЕНИЕ: -0.06 [11:42:46]line ИТОГО: 400.00 [11:42:46]line Внесено: 400.00 [11:42:46]line СДАЧА: 0.00 [11:42:46]line НСП 1% : 3.54 [11:42:46]line НДС 12% : 42.48 [11:42:46]line Наличными: 400.00 [11:42:46]line Безнал.: 0.00 [11:42:46]line Место: АЗС № 78 "Партнер Нефть" [11:42:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:42:46]line СНО: Общий режим [11:42:46]line Чек 81 21.10.2024 11:42 [11:42:46]line Смена: 115 ФФД: 1.0 [11:42:46]line ЗНМ: 0300000137 [11:42:46]line РНМ: 0000000000186857 [11:42:46]line Версия ККМ: v1.0 [11:42:46]line ФМ: 0000000002094219 [11:42:46]line ФД: 30584 [11:42:46]line ФПД: 175719410001323 [11:42:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114249&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30584&fm=175719410001323&tin=02508201610067®Number=0000000000186857&sum=40000 [11:42:46]OFD Sender: Processing packet 30584 [packets to send 10, broken 9] [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00030584 [11:42:46]OFD Sender: To server: pG, [11:42:46]CommunicateWithHost lk.salyk.kg:30040 [11:42:46]ConnectInit lk.salyk.kg [11:42:46]written 0, free lines is 4095 [11:42:46]Connected sock=10 [11:42:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 63 07 01 91 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 39 3E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 77 00 00 35 04 06 00 9F D0 DD 03 65 AB F0 9B F1 66 73 CA 74 B5 [11:42:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1E 05 47 00 2C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 78 77 00 00 F4 03 04 00 B9 E8 15 67 B6 04 01 00 00 51 77 06 54 93 F7 54 D9 [11:42:46]CommunicateWithHost err = 0 [11:42:46]CheckOFDResponse [11:42:46]1017 (14) - 77093643461234 [11:42:46]1041 (16) - 0000000002094219 [11:42:46]1040 (4) - 30584 [11:42:46]1012 (4) - 21.10.2024 05:38 [11:42:46]1206 (1) - 0 [11:42:46]OFD Sender: Remove packet 30584 [11:42:46]ProducePacketName [11:42:46]name=ofd_packets/00030584 [11:42:46]NVStorageDeleteData [11:42:46]Write to MH i2c: 01 00 00 8D 36 C3 [11:42:46]Write i2c OK [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 [11:42:46]MH_I2C_Read... [11:42:46]Read from MH i2c: 01 07 00 8D 36 00 00 00 00 00 F2 0C C8 [11:42:46]RasterBufferAndPrint [11:42:46]line [11:42:46]line [11:42:46]line [11:42:46]line [11:42:46]line [11:42:46]written 0, free lines is 3320 [11:42:47]MH_Cut [11:42:47]Write to MH i2c: D1 01 00 94 36 01 9C [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 [11:42:47]MH_I2C_Read... [11:42:47]Read from MH i2c: D1 01 00 94 36 00 9B [11:42:47]Write to MH i2c: 01 00 00 95 36 CB [11:42:47]Write i2c OK [11:42:47]MH_I2C_Read... [11:42:47]OFD Sender: No OFD packet to send [11:42:47]*** Cut start [11:42:47]*** Partial cut [11:42:47]*** CUTSNS_PIN = 1 [11:42:47]*** CUTSNS_PIN = 0 [11:42:47]*** Brake cut motor [11:42:48]Read from MH i2c: 01 [11:42:48]MH_I2C_Read... [11:42:48]*** Stop cut motor [11:42:48]*** Cut end [11:42:48]Read from MH i2c: 01 07 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: 01 07 00 95 36 00 00 00 00 00 FF 0F E0 [11:42:48]process_action close_receipt done [11:42:48]requested_data is exist [11:42:48]produce_requested_data [11:42:48]requested_item fm.sn is exist - process it [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 11 00 00 [11:42:48]Write to MH i2c: E2 08 00 96 36 80 11 00 00 00 00 00 00 46 [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 17 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 17 00 96 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [11:42:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:42:48]wFMCommunicate OK [11:42:48]requested_item fd.num is exist - process it [11:42:48]SAM_PROTO_GetFieldsCounters [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 13 00 00 [11:42:48]Write to MH i2c: E2 08 00 97 36 80 13 00 00 00 00 00 00 49 [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 62 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 62 00 97 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:42:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 78 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:48]wFMCommunicate OK [11:42:48]SAM_PROTO_GetFieldsCounters done [11:42:48]requested_item shift.num is exist - process it [11:42:48]requested_item shift.opened is exist - process it [11:42:48]req_shift_opened [11:42:48]FM_GetShiftState [11:42:48]SAM_PROTO_GetShiftState [11:42:48]wFMCommunicate request_size=4 [11:42:48]MH_SAM_APDU [11:42:48]CAPDU: 80 13 01 00 [11:42:48]Write to MH i2c: E2 08 00 98 36 80 13 01 00 00 00 00 00 4B [11:42:48]Write i2c OK [11:42:48]MH_I2C_Read... [11:42:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:48]Read from MH i2c: E2 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 [11:42:48]MH_I2C_Read... [11:42:48]Read from MH i2c: E2 0E 00 98 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C7 [11:42:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:42:48]wFMCommunicate OK [11:42:48]SAM_PROTO_GetShiftState done [11:42:48]FM_GetShiftState done [11:42:48]req_shift_opened done [11:42:48]requested_item shift.open_date is exist - process it [11:42:48]req_shift_open_date [11:42:48]req_shift_open_date done [11:42:48]produce_requested_data done [11:42:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30584,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:42:48]process_action_free close_receipt [11:42:48]json_value_free [11:42:48]json_value_free done [11:42:48]process_json_proto returns [11:42:48]Send response to host [11:42:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30584,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:42:48]free response buf [11:42:48]execute_script done [11:42:48]execute_script returns [11:42:48]free content buf [11:42:48]Sock 9.Close socket [11:42:48]Sock 9.Thread stoped [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:33]accept exits with 7 [11:46:33]New connection [11:46:33]New thread 3067489636 created [11:46:33]Thread 3067346276 joined [11:46:33]Waiting for new connection... [11:46:33] Sock 7.Parse request [11:46:33]Sock 7.Check first char [11:46:33]Sock 7.First char is OK [11:46:33]request: POST /json_proto HTTP/1.0 [11:46:33]Method: POST [11:46:33]URL: /json_proto [11:46:33]Method is POST - this is cgi request [11:46:33]url: /json_proto [11:46:33]query_string will be loaded in cgi processing [11:46:33]execute_cgi json_proto POST (null) [11:46:33]execute_cgi path=json_proto method=POST [11:46:33]POST find Content-Length [11:46:33]Host: 172.17.51.3:8080 [11:46:33]Content-Length: 679 [11:46:33]Content-Type: application/json [11:46:33] [11:46:33]POST finish read [11:46:33]Found Content-Length = 679 [11:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:33]execute_script... [11:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:33]POST & json_proto [11:46:33]process_json_proto [11:46:33]json parsed OK: [11:46:33]protocol is kg_v1.0 [11:46:33]action value=close_receipt [11:46:33]process_action close_receipt [11:46:33]cmd_close_receipt [11:46:33]MH_GetDate [11:46:33]Write to MH i2c: F0 00 00 99 36 BE [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: F0 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: F0 09 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: F0 09 00 99 36 00 1D 3F 16 67 04 C1 95 66 60 [11:46:33]GetLastDocTimeStamp 1729510969 [11:46:33]current date 1729511197 [11:46:33]FM_GetShiftState [11:46:33]SAM_PROTO_GetShiftState [11:46:33]wFMCommunicate request_size=4 [11:46:33]MH_SAM_APDU [11:46:33]CAPDU: 80 13 01 00 [11:46:33]Write to MH i2c: E2 08 00 9A 36 80 13 01 00 00 00 00 00 4D [11:46:33]Write i2c OK [11:46:33]MH_I2C_Read... [11:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:33]Read from MH i2c: E2 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0E 00 [11:46:33]MH_I2C_Read... [11:46:33]Read from MH i2c: E2 0E 00 9A 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C9 [11:46:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:46:33]wFMCommunicate OK [11:46:33]SAM_PROTO_GetShiftState done [11:46:33]FM_GetShiftState done [11:46:33]opened in 1729471058 [11:46:33]opened+sec_in_day 1729557458 [11:46:33]quantity*price = 200025 [11:46:33]sum+1 = 200026 [11:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 82 21.10.2024 11:46 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30585 ФПД: 41423984483999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30585&fm=41423984483999&tin=02508201610067®Number=0000000000186857&sum=200000 [11:46:34]StoreToDocumentArchive [11:46:34]shift 115 fd 30585 [11:46:34]save to /storage/0115/doc_00030585 [11:46:34]save last doc name /storage/0115/doc_00030585 to /storage/kkm_last_doc_name [11:46:34]save OK [11:46:34]Clear old archive folders... [11:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:34]tlvbuf is 01DD6D10 [11:46:34]SAM_PROTO_ClearQueue [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 09 00 00 [11:46:34]Write to MH i2c: E2 08 00 A7 36 80 09 00 00 00 00 00 00 4F [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 A7 36 00 90 00 51 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]SAM_PROTO_ClearQueue done [11:46:34]KKMCreateOFDPacket [11:46:34]OFDProtocolAddRootSTLVToBuf [11:46:34]FM_MakeSignedData [11:46:34]FM_MakeSignedData [11:46:34]SAM_PROTO_SignData [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 01 02 [11:46:34]Write to MH i2c: E2 08 00 A8 36 80 0D 01 02 00 00 00 00 57 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 A8 36 00 90 00 52 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=255 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 3F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 77 00 00 35 04 06 00 25 AC C5 E1 [11:46:34]Write to MH i2c: E2 02 01 A9 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 3F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 77 00 00 35 04 06 00 25 AC C5 E1 00 00 D1 [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=7 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 02 02 02 5E 9F [11:46:34]Write to MH i2c: E2 0A 00 AA 36 80 0D 02 02 02 00 5E 9F 00 00 5B [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 03 00 AA 36 00 90 00 54 [11:46:34]RAPDU: 90 00 [11:46:34]wFMCommunicate OK [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 0D 03 02 [11:46:34]Write to MH i2c: E2 08 00 AB 36 80 0D 03 02 00 00 00 00 5C [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:34]Read from MH i2c: E2 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0B 00 [11:46:34]MH_I2C_Read... [11:46:34]Read from MH i2c: E2 0B 00 AB 36 00 F6 6D 55 38 47 B4 4C 66 90 00 FA [11:46:34]RAPDU: F6 6D 55 38 47 B4 4C 66 90 00 [11:46:34]wFMCommunicate OK [11:46:34]SAM_PROTO_SignData done [11:46:34]FM_MakeSignedData done [11:46:34]CreateOFDProtocolMessage [11:46:34]wFMCommunicate request_size=4 [11:46:34]MH_SAM_APDU [11:46:34]CAPDU: 80 11 00 00 [11:46:34]Write to MH i2c: E2 08 00 AC 36 80 11 00 00 00 00 00 00 5C [11:46:34]Write i2c OK [11:46:34]MH_I2C_Read... [11:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:35]Read from MH i2c: E2 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: E2 17 00 AC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [11:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:46:35]wFMCommunicate OK [11:46:35]CreateOFDProtocolMessage done [11:46:35]OFDSenderStorePacket 30585 [11:46:35]StoreOFDPacket docnum=30585 [11:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 20 FD 04 01 12 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 3F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 77 00 00 35 04 06 00 25 AC C5 E1 5E 9F F6 6D 55 38 47 B4 4C 66 [11:46:35]CheckFolder [11:46:35]dirname=/storage/ofd_packets [11:46:35]CheckFolder done [11:46:35]ProducePacketName [11:46:35]name=ofd_packets/00030585 [11:46:35]NVStorageSaveData ofd_packets/00030585 [11:46:35]File name is /storage/ofd_packets/00030585 [11:46:35]Write 298 bytes [11:46:35]NVStorageSaveData done [11:46:35]OFDSenderStorePacket done [11:46:35]KKMCreateOFDPacket done [11:46:35]NVStorageSaveData kkm_last_timestamp [11:46:35]File name is /storage/kkm_last_timestamp [11:46:35]Write 4 bytes [11:46:35]NVStorageSaveData done [11:46:35]ExternCall_PrintAddStr [11:46:35]wPrintStart [11:46:35]Write to MH i2c: 01 00 00 AD 36 E3 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 AD 36 00 00 00 00 00 FF 0F F8 [11:46:35]RasterBufferAndPrint [11:46:35]line Счет N : (1)342993 [11:46:35]line ИНН: 02508201610067 [11:46:35]line Контрольно-Кассовый Чек [11:46:35]line ПРОДАЖА [11:46:35]line ТРК (МРК, ГНК) : 44 [11:46:35]line Товар: 2710194210 [11:46:35]line ДТ-К-2 [11:46:35]line 26.250 * 76.20 [11:46:35]line = 2000.25 [11:46:35]line НДС 12% НСП 1% [11:46:35]line > о реализуемом товаре [11:46:35]line ОКРУГЛЕНИЕ: -0.25 [11:46:35]line ИТОГО: 2000.00 [11:46:35]line Внесено: 2000.00 [11:46:35]line СДАЧА: 0.00 [11:46:35]line НСП 1% : 17.70 [11:46:35]line НДС 12% : 212.42 [11:46:35]line Наличными: 2000.00 [11:46:35]line Безнал.: 0.00 [11:46:35]line Место: АЗС № 78 "Партнер Нефть" [11:46:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:46:35]line СНО: Общий режим [11:46:35]line Чек 82 21.10.2024 11:46 [11:46:35]line Смена: 115 ФФД: 1.0 [11:46:35]line ЗНМ: 0300000137 [11:46:35]line РНМ: 0000000000186857 [11:46:35]line Версия ККМ: v1.0 [11:46:35]line ФМ: 0000000002094219 [11:46:35]line ФД: 30585 [11:46:35]line ФПД: 41423984483999 [11:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30585&fm=41423984483999&tin=02508201610067®Number=0000000000186857&sum=200000 [11:46:35]OFD Sender: Processing packet 30585 [packets to send 10, broken 9] [11:46:35]ProducePacketName [11:46:35]name=ofd_packets/00030585 [11:46:35]OFD Sender: To server: pG, [11:46:35]CommunicateWithHost lk.salyk.kg:30040 [11:46:35]written 0, free lines is 4095 [11:46:35]ConnectInit lk.salyk.kg [11:46:35]Connected sock=10 [11:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 20 FD 04 01 12 3A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 1D 3F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 77 00 00 35 04 06 00 25 AC C5 E1 5E 9F F6 6D 55 38 47 B4 4C 66 [11:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 62 9E 47 00 36 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 79 77 00 00 F4 03 04 00 9E E9 15 67 B6 04 01 00 00 2C 7E AF 61 65 B6 3E A7 [11:46:35]CommunicateWithHost err = 0 [11:46:35]CheckOFDResponse [11:46:35]1017 (14) - 77093643461234 [11:46:35]1041 (16) - 0000000002094219 [11:46:35]1040 (4) - 30585 [11:46:35]1012 (4) - 21.10.2024 05:41 [11:46:35]1206 (1) - 0 [11:46:35]OFD Sender: Remove packet 30585 [11:46:35]ProducePacketName [11:46:35]name=ofd_packets/00030585 [11:46:35]NVStorageDeleteData [11:46:35]Write to MH i2c: 01 00 00 D8 36 0E [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: 01 07 00 D8 36 00 00 00 00 00 FB 0C 1C [11:46:35]RasterBufferAndPrint [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]line [11:46:35]written 0, free lines is 3330 [11:46:35]MH_Cut [11:46:35]Write to MH i2c: D1 01 00 DF 36 01 E7 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 01 00 [11:46:35]MH_I2C_Read... [11:46:35]Read from MH i2c: D1 01 00 DF 36 00 E6 [11:46:35]Write to MH i2c: 01 00 00 E0 36 16 [11:46:35]Write i2c OK [11:46:35]MH_I2C_Read... [11:46:36]OFD Sender: No OFD packet to send [11:46:36]*** Cut start [11:46:36]*** Partial cut [11:46:36]*** CUTSNS_PIN = 1 [11:46:36]*** CUTSNS_PIN = 0 [11:46:36]*** Brake cut motor [11:46:37]Read from MH i2c: 01 [11:46:37]MH_I2C_Read... [11:46:37]*** Stop cut motor [11:46:37]*** Cut end [11:46:37]Read from MH i2c: 01 07 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: 01 07 00 E0 36 00 00 00 00 00 FF 0F 2B [11:46:37]process_action close_receipt done [11:46:37]requested_data is exist [11:46:37]produce_requested_data [11:46:37]requested_item fm.sn is exist - process it [11:46:37]wFMCommunicate request_size=4 [11:46:37]MH_SAM_APDU [11:46:37]CAPDU: 80 11 00 00 [11:46:37]Write to MH i2c: E2 08 00 E1 36 80 11 00 00 00 00 00 00 91 [11:46:37]Write i2c OK [11:46:37]MH_I2C_Read... [11:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:37]Read from MH i2c: E2 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 17 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 17 00 E1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DF [11:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:46:37]wFMCommunicate OK [11:46:37]requested_item fd.num is exist - process it [11:46:37]SAM_PROTO_GetFieldsCounters [11:46:37]wFMCommunicate request_size=4 [11:46:37]MH_SAM_APDU [11:46:37]CAPDU: 80 13 00 00 [11:46:37]Write to MH i2c: E2 08 00 E2 36 80 13 00 00 00 00 00 00 94 [11:46:37]Write i2c OK [11:46:37]MH_I2C_Read... [11:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:37]Read from MH i2c: E2 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 62 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 62 00 E2 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 79 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:37]wFMCommunicate OK [11:46:37]SAM_PROTO_GetFieldsCounters done [11:46:37]requested_item shift.num is exist - process it [11:46:37]requested_item shift.opened is exist - process it [11:46:37]req_shift_opened [11:46:37]FM_GetShiftState [11:46:37]SAM_PROTO_GetShiftState [11:46:37]wFMCommunicate request_size=4 [11:46:37]MH_SAM_APDU [11:46:37]CAPDU: 80 13 01 00 [11:46:37]Write to MH i2c: E2 08 00 E3 36 80 13 01 00 00 00 00 00 96 [11:46:37]Write i2c OK [11:46:37]MH_I2C_Read... [11:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:37]Read from MH i2c: E2 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 0E 00 [11:46:37]MH_I2C_Read... [11:46:37]Read from MH i2c: E2 0E 00 E3 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 12 [11:46:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:46:37]wFMCommunicate OK [11:46:37]SAM_PROTO_GetShiftState done [11:46:37]FM_GetShiftState done [11:46:37]req_shift_opened done [11:46:37]requested_item shift.open_date is exist - process it [11:46:37]req_shift_open_date [11:46:37]req_shift_open_date done [11:46:37]produce_requested_data done [11:46:37]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30585,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:46:37]process_action_free close_receipt [11:46:37]json_value_free [11:46:37]json_value_free done [11:46:37]process_json_proto returns [11:46:37]Send response to host [11:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30585,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:46:37]free response buf [11:46:37]execute_script done [11:46:37]execute_script returns [11:46:37]free content buf [11:46:37]Sock 7.Close socket [11:46:37]Sock 7.Thread stoped [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:51]accept exits with 9 [11:50:51]New connection [11:50:51]New thread 3067346276 created [11:50:51]Thread 3067489636 joined [11:50:51]Waiting for new connection... [11:50:51] Sock 9.Parse request [11:50:51]Sock 9.Check first char [11:50:51]Sock 9.First char is OK [11:50:51]request: POST /json_proto HTTP/1.0 [11:50:51]Method: POST [11:50:51]URL: /json_proto [11:50:51]Method is POST - this is cgi request [11:50:51]url: /json_proto [11:50:51]query_string will be loaded in cgi processing [11:50:51]execute_cgi json_proto POST (null) [11:50:51]execute_cgi path=json_proto method=POST [11:50:51]POST find Content-Length [11:50:51]Host: 172.17.51.3:8080 [11:50:51]Content-Length: 682 [11:50:51]Content-Type: application/json [11:50:51] [11:50:51]POST finish read [11:50:51]Found Content-Length = 682 [11:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:51]execute_script... [11:50:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:51]POST & json_proto [11:50:51]process_json_proto [11:50:51]json parsed OK: [11:50:51]protocol is kg_v1.0 [11:50:51]action value=close_receipt [11:50:51]process_action close_receipt [11:50:51]cmd_close_receipt [11:50:51]MH_GetDate [11:50:51]Write to MH i2c: F0 00 00 E4 36 09 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 09 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: F0 09 00 E4 36 00 20 40 16 67 04 C1 95 66 AF [11:50:51]GetLastDocTimeStamp 1729511197 [11:50:51]current date 1729511456 [11:50:51]FM_GetShiftState [11:50:51]SAM_PROTO_GetShiftState [11:50:51]wFMCommunicate request_size=4 [11:50:51]MH_SAM_APDU [11:50:51]CAPDU: 80 13 01 00 [11:50:51]Write to MH i2c: E2 08 00 E5 36 80 13 01 00 00 00 00 00 98 [11:50:51]Write i2c OK [11:50:51]MH_I2C_Read... [11:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:51]Read from MH i2c: E2 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 [11:50:51]MH_I2C_Read... [11:50:51]Read from MH i2c: E2 0E 00 E5 36 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 14 [11:50:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:50:51]wFMCommunicate OK [11:50:51]SAM_PROTO_GetShiftState done [11:50:51]FM_GetShiftState done [11:50:51]opened in 1729471058 [11:50:51]opened+sec_in_day 1729557458 [11:50:51]quantity*price = 100021 [11:50:51]sum+1 = 100023 [11:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 83 21.10.2024 11:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30586 ФПД: 260424321406715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115056&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30586&fm=260424321406715&tin=02508201610067®Number=0000000000186857&sum=100000 [11:50:52]StoreToDocumentArchive [11:50:52]shift 115 fd 30586 [11:50:52]save to /storage/0115/doc_00030586 [11:50:52]save last doc name /storage/0115/doc_00030586 to /storage/kkm_last_doc_name [11:50:52]save OK [11:50:52]Clear old archive folders... [11:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:52]tlvbuf is B6FDBD40 [11:50:52]SAM_PROTO_ClearQueue [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 09 00 00 [11:50:52]Write to MH i2c: E2 08 00 F2 36 80 09 00 00 00 00 00 00 9A [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 F2 36 00 90 00 9C [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]SAM_PROTO_ClearQueue done [11:50:52]KKMCreateOFDPacket [11:50:52]OFDProtocolAddRootSTLVToBuf [11:50:52]FM_MakeSignedData [11:50:52]FM_MakeSignedData [11:50:52]SAM_PROTO_SignData [11:50:52]wFMCommunicate request_size=4 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 01 02 [11:50:52]Write to MH i2c: E2 08 00 F3 36 80 0D 01 02 00 00 00 00 A2 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:52]Read from MH i2c: E2 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 [11:50:52]MH_I2C_Read... [11:50:52]Read from MH i2c: E2 03 00 F3 36 00 90 00 9D [11:50:52]RAPDU: 90 00 [11:50:52]wFMCommunicate OK [11:50:52]wFMCommunicate request_size=255 [11:50:52]MH_SAM_APDU [11:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 77 00 00 35 04 06 00 EC [11:50:52]Write to MH i2c: E2 02 01 F4 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 77 00 00 35 04 06 00 EC 00 00 D1 [11:50:52]Write i2c OK [11:50:52]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 F4 36 00 90 00 9E [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]wFMCommunicate request_size=10 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 02 02 05 DA C3 2B 16 FB [11:50:53]Write to MH i2c: E2 0D 00 F5 36 80 0D 02 02 05 00 DA C3 2B 16 FB 00 00 88 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 03 00 F5 36 00 90 00 9F [11:50:53]RAPDU: 90 00 [11:50:53]wFMCommunicate OK [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 0D 03 02 [11:50:53]Write to MH i2c: E2 08 00 F6 36 80 0D 03 02 00 00 00 00 A7 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0B 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0B 00 F6 36 00 19 BE 6F 60 6D 0B C2 D5 90 00 5D [11:50:53]RAPDU: 19 BE 6F 60 6D 0B C2 D5 90 00 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_SignData done [11:50:53]FM_MakeSignedData done [11:50:53]CreateOFDProtocolMessage [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 11 00 00 [11:50:53]Write to MH i2c: E2 08 00 F7 36 80 11 00 00 00 00 00 00 A7 [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 17 00 F7 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F5 [11:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:50:53]wFMCommunicate OK [11:50:53]CreateOFDProtocolMessage done [11:50:53]OFDSenderStorePacket 30586 [11:50:53]StoreOFDPacket docnum=30586 [11:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A 04 07 01 BA 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 77 00 00 35 04 06 00 EC DA C3 2B 16 FB 19 BE 6F 60 6D 0B C2 D5 [11:50:53]CheckFolder [11:50:53]dirname=/storage/ofd_packets [11:50:53]CheckFolder done [11:50:53]ProducePacketName [11:50:53]name=ofd_packets/00030586 [11:50:53]NVStorageSaveData ofd_packets/00030586 [11:50:53]File name is /storage/ofd_packets/00030586 [11:50:53]Write 301 bytes [11:50:53]NVStorageSaveData done [11:50:53]OFDSenderStorePacket done [11:50:53]KKMCreateOFDPacket done [11:50:53]NVStorageSaveData kkm_last_timestamp [11:50:53]File name is /storage/kkm_last_timestamp [11:50:53]Write 4 bytes [11:50:53]NVStorageSaveData done [11:50:53]ExternCall_PrintAddStr [11:50:53]wPrintStart [11:50:53]Write to MH i2c: 01 00 00 F8 36 2E [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: 01 07 00 F8 36 00 00 00 00 00 FF 0F 43 [11:50:53]RasterBufferAndPrint [11:50:53]line Счет N : (1)342994 [11:50:53]line ИНН: 02508201610067 [11:50:53]line Контрольно-Кассовый Чек [11:50:53]line ПРОДАЖА [11:50:53]line ТРК (МРК, ГНК) : 42 [11:50:53]line Товар: 2710124500 [11:50:53]line Аи-95-К-3 [11:50:53]line 13.480 * 74.20 [11:50:53]line = 1000.22 [11:50:53]line НДС 12% НСП 1% [11:50:53]line > о реализуемом товаре [11:50:53]line ОКРУГЛЕНИЕ: -0.22 [11:50:53]line ИТОГО: 1000.00 [11:50:53]line Внесено: 1000.00 [11:50:53]line СДАЧА: 0.00 [11:50:53]line НСП 1% : 8.85 [11:50:53]line НДС 12% : 106.22 [11:50:53]line Наличными: 1000.00 [11:50:53]line Безнал.: 0.00 [11:50:53]line Место: АЗС № 78 "Партнер Нефть" [11:50:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:50:53]line СНО: Общий режим [11:50:53]line Чек 83 21.10.2024 11:50 [11:50:53]line Смена: 115 ФФД: 1.0 [11:50:53]line ЗНМ: 0300000137 [11:50:53]line РНМ: 0000000000186857 [11:50:53]line Версия ККМ: v1.0 [11:50:53]line ФМ: 0000000002094219 [11:50:53]line ФД: 30586 [11:50:53]line ФПД: 260424321406715 [11:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115056&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30586&fm=260424321406715&tin=02508201610067®Number=0000000000186857&sum=100000 [11:50:53]OFD Sender: Processing packet 30586 [packets to send 10, broken 9] [11:50:53]ProducePacketName [11:50:53]name=ofd_packets/00030586 [11:50:53]OFD Sender: To server: pG, [11:50:53]CommunicateWithHost lk.salyk.kg:30040 [11:50:53]ConnectInit lk.salyk.kg [11:50:53]written 0, free lines is 4095 [11:50:53]Connected sock=10 [11:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1A 04 07 01 BA 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 77 00 00 35 04 06 00 EC DA C3 2B 16 FB 19 BE 6F 60 6D 0B C2 D5 [11:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8E 9C 47 00 94 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7A 77 00 00 F4 03 04 00 A1 EA 15 67 B6 04 01 00 00 C5 E5 61 E1 10 B3 0D 38 [11:50:54]CommunicateWithHost err = 0 [11:50:54]CheckOFDResponse [11:50:54]1017 (14) - 77093643461234 [11:50:54]1041 (16) - 0000000002094219 [11:50:54]1040 (4) - 30586 [11:50:54]1012 (4) - 21.10.2024 05:46 [11:50:54]1206 (1) - 0 [11:50:54]OFD Sender: Remove packet 30586 [11:50:54]ProducePacketName [11:50:54]name=ofd_packets/00030586 [11:50:54]NVStorageDeleteData [11:50:54]Write to MH i2c: 01 00 00 23 37 5A [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 07 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: 01 07 00 23 37 00 00 00 00 00 03 0D 71 [11:50:54]RasterBufferAndPrint [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]line [11:50:54]written 0, free lines is 3337 [11:50:54]MH_Cut [11:50:54]Write to MH i2c: D1 01 00 2A 37 01 33 [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 01 00 [11:50:54]MH_I2C_Read... [11:50:54]Read from MH i2c: D1 01 00 2A 37 00 32 [11:50:54]Write to MH i2c: 01 00 00 2B 37 62 [11:50:54]Write i2c OK [11:50:54]MH_I2C_Read... [11:50:54]OFD Sender: No OFD packet to send [11:50:54]*** Cut start [11:50:54]*** Partial cut [11:50:54]*** CUTSNS_PIN = 1 [11:50:54]*** CUTSNS_PIN = 0 [11:50:55]*** Brake cut motor [11:50:55]Read from MH i2c: 01 [11:50:55]MH_I2C_Read... [11:50:55]*** Stop cut motor [11:50:55]*** Cut end [11:50:55]Read from MH i2c: 01 07 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: 01 07 00 2B 37 00 00 00 00 00 FF 0F 77 [11:50:55]process_action close_receipt done [11:50:55]requested_data is exist [11:50:55]produce_requested_data [11:50:55]requested_item fm.sn is exist - process it [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 11 00 00 [11:50:55]Write to MH i2c: E2 08 00 2C 37 80 11 00 00 00 00 00 00 DD [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:55]Read from MH i2c: E2 17 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 17 00 2C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2B [11:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:50:55]wFMCommunicate OK [11:50:55]requested_item fd.num is exist - process it [11:50:55]SAM_PROTO_GetFieldsCounters [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 13 00 00 [11:50:55]Write to MH i2c: E2 08 00 2D 37 80 13 00 00 00 00 00 00 E0 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 62 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 62 00 2D 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:55]wFMCommunicate OK [11:50:55]SAM_PROTO_GetFieldsCounters done [11:50:55]requested_item shift.num is exist - process it [11:50:55]requested_item shift.opened is exist - process it [11:50:55]req_shift_opened [11:50:55]FM_GetShiftState [11:50:55]SAM_PROTO_GetShiftState [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 13 01 00 [11:50:55]Write to MH i2c: E2 08 00 2E 37 80 13 01 00 00 00 00 00 E2 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0E 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0E 00 2E 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5E [11:50:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:50:55]wFMCommunicate OK [11:50:55]SAM_PROTO_GetShiftState done [11:50:55]FM_GetShiftState done [11:50:55]req_shift_opened done [11:50:55]requested_item shift.open_date is exist - process it [11:50:55]req_shift_open_date [11:50:55]req_shift_open_date done [11:50:55]produce_requested_data done [11:50:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30586,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:50:55]process_action_free close_receipt [11:50:55]json_value_free [11:50:55]json_value_free done [11:50:55]process_json_proto returns [11:50:55]Send response to host [11:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30586,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:50:55]free response buf [11:50:55]execute_script done [11:50:55]execute_script returns [11:50:55]free content buf [11:50:55]Sock 9.Close socket [11:50:55]Sock 9.Thread stoped [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:38]accept exits with 7 [11:52:38]New connection [11:52:38]New thread 3067489636 created [11:52:38]Thread 3067346276 joined [11:52:38]Waiting for new connection... [11:52:38] Sock 7.Parse request [11:52:38]Sock 7.Check first char [11:52:38]Sock 7.First char is OK [11:52:38]request: POST /json_proto HTTP/1.0 [11:52:38]Method: POST [11:52:38]URL: /json_proto [11:52:38]Method is POST - this is cgi request [11:52:38]url: /json_proto [11:52:38]query_string will be loaded in cgi processing [11:52:38]execute_cgi json_proto POST (null) [11:52:38]execute_cgi path=json_proto method=POST [11:52:38]POST find Content-Length [11:52:38]Host: 172.17.51.3:8080 [11:52:38]Content-Length: 674 [11:52:38]Content-Type: application/json [11:52:38] [11:52:38]POST finish read [11:52:38]Found Content-Length = 674 [11:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:38]execute_script... [11:52:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:38]POST & json_proto [11:52:38]process_json_proto [11:52:38]json parsed OK: [11:52:38]protocol is kg_v1.0 [11:52:38]action value=close_receipt [11:52:38]process_action close_receipt [11:52:38]cmd_close_receipt [11:52:38]MH_GetDate [11:52:38]Write to MH i2c: F0 00 00 2F 37 55 [11:52:38]Write i2c OK [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: F0 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: F0 09 00 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: F0 09 00 2F 37 00 8B 40 16 67 04 C1 95 66 66 [11:52:38]GetLastDocTimeStamp 1729511456 [11:52:38]current date 1729511563 [11:52:38]FM_GetShiftState [11:52:38]SAM_PROTO_GetShiftState [11:52:38]wFMCommunicate request_size=4 [11:52:38]MH_SAM_APDU [11:52:38]CAPDU: 80 13 01 00 [11:52:38]Write to MH i2c: E2 08 00 30 37 80 13 01 00 00 00 00 00 E4 [11:52:38]Write i2c OK [11:52:38]MH_I2C_Read... [11:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:38]Read from MH i2c: E2 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: E2 0E 00 [11:52:38]MH_I2C_Read... [11:52:38]Read from MH i2c: E2 0E 00 30 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 60 [11:52:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:52:38]wFMCommunicate OK [11:52:38]SAM_PROTO_GetShiftState done [11:52:38]FM_GetShiftState done [11:52:38]opened in 1729471058 [11:52:38]opened+sec_in_day 1729557458 [11:52:38]quantity*price = 50063 [11:52:38]sum+1 = 50064 [11:52:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 84 21.10.2024 11:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30587 ФПД: 252520822241256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115243&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30587&fm=252520822241256&tin=02508201610067®Number=0000000000186857&sum=50000 [11:52:40]StoreToDocumentArchive [11:52:40]shift 115 fd 30587 [11:52:40]save to /storage/0115/doc_00030587 [11:52:40]save last doc name /storage/0115/doc_00030587 to /storage/kkm_last_doc_name [11:52:40]save OK [11:52:40]Clear old archive folders... [11:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:40]tlvbuf is 01DB69B0 [11:52:40]SAM_PROTO_ClearQueue [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 09 00 00 [11:52:40]Write to MH i2c: E2 08 00 3D 37 80 09 00 00 00 00 00 00 E6 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 3D 37 00 90 00 E8 [11:52:40]RAPDU: 90 00 [11:52:40]wFMCommunicate OK [11:52:40]SAM_PROTO_ClearQueue done [11:52:40]KKMCreateOFDPacket [11:52:40]OFDProtocolAddRootSTLVToBuf [11:52:40]FM_MakeSignedData [11:52:40]FM_MakeSignedData [11:52:40]SAM_PROTO_SignData [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 0D 01 02 [11:52:40]Write to MH i2c: E2 08 00 3E 37 80 0D 01 02 00 00 00 00 EE [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 3E 37 00 90 00 E9 [11:52:40]RAPDU: 90 00 [11:52:40]wFMCommunicate OK [11:52:40]wFMCommunicate request_size=255 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8B 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 77 00 00 35 04 06 00 E5 AA 95 E8 [11:52:40]Write to MH i2c: E2 02 01 3F 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8B 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 77 00 00 35 04 06 00 E5 AA 95 E8 00 00 0A [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 3F 37 00 90 00 EA [11:52:40]RAPDU: 90 00 [11:52:40]wFMCommunicate OK [11:52:40]wFMCommunicate request_size=7 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 0D 02 02 02 77 E8 [11:52:40]Write to MH i2c: E2 0A 00 40 37 80 0D 02 02 02 00 77 E8 00 00 54 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 03 00 40 37 00 90 00 EB [11:52:40]RAPDU: 90 00 [11:52:40]wFMCommunicate OK [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 0D 03 02 [11:52:40]Write to MH i2c: E2 08 00 41 37 80 0D 03 02 00 00 00 00 F3 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 0B 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 0B 00 41 37 00 28 82 30 43 AE 29 6B 09 90 00 5C [11:52:40]RAPDU: 28 82 30 43 AE 29 6B 09 90 00 [11:52:40]wFMCommunicate OK [11:52:40]SAM_PROTO_SignData done [11:52:40]FM_MakeSignedData done [11:52:40]CreateOFDProtocolMessage [11:52:40]wFMCommunicate request_size=4 [11:52:40]MH_SAM_APDU [11:52:40]CAPDU: 80 11 00 00 [11:52:40]Write to MH i2c: E2 08 00 42 37 80 11 00 00 00 00 00 00 F3 [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:40]Read from MH i2c: E2 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 17 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: E2 17 00 42 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 41 [11:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:52:40]wFMCommunicate OK [11:52:40]CreateOFDProtocolMessage done [11:52:40]OFDSenderStorePacket 30587 [11:52:40]StoreOFDPacket docnum=30587 [11:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 14 11 04 01 B8 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8B 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 77 00 00 35 04 06 00 E5 AA 95 E8 77 E8 28 82 30 43 AE 29 6B 09 [11:52:40]CheckFolder [11:52:40]dirname=/storage/ofd_packets [11:52:40]CheckFolder done [11:52:40]ProducePacketName [11:52:40]name=ofd_packets/00030587 [11:52:40]NVStorageSaveData ofd_packets/00030587 [11:52:40]File name is /storage/ofd_packets/00030587 [11:52:40]Write 298 bytes [11:52:40]NVStorageSaveData done [11:52:40]OFDSenderStorePacket done [11:52:40]KKMCreateOFDPacket done [11:52:40]NVStorageSaveData kkm_last_timestamp [11:52:40]File name is /storage/kkm_last_timestamp [11:52:40]Write 4 bytes [11:52:40]NVStorageSaveData done [11:52:40]ExternCall_PrintAddStr [11:52:40]wPrintStart [11:52:40]Write to MH i2c: 01 00 00 43 37 7A [11:52:40]Write i2c OK [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 07 00 [11:52:40]MH_I2C_Read... [11:52:40]Read from MH i2c: 01 07 00 43 37 00 00 00 00 00 FF 0F 8F [11:52:40]RasterBufferAndPrint [11:52:40]line Счет N : (1)342996 [11:52:40]line ИНН: 02508201610067 [11:52:40]line Контрольно-Кассовый Чек [11:52:40]line ПРОДАЖА [11:52:40]line ТРК (МРК, ГНК) : 44 [11:52:40]line Товар: 2710194210 [11:52:40]line ДТ-К-2 [11:52:40]line 6.570 * 76.20 [11:52:40]line = 500.63 [11:52:40]line НДС 12% НСП 1% [11:52:40]line > о реализуемом товаре [11:52:40]line ОКРУГЛЕНИЕ: -0.63 [11:52:40]line ИТОГО: 500.00 [11:52:40]line Внесено: 500.00 [11:52:40]line СДАЧА: 0.00 [11:52:40]line НСП 1% : 4.43 [11:52:40]line НДС 12% : 53.16 [11:52:40]line Наличными: 500.00 [11:52:40]line Безнал.: 0.00 [11:52:40]line Место: АЗС № 78 "Партнер Нефть" [11:52:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:52:40]line СНО: Общий режим [11:52:40]line Чек 84 21.10.2024 11:52 [11:52:40]line Смена: 115 ФФД: 1.0 [11:52:40]line ЗНМ: 0300000137 [11:52:40]line РНМ: 0000000000186857 [11:52:40]line Версия ККМ: v1.0 [11:52:40]line ФМ: 0000000002094219 [11:52:40]line ФД: 30587 [11:52:40]line ФПД: 252520822241256 [11:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115243&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30587&fm=252520822241256&tin=02508201610067®Number=0000000000186857&sum=50000 [11:52:40]OFD Sender: Processing packet 30587 [packets to send 10, broken 9] [11:52:40]ProducePacketName [11:52:40]name=ofd_packets/00030587 [11:52:40]OFD Sender: To server: pG, [11:52:40]CommunicateWithHost lk.salyk.kg:30040 [11:52:40]ConnectInit lk.salyk.kg [11:52:40]written 0, free lines is 4095 [11:52:41]Connected sock=10 [11:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 14 11 04 01 B8 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 8B 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 77 00 00 35 04 06 00 E5 AA 95 E8 77 E8 28 82 30 43 AE 29 6B 09 [11:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 31 47 00 7A E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7B 77 00 00 F4 03 04 00 0C EB 15 67 B6 04 01 00 00 F9 A9 02 32 C6 67 C6 32 [11:52:41]CommunicateWithHost err = 0 [11:52:41]CheckOFDResponse [11:52:41]1017 (14) - 77093643461234 [11:52:41]1041 (16) - 0000000002094219 [11:52:41]1040 (4) - 30587 [11:52:41]1012 (4) - 21.10.2024 05:47 [11:52:41]1206 (1) - 0 [11:52:41]OFD Sender: Remove packet 30587 [11:52:41]ProducePacketName [11:52:41]name=ofd_packets/00030587 [11:52:41]NVStorageDeleteData [11:52:41]Write to MH i2c: 01 00 00 6E 37 A5 [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: 01 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: 01 07 00 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: 01 07 00 6E 37 00 00 00 00 00 02 0D BB [11:52:41]RasterBufferAndPrint [11:52:41]line [11:52:41]line [11:52:41]line [11:52:41]line [11:52:41]line [11:52:41]written 0, free lines is 3336 [11:52:41]MH_Cut [11:52:41]Write to MH i2c: D1 01 00 75 37 01 7E [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: D1 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: D1 01 00 [11:52:41]MH_I2C_Read... [11:52:41]Read from MH i2c: D1 01 00 75 37 00 7D [11:52:41]Write to MH i2c: 01 00 00 76 37 AD [11:52:41]Write i2c OK [11:52:41]MH_I2C_Read... [11:52:41]OFD Sender: No OFD packet to send [11:52:42]*** Cut start [11:52:42]*** Partial cut [11:52:42]*** CUTSNS_PIN = 1 [11:52:42]*** CUTSNS_PIN = 0 [11:52:42]*** Brake cut motor [11:52:42]Read from MH i2c: 01 [11:52:42]MH_I2C_Read... [11:52:42]*** Stop cut motor [11:52:42]*** Cut end [11:52:42]Read from MH i2c: 01 07 00 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: 01 07 00 76 37 00 00 00 00 00 FF 0F C2 [11:52:42]process_action close_receipt done [11:52:42]requested_data is exist [11:52:42]produce_requested_data [11:52:42]requested_item fm.sn is exist - process it [11:52:42]wFMCommunicate request_size=4 [11:52:42]MH_SAM_APDU [11:52:42]CAPDU: 80 11 00 00 [11:52:42]Write to MH i2c: E2 08 00 77 37 80 11 00 00 00 00 00 00 28 [11:52:42]Write i2c OK [11:52:42]MH_I2C_Read... [11:52:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:42]Read from MH i2c: E2 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 17 00 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 17 00 77 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 76 [11:52:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:52:42]wFMCommunicate OK [11:52:42]requested_item fd.num is exist - process it [11:52:42]SAM_PROTO_GetFieldsCounters [11:52:42]wFMCommunicate request_size=4 [11:52:42]MH_SAM_APDU [11:52:42]CAPDU: 80 13 00 00 [11:52:42]Write to MH i2c: E2 08 00 78 37 80 13 00 00 00 00 00 00 2B [11:52:42]Write i2c OK [11:52:42]MH_I2C_Read... [11:52:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:42]Read from MH i2c: E2 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 62 00 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 62 00 78 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [11:52:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:42]wFMCommunicate OK [11:52:42]SAM_PROTO_GetFieldsCounters done [11:52:42]requested_item shift.num is exist - process it [11:52:42]requested_item shift.opened is exist - process it [11:52:42]req_shift_opened [11:52:42]FM_GetShiftState [11:52:42]SAM_PROTO_GetShiftState [11:52:42]wFMCommunicate request_size=4 [11:52:42]MH_SAM_APDU [11:52:42]CAPDU: 80 13 01 00 [11:52:42]Write to MH i2c: E2 08 00 79 37 80 13 01 00 00 00 00 00 2D [11:52:42]Write i2c OK [11:52:42]MH_I2C_Read... [11:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:42]Read from MH i2c: E2 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 0E 00 [11:52:42]MH_I2C_Read... [11:52:42]Read from MH i2c: E2 0E 00 79 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A9 [11:52:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:52:42]wFMCommunicate OK [11:52:42]SAM_PROTO_GetShiftState done [11:52:42]FM_GetShiftState done [11:52:42]req_shift_opened done [11:52:42]requested_item shift.open_date is exist - process it [11:52:42]req_shift_open_date [11:52:42]req_shift_open_date done [11:52:42]produce_requested_data done [11:52:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30587,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:52:42]process_action_free close_receipt [11:52:42]json_value_free [11:52:42]json_value_free done [11:52:42]process_json_proto returns [11:52:42]Send response to host [11:52:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30587,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:52:42]free response buf [11:52:42]execute_script done [11:52:42]execute_script returns [11:52:42]free content buf [11:52:42]Sock 7.Close socket [11:52:42]Sock 7.Thread stoped [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:15]accept exits with 9 [11:53:15]New connection [11:53:15]New thread 3067346276 created [11:53:15]Thread 3067489636 joined [11:53:15]Waiting for new connection... [11:53:15] Sock 9.Parse request [11:53:15]Sock 9.Check first char [11:53:15]Sock 9.First char is OK [11:53:15]request: POST /json_proto HTTP/1.0 [11:53:15]Method: POST [11:53:15]URL: /json_proto [11:53:15]Method is POST - this is cgi request [11:53:15]url: /json_proto [11:53:15]query_string will be loaded in cgi processing [11:53:15]execute_cgi json_proto POST (null) [11:53:15]execute_cgi path=json_proto method=POST [11:53:15]POST find Content-Length [11:53:15]Host: 172.17.51.3:8080 [11:53:15]Content-Length: 849 [11:53:15]Content-Type: application/json [11:53:15] [11:53:15]POST finish read [11:53:15]Found Content-Length = 849 [11:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:15]execute_script... [11:53:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342995", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:15]POST & json_proto [11:53:15]process_json_proto [11:53:15]json parsed OK: [11:53:15]protocol is kg_v1.0 [11:53:15]action value=close_receipt [11:53:15]process_action close_receipt [11:53:15]cmd_close_receipt [11:53:15]MH_GetDate [11:53:15]Write to MH i2c: F0 00 00 7A 37 A0 [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: F0 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: F0 09 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: F0 09 00 7A 37 00 B0 40 16 67 04 C1 95 66 D6 [11:53:15]GetLastDocTimeStamp 1729511563 [11:53:15]current date 1729511600 [11:53:15]FM_GetShiftState [11:53:15]SAM_PROTO_GetShiftState [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 13 01 00 [11:53:15]Write to MH i2c: E2 08 00 7B 37 80 13 01 00 00 00 00 00 2F [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 0E 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 0E 00 7B 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AB [11:53:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:53:15]wFMCommunicate OK [11:53:15]SAM_PROTO_GetShiftState done [11:53:15]FM_GetShiftState done [11:53:15]opened in 1729471058 [11:53:15]opened+sec_in_day 1729557458 [11:53:15]quantity*price = 400050 [11:53:15]sum+1 = 400051 [11:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 85 21.10.2024 11:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30588 ФПД: 272665691082978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115320&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30588&fm=272665691082978&tin=02508201610067®Number=0000000000186857&sum=400050 [11:53:16]StoreToDocumentArchive [11:53:16]shift 115 fd 30588 [11:53:16]save to /storage/0115/doc_00030588 [11:53:16]save last doc name /storage/0115/doc_00030588 to /storage/kkm_last_doc_name [11:53:16]save OK [11:53:16]Clear old archive folders... [11:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:53:16]tlvbuf is 01ED8570 [11:53:16]SAM_PROTO_ClearQueue [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 09 00 00 [11:53:16]Write to MH i2c: E2 08 00 88 37 80 09 00 00 00 00 00 00 31 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 88 37 00 90 00 33 [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_ClearQueue done [11:53:16]KKMCreateOFDPacket [11:53:16]OFDProtocolAddRootSTLVToBuf [11:53:16]FM_MakeSignedData [11:53:16]FM_MakeSignedData [11:53:16]SAM_PROTO_SignData [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 01 02 [11:53:16]Write to MH i2c: E2 08 00 89 37 80 0D 01 02 00 00 00 00 39 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 03 00 89 37 00 90 00 34 [11:53:16]RAPDU: 90 00 [11:53:16]wFMCommunicate OK [11:53:16]wFMCommunicate request_size=255 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B0 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 77 00 [11:53:16]Write to MH i2c: E2 02 01 8A 37 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B0 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 77 00 00 00 44 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]OFD Sender: No OFD packet to send [11:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 8A 37 00 90 00 35 [11:53:17]RAPDU: 90 00 [11:53:17]wFMCommunicate OK [11:53:17]wFMCommunicate request_size=16 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 FC ED A8 D0 E2 [11:53:17]Write to MH i2c: E2 13 00 8B 37 80 0D 02 02 0B 00 00 35 04 06 00 F7 FC ED A8 D0 E2 00 00 CB [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 03 00 8B 37 00 90 00 36 [11:53:17]RAPDU: 90 00 [11:53:17]wFMCommunicate OK [11:53:17]wFMCommunicate request_size=4 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 0D 03 02 [11:53:17]Write to MH i2c: E2 08 00 8C 37 80 0D 03 02 00 00 00 00 3E [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 0B 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 0B 00 8C 37 00 05 67 88 41 49 9E 3F 62 90 00 FC [11:53:17]RAPDU: 05 67 88 41 49 9E 3F 62 90 00 [11:53:17]wFMCommunicate OK [11:53:17]SAM_PROTO_SignData done [11:53:17]FM_MakeSignedData done [11:53:17]CreateOFDProtocolMessage [11:53:17]wFMCommunicate request_size=4 [11:53:17]MH_SAM_APDU [11:53:17]CAPDU: 80 11 00 00 [11:53:17]Write to MH i2c: E2 08 00 8D 37 80 11 00 00 00 00 00 00 3E [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:17]Read from MH i2c: E2 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 17 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: E2 17 00 8D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8C [11:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:53:17]wFMCommunicate OK [11:53:17]CreateOFDProtocolMessage done [11:53:17]OFDSenderStorePacket 30588 [11:53:17]StoreOFDPacket docnum=30588 [11:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 54 69 0D 01 98 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B0 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 77 00 00 35 04 06 00 F7 FC ED A8 D0 E2 05 67 88 41 49 9E 3F 62 [11:53:17]CheckFolder [11:53:17]dirname=/storage/ofd_packets [11:53:17]CheckFolder done [11:53:17]ProducePacketName [11:53:17]name=ofd_packets/00030588 [11:53:17]NVStorageSaveData ofd_packets/00030588 [11:53:17]File name is /storage/ofd_packets/00030588 [11:53:17]Write 307 bytes [11:53:17]NVStorageSaveData done [11:53:17]OFDSenderStorePacket done [11:53:17]KKMCreateOFDPacket done [11:53:17]NVStorageSaveData kkm_last_timestamp [11:53:17]File name is /storage/kkm_last_timestamp [11:53:17]Write 4 bytes [11:53:17]NVStorageSaveData done [11:53:17]ExternCall_PrintAddStr [11:53:17]wPrintStart [11:53:17]Write to MH i2c: 01 00 00 8E 37 C5 [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 8E 37 00 00 00 00 00 FF 0F DA [11:53:17]RasterBufferAndPrint [11:53:17]line Счет N : (1)342995 [11:53:17]line ИНН: 02508201610067 [11:53:17]line Контрольно-Кассовый Чек [11:53:17]line ПРОДАЖА [11:53:17]line ТРК (МРК, ГНК) : 61 [11:53:17]line Товар: 2710194210 [11:53:17]line D-ENERGY Дт-К-2 [11:53:17]line 51.820 * 77.20 [11:53:17]line = 4000.50 [11:53:17]line НДС 12% НСП 1% [11:53:17]line > о реализуемом товаре [11:53:17]line ИТОГО: 4000.50 [11:53:17]line НСП 1% : 35.40 [11:53:17]line НДС 12% : 424.83 [11:53:17]line Наличными: 0.00 [11:53:17]line Безнал.: 4000.50 [11:53:17]line Место: АЗС № 78 "Партнер Нефть" [11:53:17]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:53:17]line СНО: Общий режим [11:53:17]line Чек 85 21.10.2024 11:53 [11:53:17]line Смена: 115 ФФД: 1.0 [11:53:17]line ЗНМ: 0300000137 [11:53:17]line РНМ: 0000000000186857 [11:53:17]line Версия ККМ: v1.0 [11:53:17]line Платежная система: АКБ Кыргызстан [11:53:17]line ФМ: 0000000002094219 [11:53:17]line ФД: 30588 [11:53:17]line ФПД: 272665691082978 [11:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115320&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30588&fm=272665691082978&tin=02508201610067®Number=0000000000186857&sum=400050 [11:53:17]OFD Sender: Processing packet 30588 [packets to send 10, broken 9] [11:53:17]ProducePacketName [11:53:17]name=ofd_packets/00030588 [11:53:17]OFD Sender: To server: pG, [11:53:17]CommunicateWithHost lk.salyk.kg:30040 [11:53:17]ConnectInit lk.salyk.kg [11:53:17]written 0, free lines is 4095 [11:53:17]Connected sock=10 [11:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 54 69 0D 01 98 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 B0 40 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7C 77 00 00 35 04 06 00 F7 FC ED A8 D0 E2 05 67 88 41 49 9E 3F 62 [11:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 B3 47 00 98 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 32 30 39 34 32 31 39 10 04 04 00 7C 77 00 00 F4 03 04 00 30 EB 15 67 B6 04 01 00 00 D5 92 FA E2 56 92 50 D9 [11:53:17]CommunicateWithHost err = 0 [11:53:17]CheckOFDResponse [11:53:17]1017 (14) - 77093643461234 [11:53:17]1041 (16) - 0000000002094219 [11:53:17]1040 (4) - 30588 [11:53:17]1012 (4) - 21.10.2024 05:48 [11:53:17]1206 (1) - 0 [11:53:17]OFD Sender: Remove packet 30588 [11:53:17]ProducePacketName [11:53:17]name=ofd_packets/00030588 [11:53:17]NVStorageDeleteData [11:53:17]Write to MH i2c: 01 00 00 B8 37 EF [11:53:17]Write i2c OK [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 [11:53:17]MH_I2C_Read... [11:53:17]Read from MH i2c: 01 07 00 B8 37 00 00 00 00 00 1A 0D 1D [11:53:17]RasterBufferAndPrint [11:53:18]line [11:53:18]line [11:53:18]line [11:53:18]line [11:53:18]line [11:53:18]written 0, free lines is 3360 [11:53:18]MH_Cut [11:53:18]Write to MH i2c: D1 01 00 BF 37 01 C8 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: D1 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: D1 01 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: D1 01 00 BF 37 00 C7 [11:53:18]Write to MH i2c: 01 00 00 C0 37 F7 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]OFD Sender: No OFD packet to send [11:53:18]*** Cut start [11:53:18]*** Partial cut [11:53:18]*** CUTSNS_PIN = 1 [11:53:18]*** CUTSNS_PIN = 0 [11:53:18]*** Brake cut motor [11:53:19]Read from MH i2c: 01 [11:53:19]MH_I2C_Read... [11:53:19]*** Stop cut motor [11:53:19]*** Cut end [11:53:19]Read from MH i2c: 01 07 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 C0 37 00 00 00 00 00 FF 0F 0C [11:53:19]process_action close_receipt done [11:53:19]requested_data is exist [11:53:19]produce_requested_data [11:53:19]requested_item fm.sn is exist - process it [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 11 00 00 [11:53:19]Write to MH i2c: E2 08 00 C1 37 80 11 00 00 00 00 00 00 72 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 17 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 17 00 C1 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [11:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:53:19]wFMCommunicate OK [11:53:19]requested_item fd.num is exist - process it [11:53:19]SAM_PROTO_GetFieldsCounters [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 13 00 00 [11:53:19]Write to MH i2c: E2 08 00 C2 37 80 13 00 00 00 00 00 00 75 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 62 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 62 00 C2 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:53:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7C 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:19]wFMCommunicate OK [11:53:19]SAM_PROTO_GetFieldsCounters done [11:53:19]requested_item shift.num is exist - process it [11:53:19]requested_item shift.opened is exist - process it [11:53:19]req_shift_opened [11:53:19]FM_GetShiftState [11:53:19]SAM_PROTO_GetShiftState [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 13 01 00 [11:53:19]Write to MH i2c: E2 08 00 C3 37 80 13 01 00 00 00 00 00 77 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 0E 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 0E 00 C3 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F3 [11:53:19]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:53:19]wFMCommunicate OK [11:53:19]SAM_PROTO_GetShiftState done [11:53:19]FM_GetShiftState done [11:53:19]req_shift_opened done [11:53:19]requested_item shift.open_date is exist - process it [11:53:19]req_shift_open_date [11:53:19]req_shift_open_date done [11:53:19]produce_requested_data done [11:53:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30588,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:53:19]process_action_free close_receipt [11:53:19]json_value_free [11:53:19]json_value_free done [11:53:19]process_json_proto returns [11:53:19]Send response to host [11:53:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30588,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:53:19]free response buf [11:53:19]execute_script done [11:53:19]execute_script returns [11:53:19]free content buf [11:53:19]Sock 9.Close socket [11:53:19]Sock 9.Thread stoped [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]accept exits with 7 [11:55:13]New connection [11:55:13]New thread 3067489636 created [11:55:13]Thread 3067346276 joined [11:55:13]Waiting for new connection... [11:55:13] Sock 7.Parse request [11:55:13]Sock 7.Check first char [11:55:13]Sock 7.First char is OK [11:55:13]request: POST /json_proto HTTP/1.0 [11:55:13]Method: POST [11:55:13]URL: /json_proto [11:55:13]Method is POST - this is cgi request [11:55:13]url: /json_proto [11:55:13]query_string will be loaded in cgi processing [11:55:13]execute_cgi json_proto POST (null) [11:55:13]execute_cgi path=json_proto method=POST [11:55:13]POST find Content-Length [11:55:13]Host: 172.17.51.3:8080 [11:55:13]Content-Length: 837 [11:55:13]Content-Type: application/json [11:55:13] [11:55:13]POST finish read [11:55:13]Found Content-Length = 837 [11:55:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.800, "sum" : 746.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 746.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:13]execute_script... [11:55:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.800, "sum" : 746.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 746.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:13]POST & json_proto [11:55:13]process_json_proto [11:55:13]json parsed OK: [11:55:13]protocol is kg_v1.0 [11:55:13]action value=close_receipt [11:55:13]process_action close_receipt [11:55:13]cmd_close_receipt [11:55:13]MH_GetDate [11:55:13]Write to MH i2c: F0 00 00 C4 37 EA [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 09 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: F0 09 00 C4 37 00 25 41 16 67 04 C1 95 66 96 [11:55:13]GetLastDocTimeStamp 1729511600 [11:55:13]current date 1729511717 [11:55:13]FM_GetShiftState [11:55:13]SAM_PROTO_GetShiftState [11:55:13]wFMCommunicate request_size=4 [11:55:13]MH_SAM_APDU [11:55:13]CAPDU: 80 13 01 00 [11:55:13]Write to MH i2c: E2 08 00 C5 37 80 13 01 00 00 00 00 00 79 [11:55:13]Write i2c OK [11:55:13]MH_I2C_Read... [11:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:13]Read from MH i2c: E2 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 [11:55:13]MH_I2C_Read... [11:55:13]Read from MH i2c: E2 0E 00 C5 37 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F5 [11:55:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:55:13]wFMCommunicate OK [11:55:13]SAM_PROTO_GetShiftState done [11:55:13]FM_GetShiftState done [11:55:13]opened in 1729471058 [11:55:13]opened+sec_in_day 1729557458 [11:55:13]quantity*price = 74676 [11:55:13]sum+1 = 74677 [11:55:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 746.76 НСП 1% : 6.61 НДС 12% : 79.30 Наличными: 0.00 Безнал.: 746.76 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 86 21.10.2024 11:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30589 ФПД: 41409044295258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115517&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30589&fm=41409044295258&tin=02508201610067®Number=0000000000186857&sum=74676 [11:55:14]StoreToDocumentArchive [11:55:14]shift 115 fd 30589 [11:55:14]save to /storage/0115/doc_00030589 [11:55:14]save last doc name /storage/0115/doc_00030589 to /storage/kkm_last_doc_name [11:55:14]save OK [11:55:14]Clear old archive folders... [11:55:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:14]tlvbuf is 01DD6EE0 [11:55:14]SAM_PROTO_ClearQueue [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 09 00 00 [11:55:14]Write to MH i2c: E2 08 00 D2 37 80 09 00 00 00 00 00 00 7B [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 D2 37 00 90 00 7D [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_ClearQueue done [11:55:14]KKMCreateOFDPacket [11:55:14]OFDProtocolAddRootSTLVToBuf [11:55:14]FM_MakeSignedData [11:55:14]FM_MakeSignedData [11:55:14]SAM_PROTO_SignData [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 01 02 [11:55:14]Write to MH i2c: E2 08 00 D3 37 80 0D 01 02 00 00 00 00 83 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 D3 37 00 90 00 7E [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=255 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 77 00 00 35 04 06 00 25 A9 4B 60 [11:55:14]Write to MH i2c: E2 02 01 D4 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 77 00 00 35 04 06 00 25 A9 4B 60 00 00 81 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 D4 37 00 90 00 7F [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=7 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 02 02 02 2E 5A [11:55:14]Write to MH i2c: E2 0A 00 D5 37 80 0D 02 02 02 00 2E 5A 00 00 12 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 03 00 D5 37 00 90 00 80 [11:55:14]RAPDU: 90 00 [11:55:14]wFMCommunicate OK [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 0D 03 02 [11:55:14]Write to MH i2c: E2 08 00 D6 37 80 0D 03 02 00 00 00 00 88 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0B 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 0B 00 D6 37 00 D8 BF 41 69 D0 57 B7 6D 90 00 15 [11:55:14]RAPDU: D8 BF 41 69 D0 57 B7 6D 90 00 [11:55:14]wFMCommunicate OK [11:55:14]SAM_PROTO_SignData done [11:55:14]FM_MakeSignedData done [11:55:14]CreateOFDProtocolMessage [11:55:14]wFMCommunicate request_size=4 [11:55:14]MH_SAM_APDU [11:55:14]CAPDU: 80 11 00 00 [11:55:14]Write to MH i2c: E2 08 00 D7 37 80 11 00 00 00 00 00 00 88 [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:14]Read from MH i2c: E2 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: E2 17 00 D7 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [11:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:14]wFMCommunicate OK [11:55:14]CreateOFDProtocolMessage done [11:55:14]OFDSenderStorePacket 30589 [11:55:14]StoreOFDPacket docnum=30589 [11:55:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 41 72 04 01 69 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 77 00 00 35 04 06 00 25 A9 4B 60 2E 5A D8 BF 41 69 D0 57 B7 6D [11:55:14]CheckFolder [11:55:14]dirname=/storage/ofd_packets [11:55:14]CheckFolder done [11:55:14]ProducePacketName [11:55:14]name=ofd_packets/00030589 [11:55:14]NVStorageSaveData ofd_packets/00030589 [11:55:14]File name is /storage/ofd_packets/00030589 [11:55:14]Write 298 bytes [11:55:14]NVStorageSaveData done [11:55:14]OFDSenderStorePacket done [11:55:14]KKMCreateOFDPacket done [11:55:14]NVStorageSaveData kkm_last_timestamp [11:55:14]File name is /storage/kkm_last_timestamp [11:55:14]Write 4 bytes [11:55:14]NVStorageSaveData done [11:55:14]ExternCall_PrintAddStr [11:55:14]wPrintStart [11:55:14]Write to MH i2c: 01 00 00 D8 37 0F [11:55:14]Write i2c OK [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 07 00 [11:55:14]MH_I2C_Read... [11:55:14]Read from MH i2c: 01 07 00 D8 37 00 00 00 00 00 FF 0F 24 [11:55:14]RasterBufferAndPrint [11:55:14]line Счет N : (1)342997 [11:55:14]line ИНН: 02508201610067 [11:55:14]line Контрольно-Кассовый Чек [11:55:14]line ПРОДАЖА [11:55:14]line ТРК (МРК, ГНК) : 64 [11:55:14]line Товар: 2710194210 [11:55:14]line ДТ-К-2 [11:55:14]line 9.800 * 76.20 [11:55:14]line = 746.76 [11:55:14]line НДС 12% НСП 1% [11:55:14]line > о реализуемом товаре [11:55:14]line ИТОГО: 746.76 [11:55:14]line НСП 1% : 6.61 [11:55:14]line НДС 12% : 79.30 [11:55:14]line Наличными: 0.00 [11:55:14]line Безнал.: 746.76 [11:55:14]line Место: АЗС № 78 "Партнер Нефть" [11:55:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:55:14]line СНО: Общий режим [11:55:14]line Чек 86 21.10.2024 11:55 [11:55:14]line Смена: 115 ФФД: 1.0 [11:55:14]line ЗНМ: 0300000137 [11:55:14]line РНМ: 0000000000186857 [11:55:14]line Версия ККМ: v1.0 [11:55:14]line Платежная система: АКБ Кыргызстан [11:55:14]line ФМ: 0000000002094219 [11:55:14]line ФД: 30589 [11:55:14]line ФПД: 41409044295258 [11:55:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115517&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30589&fm=41409044295258&tin=02508201610067®Number=0000000000186857&sum=74676 [11:55:15]OFD Sender: Processing packet 30589 [packets to send 10, broken 9] [11:55:15]ProducePacketName [11:55:15]name=ofd_packets/00030589 [11:55:15]OFD Sender: To server: pG, [11:55:15]CommunicateWithHost lk.salyk.kg:30040 [11:55:15]ConnectInit lk.salyk.kg [11:55:15]written 0, free lines is 4095 [11:55:15]Connected sock=10 [11:55:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 41 72 04 01 69 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 48 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 23 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 23 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 23 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 25 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7D 77 00 00 35 04 06 00 25 A9 4B 60 2E 5A D8 BF 41 69 D0 57 B7 6D [11:55:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 60 B8 47 00 51 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 32 30 39 34 32 31 39 10 04 04 00 7D 77 00 00 F4 03 04 00 A6 EB 15 67 B6 04 01 00 00 E7 89 51 9D FB A9 19 AD [11:55:15]CommunicateWithHost err = 0 [11:55:15]CheckOFDResponse [11:55:15]1017 (14) - 77093643461234 [11:55:15]1041 (16) - 0000000002094219 [11:55:15]1040 (4) - 30589 [11:55:15]1012 (4) - 21.10.2024 05:50 [11:55:15]1206 (1) - 0 [11:55:15]OFD Sender: Remove packet 30589 [11:55:15]ProducePacketName [11:55:15]name=ofd_packets/00030589 [11:55:15]NVStorageDeleteData [11:55:15]Write to MH i2c: 01 00 00 02 38 3A [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: 01 07 00 02 38 00 00 00 00 00 0B 0D 59 [11:55:15]RasterBufferAndPrint [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]line [11:55:15]written 0, free lines is 3345 [11:55:15]MH_Cut [11:55:15]Write to MH i2c: D1 01 00 09 38 01 13 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 01 00 [11:55:15]MH_I2C_Read... [11:55:15]Read from MH i2c: D1 01 00 09 38 00 12 [11:55:15]Write to MH i2c: 01 00 00 0A 38 42 [11:55:15]Write i2c OK [11:55:15]MH_I2C_Read... [11:55:16]OFD Sender: No OFD packet to send [11:55:16]*** Cut start [11:55:16]*** Partial cut [11:55:16]*** CUTSNS_PIN = 1 [11:55:16]*** CUTSNS_PIN = 0 [11:55:16]*** Brake cut motor [11:55:17]Read from MH i2c: 01 [11:55:17]MH_I2C_Read... [11:55:17]*** Stop cut motor [11:55:17]*** Cut end [11:55:17]Read from MH i2c: 01 07 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: 01 07 00 0A 38 00 00 00 00 00 FF 0F 57 [11:55:17]process_action close_receipt done [11:55:17]requested_data is exist [11:55:17]produce_requested_data [11:55:17]requested_item fm.sn is exist - process it [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 11 00 00 [11:55:17]Write to MH i2c: E2 08 00 0B 38 80 11 00 00 00 00 00 00 BD [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 17 00 0B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [11:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:55:17]wFMCommunicate OK [11:55:17]requested_item fd.num is exist - process it [11:55:17]SAM_PROTO_GetFieldsCounters [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 13 00 00 [11:55:17]Write to MH i2c: E2 08 00 0C 38 80 13 00 00 00 00 00 00 C0 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 62 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 62 00 0C 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [11:55:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_GetFieldsCounters done [11:55:17]requested_item shift.num is exist - process it [11:55:17]requested_item shift.opened is exist - process it [11:55:17]req_shift_opened [11:55:17]FM_GetShiftState [11:55:17]SAM_PROTO_GetShiftState [11:55:17]wFMCommunicate request_size=4 [11:55:17]MH_SAM_APDU [11:55:17]CAPDU: 80 13 01 00 [11:55:17]Write to MH i2c: E2 08 00 0D 38 80 13 01 00 00 00 00 00 C2 [11:55:17]Write i2c OK [11:55:17]MH_I2C_Read... [11:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:17]Read from MH i2c: E2 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0E 00 [11:55:17]MH_I2C_Read... [11:55:17]Read from MH i2c: E2 0E 00 0D 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3E [11:55:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:55:17]wFMCommunicate OK [11:55:17]SAM_PROTO_GetShiftState done [11:55:17]FM_GetShiftState done [11:55:17]req_shift_opened done [11:55:17]requested_item shift.open_date is exist - process it [11:55:17]req_shift_open_date [11:55:17]req_shift_open_date done [11:55:17]produce_requested_data done [11:55:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30589,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:55:17]process_action_free close_receipt [11:55:17]json_value_free [11:55:17]json_value_free done [11:55:17]process_json_proto returns [11:55:17]Send response to host [11:55:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30589,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:55:17]free response buf [11:55:17]execute_script done [11:55:17]execute_script returns [11:55:17]free content buf [11:55:17]Sock 7.Close socket [11:55:17]Sock 7.Thread stoped [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:34]accept exits with 9 [11:57:34]New connection [11:57:34]New thread 3067346276 created [11:57:34]Thread 3067489636 joined [11:57:34]Waiting for new connection... [11:57:34] Sock 9.Parse request [11:57:34]Sock 9.Check first char [11:57:34]Sock 9.First char is OK [11:57:34]request: POST /json_proto HTTP/1.0 [11:57:34]Method: POST [11:57:34]URL: /json_proto [11:57:34]Method is POST - this is cgi request [11:57:34]url: /json_proto [11:57:34]query_string will be loaded in cgi processing [11:57:34]execute_cgi json_proto POST (null) [11:57:34]execute_cgi path=json_proto method=POST [11:57:34]POST find Content-Length [11:57:34]Host: 172.17.51.3:8080 [11:57:34]Content-Length: 677 [11:57:34]Content-Type: application/json [11:57:34] [11:57:34]POST finish read [11:57:34]Found Content-Length = 677 [11:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:34]execute_script... [11:57:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:34]POST & json_proto [11:57:34]process_json_proto [11:57:34]json parsed OK: [11:57:34]protocol is kg_v1.0 [11:57:34]action value=close_receipt [11:57:34]process_action close_receipt [11:57:34]cmd_close_receipt [11:57:34]MH_GetDate [11:57:34]Write to MH i2c: F0 00 00 0E 38 35 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 09 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: F0 09 00 0E 38 00 B3 41 16 67 04 C1 95 66 6F [11:57:34]GetLastDocTimeStamp 1729511717 [11:57:34]current date 1729511859 [11:57:34]FM_GetShiftState [11:57:34]SAM_PROTO_GetShiftState [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 13 01 00 [11:57:34]Write to MH i2c: E2 08 00 0F 38 80 13 01 00 00 00 00 00 C4 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0E 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0E 00 0F 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 40 [11:57:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:57:34]wFMCommunicate OK [11:57:34]SAM_PROTO_GetShiftState done [11:57:34]FM_GetShiftState done [11:57:34]opened in 1729471058 [11:57:34]opened+sec_in_day 1729557458 [11:57:34]quantity*price = 20003 [11:57:34]sum+1 = 20004 [11:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 87 21.10.2024 11:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30590 ФПД: 114348669303002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30590&fm=114348669303002&tin=02508201610067®Number=0000000000186857&sum=20000 [11:57:35]StoreToDocumentArchive [11:57:35]shift 115 fd 30590 [11:57:35]save to /storage/0115/doc_00030590 [11:57:35]save last doc name /storage/0115/doc_00030590 to /storage/kkm_last_doc_name [11:57:35]save OK [11:57:35]Clear old archive folders... [11:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:35]tlvbuf is 01E56580 [11:57:35]SAM_PROTO_ClearQueue [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 09 00 00 [11:57:35]Write to MH i2c: E2 08 00 1C 38 80 09 00 00 00 00 00 00 C6 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 1C 38 00 90 00 C8 [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_ClearQueue done [11:57:36]KKMCreateOFDPacket [11:57:36]OFDProtocolAddRootSTLVToBuf [11:57:36]FM_MakeSignedData [11:57:36]FM_MakeSignedData [11:57:36]SAM_PROTO_SignData [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 01 02 [11:57:36]Write to MH i2c: E2 08 00 1D 38 80 0D 01 02 00 00 00 00 CE [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 1D 38 00 90 00 C9 [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=255 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 57 00 00 00 F4 03 04 00 B3 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 77 00 00 35 04 06 00 67 [11:57:36]Write to MH i2c: E2 02 01 1E 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 57 00 00 00 F4 03 04 00 B3 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 77 00 00 35 04 06 00 67 00 00 B8 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]OFD Sender: No OFD packet to send [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 1E 38 00 90 00 CA [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=10 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 02 02 05 FF DF D0 78 DA [11:57:36]Write to MH i2c: E2 0D 00 1F 38 80 0D 02 02 05 00 FF DF D0 78 DA 00 00 DB [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 1F 38 00 90 00 CB [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 03 02 [11:57:36]Write to MH i2c: E2 08 00 20 38 80 0D 03 02 00 00 00 00 D3 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 20 38 00 73 00 47 1D F2 81 61 6D 90 00 EC [11:57:36]RAPDU: 73 00 47 1D F2 81 61 6D 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_SignData done [11:57:36]FM_MakeSignedData done [11:57:36]CreateOFDProtocolMessage [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 11 00 00 [11:57:36]Write to MH i2c: E2 08 00 21 38 80 11 00 00 00 00 00 00 D3 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 21 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 21 [11:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:57:36]wFMCommunicate OK [11:57:36]CreateOFDProtocolMessage done [11:57:36]OFDSenderStorePacket 30590 [11:57:36]StoreOFDPacket docnum=30590 [11:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C2 68 07 01 01 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 57 00 00 00 F4 03 04 00 B3 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 77 00 00 35 04 06 00 67 FF DF D0 78 DA 73 00 47 1D F2 81 61 6D [11:57:36]CheckFolder [11:57:36]dirname=/storage/ofd_packets [11:57:36]CheckFolder done [11:57:36]ProducePacketName [11:57:36]name=ofd_packets/00030590 [11:57:36]NVStorageSaveData ofd_packets/00030590 [11:57:36]File name is /storage/ofd_packets/00030590 [11:57:36]Write 301 bytes [11:57:36]NVStorageSaveData done [11:57:36]OFDSenderStorePacket done [11:57:36]KKMCreateOFDPacket done [11:57:36]NVStorageSaveData kkm_last_timestamp [11:57:36]File name is /storage/kkm_last_timestamp [11:57:36]Write 4 bytes [11:57:36]NVStorageSaveData done [11:57:36]ExternCall_PrintAddStr [11:57:36]wPrintStart [11:57:36]Write to MH i2c: 01 00 00 22 38 5A [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 22 38 00 00 00 00 00 FF 0F 6F [11:57:36]RasterBufferAndPrint [11:57:36]line Счет N : (1)342998 [11:57:36]line ИНН: 02508201610067 [11:57:36]line Контрольно-Кассовый Чек [11:57:36]line ПРОДАЖА [11:57:36]line ТРК (МРК, ГНК) : 63 [11:57:36]line Товар: 2710124130 [11:57:36]line Аи-92-К-2 [11:57:36]line 2.990 * 66.90 [11:57:36]line = 200.03 [11:57:36]line НДС 12% НСП 1% [11:57:36]line > о реализуемом товаре [11:57:36]line ОКРУГЛЕНИЕ: -0.03 [11:57:36]line ИТОГО: 200.00 [11:57:36]line Внесено: 200.00 [11:57:36]line СДАЧА: 0.00 [11:57:36]line НСП 1% : 1.77 [11:57:36]line НДС 12% : 21.24 [11:57:36]line Наличными: 200.00 [11:57:36]line Безнал.: 0.00 [11:57:36]line Место: АЗС № 78 "Партнер Нефть" [11:57:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [11:57:36]line СНО: Общий режим [11:57:36]line Чек 87 21.10.2024 11:57 [11:57:36]line Смена: 115 ФФД: 1.0 [11:57:36]line ЗНМ: 0300000137 [11:57:36]line РНМ: 0000000000186857 [11:57:36]line Версия ККМ: v1.0 [11:57:36]line ФМ: 0000000002094219 [11:57:36]line ФД: 30590 [11:57:36]line ФПД: 114348669303002 [11:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115739&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30590&fm=114348669303002&tin=02508201610067®Number=0000000000186857&sum=20000 [11:57:36]OFD Sender: Processing packet 30590 [packets to send 10, broken 9] [11:57:36]ProducePacketName [11:57:36]name=ofd_packets/00030590 [11:57:36]OFD Sender: To server: pG, [11:57:36]CommunicateWithHost lk.salyk.kg:30040 [11:57:36]ConnectInit lk.salyk.kg [11:57:36]written 0, free lines is 4095 [11:57:37]Connected sock=10 [11:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C2 68 07 01 01 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 57 00 00 00 F4 03 04 00 B3 41 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7E 77 00 00 35 04 06 00 67 FF DF D0 78 DA 73 00 47 1D F2 81 61 6D [11:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8C B5 47 00 3F 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 32 30 39 34 32 31 39 10 04 04 00 7E 77 00 00 F4 03 04 00 34 EC 15 67 B6 04 01 00 00 26 8C AE C7 F9 18 DF 73 [11:57:37]CommunicateWithHost err = 0 [11:57:37]CheckOFDResponse [11:57:37]1017 (14) - 77093643461234 [11:57:37]1041 (16) - 0000000002094219 [11:57:37]1040 (4) - 30590 [11:57:37]1012 (4) - 21.10.2024 05:52 [11:57:37]1206 (1) - 0 [11:57:37]OFD Sender: Remove packet 30590 [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00030590 [11:57:37]NVStorageDeleteData [11:57:37]Write to MH i2c: 01 00 00 4D 38 85 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 4D 38 00 00 00 00 00 EC 0C 84 [11:57:37]RasterBufferAndPrint [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]written 0, free lines is 3317 [11:57:37]MH_Cut [11:57:37]Write to MH i2c: D1 01 00 54 38 01 5E [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 54 38 00 5D [11:57:37]Write to MH i2c: 01 00 00 55 38 8D [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]OFD Sender: No OFD packet to send [11:57:38]*** Cut start [11:57:38]*** Partial cut [11:57:38]*** CUTSNS_PIN = 1 [11:57:38]*** CUTSNS_PIN = 0 [11:57:38]*** Brake cut motor [11:57:38]Read from MH i2c: 01 [11:57:38]MH_I2C_Read... [11:57:38]*** Stop cut motor [11:57:38]*** Cut end [11:57:38]Read from MH i2c: 01 07 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: 01 07 00 55 38 00 00 00 00 00 FF 0F A2 [11:57:38]process_action close_receipt done [11:57:38]requested_data is exist [11:57:38]produce_requested_data [11:57:38]requested_item fm.sn is exist - process it [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 11 00 00 [11:57:38]Write to MH i2c: E2 08 00 56 38 80 11 00 00 00 00 00 00 08 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 17 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 17 00 56 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [11:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [11:57:38]wFMCommunicate OK [11:57:38]requested_item fd.num is exist - process it [11:57:38]SAM_PROTO_GetFieldsCounters [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 00 00 [11:57:38]Write to MH i2c: E2 08 00 57 38 80 13 00 00 00 00 00 00 0B [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 62 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 62 00 57 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [11:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetFieldsCounters done [11:57:38]requested_item shift.num is exist - process it [11:57:38]requested_item shift.opened is exist - process it [11:57:38]req_shift_opened [11:57:38]FM_GetShiftState [11:57:38]SAM_PROTO_GetShiftState [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 01 00 [11:57:38]Write to MH i2c: E2 08 00 58 38 80 13 01 00 00 00 00 00 0D [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 58 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 89 [11:57:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetShiftState done [11:57:38]FM_GetShiftState done [11:57:38]req_shift_opened done [11:57:38]requested_item shift.open_date is exist - process it [11:57:38]req_shift_open_date [11:57:38]req_shift_open_date done [11:57:38]produce_requested_data done [11:57:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30590,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [11:57:38]process_action_free close_receipt [11:57:38]json_value_free [11:57:38]json_value_free done [11:57:38]process_json_proto returns [11:57:38]Send response to host [11:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30590,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [11:57:38]free response buf [11:57:38]execute_script done [11:57:38]execute_script returns [11:57:38]free content buf [11:57:38]Sock 9.Close socket [11:57:38]Sock 9.Thread stoped [11:57:42]OFD Sender: No OFD packet to send [11:57:47]OFD Sender: No OFD packet to send [11:57:52]OFD Sender: No OFD packet to send [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:31]accept exits with 7 [12:01:31]New connection [12:01:31]New thread 3067489636 created [12:01:31]Thread 3067346276 joined [12:01:31]Waiting for new connection... [12:01:31] Sock 7.Parse request [12:01:31]Sock 7.Check first char [12:01:31]Sock 7.First char is OK [12:01:31]request: POST /json_proto HTTP/1.0 [12:01:31]Method: POST [12:01:31]URL: /json_proto [12:01:31]Method is POST - this is cgi request [12:01:31]url: /json_proto [12:01:31]query_string will be loaded in cgi processing [12:01:31]execute_cgi json_proto POST (null) [12:01:31]execute_cgi path=json_proto method=POST [12:01:31]POST find Content-Length [12:01:31]Host: 172.17.51.3:8080 [12:01:31]Content-Length: 677 [12:01:31]Content-Type: application/json [12:01:31] [12:01:31]POST finish read [12:01:31]Found Content-Length = 677 [12:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:31]execute_script... [12:01:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)342999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:31]POST & json_proto [12:01:31]process_json_proto [12:01:31]json parsed OK: [12:01:31]protocol is kg_v1.0 [12:01:31]action value=close_receipt [12:01:31]process_action close_receipt [12:01:31]cmd_close_receipt [12:01:31]MH_GetDate [12:01:31]Write to MH i2c: F0 00 00 59 38 80 [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 09 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: F0 09 00 59 38 00 A0 42 16 67 04 C1 95 66 A8 [12:01:31]GetLastDocTimeStamp 1729511859 [12:01:31]current date 1729512096 [12:01:31]FM_GetShiftState [12:01:31]SAM_PROTO_GetShiftState [12:01:31]wFMCommunicate request_size=4 [12:01:31]MH_SAM_APDU [12:01:31]CAPDU: 80 13 01 00 [12:01:31]Write to MH i2c: E2 08 00 5A 38 80 13 01 00 00 00 00 00 0F [12:01:31]Write i2c OK [12:01:31]MH_I2C_Read... [12:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:31]Read from MH i2c: E2 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0E 00 [12:01:31]MH_I2C_Read... [12:01:31]Read from MH i2c: E2 0E 00 5A 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8B [12:01:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:01:31]wFMCommunicate OK [12:01:31]SAM_PROTO_GetShiftState done [12:01:31]FM_GetShiftState done [12:01:31]opened in 1729471058 [12:01:31]opened+sec_in_day 1729557458 [12:01:31]quantity*price = 30038 [12:01:31]sum+1 = 30039 [12:01:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 88 21.10.2024 12:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30591 ФПД: 68309694587017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120136&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30591&fm=68309694587017&tin=02508201610067®Number=0000000000186857&sum=30000 [12:01:32]StoreToDocumentArchive [12:01:32]shift 115 fd 30591 [12:01:32]save to /storage/0115/doc_00030591 [12:01:32]save last doc name /storage/0115/doc_00030591 to /storage/kkm_last_doc_name [12:01:32]save OK [12:01:32]Clear old archive folders... [12:01:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:32]tlvbuf is B6FDBC60 [12:01:32]SAM_PROTO_ClearQueue [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 09 00 00 [12:01:32]Write to MH i2c: E2 08 00 67 38 80 09 00 00 00 00 00 00 11 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 67 38 00 90 00 13 [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]SAM_PROTO_ClearQueue done [12:01:32]KKMCreateOFDPacket [12:01:32]OFDProtocolAddRootSTLVToBuf [12:01:32]FM_MakeSignedData [12:01:32]FM_MakeSignedData [12:01:32]SAM_PROTO_SignData [12:01:32]wFMCommunicate request_size=4 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 01 02 [12:01:32]Write to MH i2c: E2 08 00 68 38 80 0D 01 02 00 00 00 00 19 [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:32]Read from MH i2c: E2 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 [12:01:32]MH_I2C_Read... [12:01:32]Read from MH i2c: E2 03 00 68 38 00 90 00 14 [12:01:32]RAPDU: 90 00 [12:01:32]wFMCommunicate OK [12:01:32]wFMCommunicate request_size=255 [12:01:32]MH_SAM_APDU [12:01:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A0 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 77 00 00 35 04 06 00 3E [12:01:32]Write to MH i2c: E2 02 01 69 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A0 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 77 00 00 35 04 06 00 3E 00 00 FC [12:01:32]Write i2c OK [12:01:32]MH_I2C_Read... [12:01:33]OFD Sender: No OFD packet to send [12:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 69 38 00 90 00 15 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]wFMCommunicate request_size=10 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 02 02 05 20 97 14 A0 89 [12:01:33]Write to MH i2c: E2 0D 00 6A 38 80 0D 02 02 05 00 20 97 14 A0 89 00 00 1A [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 03 00 6A 38 00 90 00 16 [12:01:33]RAPDU: 90 00 [12:01:33]wFMCommunicate OK [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 0D 03 02 [12:01:33]Write to MH i2c: E2 08 00 6B 38 80 0D 03 02 00 00 00 00 1E [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0B 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0B 00 6B 38 00 21 5D 12 59 5F 25 E0 66 90 00 D2 [12:01:33]RAPDU: 21 5D 12 59 5F 25 E0 66 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_SignData done [12:01:33]FM_MakeSignedData done [12:01:33]CreateOFDProtocolMessage [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 11 00 00 [12:01:33]Write to MH i2c: E2 08 00 6C 38 80 11 00 00 00 00 00 00 1E [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 17 00 6C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [12:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:33]wFMCommunicate OK [12:01:33]CreateOFDProtocolMessage done [12:01:33]OFDSenderStorePacket 30591 [12:01:33]StoreOFDPacket docnum=30591 [12:01:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9E 73 07 01 A6 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A0 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 77 00 00 35 04 06 00 3E 20 97 14 A0 89 21 5D 12 59 5F 25 E0 66 [12:01:33]CheckFolder [12:01:33]dirname=/storage/ofd_packets [12:01:33]CheckFolder done [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00030591 [12:01:33]NVStorageSaveData ofd_packets/00030591 [12:01:33]File name is /storage/ofd_packets/00030591 [12:01:33]Write 301 bytes [12:01:33]NVStorageSaveData done [12:01:33]OFDSenderStorePacket done [12:01:33]KKMCreateOFDPacket done [12:01:33]NVStorageSaveData kkm_last_timestamp [12:01:33]File name is /storage/kkm_last_timestamp [12:01:33]Write 4 bytes [12:01:33]NVStorageSaveData done [12:01:33]ExternCall_PrintAddStr [12:01:33]wPrintStart [12:01:33]Write to MH i2c: 01 00 00 6D 38 A5 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 6D 38 00 00 00 00 00 FF 0F BA [12:01:33]RasterBufferAndPrint [12:01:33]line Счет N : (1)342999 [12:01:33]line ИНН: 02508201610067 [12:01:33]line Контрольно-Кассовый Чек [12:01:33]line ПРОДАЖА [12:01:33]line ТРК (МРК, ГНК) : 53 [12:01:33]line Товар: 2710124130 [12:01:33]line Аи-92-К-2 [12:01:33]line 4.490 * 66.90 [12:01:33]line = 300.38 [12:01:33]line НДС 12% НСП 1% [12:01:33]line > о реализуемом товаре [12:01:33]line ОКРУГЛЕНИЕ: -0.38 [12:01:33]line ИТОГО: 300.00 [12:01:33]line Внесено: 300.00 [12:01:33]line СДАЧА: 0.00 [12:01:33]line НСП 1% : 2.66 [12:01:33]line НДС 12% : 31.90 [12:01:33]line Наличными: 300.00 [12:01:33]line Безнал.: 0.00 [12:01:33]line Место: АЗС № 78 "Партнер Нефть" [12:01:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:01:33]line СНО: Общий режим [12:01:33]line Чек 88 21.10.2024 12:01 [12:01:33]line Смена: 115 ФФД: 1.0 [12:01:33]line ЗНМ: 0300000137 [12:01:33]line РНМ: 0000000000186857 [12:01:33]line Версия ККМ: v1.0 [12:01:33]line ФМ: 0000000002094219 [12:01:33]line ФД: 30591 [12:01:33]line ФПД: 68309694587017 [12:01:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120136&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30591&fm=68309694587017&tin=02508201610067®Number=0000000000186857&sum=30000 [12:01:33]OFD Sender: Processing packet 30591 [packets to send 10, broken 9] [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00030591 [12:01:33]OFD Sender: To server: pG, [12:01:33]CommunicateWithHost lk.salyk.kg:30040 [12:01:33]ConnectInit lk.salyk.kg [12:01:33]written 0, free lines is 4095 [12:01:33]Connected sock=10 [12:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9E 73 07 01 A6 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A0 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 77 00 00 35 04 06 00 3E 20 97 14 A0 89 21 5D 12 59 5F 25 E0 66 [12:01:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AB D6 47 00 D7 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 7F 77 00 00 F4 03 04 00 20 ED 15 67 B6 04 01 00 00 81 E9 A7 5E D2 3F B8 07 [12:01:33]CommunicateWithHost err = 0 [12:01:33]CheckOFDResponse [12:01:33]1017 (14) - 77093643461234 [12:01:33]1041 (16) - 0000000002094219 [12:01:33]1040 (4) - 30591 [12:01:33]1012 (4) - 21.10.2024 05:56 [12:01:33]1206 (1) - 0 [12:01:33]OFD Sender: Remove packet 30591 [12:01:33]ProducePacketName [12:01:33]name=ofd_packets/00030591 [12:01:33]NVStorageDeleteData [12:01:33]Write to MH i2c: 01 00 00 98 38 D0 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: 01 07 00 98 38 00 00 00 00 00 F5 0C D8 [12:01:33]RasterBufferAndPrint [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]line [12:01:33]written 0, free lines is 3323 [12:01:33]MH_Cut [12:01:33]Write to MH i2c: D1 01 00 9F 38 01 A9 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: D1 [12:01:33]MH_I2C_Read... [12:01:34]Read from MH i2c: D1 01 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: D1 01 00 9F 38 00 A8 [12:01:34]Write to MH i2c: 01 00 00 A0 38 D8 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]OFD Sender: No OFD packet to send [12:01:34]*** Cut start [12:01:34]*** Partial cut [12:01:34]*** CUTSNS_PIN = 1 [12:01:34]*** CUTSNS_PIN = 0 [12:01:34]*** Brake cut motor [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]*** Stop cut motor [12:01:35]*** Cut end [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 A0 38 00 00 00 00 00 FF 0F ED [12:01:35]process_action close_receipt done [12:01:35]requested_data is exist [12:01:35]produce_requested_data [12:01:35]requested_item fm.sn is exist - process it [12:01:35]wFMCommunicate request_size=4 [12:01:35]MH_SAM_APDU [12:01:35]CAPDU: 80 11 00 00 [12:01:35]Write to MH i2c: E2 08 00 A1 38 80 11 00 00 00 00 00 00 53 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:35]Read from MH i2c: E2 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 17 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 17 00 A1 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [12:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:01:35]wFMCommunicate OK [12:01:35]requested_item fd.num is exist - process it [12:01:35]SAM_PROTO_GetFieldsCounters [12:01:35]wFMCommunicate request_size=4 [12:01:35]MH_SAM_APDU [12:01:35]CAPDU: 80 13 00 00 [12:01:35]Write to MH i2c: E2 08 00 A2 38 80 13 00 00 00 00 00 00 56 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:35]Read from MH i2c: E2 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 62 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 62 00 A2 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [12:01:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 7F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:35]wFMCommunicate OK [12:01:35]SAM_PROTO_GetFieldsCounters done [12:01:35]requested_item shift.num is exist - process it [12:01:35]requested_item shift.opened is exist - process it [12:01:35]req_shift_opened [12:01:35]FM_GetShiftState [12:01:35]SAM_PROTO_GetShiftState [12:01:35]wFMCommunicate request_size=4 [12:01:35]MH_SAM_APDU [12:01:35]CAPDU: 80 13 01 00 [12:01:35]Write to MH i2c: E2 08 00 A3 38 80 13 01 00 00 00 00 00 58 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:35]Read from MH i2c: E2 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 0E 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 0E 00 A3 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D4 [12:01:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:01:35]wFMCommunicate OK [12:01:35]SAM_PROTO_GetShiftState done [12:01:35]FM_GetShiftState done [12:01:35]req_shift_opened done [12:01:35]requested_item shift.open_date is exist - process it [12:01:35]req_shift_open_date [12:01:35]req_shift_open_date done [12:01:35]produce_requested_data done [12:01:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30591,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:01:35]process_action_free close_receipt [12:01:35]json_value_free [12:01:35]json_value_free done [12:01:35]process_json_proto returns [12:01:35]Send response to host [12:01:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30591,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:01:35]free response buf [12:01:35]execute_script done [12:01:35]execute_script returns [12:01:35]free content buf [12:01:35]Sock 7.Close socket [12:01:35]Sock 7.Thread stoped [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:30]accept exits with 9 [12:02:30]New connection [12:02:30]New thread 3067346276 created [12:02:30]Thread 3067489636 joined [12:02:30]Waiting for new connection... [12:02:30] Sock 9.Parse request [12:02:30]Sock 9.Check first char [12:02:30]Sock 9.First char is OK [12:02:30]request: POST /json_proto HTTP/1.0 [12:02:30]Method: POST [12:02:30]URL: /json_proto [12:02:30]Method is POST - this is cgi request [12:02:30]url: /json_proto [12:02:30]query_string will be loaded in cgi processing [12:02:30]execute_cgi json_proto POST (null) [12:02:30]execute_cgi path=json_proto method=POST [12:02:30]POST find Content-Length [12:02:30]Host: 172.17.51.3:8080 [12:02:30]Content-Length: 677 [12:02:30]Content-Type: application/json [12:02:30] [12:02:30]POST finish read [12:02:30]Found Content-Length = 677 [12:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:30]execute_script... [12:02:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:30]POST & json_proto [12:02:30]process_json_proto [12:02:30]json parsed OK: [12:02:30]protocol is kg_v1.0 [12:02:30]action value=close_receipt [12:02:30]process_action close_receipt [12:02:30]cmd_close_receipt [12:02:30]MH_GetDate [12:02:30]Write to MH i2c: F0 00 00 A4 38 CB [12:02:30]Write i2c OK [12:02:30]MH_I2C_Read... [12:02:30]Read from MH i2c: F0 [12:02:30]MH_I2C_Read... [12:02:30]Read from MH i2c: F0 09 00 [12:02:30]MH_I2C_Read... [12:02:30]Read from MH i2c: F0 09 00 A4 38 00 DA 42 16 67 04 C1 95 66 2D [12:02:30]GetLastDocTimeStamp 1729512096 [12:02:30]current date 1729512154 [12:02:30]FM_GetShiftState [12:02:30]SAM_PROTO_GetShiftState [12:02:30]wFMCommunicate request_size=4 [12:02:30]MH_SAM_APDU [12:02:30]CAPDU: 80 13 01 00 [12:02:30]Write to MH i2c: E2 08 00 A5 38 80 13 01 00 00 00 00 00 5A [12:02:30]Write i2c OK [12:02:30]MH_I2C_Read... [12:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:30]Read from MH i2c: E2 [12:02:30]MH_I2C_Read... [12:02:30]Read from MH i2c: E2 0E 00 [12:02:30]MH_I2C_Read... [12:02:30]Read from MH i2c: E2 0E 00 A5 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D6 [12:02:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:02:30]wFMCommunicate OK [12:02:30]SAM_PROTO_GetShiftState done [12:02:30]FM_GetShiftState done [12:02:30]opened in 1729471058 [12:02:30]opened+sec_in_day 1729557458 [12:02:30]quantity*price = 20003 [12:02:30]sum+1 = 20004 [12:02:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 89 21.10.2024 12:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30592 ФПД: 276379821428133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120234&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30592&fm=276379821428133&tin=02508201610067®Number=0000000000186857&sum=20000 [12:02:31]StoreToDocumentArchive [12:02:31]shift 115 fd 30592 [12:02:31]save to /storage/0115/doc_00030592 [12:02:31]save last doc name /storage/0115/doc_00030592 to /storage/kkm_last_doc_name [12:02:31]save OK [12:02:31]Clear old archive folders... [12:02:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:31]tlvbuf is B6E2B180 [12:02:31]SAM_PROTO_ClearQueue [12:02:31]wFMCommunicate request_size=4 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 09 00 00 [12:02:31]Write to MH i2c: E2 08 00 B2 38 80 09 00 00 00 00 00 00 5C [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 B2 38 00 90 00 5E [12:02:31]RAPDU: 90 00 [12:02:31]wFMCommunicate OK [12:02:31]SAM_PROTO_ClearQueue done [12:02:31]KKMCreateOFDPacket [12:02:31]OFDProtocolAddRootSTLVToBuf [12:02:31]FM_MakeSignedData [12:02:31]FM_MakeSignedData [12:02:31]SAM_PROTO_SignData [12:02:31]wFMCommunicate request_size=4 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 0D 01 02 [12:02:31]Write to MH i2c: E2 08 00 B3 38 80 0D 01 02 00 00 00 00 64 [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 B3 38 00 90 00 5F [12:02:31]RAPDU: 90 00 [12:02:31]wFMCommunicate OK [12:02:31]wFMCommunicate request_size=255 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 59 00 00 00 F4 03 04 00 DA 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 77 00 00 35 04 06 00 FB [12:02:31]Write to MH i2c: E2 02 01 B4 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 59 00 00 00 F4 03 04 00 DA 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 77 00 00 35 04 06 00 FB 00 00 0E [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 B4 38 00 90 00 60 [12:02:31]RAPDU: 90 00 [12:02:31]wFMCommunicate OK [12:02:31]wFMCommunicate request_size=10 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 0D 02 02 05 5D B1 14 4D A5 [12:02:31]Write to MH i2c: E2 0D 00 B5 38 80 0D 02 02 05 00 5D B1 14 4D A5 00 00 85 [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 03 00 B5 38 00 90 00 61 [12:02:31]RAPDU: 90 00 [12:02:31]wFMCommunicate OK [12:02:31]wFMCommunicate request_size=4 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 0D 03 02 [12:02:31]Write to MH i2c: E2 08 00 B6 38 80 0D 03 02 00 00 00 00 69 [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 0B 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 0B 00 B6 38 00 28 5E 3E 6B 2C BC 3A C9 90 00 84 [12:02:31]RAPDU: 28 5E 3E 6B 2C BC 3A C9 90 00 [12:02:31]wFMCommunicate OK [12:02:31]SAM_PROTO_SignData done [12:02:31]FM_MakeSignedData done [12:02:31]CreateOFDProtocolMessage [12:02:31]wFMCommunicate request_size=4 [12:02:31]MH_SAM_APDU [12:02:31]CAPDU: 80 11 00 00 [12:02:31]Write to MH i2c: E2 08 00 B7 38 80 11 00 00 00 00 00 00 69 [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:31]Read from MH i2c: E2 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 17 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: E2 17 00 B7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [12:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:02:31]wFMCommunicate OK [12:02:31]CreateOFDProtocolMessage done [12:02:31]OFDSenderStorePacket 30592 [12:02:31]StoreOFDPacket docnum=30592 [12:02:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 05 C5 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 59 00 00 00 F4 03 04 00 DA 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 77 00 00 35 04 06 00 FB 5D B1 14 4D A5 28 5E 3E 6B 2C BC 3A C9 [12:02:31]CheckFolder [12:02:31]dirname=/storage/ofd_packets [12:02:31]CheckFolder done [12:02:31]ProducePacketName [12:02:31]name=ofd_packets/00030592 [12:02:31]NVStorageSaveData ofd_packets/00030592 [12:02:31]File name is /storage/ofd_packets/00030592 [12:02:31]Write 301 bytes [12:02:31]NVStorageSaveData done [12:02:31]OFDSenderStorePacket done [12:02:31]KKMCreateOFDPacket done [12:02:31]NVStorageSaveData kkm_last_timestamp [12:02:31]File name is /storage/kkm_last_timestamp [12:02:31]Write 4 bytes [12:02:31]NVStorageSaveData done [12:02:31]ExternCall_PrintAddStr [12:02:31]wPrintStart [12:02:31]Write to MH i2c: 01 00 00 B8 38 F0 [12:02:31]Write i2c OK [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: 01 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: 01 07 00 [12:02:31]MH_I2C_Read... [12:02:31]Read from MH i2c: 01 07 00 B8 38 00 00 00 00 00 FF 0F 05 [12:02:31]RasterBufferAndPrint [12:02:31]line Счет N : (1)343000 [12:02:31]line ИНН: 02508201610067 [12:02:31]line Контрольно-Кассовый Чек [12:02:31]line ПРОДАЖА [12:02:31]line ТРК (МРК, ГНК) : 33 [12:02:31]line Товар: 2710124130 [12:02:31]line Аи-92-К-2 [12:02:31]line 2.990 * 66.90 [12:02:31]line = 200.03 [12:02:31]line НДС 12% НСП 1% [12:02:31]line > о реализуемом товаре [12:02:31]line ОКРУГЛЕНИЕ: -0.03 [12:02:31]line ИТОГО: 200.00 [12:02:31]line Внесено: 200.00 [12:02:31]line СДАЧА: 0.00 [12:02:31]line НСП 1% : 1.77 [12:02:31]line НДС 12% : 21.24 [12:02:31]line Наличными: 200.00 [12:02:31]line Безнал.: 0.00 [12:02:31]line Место: АЗС № 78 "Партнер Нефть" [12:02:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:02:31]line СНО: Общий режим [12:02:31]line Чек 89 21.10.2024 12:02 [12:02:31]line Смена: 115 ФФД: 1.0 [12:02:31]line ЗНМ: 0300000137 [12:02:31]line РНМ: 0000000000186857 [12:02:31]line Версия ККМ: v1.0 [12:02:31]line ФМ: 0000000002094219 [12:02:31]line ФД: 30592 [12:02:31]line ФПД: 276379821428133 [12:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120234&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30592&fm=276379821428133&tin=02508201610067®Number=0000000000186857&sum=20000 [12:02:32]OFD Sender: Processing packet 30592 [packets to send 10, broken 9] [12:02:32]ProducePacketName [12:02:32]name=ofd_packets/00030592 [12:02:32]OFD Sender: To server: pG, [12:02:32]CommunicateWithHost lk.salyk.kg:30040 [12:02:32]ConnectInit lk.salyk.kg [12:02:32]written 0, free lines is 4095 [12:02:32]Connected sock=10 [12:02:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 05 C5 07 01 BF 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 59 00 00 00 F4 03 04 00 DA 42 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 77 00 00 35 04 06 00 FB 5D B1 14 4D A5 28 5E 3E 6B 2C BC 3A C9 [12:02:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AA 59 47 00 1E 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 80 77 00 00 F4 03 04 00 5B ED 15 67 B6 04 01 00 00 EE 41 76 21 B5 27 53 28 [12:02:32]CommunicateWithHost err = 0 [12:02:32]CheckOFDResponse [12:02:32]1017 (14) - 77093643461234 [12:02:32]1041 (16) - 0000000002094219 [12:02:32]1040 (4) - 30592 [12:02:32]1012 (4) - 21.10.2024 05:57 [12:02:32]1206 (1) - 0 [12:02:32]OFD Sender: Remove packet 30592 [12:02:32]ProducePacketName [12:02:32]name=ofd_packets/00030592 [12:02:32]NVStorageDeleteData [12:02:32]Write to MH i2c: 01 00 00 E3 38 1B [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: 01 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: 01 07 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: 01 07 00 E3 38 00 00 00 00 00 EE 0C 1C [12:02:32]RasterBufferAndPrint [12:02:32]line [12:02:32]line [12:02:32]line [12:02:32]line [12:02:32]line [12:02:32]written 0, free lines is 3316 [12:02:32]MH_Cut [12:02:32]Write to MH i2c: D1 01 00 EA 38 01 F4 [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: D1 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: D1 01 00 [12:02:32]MH_I2C_Read... [12:02:32]Read from MH i2c: D1 01 00 EA 38 00 F3 [12:02:32]Write to MH i2c: 01 00 00 EB 38 23 [12:02:32]Write i2c OK [12:02:32]MH_I2C_Read... [12:02:33]OFD Sender: No OFD packet to send [12:02:33]*** Cut start [12:02:33]*** Partial cut [12:02:33]*** CUTSNS_PIN = 1 [12:02:33]*** CUTSNS_PIN = 0 [12:02:33]*** Brake cut motor [12:02:34]Read from MH i2c: 01 [12:02:34]MH_I2C_Read... [12:02:34]*** Stop cut motor [12:02:34]*** Cut end [12:02:34]Read from MH i2c: 01 07 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 FF 0F 38 [12:02:34]process_action close_receipt done [12:02:34]requested_data is exist [12:02:34]produce_requested_data [12:02:34]requested_item fm.sn is exist - process it [12:02:34]wFMCommunicate request_size=4 [12:02:34]MH_SAM_APDU [12:02:34]CAPDU: 80 11 00 00 [12:02:34]Write to MH i2c: E2 08 00 EC 38 80 11 00 00 00 00 00 00 9E [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:34]Read from MH i2c: E2 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 17 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 17 00 EC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [12:02:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:02:34]wFMCommunicate OK [12:02:34]requested_item fd.num is exist - process it [12:02:34]SAM_PROTO_GetFieldsCounters [12:02:34]wFMCommunicate request_size=4 [12:02:34]MH_SAM_APDU [12:02:34]CAPDU: 80 13 00 00 [12:02:34]Write to MH i2c: E2 08 00 ED 38 80 13 00 00 00 00 00 00 A1 [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:34]Read from MH i2c: E2 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 62 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 62 00 ED 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 77 00 00 0E 04 04 00 73 00 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 3C [12:02:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 80 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:34]wFMCommunicate OK [12:02:34]SAM_PROTO_GetFieldsCounters done [12:02:34]requested_item shift.num is exist - process it [12:02:34]requested_item shift.opened is exist - process it [12:02:34]req_shift_opened [12:02:34]FM_GetShiftState [12:02:34]SAM_PROTO_GetShiftState [12:02:34]wFMCommunicate request_size=4 [12:02:34]MH_SAM_APDU [12:02:34]CAPDU: 80 13 01 00 [12:02:34]Write to MH i2c: E2 08 00 EE 38 80 13 01 00 00 00 00 00 A3 [12:02:34]Write i2c OK [12:02:34]MH_I2C_Read... [12:02:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:34]Read from MH i2c: E2 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 0E 00 [12:02:34]MH_I2C_Read... [12:02:34]Read from MH i2c: E2 0E 00 EE 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1F [12:02:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:02:34]wFMCommunicate OK [12:02:34]SAM_PROTO_GetShiftState done [12:02:34]FM_GetShiftState done [12:02:34]req_shift_opened done [12:02:34]requested_item shift.open_date is exist - process it [12:02:34]req_shift_open_date [12:02:34]req_shift_open_date done [12:02:34]produce_requested_data done [12:02:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30592,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:02:34]process_action_free close_receipt [12:02:34]json_value_free [12:02:34]json_value_free done [12:02:34]process_json_proto returns [12:02:34]Send response to host [12:02:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30592,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:02:34]free response buf [12:02:34]execute_script done [12:02:34]execute_script returns [12:02:34]free content buf [12:02:34]Sock 9.Close socket [12:02:34]Sock 9.Thread stoped [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:30]accept exits with 7 [12:06:30]New connection [12:06:30]New thread 3067489636 created [12:06:30]Thread 3067346276 joined [12:06:30]Waiting for new connection... [12:06:30] Sock 7.Parse request [12:06:30]Sock 7.Check first char [12:06:30]Sock 7.First char is OK [12:06:30]request: POST /json_proto HTTP/1.0 [12:06:30]Method: POST [12:06:30]URL: /json_proto [12:06:30]Method is POST - this is cgi request [12:06:30]url: /json_proto [12:06:30]query_string will be loaded in cgi processing [12:06:30]execute_cgi json_proto POST (null) [12:06:30]execute_cgi path=json_proto method=POST [12:06:30]POST find Content-Length [12:06:30]Host: 172.17.51.3:8080 [12:06:30]Content-Length: 754 [12:06:30]Content-Type: application/json [12:06:30] [12:06:30]POST finish read [12:06:30]Found Content-Length = 754 [12:06:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30031605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:30]execute_script... [12:06:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30031605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:30]POST & json_proto [12:06:30]process_json_proto [12:06:30]json parsed OK: [12:06:30]protocol is kg_v1.0 [12:06:30]action value=close_receipt [12:06:30]process_action close_receipt [12:06:30]cmd_close_receipt [12:06:30]MH_GetDate [12:06:30]Write to MH i2c: F0 00 00 EF 38 16 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: F0 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: F0 09 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: F0 09 00 EF 38 00 CA 43 16 67 04 C1 95 66 69 [12:06:30]GetLastDocTimeStamp 1729512154 [12:06:30]current date 1729512394 [12:06:30]FM_GetShiftState [12:06:30]SAM_PROTO_GetShiftState [12:06:30]wFMCommunicate request_size=4 [12:06:30]MH_SAM_APDU [12:06:30]CAPDU: 80 13 01 00 [12:06:30]Write to MH i2c: E2 08 00 F0 38 80 13 01 00 00 00 00 00 A5 [12:06:30]Write i2c OK [12:06:30]MH_I2C_Read... [12:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:30]Read from MH i2c: E2 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 0E 00 [12:06:30]MH_I2C_Read... [12:06:30]Read from MH i2c: E2 0E 00 F0 38 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 21 [12:06:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:06:30]wFMCommunicate OK [12:06:30]SAM_PROTO_GetShiftState done [12:06:30]FM_GetShiftState done [12:06:30]opened in 1729471058 [12:06:30]opened+sec_in_day 1729557458 [12:06:30]quantity*price = 0 [12:06:30]sum+1 = 1 [12:06:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 90 21.10.2024 12:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30031605 ФМ: 0000000002094219 ФД: 30593 ФПД: 220602506027060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120634&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30593&fm=220602506027060&tin=02508201610067®Number=0000000000186857&sum=0 [12:06:31]StoreToDocumentArchive [12:06:31]shift 115 fd 30593 [12:06:31]save to /storage/0115/doc_00030593 [12:06:31]save last doc name /storage/0115/doc_00030593 to /storage/kkm_last_doc_name [12:06:31]save OK [12:06:31]Clear old archive folders... [12:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:31]tlvbuf is B6E2B910 [12:06:31]SAM_PROTO_ClearQueue [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 09 00 00 [12:06:31]Write to MH i2c: E2 08 00 FD 38 80 09 00 00 00 00 00 00 A7 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 FD 38 00 90 00 A9 [12:06:31]RAPDU: 90 00 [12:06:31]wFMCommunicate OK [12:06:31]SAM_PROTO_ClearQueue done [12:06:31]KKMCreateOFDPacket [12:06:31]OFDProtocolAddRootSTLVToBuf [12:06:31]FM_MakeSignedData [12:06:31]FM_MakeSignedData [12:06:31]SAM_PROTO_SignData [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 0D 01 02 [12:06:31]Write to MH i2c: E2 08 00 FE 38 80 0D 01 02 00 00 00 00 AF [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 FE 38 00 90 00 AA [12:06:31]RAPDU: 90 00 [12:06:31]wFMCommunicate OK [12:06:31]wFMCommunicate request_size=255 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 43 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 77 00 00 35 04 06 00 C8 [12:06:31]Write to MH i2c: E2 02 01 FF 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 43 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 77 00 00 35 04 06 00 C8 00 00 B3 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 FF 38 00 90 00 AB [12:06:31]RAPDU: 90 00 [12:06:31]wFMCommunicate OK [12:06:31]wFMCommunicate request_size=10 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 0D 02 02 05 A3 06 02 20 34 [12:06:31]Write to MH i2c: E2 0D 00 00 39 80 0D 02 02 05 00 A3 06 02 20 34 00 00 BC [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 03 00 00 39 00 90 00 AD [12:06:31]RAPDU: 90 00 [12:06:31]wFMCommunicate OK [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 0D 03 02 [12:06:31]Write to MH i2c: E2 08 00 01 39 80 0D 03 02 00 00 00 00 B5 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 0B 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 0B 00 01 39 00 44 79 E8 D4 A8 0C 9B 96 90 00 14 [12:06:31]RAPDU: 44 79 E8 D4 A8 0C 9B 96 90 00 [12:06:31]wFMCommunicate OK [12:06:31]SAM_PROTO_SignData done [12:06:31]FM_MakeSignedData done [12:06:31]CreateOFDProtocolMessage [12:06:31]wFMCommunicate request_size=4 [12:06:31]MH_SAM_APDU [12:06:31]CAPDU: 80 11 00 00 [12:06:31]Write to MH i2c: E2 08 00 02 39 80 11 00 00 00 00 00 00 B5 [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:31]Read from MH i2c: E2 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 17 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: E2 17 00 02 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [12:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:06:31]wFMCommunicate OK [12:06:31]CreateOFDProtocolMessage done [12:06:31]OFDSenderStorePacket 30593 [12:06:31]StoreOFDPacket docnum=30593 [12:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 A8 07 01 2B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 43 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 77 00 00 35 04 06 00 C8 A3 06 02 20 34 44 79 E8 D4 A8 0C 9B 96 [12:06:31]CheckFolder [12:06:31]dirname=/storage/ofd_packets [12:06:31]CheckFolder done [12:06:31]ProducePacketName [12:06:31]name=ofd_packets/00030593 [12:06:31]NVStorageSaveData ofd_packets/00030593 [12:06:31]File name is /storage/ofd_packets/00030593 [12:06:31]Write 301 bytes [12:06:31]NVStorageSaveData done [12:06:31]OFDSenderStorePacket done [12:06:31]KKMCreateOFDPacket done [12:06:31]NVStorageSaveData kkm_last_timestamp [12:06:31]File name is /storage/kkm_last_timestamp [12:06:31]Write 4 bytes [12:06:31]NVStorageSaveData done [12:06:31]ExternCall_PrintAddStr [12:06:31]wPrintStart [12:06:31]Write to MH i2c: 01 00 00 03 39 3C [12:06:31]Write i2c OK [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 [12:06:31]MH_I2C_Read... [12:06:31]Read from MH i2c: 01 07 00 03 39 00 00 00 00 00 FF 0F 51 [12:06:31]RasterBufferAndPrint [12:06:31]line Счет N : (1)343001 [12:06:31]line ИНН: 02508201610067 [12:06:31]line Контрольно-Кассовый Чек [12:06:31]line ПРОДАЖА [12:06:31]line ТРК (МРК, ГНК) : 62 [12:06:31]line Товар: 2710124500 [12:06:31]line Аи-95-К-3 [12:06:31]line 40.000 * 0.00 [12:06:31]line = 0.00 [12:06:31]line НДС 12% НСП 1% [12:06:31]line > о реализуемом товаре [12:06:31]line ИТОГО: 0.00 [12:06:31]line НСП 1% : 0.00 [12:06:31]line НДС 12% : 0.00 [12:06:31]line Наличными: 0.00 [12:06:31]line Безнал.: 0.00 [12:06:31]line Место: АЗС № 78 "Партнер Нефть" [12:06:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:06:31]line СНО: Общий режим [12:06:31]line Чек 90 21.10.2024 12:06 [12:06:31]line Смена: 115 ФФД: 1.0 [12:06:31]line ЗНМ: 0300000137 [12:06:31]line РНМ: 0000000000186857 [12:06:31]line Версия ККМ: v1.0 [12:06:31]line Талоны: ТК ГПНА Online [12:06:31]line 30031605 [12:06:31]line ФМ: 0000000002094219 [12:06:31]line ФД: 30593 [12:06:31]line ФПД: 220602506027060 [12:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120634&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30593&fm=220602506027060&tin=02508201610067®Number=0000000000186857&sum=0 [12:06:32]OFD Sender: Processing packet 30593 [packets to send 10, broken 9] [12:06:32]ProducePacketName [12:06:32]name=ofd_packets/00030593 [12:06:32]OFD Sender: To server: pG, [12:06:32]CommunicateWithHost lk.salyk.kg:30040 [12:06:32]ConnectInit lk.salyk.kg [12:06:32]written 0, free lines is 4095 [12:06:32]Connected sock=10 [12:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 26 A8 07 01 2B 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 43 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 81 77 00 00 35 04 06 00 C8 A3 06 02 20 34 44 79 E8 D4 A8 0C 9B 96 [12:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 06 93 47 00 0A 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 32 30 39 34 32 31 39 10 04 04 00 81 77 00 00 F4 03 04 00 4B EE 15 67 B6 04 01 00 00 34 8B 85 44 9B 88 3B 81 [12:06:32]CommunicateWithHost err = 0 [12:06:32]CheckOFDResponse [12:06:32]1017 (14) - 77093643461234 [12:06:32]1041 (16) - 0000000002094219 [12:06:32]1040 (4) - 30593 [12:06:32]1012 (4) - 21.10.2024 06:01 [12:06:32]1206 (1) - 0 [12:06:32]OFD Sender: Remove packet 30593 [12:06:32]ProducePacketName [12:06:32]name=ofd_packets/00030593 [12:06:32]NVStorageDeleteData [12:06:32]Write to MH i2c: 01 00 00 2D 39 66 [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: 01 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: 01 07 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: 01 07 00 2D 39 00 00 00 00 00 04 0D 7E [12:06:32]RasterBufferAndPrint [12:06:32]line [12:06:32]line [12:06:32]line [12:06:32]line [12:06:32]line [12:06:32]written 0, free lines is 3342 [12:06:32]MH_Cut [12:06:32]Write to MH i2c: D1 01 00 34 39 01 3F [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: D1 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: D1 01 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: D1 01 00 34 39 00 3E [12:06:32]Write to MH i2c: 01 00 00 35 39 6E [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:33]OFD Sender: No OFD packet to send [12:06:33]*** Cut start [12:06:33]*** Partial cut [12:06:33]*** CUTSNS_PIN = 1 [12:06:33]*** CUTSNS_PIN = 0 [12:06:33]*** Brake cut motor [12:06:33]Read from MH i2c: 01 [12:06:34]MH_I2C_Read... [12:06:34]*** Stop cut motor [12:06:34]*** Cut end [12:06:34]Read from MH i2c: 01 07 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: 01 07 00 35 39 00 00 00 00 00 FF 0F 83 [12:06:34]process_action close_receipt done [12:06:34]requested_data is exist [12:06:34]produce_requested_data [12:06:34]requested_item fm.sn is exist - process it [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 11 00 00 [12:06:34]Write to MH i2c: E2 08 00 36 39 80 11 00 00 00 00 00 00 E9 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 17 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 17 00 36 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 37 [12:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:06:34]wFMCommunicate OK [12:06:34]requested_item fd.num is exist - process it [12:06:34]SAM_PROTO_GetFieldsCounters [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 13 00 00 [12:06:34]Write to MH i2c: E2 08 00 37 39 80 13 00 00 00 00 00 00 EC [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 62 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 62 00 37 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 77 00 00 0E 04 04 00 73 00 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 8B [12:06:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 81 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_GetFieldsCounters done [12:06:34]requested_item shift.num is exist - process it [12:06:34]requested_item shift.opened is exist - process it [12:06:34]req_shift_opened [12:06:34]FM_GetShiftState [12:06:34]SAM_PROTO_GetShiftState [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 13 01 00 [12:06:34]Write to MH i2c: E2 08 00 38 39 80 13 01 00 00 00 00 00 EE [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0E 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0E 00 38 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6A [12:06:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_GetShiftState done [12:06:34]FM_GetShiftState done [12:06:34]req_shift_opened done [12:06:34]requested_item shift.open_date is exist - process it [12:06:34]req_shift_open_date [12:06:34]req_shift_open_date done [12:06:34]produce_requested_data done [12:06:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30593,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:06:34]process_action_free close_receipt [12:06:34]json_value_free [12:06:34]json_value_free done [12:06:34]process_json_proto returns [12:06:34]Send response to host [12:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30593,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:06:34]free response buf [12:06:34]execute_script done [12:06:34]execute_script returns [12:06:34]free content buf [12:06:34]Sock 7.Close socket [12:06:34]Sock 7.Thread stoped [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:51]accept exits with 9 [12:07:51]New connection [12:07:51]New thread 3067346276 created [12:07:51]Thread 3067489636 joined [12:07:51]Waiting for new connection... [12:07:51] Sock 9.Parse request [12:07:51]Sock 9.Check first char [12:07:51]Sock 9.First char is OK [12:07:51]request: POST /json_proto HTTP/1.0 [12:07:51]Method: POST [12:07:51]URL: /json_proto [12:07:51]Method is POST - this is cgi request [12:07:51]url: /json_proto [12:07:51]query_string will be loaded in cgi processing [12:07:51]execute_cgi json_proto POST (null) [12:07:51]execute_cgi path=json_proto method=POST [12:07:51]POST find Content-Length [12:07:51]Host: 172.17.51.3:8080 [12:07:51]Content-Length: 677 [12:07:51]Content-Type: application/json [12:07:51] [12:07:51]POST finish read [12:07:51]Found Content-Length = 677 [12:07:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:51]execute_script... [12:07:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:51]POST & json_proto [12:07:51]process_json_proto [12:07:51]json parsed OK: [12:07:51]protocol is kg_v1.0 [12:07:51]action value=close_receipt [12:07:51]process_action close_receipt [12:07:51]cmd_close_receipt [12:07:51]MH_GetDate [12:07:51]Write to MH i2c: F0 00 00 39 39 61 [12:07:51]Write i2c OK [12:07:51]MH_I2C_Read... [12:07:51]Read from MH i2c: F0 [12:07:51]MH_I2C_Read... [12:07:51]Read from MH i2c: F0 09 00 [12:07:51]MH_I2C_Read... [12:07:51]Read from MH i2c: F0 09 00 39 39 00 1C 44 16 67 04 C1 95 66 07 [12:07:51]GetLastDocTimeStamp 1729512394 [12:07:51]current date 1729512476 [12:07:51]FM_GetShiftState [12:07:51]SAM_PROTO_GetShiftState [12:07:51]wFMCommunicate request_size=4 [12:07:51]MH_SAM_APDU [12:07:51]CAPDU: 80 13 01 00 [12:07:51]Write to MH i2c: E2 08 00 3A 39 80 13 01 00 00 00 00 00 F0 [12:07:51]Write i2c OK [12:07:51]MH_I2C_Read... [12:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:52]Read from MH i2c: E2 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0E 00 [12:07:52]MH_I2C_Read... [12:07:52]Read from MH i2c: E2 0E 00 3A 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6C [12:07:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:07:52]wFMCommunicate OK [12:07:52]SAM_PROTO_GetShiftState done [12:07:52]FM_GetShiftState done [12:07:52]opened in 1729471058 [12:07:52]opened+sec_in_day 1729557458 [12:07:52]quantity*price = 30038 [12:07:52]sum+1 = 30039 [12:07:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 91 21.10.2024 12:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30594 ФПД: 105080352919817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120756&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30594&fm=105080352919817&tin=02508201610067®Number=0000000000186857&sum=30000 [12:07:53]StoreToDocumentArchive [12:07:53]shift 115 fd 30594 [12:07:53]save to /storage/0115/doc_00030594 [12:07:53]save last doc name /storage/0115/doc_00030594 to /storage/kkm_last_doc_name [12:07:53]save OK [12:07:53]Clear old archive folders... [12:07:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:53]tlvbuf is 01E49010 [12:07:53]SAM_PROTO_ClearQueue [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 09 00 00 [12:07:53]Write to MH i2c: E2 08 00 47 39 80 09 00 00 00 00 00 00 F2 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 47 39 00 90 00 F4 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]SAM_PROTO_ClearQueue done [12:07:53]KKMCreateOFDPacket [12:07:53]OFDProtocolAddRootSTLVToBuf [12:07:53]FM_MakeSignedData [12:07:53]FM_MakeSignedData [12:07:53]SAM_PROTO_SignData [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 01 02 [12:07:53]Write to MH i2c: E2 08 00 48 39 80 0D 01 02 00 00 00 00 FA [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]OFD Sender: No OFD packet to send [12:07:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 48 39 00 90 00 F5 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]wFMCommunicate request_size=255 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1C 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 77 00 00 35 04 06 00 5F [12:07:53]Write to MH i2c: E2 02 01 49 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1C 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 77 00 00 35 04 06 00 5F 00 00 82 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 49 39 00 90 00 F6 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]wFMCommunicate request_size=10 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 02 02 05 91 ED 1B D1 09 [12:07:53]Write to MH i2c: E2 0D 00 4A 39 80 0D 02 02 05 00 91 ED 1B D1 09 00 00 7A [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 03 00 4A 39 00 90 00 F7 [12:07:53]RAPDU: 90 00 [12:07:53]wFMCommunicate OK [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 0D 03 02 [12:07:53]Write to MH i2c: E2 08 00 4B 39 80 0D 03 02 00 00 00 00 FF [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0B 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 0B 00 4B 39 00 F2 71 2A 40 B0 4B 73 30 90 00 6B [12:07:53]RAPDU: F2 71 2A 40 B0 4B 73 30 90 00 [12:07:53]wFMCommunicate OK [12:07:53]SAM_PROTO_SignData done [12:07:53]FM_MakeSignedData done [12:07:53]CreateOFDProtocolMessage [12:07:53]wFMCommunicate request_size=4 [12:07:53]MH_SAM_APDU [12:07:53]CAPDU: 80 11 00 00 [12:07:53]Write to MH i2c: E2 08 00 4C 39 80 11 00 00 00 00 00 00 FF [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:53]Read from MH i2c: E2 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 17 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: E2 17 00 4C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [12:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:07:53]wFMCommunicate OK [12:07:53]CreateOFDProtocolMessage done [12:07:53]OFDSenderStorePacket 30594 [12:07:53]StoreOFDPacket docnum=30594 [12:07:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 EC 07 01 1A B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1C 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 77 00 00 35 04 06 00 5F 91 ED 1B D1 09 F2 71 2A 40 B0 4B 73 30 [12:07:53]CheckFolder [12:07:53]dirname=/storage/ofd_packets [12:07:53]CheckFolder done [12:07:53]ProducePacketName [12:07:53]name=ofd_packets/00030594 [12:07:53]NVStorageSaveData ofd_packets/00030594 [12:07:53]File name is /storage/ofd_packets/00030594 [12:07:53]Write 301 bytes [12:07:53]NVStorageSaveData done [12:07:53]OFDSenderStorePacket done [12:07:53]KKMCreateOFDPacket done [12:07:53]NVStorageSaveData kkm_last_timestamp [12:07:53]File name is /storage/kkm_last_timestamp [12:07:53]Write 4 bytes [12:07:53]NVStorageSaveData done [12:07:53]ExternCall_PrintAddStr [12:07:53]wPrintStart [12:07:53]Write to MH i2c: 01 00 00 4D 39 86 [12:07:53]Write i2c OK [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 07 00 [12:07:53]MH_I2C_Read... [12:07:53]Read from MH i2c: 01 07 00 4D 39 00 00 00 00 00 FF 0F 9B [12:07:53]RasterBufferAndPrint [12:07:53]line Счет N : (1)343002 [12:07:53]line ИНН: 02508201610067 [12:07:53]line Контрольно-Кассовый Чек [12:07:53]line ПРОДАЖА [12:07:53]line ТРК (МРК, ГНК) : 63 [12:07:53]line Товар: 2710124130 [12:07:53]line Аи-92-К-2 [12:07:53]line 4.490 * 66.90 [12:07:53]line = 300.38 [12:07:53]line НДС 12% НСП 1% [12:07:53]line > о реализуемом товаре [12:07:53]line ОКРУГЛЕНИЕ: -0.38 [12:07:53]line ИТОГО: 300.00 [12:07:53]line Внесено: 300.00 [12:07:53]line СДАЧА: 0.00 [12:07:53]line НСП 1% : 2.66 [12:07:53]line НДС 12% : 31.90 [12:07:53]line Наличными: 300.00 [12:07:53]line Безнал.: 0.00 [12:07:53]line Место: АЗС № 78 "Партнер Нефть" [12:07:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:07:53]line СНО: Общий режим [12:07:53]line Чек 91 21.10.2024 12:07 [12:07:53]line Смена: 115 ФФД: 1.0 [12:07:53]line ЗНМ: 0300000137 [12:07:53]line РНМ: 0000000000186857 [12:07:53]line Версия ККМ: v1.0 [12:07:53]line ФМ: 0000000002094219 [12:07:53]line ФД: 30594 [12:07:53]line ФПД: 105080352919817 [12:07:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120756&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30594&fm=105080352919817&tin=02508201610067®Number=0000000000186857&sum=30000 [12:07:54]OFD Sender: Processing packet 30594 [packets to send 10, broken 9] [12:07:54]ProducePacketName [12:07:54]name=ofd_packets/00030594 [12:07:54]OFD Sender: To server: pG, [12:07:54]CommunicateWithHost lk.salyk.kg:30040 [12:07:54]ConnectInit lk.salyk.kg [12:07:54]written 0, free lines is 4095 [12:07:54]Connected sock=10 [12:07:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 EC 07 01 1A B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1C 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 82 77 00 00 35 04 06 00 5F 91 ED 1B D1 09 F2 71 2A 40 B0 4B 73 30 [12:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 36 5C 47 00 6E 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 32 30 39 34 32 31 39 10 04 04 00 82 77 00 00 F4 03 04 00 9D EE 15 67 B6 04 01 00 00 5C 85 C2 F6 AA 85 39 3B [12:07:54]CommunicateWithHost err = 0 [12:07:54]CheckOFDResponse [12:07:54]1017 (14) - 77093643461234 [12:07:54]1041 (16) - 0000000002094219 [12:07:54]1040 (4) - 30594 [12:07:54]1012 (4) - 21.10.2024 06:03 [12:07:54]1206 (1) - 0 [12:07:54]OFD Sender: Remove packet 30594 [12:07:54]ProducePacketName [12:07:54]name=ofd_packets/00030594 [12:07:54]NVStorageDeleteData [12:07:54]Write to MH i2c: 01 00 00 78 39 B1 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: 01 07 00 78 39 00 00 00 00 00 F0 0C B4 [12:07:54]RasterBufferAndPrint [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]line [12:07:54]written 0, free lines is 3321 [12:07:54]MH_Cut [12:07:54]Write to MH i2c: D1 01 00 7F 39 01 8A [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 01 00 [12:07:54]MH_I2C_Read... [12:07:54]Read from MH i2c: D1 01 00 7F 39 00 89 [12:07:54]Write to MH i2c: 01 00 00 80 39 B9 [12:07:54]Write i2c OK [12:07:54]MH_I2C_Read... [12:07:54]OFD Sender: No OFD packet to send [12:07:55]*** Cut start [12:07:55]*** Partial cut [12:07:55]*** CUTSNS_PIN = 1 [12:07:55]*** CUTSNS_PIN = 0 [12:07:55]*** Brake cut motor [12:07:55]Read from MH i2c: 01 [12:07:55]MH_I2C_Read... [12:07:55]*** Stop cut motor [12:07:55]*** Cut end [12:07:55]Read from MH i2c: 01 07 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: 01 07 00 80 39 00 00 00 00 00 FF 0F CE [12:07:55]process_action close_receipt done [12:07:55]requested_data is exist [12:07:55]produce_requested_data [12:07:55]requested_item fm.sn is exist - process it [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 11 00 00 [12:07:55]Write to MH i2c: E2 08 00 81 39 80 11 00 00 00 00 00 00 34 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 17 00 81 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 82 [12:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:07:55]wFMCommunicate OK [12:07:55]requested_item fd.num is exist - process it [12:07:55]SAM_PROTO_GetFieldsCounters [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 13 00 00 [12:07:55]Write to MH i2c: E2 08 00 82 39 80 13 00 00 00 00 00 00 37 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 62 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 62 00 82 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 77 00 00 0E 04 04 00 73 00 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 DA [12:07:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 82 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_GetFieldsCounters done [12:07:55]requested_item shift.num is exist - process it [12:07:55]requested_item shift.opened is exist - process it [12:07:55]req_shift_opened [12:07:55]FM_GetShiftState [12:07:55]SAM_PROTO_GetShiftState [12:07:55]wFMCommunicate request_size=4 [12:07:55]MH_SAM_APDU [12:07:55]CAPDU: 80 13 01 00 [12:07:55]Write to MH i2c: E2 08 00 83 39 80 13 01 00 00 00 00 00 39 [12:07:55]Write i2c OK [12:07:55]MH_I2C_Read... [12:07:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:55]Read from MH i2c: E2 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0E 00 [12:07:55]MH_I2C_Read... [12:07:55]Read from MH i2c: E2 0E 00 83 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B5 [12:07:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:07:55]wFMCommunicate OK [12:07:55]SAM_PROTO_GetShiftState done [12:07:55]FM_GetShiftState done [12:07:55]req_shift_opened done [12:07:55]requested_item shift.open_date is exist - process it [12:07:55]req_shift_open_date [12:07:55]req_shift_open_date done [12:07:55]produce_requested_data done [12:07:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30594,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:07:55]process_action_free close_receipt [12:07:55]json_value_free [12:07:55]json_value_free done [12:07:55]process_json_proto returns [12:07:55]Send response to host [12:07:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30594,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:07:55]free response buf [12:07:55]execute_script done [12:07:55]execute_script returns [12:07:55]free content buf [12:07:55]Sock 9.Close socket [12:07:55]Sock 9.Thread stoped [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]accept exits with 7 [12:09:04]New connection [12:09:04]New thread 3067489636 created [12:09:04]Thread 3067346276 joined [12:09:04]Waiting for new connection... [12:09:04] Sock 7.Parse request [12:09:04]Sock 7.Check first char [12:09:04]Sock 7.First char is OK [12:09:04]request: POST /json_proto HTTP/1.0 [12:09:04]Method: POST [12:09:04]URL: /json_proto [12:09:04]Method is POST - this is cgi request [12:09:04]url: /json_proto [12:09:04]query_string will be loaded in cgi processing [12:09:04]execute_cgi json_proto POST (null) [12:09:04]execute_cgi path=json_proto method=POST [12:09:04]POST find Content-Length [12:09:04]Host: 172.17.51.3:8080 [12:09:04]Content-Length: 677 [12:09:04]Content-Type: application/json [12:09:04] [12:09:04]POST finish read [12:09:04]Found Content-Length = 677 [12:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]execute_script... [12:09:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:04]POST & json_proto [12:09:04]process_json_proto [12:09:04]json parsed OK: [12:09:04]protocol is kg_v1.0 [12:09:04]action value=close_receipt [12:09:04]process_action close_receipt [12:09:04]cmd_close_receipt [12:09:04]MH_GetDate [12:09:04]Write to MH i2c: F0 00 00 84 39 AC [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: F0 09 00 84 39 00 65 44 16 67 04 C1 95 66 9B [12:09:04]GetLastDocTimeStamp 1729512476 [12:09:04]current date 1729512549 [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 85 39 80 13 01 00 00 00 00 00 3B [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 85 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B7 [12:09:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]opened in 1729471058 [12:09:04]opened+sec_in_day 1729557458 [12:09:04]quantity*price = 50041 [12:09:04]sum+1 = 50042 [12:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 92 21.10.2024 12:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30595 ФПД: 241088192034794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30595&fm=241088192034794&tin=02508201610067®Number=0000000000186857&sum=50000 [12:09:06]StoreToDocumentArchive [12:09:06]shift 115 fd 30595 [12:09:06]save to /storage/0115/doc_00030595 [12:09:06]save last doc name /storage/0115/doc_00030595 to /storage/kkm_last_doc_name [12:09:06]save OK [12:09:06]Clear old archive folders... [12:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:06]tlvbuf is 01E56180 [12:09:06]SAM_PROTO_ClearQueue [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 09 00 00 [12:09:06]Write to MH i2c: E2 08 00 92 39 80 09 00 00 00 00 00 00 3D [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 92 39 00 90 00 3F [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_ClearQueue done [12:09:06]KKMCreateOFDPacket [12:09:06]OFDProtocolAddRootSTLVToBuf [12:09:06]FM_MakeSignedData [12:09:06]FM_MakeSignedData [12:09:06]SAM_PROTO_SignData [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 01 02 [12:09:06]Write to MH i2c: E2 08 00 93 39 80 0D 01 02 00 00 00 00 45 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 93 39 00 90 00 40 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=255 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 65 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 77 00 00 35 04 06 00 DB [12:09:06]Write to MH i2c: E2 02 01 94 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 65 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 77 00 00 35 04 06 00 DB 00 00 A0 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 94 39 00 90 00 41 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=10 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 02 02 05 44 B8 0B B7 EA [12:09:06]Write to MH i2c: E2 0D 00 95 39 80 0D 02 02 05 00 44 B8 0B B7 EA 00 00 FA [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 03 00 95 39 00 90 00 42 [12:09:06]RAPDU: 90 00 [12:09:06]wFMCommunicate OK [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 0D 03 02 [12:09:06]Write to MH i2c: E2 08 00 96 39 80 0D 03 02 00 00 00 00 4A [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 0B 00 96 39 00 E6 91 4E BA EE 4B D5 E2 90 00 BA [12:09:06]RAPDU: E6 91 4E BA EE 4B D5 E2 90 00 [12:09:06]wFMCommunicate OK [12:09:06]SAM_PROTO_SignData done [12:09:06]FM_MakeSignedData done [12:09:06]CreateOFDProtocolMessage [12:09:06]wFMCommunicate request_size=4 [12:09:06]MH_SAM_APDU [12:09:06]CAPDU: 80 11 00 00 [12:09:06]Write to MH i2c: E2 08 00 97 39 80 11 00 00 00 00 00 00 4A [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:06]Read from MH i2c: E2 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: E2 17 00 97 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [12:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:09:06]wFMCommunicate OK [12:09:06]CreateOFDProtocolMessage done [12:09:06]OFDSenderStorePacket 30595 [12:09:06]StoreOFDPacket docnum=30595 [12:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 11 C3 07 01 08 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 65 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 77 00 00 35 04 06 00 DB 44 B8 0B B7 EA E6 91 4E BA EE 4B D5 E2 [12:09:06]CheckFolder [12:09:06]dirname=/storage/ofd_packets [12:09:06]CheckFolder done [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00030595 [12:09:06]NVStorageSaveData ofd_packets/00030595 [12:09:06]File name is /storage/ofd_packets/00030595 [12:09:06]Write 301 bytes [12:09:06]NVStorageSaveData done [12:09:06]OFDSenderStorePacket done [12:09:06]KKMCreateOFDPacket done [12:09:06]NVStorageSaveData kkm_last_timestamp [12:09:06]File name is /storage/kkm_last_timestamp [12:09:06]Write 4 bytes [12:09:06]NVStorageSaveData done [12:09:06]ExternCall_PrintAddStr [12:09:06]wPrintStart [12:09:06]Write to MH i2c: 01 00 00 98 39 D1 [12:09:06]Write i2c OK [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 [12:09:06]MH_I2C_Read... [12:09:06]Read from MH i2c: 01 07 00 98 39 00 00 00 00 00 FF 0F E6 [12:09:06]RasterBufferAndPrint [12:09:06]line Счет N : (1)343003 [12:09:06]line ИНН: 02508201610067 [12:09:06]line Контрольно-Кассовый Чек [12:09:06]line ПРОДАЖА [12:09:06]line ТРК (МРК, ГНК) : 43 [12:09:06]line Товар: 2710124130 [12:09:06]line Аи-92-К-2 [12:09:06]line 7.480 * 66.90 [12:09:06]line = 500.41 [12:09:06]line НДС 12% НСП 1% [12:09:06]line > о реализуемом товаре [12:09:06]line ОКРУГЛЕНИЕ: -0.41 [12:09:06]line ИТОГО: 500.00 [12:09:06]line Внесено: 500.00 [12:09:06]line СДАЧА: 0.00 [12:09:06]line НСП 1% : 4.43 [12:09:06]line НДС 12% : 53.14 [12:09:06]line Наличными: 500.00 [12:09:06]line Безнал.: 0.00 [12:09:06]line Место: АЗС № 78 "Партнер Нефть" [12:09:06]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:09:06]line СНО: Общий режим [12:09:06]line Чек 92 21.10.2024 12:09 [12:09:06]line Смена: 115 ФФД: 1.0 [12:09:06]line ЗНМ: 0300000137 [12:09:06]line РНМ: 0000000000186857 [12:09:06]line Версия ККМ: v1.0 [12:09:06]line ФМ: 0000000002094219 [12:09:06]line ФД: 30595 [12:09:06]line ФПД: 241088192034794 [12:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120909&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30595&fm=241088192034794&tin=02508201610067®Number=0000000000186857&sum=50000 [12:09:06]written 0, free lines is 4095 [12:09:06]OFD Sender: Processing packet 30595 [packets to send 10, broken 9] [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00030595 [12:09:06]OFD Sender: To server: pG, [12:09:06]CommunicateWithHost lk.salyk.kg:30040 [12:09:06]ConnectInit lk.salyk.kg [12:09:06]Connected sock=10 [12:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 11 C3 07 01 08 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 65 44 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 77 00 00 35 04 06 00 DB 44 B8 0B B7 EA E6 91 4E BA EE 4B D5 E2 [12:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 41 FA 47 00 EA 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 83 77 00 00 F4 03 04 00 E6 EE 15 67 B6 04 01 00 00 66 43 9F 3D 92 60 18 AF [12:09:06]CommunicateWithHost err = 0 [12:09:06]CheckOFDResponse [12:09:06]1017 (14) - 77093643461234 [12:09:06]1041 (16) - 0000000002094219 [12:09:06]1040 (4) - 30595 [12:09:06]1012 (4) - 21.10.2024 06:04 [12:09:06]1206 (1) - 0 [12:09:06]OFD Sender: Remove packet 30595 [12:09:06]ProducePacketName [12:09:06]name=ofd_packets/00030595 [12:09:06]NVStorageDeleteData [12:09:07]Write to MH i2c: 01 00 00 C3 39 FC [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: 01 07 00 C3 39 00 00 00 00 00 F4 0C 03 [12:09:07]RasterBufferAndPrint [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]line [12:09:07]written 0, free lines is 3323 [12:09:07]MH_Cut [12:09:07]Write to MH i2c: D1 01 00 CA 39 01 D5 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 [12:09:07]MH_I2C_Read... [12:09:07]Read from MH i2c: D1 01 00 CA 39 00 D4 [12:09:07]Write to MH i2c: 01 00 00 CB 39 04 [12:09:07]Write i2c OK [12:09:07]MH_I2C_Read... [12:09:07]OFD Sender: No OFD packet to send [12:09:07]*** Cut start [12:09:07]*** Partial cut [12:09:07]*** CUTSNS_PIN = 1 [12:09:07]*** CUTSNS_PIN = 0 [12:09:07]*** Brake cut motor [12:09:08]Read from MH i2c: 01 [12:09:08]MH_I2C_Read... [12:09:08]*** Stop cut motor [12:09:08]*** Cut end [12:09:08]Read from MH i2c: 01 07 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: 01 07 00 CB 39 00 00 00 00 00 FF 0F 19 [12:09:08]process_action close_receipt done [12:09:08]requested_data is exist [12:09:08]produce_requested_data [12:09:08]requested_item fm.sn is exist - process it [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 11 00 00 [12:09:08]Write to MH i2c: E2 08 00 CC 39 80 11 00 00 00 00 00 00 7F [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 17 00 CC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CD [12:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:09:08]wFMCommunicate OK [12:09:08]requested_item fd.num is exist - process it [12:09:08]SAM_PROTO_GetFieldsCounters [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 13 00 00 [12:09:08]Write to MH i2c: E2 08 00 CD 39 80 13 00 00 00 00 00 00 82 [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 62 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 62 00 CD 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 77 00 00 0E 04 04 00 73 00 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 29 [12:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 83 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:08]wFMCommunicate OK [12:09:08]SAM_PROTO_GetFieldsCounters done [12:09:08]requested_item shift.num is exist - process it [12:09:08]requested_item shift.opened is exist - process it [12:09:08]req_shift_opened [12:09:08]FM_GetShiftState [12:09:08]SAM_PROTO_GetShiftState [12:09:08]wFMCommunicate request_size=4 [12:09:08]MH_SAM_APDU [12:09:08]CAPDU: 80 13 01 00 [12:09:08]Write to MH i2c: E2 08 00 CE 39 80 13 01 00 00 00 00 00 84 [12:09:08]Write i2c OK [12:09:08]MH_I2C_Read... [12:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:08]Read from MH i2c: E2 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0E 00 [12:09:08]MH_I2C_Read... [12:09:08]Read from MH i2c: E2 0E 00 CE 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 00 [12:09:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:09:08]wFMCommunicate OK [12:09:08]SAM_PROTO_GetShiftState done [12:09:08]FM_GetShiftState done [12:09:08]req_shift_opened done [12:09:08]requested_item shift.open_date is exist - process it [12:09:08]req_shift_open_date [12:09:08]req_shift_open_date done [12:09:08]produce_requested_data done [12:09:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30595,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:09:08]process_action_free close_receipt [12:09:08]json_value_free [12:09:08]json_value_free done [12:09:08]process_json_proto returns [12:09:08]Send response to host [12:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30595,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:09:08]free response buf [12:09:08]execute_script done [12:09:08]execute_script returns [12:09:08]free content buf [12:09:08]Sock 7.Close socket [12:09:08]Sock 7.Thread stoped [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:56]accept exits with 9 [12:12:56]New connection [12:12:56]New thread 3067346276 created [12:12:56]Thread 3067489636 joined [12:12:56]Waiting for new connection... [12:12:56] Sock 9.Parse request [12:12:56]Sock 9.Check first char [12:12:56]Sock 9.First char is OK [12:12:56]request: POST /json_proto HTTP/1.0 [12:12:56]Method: POST [12:12:56]URL: /json_proto [12:12:56]Method is POST - this is cgi request [12:12:56]url: /json_proto [12:12:56]query_string will be loaded in cgi processing [12:12:56]execute_cgi json_proto POST (null) [12:12:56]execute_cgi path=json_proto method=POST [12:12:56]POST find Content-Length [12:12:56]Host: 172.17.51.3:8080 [12:12:56]Content-Length: 840 [12:12:56]Content-Type: application/json [12:12:56] [12:12:56]POST finish read [12:12:56]Found Content-Length = 840 [12:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:56]execute_script... [12:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:12:56]POST & json_proto [12:12:56]process_json_proto [12:12:56]json parsed OK: [12:12:56]protocol is kg_v1.0 [12:12:56]action value=close_receipt [12:12:56]process_action close_receipt [12:12:56]cmd_close_receipt [12:12:56]MH_GetDate [12:12:56]Write to MH i2c: F0 00 00 CF 39 F7 [12:12:56]Write i2c OK [12:12:56]MH_I2C_Read... [12:12:56]Read from MH i2c: F0 [12:12:56]MH_I2C_Read... [12:12:56]Read from MH i2c: F0 09 00 [12:12:56]MH_I2C_Read... [12:12:56]Read from MH i2c: F0 09 00 CF 39 00 4C 45 16 67 04 C1 95 66 CE [12:12:56]GetLastDocTimeStamp 1729512549 [12:12:56]current date 1729512780 [12:12:56]FM_GetShiftState [12:12:56]SAM_PROTO_GetShiftState [12:12:56]wFMCommunicate request_size=4 [12:12:56]MH_SAM_APDU [12:12:56]CAPDU: 80 13 01 00 [12:12:56]Write to MH i2c: E2 08 00 D0 39 80 13 01 00 00 00 00 00 86 [12:12:56]Write i2c OK [12:12:56]MH_I2C_Read... [12:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:56]Read from MH i2c: E2 [12:12:56]MH_I2C_Read... [12:12:56]Read from MH i2c: E2 0E 00 [12:12:56]MH_I2C_Read... [12:12:56]Read from MH i2c: E2 0E 00 D0 39 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 02 [12:12:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:12:56]wFMCommunicate OK [12:12:56]SAM_PROTO_GetShiftState done [12:12:56]FM_GetShiftState done [12:12:56]opened in 1729471058 [12:12:56]opened+sec_in_day 1729557458 [12:12:56]quantity*price = 20003 [12:12:56]sum+1 = 20004 [12:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 93 21.10.2024 12:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30596 ФПД: 128288281875544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30596&fm=128288281875544&tin=02508201610067®Number=0000000000186857&sum=20003 [12:12:57]StoreToDocumentArchive [12:12:57]shift 115 fd 30596 [12:12:57]save to /storage/0115/doc_00030596 [12:12:57]save last doc name /storage/0115/doc_00030596 to /storage/kkm_last_doc_name [12:12:57]save OK [12:12:57]Clear old archive folders... [12:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:12:57]tlvbuf is B6E2B740 [12:12:57]SAM_PROTO_ClearQueue [12:12:57]wFMCommunicate request_size=4 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 09 00 00 [12:12:57]Write to MH i2c: E2 08 00 DD 39 80 09 00 00 00 00 00 00 88 [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 DD 39 00 90 00 8A [12:12:57]RAPDU: 90 00 [12:12:57]wFMCommunicate OK [12:12:57]SAM_PROTO_ClearQueue done [12:12:57]KKMCreateOFDPacket [12:12:57]OFDProtocolAddRootSTLVToBuf [12:12:57]FM_MakeSignedData [12:12:57]FM_MakeSignedData [12:12:57]SAM_PROTO_SignData [12:12:57]wFMCommunicate request_size=4 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 0D 01 02 [12:12:57]Write to MH i2c: E2 08 00 DE 39 80 0D 01 02 00 00 00 00 90 [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 DE 39 00 90 00 8B [12:12:57]RAPDU: 90 00 [12:12:57]wFMCommunicate OK [12:12:57]wFMCommunicate request_size=255 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4C 45 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 77 00 00 35 04 06 00 74 [12:12:57]Write to MH i2c: E2 02 01 DF 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4C 45 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 77 00 00 35 04 06 00 74 00 00 36 [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 DF 39 00 90 00 8C [12:12:57]RAPDU: 90 00 [12:12:57]wFMCommunicate OK [12:12:57]wFMCommunicate request_size=10 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 0D 02 02 05 AD 71 78 54 58 [12:12:57]Write to MH i2c: E2 0D 00 E0 39 80 0D 02 02 05 00 AD 71 78 54 58 00 00 DF [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 03 00 E0 39 00 90 00 8D [12:12:57]RAPDU: 90 00 [12:12:57]wFMCommunicate OK [12:12:57]wFMCommunicate request_size=4 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 0D 03 02 [12:12:57]Write to MH i2c: E2 08 00 E1 39 80 0D 03 02 00 00 00 00 95 [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:12:57]OFD Sender: No OFD packet to send [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 0B 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 0B 00 E1 39 00 A3 4D F8 2C 50 B7 F0 B4 90 00 55 [12:12:57]RAPDU: A3 4D F8 2C 50 B7 F0 B4 90 00 [12:12:57]wFMCommunicate OK [12:12:57]SAM_PROTO_SignData done [12:12:57]FM_MakeSignedData done [12:12:57]CreateOFDProtocolMessage [12:12:57]wFMCommunicate request_size=4 [12:12:57]MH_SAM_APDU [12:12:57]CAPDU: 80 11 00 00 [12:12:57]Write to MH i2c: E2 08 00 E2 39 80 11 00 00 00 00 00 00 95 [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:57]Read from MH i2c: E2 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 17 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: E2 17 00 E2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [12:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:12:57]wFMCommunicate OK [12:12:57]CreateOFDProtocolMessage done [12:12:57]OFDSenderStorePacket 30596 [12:12:57]StoreOFDPacket docnum=30596 [12:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 8F 07 01 74 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4C 45 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 77 00 00 35 04 06 00 74 AD 71 78 54 58 A3 4D F8 2C 50 B7 F0 B4 [12:12:57]CheckFolder [12:12:57]dirname=/storage/ofd_packets [12:12:57]CheckFolder done [12:12:57]ProducePacketName [12:12:57]name=ofd_packets/00030596 [12:12:57]NVStorageSaveData ofd_packets/00030596 [12:12:57]File name is /storage/ofd_packets/00030596 [12:12:57]Write 301 bytes [12:12:57]NVStorageSaveData done [12:12:57]OFDSenderStorePacket done [12:12:57]KKMCreateOFDPacket done [12:12:57]NVStorageSaveData kkm_last_timestamp [12:12:57]File name is /storage/kkm_last_timestamp [12:12:57]Write 4 bytes [12:12:57]NVStorageSaveData done [12:12:57]ExternCall_PrintAddStr [12:12:57]wPrintStart [12:12:57]Write to MH i2c: 01 00 00 E3 39 1C [12:12:57]Write i2c OK [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: 01 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: 01 07 00 [12:12:57]MH_I2C_Read... [12:12:57]Read from MH i2c: 01 07 00 E3 39 00 00 00 00 00 FF 0F 31 [12:12:57]RasterBufferAndPrint [12:12:57]line Счет N : (1)343004 [12:12:57]line ИНН: 02508201610067 [12:12:57]line Контрольно-Кассовый Чек [12:12:57]line ПРОДАЖА [12:12:57]line ТРК (МРК, ГНК) : 53 [12:12:57]line Товар: 2710124130 [12:12:57]line Аи-92-К-2 [12:12:57]line 2.990 * 66.90 [12:12:57]line = 200.03 [12:12:57]line НДС 12% НСП 1% [12:12:57]line > о реализуемом товаре [12:12:57]line ИТОГО: 200.03 [12:12:57]line НСП 1% : 1.77 [12:12:57]line НДС 12% : 21.24 [12:12:57]line Наличными: 0.00 [12:12:57]line Безнал.: 200.03 [12:12:57]line Место: АЗС № 78 "Партнер Нефть" [12:12:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:12:57]line СНО: Общий режим [12:12:57]line Чек 93 21.10.2024 12:13 [12:12:57]line Смена: 115 ФФД: 1.0 [12:12:57]line ЗНМ: 0300000137 [12:12:57]line РНМ: 0000000000186857 [12:12:57]line Версия ККМ: v1.0 [12:12:57]line Платежная система: АКБ Кыргызстан [12:12:57]line ФМ: 0000000002094219 [12:12:57]line ФД: 30596 [12:12:57]line ФПД: 128288281875544 [12:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121300&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30596&fm=128288281875544&tin=02508201610067®Number=0000000000186857&sum=20003 [12:12:58]OFD Sender: Processing packet 30596 [packets to send 10, broken 9] [12:12:58]ProducePacketName [12:12:58]name=ofd_packets/00030596 [12:12:58]OFD Sender: To server: pG, [12:12:58]CommunicateWithHost lk.salyk.kg:30040 [12:12:58]ConnectInit lk.salyk.kg [12:12:58]written 0, free lines is 4095 [12:12:58]Connected sock=10 [12:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 8F 07 01 74 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 4C 45 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 84 77 00 00 35 04 06 00 74 AD 71 78 54 58 A3 4D F8 2C 50 B7 F0 B4 [12:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 00 47 00 D2 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 32 30 39 34 32 31 39 10 04 04 00 84 77 00 00 F4 03 04 00 CD EF 15 67 B6 04 01 00 00 27 87 17 C8 BF BA 04 33 [12:12:58]CommunicateWithHost err = 0 [12:12:58]CheckOFDResponse [12:12:58]1017 (14) - 77093643461234 [12:12:58]1041 (16) - 0000000002094219 [12:12:58]1040 (4) - 30596 [12:12:58]1012 (4) - 21.10.2024 06:08 [12:12:58]1206 (1) - 0 [12:12:58]OFD Sender: Remove packet 30596 [12:12:58]ProducePacketName [12:12:58]name=ofd_packets/00030596 [12:12:58]NVStorageDeleteData [12:12:58]Write to MH i2c: 01 00 00 0D 3A 47 [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 07 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: 01 07 00 0D 3A 00 00 00 00 00 13 0D 6E [12:12:58]RasterBufferAndPrint [12:12:58]line [12:12:58]line [12:12:58]line [12:12:58]line [12:12:58]line [12:12:58]written 0, free lines is 3353 [12:12:58]MH_Cut [12:12:58]Write to MH i2c: D1 01 00 14 3A 01 20 [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: D1 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: D1 01 00 [12:12:58]MH_I2C_Read... [12:12:58]Read from MH i2c: D1 01 00 14 3A 00 1F [12:12:58]Write to MH i2c: 01 00 00 15 3A 4F [12:12:58]Write i2c OK [12:12:58]MH_I2C_Read... [12:12:58]OFD Sender: No OFD packet to send [12:12:59]*** Cut start [12:12:59]*** Partial cut [12:12:59]*** CUTSNS_PIN = 1 [12:12:59]*** CUTSNS_PIN = 0 [12:12:59]*** Brake cut motor [12:12:59]Read from MH i2c: 01 [12:12:59]MH_I2C_Read... [12:12:59]*** Stop cut motor [12:12:59]*** Cut end [12:12:59]Read from MH i2c: 01 07 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 FF 0F 64 [12:12:59]process_action close_receipt done [12:12:59]requested_data is exist [12:12:59]produce_requested_data [12:12:59]requested_item fm.sn is exist - process it [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 11 00 00 [12:12:59]Write to MH i2c: E2 08 00 16 3A 80 11 00 00 00 00 00 00 CA [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 17 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 17 00 16 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [12:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:12:59]wFMCommunicate OK [12:12:59]requested_item fd.num is exist - process it [12:12:59]SAM_PROTO_GetFieldsCounters [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 13 00 00 [12:12:59]Write to MH i2c: E2 08 00 17 3A 80 13 00 00 00 00 00 00 CD [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 62 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 62 00 17 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 77 00 00 0E 04 04 00 73 00 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 78 [12:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 84 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:59]wFMCommunicate OK [12:12:59]SAM_PROTO_GetFieldsCounters done [12:12:59]requested_item shift.num is exist - process it [12:12:59]requested_item shift.opened is exist - process it [12:12:59]req_shift_opened [12:12:59]FM_GetShiftState [12:12:59]SAM_PROTO_GetShiftState [12:12:59]wFMCommunicate request_size=4 [12:12:59]MH_SAM_APDU [12:12:59]CAPDU: 80 13 01 00 [12:12:59]Write to MH i2c: E2 08 00 18 3A 80 13 01 00 00 00 00 00 CF [12:12:59]Write i2c OK [12:12:59]MH_I2C_Read... [12:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:59]Read from MH i2c: E2 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 0E 00 [12:12:59]MH_I2C_Read... [12:12:59]Read from MH i2c: E2 0E 00 18 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4B [12:12:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:13:00]wFMCommunicate OK [12:13:00]SAM_PROTO_GetShiftState done [12:13:00]FM_GetShiftState done [12:13:00]req_shift_opened done [12:13:00]requested_item shift.open_date is exist - process it [12:13:00]req_shift_open_date [12:13:00]req_shift_open_date done [12:13:00]produce_requested_data done [12:13:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30596,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:13:00]process_action_free close_receipt [12:13:00]json_value_free [12:13:00]json_value_free done [12:13:00]process_json_proto returns [12:13:00]Send response to host [12:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30596,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:13:00]free response buf [12:13:00]execute_script done [12:13:00]execute_script returns [12:13:00]free content buf [12:13:00]Sock 9.Close socket [12:13:00]Sock 9.Thread stoped [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:54]accept exits with 7 [12:26:54]New connection [12:26:54]New thread 3067489636 created [12:26:54]Thread 3067346276 joined [12:26:54]Waiting for new connection... [12:26:54] Sock 7.Parse request [12:26:54]Sock 7.Check first char [12:26:54]Sock 7.First char is OK [12:26:54]request: POST /json_proto HTTP/1.0 [12:26:54]Method: POST [12:26:54]URL: /json_proto [12:26:54]Method is POST - this is cgi request [12:26:54]url: /json_proto [12:26:54]query_string will be loaded in cgi processing [12:26:54]execute_cgi json_proto POST (null) [12:26:54]execute_cgi path=json_proto method=POST [12:26:54]POST find Content-Length [12:26:54]Host: 172.17.51.3:8080 [12:26:54]Content-Length: 679 [12:26:54]Content-Type: application/json [12:26:54] [12:26:54]POST finish read [12:26:54]Found Content-Length = 679 [12:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:54]execute_script... [12:26:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:54]POST & json_proto [12:26:54]process_json_proto [12:26:54]json parsed OK: [12:26:54]protocol is kg_v1.0 [12:26:54]action value=close_receipt [12:26:54]process_action close_receipt [12:26:54]cmd_close_receipt [12:26:54]MH_GetDate [12:26:54]Write to MH i2c: F0 00 00 19 3A 42 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: F0 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: F0 09 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: F0 09 00 19 3A 00 93 48 16 67 04 C1 95 66 63 [12:26:54]GetLastDocTimeStamp 1729512780 [12:26:54]current date 1729513619 [12:26:54]FM_GetShiftState [12:26:54]SAM_PROTO_GetShiftState [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 13 01 00 [12:26:54]Write to MH i2c: E2 08 00 1A 3A 80 13 01 00 00 00 00 00 D1 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0E 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0E 00 1A 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4D [12:26:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:26:54]wFMCommunicate OK [12:26:54]SAM_PROTO_GetShiftState done [12:26:54]FM_GetShiftState done [12:26:54]opened in 1729471058 [12:26:54]opened+sec_in_day 1729557458 [12:26:54]quantity*price = 150037 [12:26:54]sum+1 = 150039 [12:26:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 94 21.10.2024 12:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30597 ФПД: 37045852401943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122659&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30597&fm=37045852401943&tin=02508201610067®Number=0000000000186857&sum=150000 [12:26:55]StoreToDocumentArchive [12:26:55]shift 115 fd 30597 [12:26:55]save to /storage/0115/doc_00030597 [12:26:55]save last doc name /storage/0115/doc_00030597 to /storage/kkm_last_doc_name [12:26:55]save OK [12:26:55]Clear old archive folders... [12:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:26:55]tlvbuf is 01DEA7B0 [12:26:55]SAM_PROTO_ClearQueue [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 09 00 00 [12:26:55]Write to MH i2c: E2 08 00 27 3A 80 09 00 00 00 00 00 00 D3 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 03 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 03 00 27 3A 00 90 00 D5 [12:26:55]RAPDU: 90 00 [12:26:55]wFMCommunicate OK [12:26:55]SAM_PROTO_ClearQueue done [12:26:55]KKMCreateOFDPacket [12:26:55]OFDProtocolAddRootSTLVToBuf [12:26:55]FM_MakeSignedData [12:26:55]FM_MakeSignedData [12:26:55]SAM_PROTO_SignData [12:26:55]wFMCommunicate request_size=4 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 0D 01 02 [12:26:55]Write to MH i2c: E2 08 00 28 3A 80 0D 01 02 00 00 00 00 DB [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:55]Read from MH i2c: E2 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 03 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: E2 03 00 28 3A 00 90 00 D6 [12:26:55]RAPDU: 90 00 [12:26:55]wFMCommunicate OK [12:26:55]wFMCommunicate request_size=255 [12:26:55]MH_SAM_APDU [12:26:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 93 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 77 00 00 35 04 06 00 21 B1 68 DF [12:26:56]Write to MH i2c: E2 02 01 29 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 93 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 77 00 00 35 04 06 00 21 B1 68 DF 00 00 17 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 03 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 03 00 29 3A 00 90 00 D7 [12:26:56]RAPDU: 90 00 [12:26:56]wFMCommunicate OK [12:26:56]wFMCommunicate request_size=7 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 0D 02 02 02 71 17 [12:26:56]Write to MH i2c: E2 0A 00 2A 3A 80 0D 02 02 02 00 71 17 00 00 6A [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 03 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 03 00 2A 3A 00 90 00 D8 [12:26:56]RAPDU: 90 00 [12:26:56]wFMCommunicate OK [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 0D 03 02 [12:26:56]Write to MH i2c: E2 08 00 2B 3A 80 0D 03 02 00 00 00 00 E0 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 0B 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 0B 00 2B 3A 00 36 99 8E B6 94 87 01 CF 90 00 DF [12:26:56]RAPDU: 36 99 8E B6 94 87 01 CF 90 00 [12:26:56]wFMCommunicate OK [12:26:56]SAM_PROTO_SignData done [12:26:56]FM_MakeSignedData done [12:26:56]CreateOFDProtocolMessage [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 11 00 00 [12:26:56]Write to MH i2c: E2 08 00 2C 3A 80 11 00 00 00 00 00 00 E0 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 17 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 17 00 2C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [12:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:26:56]wFMCommunicate OK [12:26:56]CreateOFDProtocolMessage done [12:26:56]OFDSenderStorePacket 30597 [12:26:56]StoreOFDPacket docnum=30597 [12:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 45 10 04 01 24 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 93 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 77 00 00 35 04 06 00 21 B1 68 DF 71 17 36 99 8E B6 94 87 01 CF [12:26:56]CheckFolder [12:26:56]dirname=/storage/ofd_packets [12:26:56]CheckFolder done [12:26:56]ProducePacketName [12:26:56]name=ofd_packets/00030597 [12:26:56]NVStorageSaveData ofd_packets/00030597 [12:26:56]File name is /storage/ofd_packets/00030597 [12:26:56]Write 298 bytes [12:26:56]NVStorageSaveData done [12:26:56]OFDSenderStorePacket done [12:26:56]KKMCreateOFDPacket done [12:26:56]NVStorageSaveData kkm_last_timestamp [12:26:56]File name is /storage/kkm_last_timestamp [12:26:56]Write 4 bytes [12:26:56]NVStorageSaveData done [12:26:56]ExternCall_PrintAddStr [12:26:56]wPrintStart [12:26:56]Write to MH i2c: 01 00 00 2D 3A 67 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: 01 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: 01 07 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: 01 07 00 2D 3A 00 00 00 00 00 FF 0F 7C [12:26:56]RasterBufferAndPrint [12:26:56]line Счет N : (1)343005 [12:26:56]line ИНН: 02508201610067 [12:26:56]line Контрольно-Кассовый Чек [12:26:56]line ПРОДАЖА [12:26:56]line ТРК (МРК, ГНК) : 44 [12:26:56]line Товар: 2710194210 [12:26:56]line ДТ-К-2 [12:26:56]line 19.690 * 76.20 [12:26:56]line = 1500.38 [12:26:56]line НДС 12% НСП 1% [12:26:56]line > о реализуемом товаре [12:26:56]line ОКРУГЛЕНИЕ: -0.38 [12:26:56]line ИТОГО: 1500.00 [12:26:56]line Внесено: 1500.00 [12:26:56]line СДАЧА: 0.00 [12:26:56]line НСП 1% : 13.28 [12:26:56]line НДС 12% : 159.33 [12:26:56]line Наличными: 1500.00 [12:26:56]line Безнал.: 0.00 [12:26:56]line Место: АЗС № 78 "Партнер Нефть" [12:26:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:26:56]line СНО: Общий режим [12:26:56]line Чек 94 21.10.2024 12:26 [12:26:56]line Смена: 115 ФФД: 1.0 [12:26:56]line ЗНМ: 0300000137 [12:26:56]line РНМ: 0000000000186857 [12:26:56]line Версия ККМ: v1.0 [12:26:56]line ФМ: 0000000002094219 [12:26:56]line ФД: 30597 [12:26:56]line ФПД: 37045852401943 [12:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122659&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30597&fm=37045852401943&tin=02508201610067®Number=0000000000186857&sum=150000 [12:26:56]OFD Sender: Processing packet 30597 [packets to send 10, broken 9] [12:26:56]ProducePacketName [12:26:56]name=ofd_packets/00030597 [12:26:56]OFD Sender: To server: pG, [12:26:56]CommunicateWithHost lk.salyk.kg:30040 [12:26:56]ConnectInit lk.salyk.kg [12:26:56]written 0, free lines is 4095 [12:26:56]Connected sock=10 [12:26:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 45 10 04 01 24 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 93 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 85 77 00 00 35 04 06 00 21 B1 68 DF 71 17 36 99 8E B6 94 87 01 CF [12:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 21 AF 47 00 DC 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 32 30 39 34 32 31 39 10 04 04 00 85 77 00 00 F4 03 04 00 14 F3 15 67 B6 04 01 00 00 59 2A 32 F5 EE CC 04 C6 [12:26:57]CommunicateWithHost err = 0 [12:26:57]CheckOFDResponse [12:26:57]1017 (14) - 77093643461234 [12:26:57]1041 (16) - 0000000002094219 [12:26:57]1040 (4) - 30597 [12:26:57]1012 (4) - 21.10.2024 06:22 [12:26:57]1206 (1) - 0 [12:26:57]OFD Sender: Remove packet 30597 [12:26:57]ProducePacketName [12:26:57]name=ofd_packets/00030597 [12:26:57]NVStorageDeleteData [12:26:57]Write to MH i2c: 01 00 00 58 3A 92 [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 07 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: 01 07 00 58 3A 00 00 00 00 00 F7 0C 9C [12:26:57]RasterBufferAndPrint [12:26:57]line [12:26:57]line [12:26:57]line [12:26:57]line [12:26:57]line [12:26:57]written 0, free lines is 3329 [12:26:57]MH_Cut [12:26:57]Write to MH i2c: D1 01 00 5F 3A 01 6B [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: D1 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: D1 01 00 [12:26:57]MH_I2C_Read... [12:26:57]Read from MH i2c: D1 01 00 5F 3A 00 6A [12:26:57]Write to MH i2c: 01 00 00 60 3A 9A [12:26:57]Write i2c OK [12:26:57]MH_I2C_Read... [12:26:57]OFD Sender: No OFD packet to send [12:26:57]*** Cut start [12:26:57]*** Partial cut [12:26:57]*** CUTSNS_PIN = 1 [12:26:57]*** CUTSNS_PIN = 0 [12:26:58]*** Brake cut motor [12:26:58]Read from MH i2c: 01 [12:26:58]MH_I2C_Read... [12:26:58]*** Stop cut motor [12:26:58]*** Cut end [12:26:58]Read from MH i2c: 01 07 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: 01 07 00 60 3A 00 00 00 00 00 FF 0F AF [12:26:58]process_action close_receipt done [12:26:58]requested_data is exist [12:26:58]produce_requested_data [12:26:58]requested_item fm.sn is exist - process it [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 11 00 00 [12:26:58]Write to MH i2c: E2 08 00 61 3A 80 11 00 00 00 00 00 00 15 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:58]Read from MH i2c: E2 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 17 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 17 00 61 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [12:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:26:58]wFMCommunicate OK [12:26:58]requested_item fd.num is exist - process it [12:26:58]SAM_PROTO_GetFieldsCounters [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 13 00 00 [12:26:58]Write to MH i2c: E2 08 00 62 3A 80 13 00 00 00 00 00 00 18 [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:58]Read from MH i2c: E2 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 62 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 62 00 62 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 77 00 00 0E 04 04 00 73 00 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 C7 [12:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 85 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:58]wFMCommunicate OK [12:26:58]SAM_PROTO_GetFieldsCounters done [12:26:58]requested_item shift.num is exist - process it [12:26:58]requested_item shift.opened is exist - process it [12:26:58]req_shift_opened [12:26:58]FM_GetShiftState [12:26:58]SAM_PROTO_GetShiftState [12:26:58]wFMCommunicate request_size=4 [12:26:58]MH_SAM_APDU [12:26:58]CAPDU: 80 13 01 00 [12:26:58]Write to MH i2c: E2 08 00 63 3A 80 13 01 00 00 00 00 00 1A [12:26:58]Write i2c OK [12:26:58]MH_I2C_Read... [12:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:58]Read from MH i2c: E2 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 0E 00 [12:26:58]MH_I2C_Read... [12:26:58]Read from MH i2c: E2 0E 00 63 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 96 [12:26:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:26:58]wFMCommunicate OK [12:26:58]SAM_PROTO_GetShiftState done [12:26:58]FM_GetShiftState done [12:26:58]req_shift_opened done [12:26:58]requested_item shift.open_date is exist - process it [12:26:58]req_shift_open_date [12:26:58]req_shift_open_date done [12:26:58]produce_requested_data done [12:26:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30597,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:26:58]process_action_free close_receipt [12:26:58]json_value_free [12:26:58]json_value_free done [12:26:58]process_json_proto returns [12:26:58]Send response to host [12:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30597,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:26:58]free response buf [12:26:58]execute_script done [12:26:58]execute_script returns [12:26:58]free content buf [12:26:58]Sock 7.Close socket [12:26:58]Sock 7.Thread stoped [12:27:02]OFD Sender: No OFD packet to send [12:27:06]accept exits with 9 [12:27:06]New connection [12:27:06]New thread 3067346276 created [12:27:06]Thread 3067489636 joined [12:27:06]Waiting for new connection... [12:27:06] Sock 9.Parse request [12:27:06]Sock 9.Check first char [12:27:06]Sock 9.First char is OK [12:27:06]request: POST /json_proto HTTP/1.0 [12:27:06]Method: POST [12:27:06]URL: /json_proto [12:27:06]Method is POST - this is cgi request [12:27:06]url: /json_proto [12:27:06]query_string will be loaded in cgi processing [12:27:06]execute_cgi json_proto POST (null) [12:27:06]execute_cgi path=json_proto method=POST [12:27:06]POST find Content-Length [12:27:06]Host: 172.17.51.3:8080 [12:27:06]Content-Length: 688 [12:27:06]Content-Type: application/json [12:27:06] [12:27:06]POST finish read [12:27:06]Found Content-Length = 688 [12:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:06]execute_script... [12:27:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:06]POST & json_proto [12:27:06]process_json_proto [12:27:06]json parsed OK: [12:27:06]protocol is kg_v1.0 [12:27:06]action value=close_receipt [12:27:06]process_action close_receipt [12:27:06]cmd_close_receipt [12:27:06]MH_GetDate [12:27:06]Write to MH i2c: F0 00 00 64 3A 8D [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 09 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: F0 09 00 64 3A 00 9F 48 16 67 04 C1 95 66 BA [12:27:06]GetLastDocTimeStamp 1729513619 [12:27:06]current date 1729513631 [12:27:06]FM_GetShiftState [12:27:06]SAM_PROTO_GetShiftState [12:27:06]wFMCommunicate request_size=4 [12:27:06]MH_SAM_APDU [12:27:06]CAPDU: 80 13 01 00 [12:27:06]Write to MH i2c: E2 08 00 65 3A 80 13 01 00 00 00 00 00 1C [12:27:06]Write i2c OK [12:27:06]MH_I2C_Read... [12:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:06]Read from MH i2c: E2 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0E 00 [12:27:06]MH_I2C_Read... [12:27:06]Read from MH i2c: E2 0E 00 65 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 98 [12:27:06]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:27:06]wFMCommunicate OK [12:27:06]SAM_PROTO_GetShiftState done [12:27:06]FM_GetShiftState done [12:27:06]opened in 1729471058 [12:27:06]opened+sec_in_day 1729557458 [12:27:06]quantity*price = 100051 [12:27:06]sum+1 = 100052 [12:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 95 21.10.2024 12:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30598 ФПД: 148265670131097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122711&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30598&fm=148265670131097&tin=02508201610067®Number=0000000000186857&sum=100000 [12:27:07]StoreToDocumentArchive [12:27:07]shift 115 fd 30598 [12:27:07]save to /storage/0115/doc_00030598 [12:27:07]save last doc name /storage/0115/doc_00030598 to /storage/kkm_last_doc_name [12:27:07]save OK [12:27:07]Clear old archive folders... [12:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:27:07]tlvbuf is 01DB9150 [12:27:07]SAM_PROTO_ClearQueue [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 09 00 00 [12:27:07]Write to MH i2c: E2 08 00 72 3A 80 09 00 00 00 00 00 00 1E [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:07]Read from MH i2c: E2 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 72 3A 00 90 00 20 [12:27:07]RAPDU: 90 00 [12:27:07]wFMCommunicate OK [12:27:07]SAM_PROTO_ClearQueue done [12:27:07]KKMCreateOFDPacket [12:27:07]OFDProtocolAddRootSTLVToBuf [12:27:07]FM_MakeSignedData [12:27:07]FM_MakeSignedData [12:27:07]SAM_PROTO_SignData [12:27:07]wFMCommunicate request_size=4 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 0D 01 02 [12:27:07]Write to MH i2c: E2 08 00 73 3A 80 0D 01 02 00 00 00 00 26 [12:27:07]Write i2c OK [12:27:07]MH_I2C_Read... [12:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:07]Read from MH i2c: E2 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 [12:27:07]MH_I2C_Read... [12:27:07]Read from MH i2c: E2 03 00 73 3A 00 90 00 21 [12:27:07]RAPDU: 90 00 [12:27:07]wFMCommunicate OK [12:27:07]wFMCommunicate request_size=255 [12:27:07]MH_SAM_APDU [12:27:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 77 00 [12:27:08]Write to MH i2c: E2 02 01 74 3A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 77 00 00 00 B3 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 74 3A 00 90 00 22 [12:27:08]RAPDU: 90 00 [12:27:08]wFMCommunicate OK [12:27:08]wFMCommunicate request_size=16 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 86 D8 CA 99 BD 99 [12:27:08]Write to MH i2c: E2 13 00 75 3A 80 0D 02 02 0B 00 00 35 04 06 00 86 D8 CA 99 BD 99 00 00 95 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 03 00 75 3A 00 90 00 23 [12:27:08]RAPDU: 90 00 [12:27:08]wFMCommunicate OK [12:27:08]wFMCommunicate request_size=4 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 0D 03 02 [12:27:08]Write to MH i2c: E2 08 00 76 3A 80 0D 03 02 00 00 00 00 2B [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0B 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 0B 00 76 3A 00 18 C2 B7 B7 57 B9 B7 53 90 00 8E [12:27:08]RAPDU: 18 C2 B7 B7 57 B9 B7 53 90 00 [12:27:08]wFMCommunicate OK [12:27:08]SAM_PROTO_SignData done [12:27:08]FM_MakeSignedData done [12:27:08]CreateOFDProtocolMessage [12:27:08]wFMCommunicate request_size=4 [12:27:08]MH_SAM_APDU [12:27:08]CAPDU: 80 11 00 00 [12:27:08]Write to MH i2c: E2 08 00 77 3A 80 11 00 00 00 00 00 00 2B [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:08]Read from MH i2c: E2 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 17 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: E2 17 00 77 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 79 [12:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:27:08]wFMCommunicate OK [12:27:08]CreateOFDProtocolMessage done [12:27:08]OFDSenderStorePacket 30598 [12:27:08]StoreOFDPacket docnum=30598 [12:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 43 AC 0D 01 14 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 77 00 00 35 04 06 00 86 D8 CA 99 BD 99 18 C2 B7 B7 57 B9 B7 53 [12:27:08]CheckFolder [12:27:08]dirname=/storage/ofd_packets [12:27:08]CheckFolder done [12:27:08]ProducePacketName [12:27:08]name=ofd_packets/00030598 [12:27:08]NVStorageSaveData ofd_packets/00030598 [12:27:08]File name is /storage/ofd_packets/00030598 [12:27:08]Write 307 bytes [12:27:08]NVStorageSaveData done [12:27:08]OFDSenderStorePacket done [12:27:08]KKMCreateOFDPacket done [12:27:08]NVStorageSaveData kkm_last_timestamp [12:27:08]File name is /storage/kkm_last_timestamp [12:27:08]Write 4 bytes [12:27:08]NVStorageSaveData done [12:27:08]ExternCall_PrintAddStr [12:27:08]wPrintStart [12:27:08]Write to MH i2c: 01 00 00 78 3A B2 [12:27:08]Write i2c OK [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 [12:27:08]MH_I2C_Read... [12:27:08]Read from MH i2c: 01 07 00 78 3A 00 00 00 00 00 FF 0F C7 [12:27:08]RasterBufferAndPrint [12:27:08]line Счет N : (1)343006 [12:27:08]line ИНН: 02508201610067 [12:27:08]line Контрольно-Кассовый Чек [12:27:08]line ПРОДАЖА [12:27:08]line ТРК (МРК, ГНК) : 61 [12:27:08]line Товар: 2710194210 [12:27:08]line D-ENERGY Дт-К-2 [12:27:08]line 12.960 * 77.20 [12:27:08]line = 1000.51 [12:27:08]line НДС 12% НСП 1% [12:27:08]line > о реализуемом товаре [12:27:08]line ОКРУГЛЕНИЕ: -0.51 [12:27:08]line ИТОГО: 1000.00 [12:27:08]line Внесено: 1000.00 [12:27:08]line СДАЧА: 0.00 [12:27:08]line НСП 1% : 8.85 [12:27:08]line НДС 12% : 106.25 [12:27:08]line Наличными: 1000.00 [12:27:08]line Безнал.: 0.00 [12:27:08]line Место: АЗС № 78 "Партнер Нефть" [12:27:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:27:08]line СНО: Общий режим [12:27:08]line Чек 95 21.10.2024 12:27 [12:27:08]line Смена: 115 ФФД: 1.0 [12:27:08]line ЗНМ: 0300000137 [12:27:08]line РНМ: 0000000000186857 [12:27:08]line Версия ККМ: v1.0 [12:27:08]line ФМ: 0000000002094219 [12:27:08]line ФД: 30598 [12:27:08]line ФПД: 148265670131097 [12:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122711&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30598&fm=148265670131097&tin=02508201610067®Number=0000000000186857&sum=100000 [12:27:08]OFD Sender: Processing packet 30598 [packets to send 10, broken 9] [12:27:08]ProducePacketName [12:27:08]name=ofd_packets/00030598 [12:27:08]OFD Sender: To server: pG, [12:27:08]CommunicateWithHost lk.salyk.kg:30040 [12:27:08]ConnectInit lk.salyk.kg [12:27:08]Connected sock=10 [12:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 43 AC 0D 01 14 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 written 0, free lines is 4095 [12:27:08]32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 9F 48 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 77 00 00 35 04 06 00 86 D8 CA 99 BD 99 18 C2 B7 B7 57 B9 B7 53 [12:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E7 53 47 00 6E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 86 77 00 00 F4 03 04 00 20 F3 15 67 B6 04 01 00 00 70 F2 B2 35 F7 B3 55 75 [12:27:08]CommunicateWithHost err = 0 [12:27:08]CheckOFDResponse [12:27:08]1017 (14) - 77093643461234 [12:27:08]1041 (16) - 0000000002094219 [12:27:08]1040 (4) - 30598 [12:27:08]1012 (4) - 21.10.2024 06:22 [12:27:08]1206 (1) - 0 [12:27:08]OFD Sender: Remove packet 30598 [12:27:08]ProducePacketName [12:27:08]name=ofd_packets/00030598 [12:27:08]NVStorageDeleteData [12:27:09]Write to MH i2c: 01 00 00 A3 3A DD [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: 01 07 00 A3 3A 00 00 00 00 00 F3 0C E3 [12:27:09]RasterBufferAndPrint [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]line [12:27:09]written 0, free lines is 3328 [12:27:09]MH_Cut [12:27:09]Write to MH i2c: D1 01 00 AA 3A 01 B6 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 [12:27:09]MH_I2C_Read... [12:27:09]Read from MH i2c: D1 01 00 AA 3A 00 B5 [12:27:09]Write to MH i2c: 01 00 00 AB 3A E5 [12:27:09]Write i2c OK [12:27:09]MH_I2C_Read... [12:27:09]OFD Sender: No OFD packet to send [12:27:09]*** Cut start [12:27:09]*** Partial cut [12:27:09]*** CUTSNS_PIN = 1 [12:27:09]*** CUTSNS_PIN = 0 [12:27:10]*** Brake cut motor [12:27:10]Read from MH i2c: 01 [12:27:10]MH_I2C_Read... [12:27:10]*** Stop cut motor [12:27:10]*** Cut end [12:27:10]Read from MH i2c: 01 07 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [12:27:10]process_action close_receipt done [12:27:10]requested_data is exist [12:27:10]produce_requested_data [12:27:10]requested_item fm.sn is exist - process it [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 11 00 00 [12:27:10]Write to MH i2c: E2 08 00 AC 3A 80 11 00 00 00 00 00 00 60 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 17 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 17 00 AC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [12:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:27:10]wFMCommunicate OK [12:27:10]requested_item fd.num is exist - process it [12:27:10]SAM_PROTO_GetFieldsCounters [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 13 00 00 [12:27:10]Write to MH i2c: E2 08 00 AD 3A 80 13 00 00 00 00 00 00 63 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 62 00 AD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 77 00 00 0E 04 04 00 73 00 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 [12:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 86 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetFieldsCounters done [12:27:10]requested_item shift.num is exist - process it [12:27:10]requested_item shift.opened is exist - process it [12:27:10]req_shift_opened [12:27:10]FM_GetShiftState [12:27:10]SAM_PROTO_GetShiftState [12:27:10]wFMCommunicate request_size=4 [12:27:10]MH_SAM_APDU [12:27:10]CAPDU: 80 13 01 00 [12:27:10]Write to MH i2c: E2 08 00 AE 3A 80 13 01 00 00 00 00 00 65 [12:27:10]Write i2c OK [12:27:10]MH_I2C_Read... [12:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:10]Read from MH i2c: E2 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 [12:27:10]MH_I2C_Read... [12:27:10]Read from MH i2c: E2 0E 00 AE 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E1 [12:27:10]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:27:10]wFMCommunicate OK [12:27:10]SAM_PROTO_GetShiftState done [12:27:10]FM_GetShiftState done [12:27:10]req_shift_opened done [12:27:10]requested_item shift.open_date is exist - process it [12:27:10]req_shift_open_date [12:27:10]req_shift_open_date done [12:27:10]produce_requested_data done [12:27:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30598,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:27:10]process_action_free close_receipt [12:27:10]json_value_free [12:27:10]json_value_free done [12:27:10]process_json_proto returns [12:27:10]Send response to host [12:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30598,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:27:10]free response buf [12:27:10]execute_script done [12:27:10]execute_script returns [12:27:10]free content buf [12:27:10]Sock 9.Close socket [12:27:10]Sock 9.Thread stoped [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:20]accept exits with 7 [12:29:20]New connection [12:29:20]New thread 3067489636 created [12:29:20]Thread 3067346276 joined [12:29:20]Waiting for new connection... [12:29:20] Sock 7.Parse request [12:29:20]Sock 7.Check first char [12:29:20]Sock 7.First char is OK [12:29:20]request: POST /json_proto HTTP/1.0 [12:29:20]Method: POST [12:29:20]URL: /json_proto [12:29:20]Method is POST - this is cgi request [12:29:20]url: /json_proto [12:29:20]query_string will be loaded in cgi processing [12:29:20]execute_cgi json_proto POST (null) [12:29:20]execute_cgi path=json_proto method=POST [12:29:20]POST find Content-Length [12:29:20]Host: 172.17.51.3:8080 [12:29:20]Content-Length: 688 [12:29:20]Content-Type: application/json [12:29:20] [12:29:20]POST finish read [12:29:20]Found Content-Length = 688 [12:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:20]execute_script... [12:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:20]POST & json_proto [12:29:20]process_json_proto [12:29:20]json parsed OK: [12:29:20]protocol is kg_v1.0 [12:29:20]action value=close_receipt [12:29:20]process_action close_receipt [12:29:20]cmd_close_receipt [12:29:20]MH_GetDate [12:29:20]Write to MH i2c: F0 00 00 AF 3A D8 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 09 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: F0 09 00 AF 3A 00 25 49 16 67 04 C1 95 66 8C [12:29:20]GetLastDocTimeStamp 1729513631 [12:29:20]current date 1729513765 [12:29:20]FM_GetShiftState [12:29:20]SAM_PROTO_GetShiftState [12:29:20]wFMCommunicate request_size=4 [12:29:20]MH_SAM_APDU [12:29:20]CAPDU: 80 13 01 00 [12:29:20]Write to MH i2c: E2 08 00 B0 3A 80 13 01 00 00 00 00 00 67 [12:29:20]Write i2c OK [12:29:20]MH_I2C_Read... [12:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:20]Read from MH i2c: E2 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 [12:29:20]MH_I2C_Read... [12:29:20]Read from MH i2c: E2 0E 00 B0 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E3 [12:29:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:29:20]wFMCommunicate OK [12:29:20]SAM_PROTO_GetShiftState done [12:29:20]FM_GetShiftState done [12:29:20]opened in 1729471058 [12:29:20]opened+sec_in_day 1729557458 [12:29:20]quantity*price = 150076 [12:29:20]sum+1 = 150078 [12:29:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 96 21.10.2024 12:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30599 ФПД: 58829341591766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30599&fm=58829341591766&tin=02508201610067®Number=0000000000186857&sum=150000 [12:29:21]StoreToDocumentArchive [12:29:21]shift 115 fd 30599 [12:29:21]save to /storage/0115/doc_00030599 [12:29:21]save last doc name /storage/0115/doc_00030599 to /storage/kkm_last_doc_name [12:29:21]save OK [12:29:21]Clear old archive folders... [12:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:29:21]tlvbuf is 01E56440 [12:29:21]SAM_PROTO_ClearQueue [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 09 00 00 [12:29:21]Write to MH i2c: E2 08 00 BD 3A 80 09 00 00 00 00 00 00 69 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 BD 3A 00 90 00 6B [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]SAM_PROTO_ClearQueue done [12:29:21]KKMCreateOFDPacket [12:29:21]OFDProtocolAddRootSTLVToBuf [12:29:21]FM_MakeSignedData [12:29:21]FM_MakeSignedData [12:29:21]SAM_PROTO_SignData [12:29:21]wFMCommunicate request_size=4 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 01 02 [12:29:21]Write to MH i2c: E2 08 00 BE 3A 80 0D 01 02 00 00 00 00 71 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:21]Read from MH i2c: E2 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 [12:29:21]MH_I2C_Read... [12:29:21]Read from MH i2c: E2 03 00 BE 3A 00 90 00 6C [12:29:21]RAPDU: 90 00 [12:29:21]wFMCommunicate OK [12:29:21]wFMCommunicate request_size=255 [12:29:21]MH_SAM_APDU [12:29:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 77 00 [12:29:21]Write to MH i2c: E2 02 01 BF 3A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 77 00 00 00 D9 [12:29:21]Write i2c OK [12:29:21]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 03 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 03 00 BF 3A 00 90 00 6D [12:29:22]RAPDU: 90 00 [12:29:22]wFMCommunicate OK [12:29:22]wFMCommunicate request_size=16 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 35 81 46 02 08 D6 [12:29:22]Write to MH i2c: E2 13 00 C0 3A 80 0D 02 02 0B 00 00 35 04 06 00 35 81 46 02 08 D6 00 00 A5 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 03 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [12:29:22]RAPDU: 90 00 [12:29:22]wFMCommunicate OK [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 0D 03 02 [12:29:22]Write to MH i2c: E2 08 00 C1 3A 80 0D 03 02 00 00 00 00 76 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 0B 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 0B 00 C1 3A 00 B6 04 F8 FC 18 46 AB 11 90 00 3F [12:29:22]RAPDU: B6 04 F8 FC 18 46 AB 11 90 00 [12:29:22]wFMCommunicate OK [12:29:22]SAM_PROTO_SignData done [12:29:22]FM_MakeSignedData done [12:29:22]CreateOFDProtocolMessage [12:29:22]wFMCommunicate request_size=4 [12:29:22]MH_SAM_APDU [12:29:22]CAPDU: 80 11 00 00 [12:29:22]Write to MH i2c: E2 08 00 C2 3A 80 11 00 00 00 00 00 00 76 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:22]Read from MH i2c: E2 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: E2 17 00 C2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [12:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:29:22]wFMCommunicate OK [12:29:22]CreateOFDProtocolMessage done [12:29:22]OFDSenderStorePacket 30599 [12:29:22]StoreOFDPacket docnum=30599 [12:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 32 3A 0D 01 77 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 77 00 00 35 04 06 00 35 81 46 02 08 D6 B6 04 F8 FC 18 46 AB 11 [12:29:22]CheckFolder [12:29:22]dirname=/storage/ofd_packets [12:29:22]CheckFolder done [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00030599 [12:29:22]NVStorageSaveData ofd_packets/00030599 [12:29:22]File name is /storage/ofd_packets/00030599 [12:29:22]Write 307 bytes [12:29:22]NVStorageSaveData done [12:29:22]OFDSenderStorePacket done [12:29:22]KKMCreateOFDPacket done [12:29:22]NVStorageSaveData kkm_last_timestamp [12:29:22]File name is /storage/kkm_last_timestamp [12:29:22]Write 4 bytes [12:29:22]NVStorageSaveData done [12:29:22]ExternCall_PrintAddStr [12:29:22]wPrintStart [12:29:22]Write to MH i2c: 01 00 00 C3 3A FD [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 C3 3A 00 00 00 00 00 FF 0F 12 [12:29:22]RasterBufferAndPrint [12:29:22]line Счет N : (1)343007 [12:29:22]line ИНН: 02508201610067 [12:29:22]line Контрольно-Кассовый Чек [12:29:22]line ПРОДАЖА [12:29:22]line ТРК (МРК, ГНК) : 51 [12:29:22]line Товар: 2710194210 [12:29:22]line D-ENERGY Дт-К-2 [12:29:22]line 19.440 * 77.20 [12:29:22]line = 1500.77 [12:29:22]line НДС 12% НСП 1% [12:29:22]line > о реализуемом товаре [12:29:22]line ОКРУГЛЕНИЕ: -0.77 [12:29:22]line ИТОГО: 1500.00 [12:29:22]line Внесено: 1500.00 [12:29:22]line СДАЧА: 0.00 [12:29:22]line НСП 1% : 13.28 [12:29:22]line НДС 12% : 159.37 [12:29:22]line Наличными: 1500.00 [12:29:22]line Безнал.: 0.00 [12:29:22]line Место: АЗС № 78 "Партнер Нефть" [12:29:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:29:22]line СНО: Общий режим [12:29:22]line Чек 96 21.10.2024 12:29 [12:29:22]line Смена: 115 ФФД: 1.0 [12:29:22]line ЗНМ: 0300000137 [12:29:22]line РНМ: 0000000000186857 [12:29:22]line Версия ККМ: v1.0 [12:29:22]line ФМ: 0000000002094219 [12:29:22]line ФД: 30599 [12:29:22]line ФПД: 58829341591766 [12:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122925&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30599&fm=58829341591766&tin=02508201610067®Number=0000000000186857&sum=150000 [12:29:22]OFD Sender: Processing packet 30599 [packets to send 10, broken 9] [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00030599 [12:29:22]OFD Sender: To server: pG, [12:29:22]CommunicateWithHost lk.salyk.kg:30040 [12:29:22]ConnectInit lk.salyk.kg [12:29:22]written 0, free lines is 4095 [12:29:22]Connected sock=10 [12:29:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 32 3A 0D 01 77 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 77 00 00 35 04 06 00 35 81 46 02 08 D6 B6 04 F8 FC 18 46 AB 11 [12:29:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 27 96 47 00 DC 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 87 77 00 00 F4 03 04 00 A6 F3 15 67 B6 04 01 00 00 86 3E DF 08 63 B7 80 92 [12:29:22]CommunicateWithHost err = 0 [12:29:22]CheckOFDResponse [12:29:22]1017 (14) - 77093643461234 [12:29:22]1041 (16) - 0000000002094219 [12:29:22]1040 (4) - 30599 [12:29:22]1012 (4) - 21.10.2024 06:24 [12:29:22]1206 (1) - 0 [12:29:22]OFD Sender: Remove packet 30599 [12:29:22]ProducePacketName [12:29:22]name=ofd_packets/00030599 [12:29:22]NVStorageDeleteData [12:29:22]Write to MH i2c: 01 00 00 EE 3A 28 [12:29:22]Write i2c OK [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 [12:29:22]MH_I2C_Read... [12:29:22]Read from MH i2c: 01 07 00 EE 3A 00 00 00 00 00 F3 0C 2E [12:29:22]RasterBufferAndPrint [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]line [12:29:22]written 0, free lines is 3321 [12:29:23]MH_Cut [12:29:23]Write to MH i2c: D1 01 00 F5 3A 01 01 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: D1 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: D1 01 00 [12:29:23]MH_I2C_Read... [12:29:23]Read from MH i2c: D1 01 00 F5 3A 00 00 [12:29:23]Write to MH i2c: 01 00 00 F6 3A 30 [12:29:23]Write i2c OK [12:29:23]MH_I2C_Read... [12:29:23]OFD Sender: No OFD packet to send [12:29:23]*** Cut start [12:29:23]*** Partial cut [12:29:23]*** CUTSNS_PIN = 1 [12:29:23]*** CUTSNS_PIN = 0 [12:29:23]*** Brake cut motor [12:29:24]Read from MH i2c: 01 [12:29:24]MH_I2C_Read... [12:29:24]*** Stop cut motor [12:29:24]*** Cut end [12:29:24]Read from MH i2c: 01 07 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: 01 07 00 F6 3A 00 00 00 00 00 FF 0F 45 [12:29:24]process_action close_receipt done [12:29:24]requested_data is exist [12:29:24]produce_requested_data [12:29:24]requested_item fm.sn is exist - process it [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 11 00 00 [12:29:24]Write to MH i2c: E2 08 00 F7 3A 80 11 00 00 00 00 00 00 AB [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 17 00 F7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [12:29:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:29:24]wFMCommunicate OK [12:29:24]requested_item fd.num is exist - process it [12:29:24]SAM_PROTO_GetFieldsCounters [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 00 00 [12:29:24]Write to MH i2c: E2 08 00 F8 3A 80 13 00 00 00 00 00 00 AE [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 62 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 62 00 F8 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 77 00 00 0E 04 04 00 73 00 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 65 [12:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 87 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetFieldsCounters done [12:29:24]requested_item shift.num is exist - process it [12:29:24]requested_item shift.opened is exist - process it [12:29:24]req_shift_opened [12:29:24]FM_GetShiftState [12:29:24]SAM_PROTO_GetShiftState [12:29:24]wFMCommunicate request_size=4 [12:29:24]MH_SAM_APDU [12:29:24]CAPDU: 80 13 01 00 [12:29:24]Write to MH i2c: E2 08 00 F9 3A 80 13 01 00 00 00 00 00 B0 [12:29:24]Write i2c OK [12:29:24]MH_I2C_Read... [12:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:24]Read from MH i2c: E2 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 [12:29:24]MH_I2C_Read... [12:29:24]Read from MH i2c: E2 0E 00 F9 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2C [12:29:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:29:24]wFMCommunicate OK [12:29:24]SAM_PROTO_GetShiftState done [12:29:24]FM_GetShiftState done [12:29:24]req_shift_opened done [12:29:24]requested_item shift.open_date is exist - process it [12:29:24]req_shift_open_date [12:29:24]req_shift_open_date done [12:29:24]produce_requested_data done [12:29:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30599,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:29:24]process_action_free close_receipt [12:29:24]json_value_free [12:29:24]json_value_free done [12:29:24]process_json_proto returns [12:29:24]Send response to host [12:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30599,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:29:24]free response buf [12:29:24]execute_script done [12:29:24]execute_script returns [12:29:24]free content buf [12:29:24]Sock 7.Close socket [12:29:24]Sock 7.Thread stoped [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:36]accept exits with 9 [12:30:36]New connection [12:30:36]New thread 3067346276 created [12:30:36]Thread 3067489636 joined [12:30:36]Waiting for new connection... [12:30:36] Sock 9.Parse request [12:30:36]Sock 9.Check first char [12:30:36]Sock 9.First char is OK [12:30:36]request: POST /json_proto HTTP/1.0 [12:30:36]Method: POST [12:30:36]URL: /json_proto [12:30:36]Method is POST - this is cgi request [12:30:36]url: /json_proto [12:30:36]query_string will be loaded in cgi processing [12:30:36]execute_cgi json_proto POST (null) [12:30:36]execute_cgi path=json_proto method=POST [12:30:36]POST find Content-Length [12:30:36]Host: 172.17.51.3:8080 [12:30:36]Content-Length: 677 [12:30:36]Content-Type: application/json [12:30:36] [12:30:36]POST finish read [12:30:36]Found Content-Length = 677 [12:30:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:36]execute_script... [12:30:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:36]POST & json_proto [12:30:36]process_json_proto [12:30:36]json parsed OK: [12:30:36]protocol is kg_v1.0 [12:30:36]action value=close_receipt [12:30:36]process_action close_receipt [12:30:36]cmd_close_receipt [12:30:36]MH_GetDate [12:30:36]Write to MH i2c: F0 00 00 FA 3A 23 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: F0 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: F0 09 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: F0 09 00 FA 3A 00 71 49 16 67 04 C1 95 66 23 [12:30:36]GetLastDocTimeStamp 1729513765 [12:30:36]current date 1729513841 [12:30:36]FM_GetShiftState [12:30:36]SAM_PROTO_GetShiftState [12:30:36]wFMCommunicate request_size=4 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 13 01 00 [12:30:36]Write to MH i2c: E2 08 00 FB 3A 80 13 01 00 00 00 00 00 B2 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 0E 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 0E 00 FB 3A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2E [12:30:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:30:36]wFMCommunicate OK [12:30:36]SAM_PROTO_GetShiftState done [12:30:36]FM_GetShiftState done [12:30:36]opened in 1729471058 [12:30:36]opened+sec_in_day 1729557458 [12:30:36]quantity*price = 50041 [12:30:36]sum+1 = 50042 [12:30:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 97 21.10.2024 12:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30600 ФПД: 27865550716822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123041&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30600&fm=27865550716822&tin=02508201610067®Number=0000000000186857&sum=50000 [12:30:37]StoreToDocumentArchive [12:30:37]shift 115 fd 30600 [12:30:37]save to /storage/0115/doc_00030600 [12:30:37]save last doc name /storage/0115/doc_00030600 to /storage/kkm_last_doc_name [12:30:37]save OK [12:30:37]Clear old archive folders... [12:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:37]tlvbuf is 01E2B4E0 [12:30:37]SAM_PROTO_ClearQueue [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 09 00 00 [12:30:37]Write to MH i2c: E2 08 00 08 3B 80 09 00 00 00 00 00 00 B5 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]SAM_PROTO_ClearQueue done [12:30:37]KKMCreateOFDPacket [12:30:37]OFDProtocolAddRootSTLVToBuf [12:30:37]FM_MakeSignedData [12:30:37]FM_MakeSignedData [12:30:37]SAM_PROTO_SignData [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 01 02 [12:30:37]Write to MH i2c: E2 08 00 09 3B 80 0D 01 02 00 00 00 00 BD [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=255 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 71 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 77 00 00 35 04 06 00 19 [12:30:37]Write to MH i2c: E2 02 01 0A 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 71 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 77 00 00 35 04 06 00 19 00 00 71 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 03 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 03 00 0A 3B 00 90 00 B9 [12:30:38]RAPDU: 90 00 [12:30:38]wFMCommunicate OK [12:30:38]wFMCommunicate request_size=10 [12:30:38]MH_SAM_APDU [12:30:38]CAPDU: 80 0D 02 02 05 57 F4 40 7F 96 [12:30:38]Write to MH i2c: E2 0D 00 0B 3B 80 0D 02 02 05 00 57 F4 40 7F 96 00 00 6A [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 03 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 03 00 0B 3B 00 90 00 BA [12:30:38]RAPDU: 90 00 [12:30:38]wFMCommunicate OK [12:30:38]wFMCommunicate request_size=4 [12:30:38]MH_SAM_APDU [12:30:38]CAPDU: 80 0D 03 02 [12:30:38]Write to MH i2c: E2 08 00 0C 3B 80 0D 03 02 00 00 00 00 C2 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0B 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0B 00 0C 3B 00 83 A8 61 D3 36 FC DC 6A 90 00 9A [12:30:38]RAPDU: 83 A8 61 D3 36 FC DC 6A 90 00 [12:30:38]wFMCommunicate OK [12:30:38]SAM_PROTO_SignData done [12:30:38]FM_MakeSignedData done [12:30:38]CreateOFDProtocolMessage [12:30:38]wFMCommunicate request_size=4 [12:30:38]MH_SAM_APDU [12:30:38]CAPDU: 80 11 00 00 [12:30:38]Write to MH i2c: E2 08 00 0D 3B 80 11 00 00 00 00 00 00 C2 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 17 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 17 00 0D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 10 [12:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:30:38]wFMCommunicate OK [12:30:38]CreateOFDProtocolMessage done [12:30:38]OFDSenderStorePacket 30600 [12:30:38]StoreOFDPacket docnum=30600 [12:30:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D D0 07 01 BE 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 71 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 77 00 00 35 04 06 00 19 57 F4 40 7F 96 83 A8 61 D3 36 FC DC 6A [12:30:38]CheckFolder [12:30:38]dirname=/storage/ofd_packets [12:30:38]CheckFolder done [12:30:38]ProducePacketName [12:30:38]name=ofd_packets/00030600 [12:30:38]NVStorageSaveData ofd_packets/00030600 [12:30:38]File name is /storage/ofd_packets/00030600 [12:30:38]Write 301 bytes [12:30:38]NVStorageSaveData done [12:30:38]OFDSenderStorePacket done [12:30:38]KKMCreateOFDPacket done [12:30:38]NVStorageSaveData kkm_last_timestamp [12:30:38]File name is /storage/kkm_last_timestamp [12:30:38]Write 4 bytes [12:30:38]NVStorageSaveData done [12:30:38]ExternCall_PrintAddStr [12:30:38]wPrintStart [12:30:38]Write to MH i2c: 01 00 00 0E 3B 49 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 0E 3B 00 00 00 00 00 FF 0F 5E [12:30:38]RasterBufferAndPrint [12:30:38]line Счет N : (1)343008 [12:30:38]line ИНН: 02508201610067 [12:30:38]line Контрольно-Кассовый Чек [12:30:38]line ПРОДАЖА [12:30:38]line ТРК (МРК, ГНК) : 63 [12:30:38]line Товар: 2710124130 [12:30:38]line Аи-92-К-2 [12:30:38]line 7.480 * 66.90 [12:30:38]line = 500.41 [12:30:38]line НДС 12% НСП 1% [12:30:38]line > о реализуемом товаре [12:30:38]line ОКРУГЛЕНИЕ: -0.41 [12:30:38]line ИТОГО: 500.00 [12:30:38]line Внесено: 500.00 [12:30:38]line СДАЧА: 0.00 [12:30:38]line НСП 1% : 4.43 [12:30:38]line НДС 12% : 53.14 [12:30:38]line Наличными: 500.00 [12:30:38]line Безнал.: 0.00 [12:30:38]line Место: АЗС № 78 "Партнер Нефть" [12:30:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:30:38]line СНО: Общий режим [12:30:38]line Чек 97 21.10.2024 12:30 [12:30:38]line Смена: 115 ФФД: 1.0 [12:30:38]line ЗНМ: 0300000137 [12:30:38]line РНМ: 0000000000186857 [12:30:38]line Версия ККМ: v1.0 [12:30:38]line ФМ: 0000000002094219 [12:30:38]line ФД: 30600 [12:30:38]line ФПД: 27865550716822 [12:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123041&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30600&fm=27865550716822&tin=02508201610067®Number=0000000000186857&sum=50000 [12:30:38]OFD Sender: Processing packet 30600 [packets to send 10, broken 9] [12:30:38]ProducePacketName [12:30:38]name=ofd_packets/00030600 [12:30:38]OFD Sender: To server: pG, [12:30:38]CommunicateWithHost lk.salyk.kg:30040 [12:30:38]ConnectInit lk.salyk.kg [12:30:38]written 0, free lines is 4095 [12:30:38]Connected sock=10 [12:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D D0 07 01 BE 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 71 49 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 77 00 00 35 04 06 00 19 57 F4 40 7F 96 83 A8 61 D3 36 FC DC 6A [12:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 55 F0 47 00 04 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 88 77 00 00 F4 03 04 00 F2 F3 15 67 B6 04 01 00 00 B7 BF A3 C7 38 C0 3B ED [12:30:38]CommunicateWithHost err = 0 [12:30:38]CheckOFDResponse [12:30:38]1017 (14) - 77093643461234 [12:30:38]1041 (16) - 0000000002094219 [12:30:38]1040 (4) - 30600 [12:30:38]1012 (4) - 21.10.2024 06:25 [12:30:38]1206 (1) - 0 [12:30:38]OFD Sender: Remove packet 30600 [12:30:38]ProducePacketName [12:30:38]name=ofd_packets/00030600 [12:30:38]NVStorageDeleteData [12:30:38]Write to MH i2c: 01 00 00 39 3B 74 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 39 3B 00 00 00 00 00 FD 0C 84 [12:30:39]RasterBufferAndPrint [12:30:39]line [12:30:39]line [12:30:39]line [12:30:39]line [12:30:39]line [12:30:39]written 0, free lines is 3331 [12:30:39]MH_Cut [12:30:39]Write to MH i2c: D1 01 00 40 3B 01 4D [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: D1 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: D1 01 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: D1 01 00 40 3B 00 4C [12:30:39]Write to MH i2c: 01 00 00 41 3B 7C [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]OFD Sender: No OFD packet to send [12:30:39]*** Cut start [12:30:39]*** Partial cut [12:30:39]*** CUTSNS_PIN = 1 [12:30:39]*** CUTSNS_PIN = 0 [12:30:39]*** Brake cut motor [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]*** Stop cut motor [12:30:40]*** Cut end [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 41 3B 00 00 00 00 00 FF 0F 91 [12:30:40]process_action close_receipt done [12:30:40]requested_data is exist [12:30:40]produce_requested_data [12:30:40]requested_item fm.sn is exist - process it [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 11 00 00 [12:30:40]Write to MH i2c: E2 08 00 42 3B 80 11 00 00 00 00 00 00 F7 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:40]Read from MH i2c: E2 17 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 42 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [12:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:30:40]wFMCommunicate OK [12:30:40]requested_item fd.num is exist - process it [12:30:40]SAM_PROTO_GetFieldsCounters [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 00 00 [12:30:40]Write to MH i2c: E2 08 00 43 3B 80 13 00 00 00 00 00 00 FA [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 43 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 77 00 00 0E 04 04 00 73 00 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 B5 [12:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 88 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetFieldsCounters done [12:30:40]requested_item shift.num is exist - process it [12:30:40]requested_item shift.opened is exist - process it [12:30:40]req_shift_opened [12:30:40]FM_GetShiftState [12:30:40]SAM_PROTO_GetShiftState [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 01 00 [12:30:40]Write to MH i2c: E2 08 00 44 3B 80 13 01 00 00 00 00 00 FC [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 44 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 78 [12:30:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetShiftState done [12:30:40]FM_GetShiftState done [12:30:40]req_shift_opened done [12:30:40]requested_item shift.open_date is exist - process it [12:30:40]req_shift_open_date [12:30:40]req_shift_open_date done [12:30:40]produce_requested_data done [12:30:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30600,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:30:40]process_action_free close_receipt [12:30:40]json_value_free [12:30:40]json_value_free done [12:30:40]process_json_proto returns [12:30:40]Send response to host [12:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30600,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:30:40]free response buf [12:30:40]execute_script done [12:30:40]execute_script returns [12:30:40]free content buf [12:30:40]Sock 9.Close socket [12:30:40]Sock 9.Thread stoped [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]accept exits with 7 [12:33:44]New connection [12:33:44]New thread 3067489636 created [12:33:44]Thread 3067346276 joined [12:33:44]Waiting for new connection... [12:33:44] Sock 7.Parse request [12:33:44]Sock 7.Check first char [12:33:44]Sock 7.First char is OK [12:33:44]request: POST /json_proto HTTP/1.0 [12:33:44]Method: POST [12:33:44]URL: /json_proto [12:33:44]Method is POST - this is cgi request [12:33:44]url: /json_proto [12:33:44]query_string will be loaded in cgi processing [12:33:44]execute_cgi json_proto POST (null) [12:33:44]execute_cgi path=json_proto method=POST [12:33:44]POST find Content-Length [12:33:44]Host: 172.17.51.3:8080 [12:33:44]Content-Length: 679 [12:33:44]Content-Type: application/json [12:33:44] [12:33:44]POST finish read [12:33:44]Found Content-Length = 679 [12:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:44]execute_script... [12:33:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:44]POST & json_proto [12:33:44]process_json_proto [12:33:44]json parsed OK: [12:33:44]protocol is kg_v1.0 [12:33:44]action value=close_receipt [12:33:44]process_action close_receipt [12:33:44]cmd_close_receipt [12:33:44]MH_GetDate [12:33:44]Write to MH i2c: F0 00 00 45 3B 6F [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 45 3B 00 2D 4A 16 67 04 C1 95 66 2C [12:33:44]GetLastDocTimeStamp 1729513841 [12:33:44]current date 1729514029 [12:33:44]FM_GetShiftState [12:33:44]SAM_PROTO_GetShiftState [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 13 01 00 [12:33:44]Write to MH i2c: E2 08 00 46 3B 80 13 01 00 00 00 00 00 FE [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0E 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0E 00 46 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7A [12:33:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:33:44]wFMCommunicate OK [12:33:44]SAM_PROTO_GetShiftState done [12:33:44]FM_GetShiftState done [12:33:44]opened in 1729471058 [12:33:44]opened+sec_in_day 1729557458 [12:33:44]quantity*price = 100050 [12:33:44]sum+1 = 100052 [12:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 98 21.10.2024 12:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30601 ФПД: 225761712572958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30601&fm=225761712572958&tin=02508201610067®Number=0000000000186857&sum=100000 [12:33:45]StoreToDocumentArchive [12:33:45]shift 115 fd 30601 [12:33:45]save to /storage/0115/doc_00030601 [12:33:45]save last doc name /storage/0115/doc_00030601 to /storage/kkm_last_doc_name [12:33:45]save OK [12:33:45]Clear old archive folders... [12:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:33:45]tlvbuf is 01E86190 [12:33:45]SAM_PROTO_ClearQueue [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 09 00 00 [12:33:45]Write to MH i2c: E2 08 00 53 3B 80 09 00 00 00 00 00 00 00 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 53 3B 00 90 00 02 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_ClearQueue done [12:33:45]KKMCreateOFDPacket [12:33:45]OFDProtocolAddRootSTLVToBuf [12:33:45]FM_MakeSignedData [12:33:45]FM_MakeSignedData [12:33:45]SAM_PROTO_SignData [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 01 02 [12:33:45]Write to MH i2c: E2 08 00 54 3B 80 0D 01 02 00 00 00 00 08 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 54 3B 00 90 00 03 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]wFMCommunicate request_size=255 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2D 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 77 00 00 35 04 06 00 CD 54 3E AE [12:33:45]Write to MH i2c: E2 02 01 55 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2D 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 77 00 00 35 04 06 00 CD 54 3E AE 00 00 65 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 55 3B 00 90 00 04 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]wFMCommunicate request_size=7 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 02 02 02 8A 1E [12:33:45]Write to MH i2c: E2 0A 00 56 3B 80 0D 02 02 02 00 8A 1E 00 00 B7 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 03 00 56 3B 00 90 00 05 [12:33:46]RAPDU: 90 00 [12:33:46]wFMCommunicate OK [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 0D 03 02 [12:33:46]Write to MH i2c: E2 08 00 57 3B 80 0D 03 02 00 00 00 00 0D [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 0B 00 57 3B 00 8E 29 A1 DF 76 A5 9E 66 90 00 64 [12:33:46]RAPDU: 8E 29 A1 DF 76 A5 9E 66 90 00 [12:33:46]wFMCommunicate OK [12:33:46]SAM_PROTO_SignData done [12:33:46]FM_MakeSignedData done [12:33:46]CreateOFDProtocolMessage [12:33:46]wFMCommunicate request_size=4 [12:33:46]MH_SAM_APDU [12:33:46]CAPDU: 80 11 00 00 [12:33:46]Write to MH i2c: E2 08 00 58 3B 80 11 00 00 00 00 00 00 0D [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 58 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [12:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:33:46]wFMCommunicate OK [12:33:46]CreateOFDProtocolMessage done [12:33:46]OFDSenderStorePacket 30601 [12:33:46]StoreOFDPacket docnum=30601 [12:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1B CA 04 01 43 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2D 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 77 00 00 35 04 06 00 CD 54 3E AE 8A 1E 8E 29 A1 DF 76 A5 9E 66 [12:33:46]CheckFolder [12:33:46]dirname=/storage/ofd_packets [12:33:46]CheckFolder done [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00030601 [12:33:46]NVStorageSaveData ofd_packets/00030601 [12:33:46]File name is /storage/ofd_packets/00030601 [12:33:46]Write 298 bytes [12:33:46]NVStorageSaveData done [12:33:46]OFDSenderStorePacket done [12:33:46]KKMCreateOFDPacket done [12:33:46]NVStorageSaveData kkm_last_timestamp [12:33:46]File name is /storage/kkm_last_timestamp [12:33:46]Write 4 bytes [12:33:46]NVStorageSaveData done [12:33:46]ExternCall_PrintAddStr [12:33:46]wPrintStart [12:33:46]Write to MH i2c: 01 00 00 59 3B 94 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 59 3B 00 00 00 00 00 FF 0F A9 [12:33:46]RasterBufferAndPrint [12:33:46]line Счет N : (1)343009 [12:33:46]line ИНН: 02508201610067 [12:33:46]line Контрольно-Кассовый Чек [12:33:46]line ПРОДАЖА [12:33:46]line ТРК (МРК, ГНК) : 64 [12:33:46]line Товар: 2710194210 [12:33:46]line ДТ-К-2 [12:33:46]line 13.130 * 76.20 [12:33:46]line = 1000.51 [12:33:46]line НДС 12% НСП 1% [12:33:46]line > о реализуемом товаре [12:33:46]line ОКРУГЛЕНИЕ: -0.51 [12:33:46]line ИТОГО: 1000.00 [12:33:46]line Внесено: 1000.00 [12:33:46]line СДАЧА: 0.00 [12:33:46]line НСП 1% : 8.85 [12:33:46]line НДС 12% : 106.25 [12:33:46]line Наличными: 1000.00 [12:33:46]line Безнал.: 0.00 [12:33:46]line Место: АЗС № 78 "Партнер Нефть" [12:33:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:33:46]line СНО: Общий режим [12:33:46]line Чек 98 21.10.2024 12:33 [12:33:46]line Смена: 115 ФФД: 1.0 [12:33:46]line ЗНМ: 0300000137 [12:33:46]line РНМ: 0000000000186857 [12:33:46]line Версия ККМ: v1.0 [12:33:46]line ФМ: 0000000002094219 [12:33:46]line ФД: 30601 [12:33:46]line ФПД: 225761712572958 [12:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30601&fm=225761712572958&tin=02508201610067®Number=0000000000186857&sum=100000 [12:33:46]OFD Sender: Processing packet 30601 [packets to send 10, broken 9] [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00030601 [12:33:46]OFD Sender: To server: pG, [12:33:46]CommunicateWithHost lk.salyk.kg:30040 [12:33:46]ConnectInit lk.salyk.kg [12:33:46]written 0, free lines is 4095 [12:33:46]Connected sock=6 [12:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1B CA 04 01 43 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2D 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 89 77 00 00 35 04 06 00 CD 54 3E AE 8A 1E 8E 29 A1 DF 76 A5 9E 66 [12:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 14 5A 47 00 CB 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 32 30 39 34 32 31 39 10 04 04 00 89 77 00 00 F4 03 04 00 AD F4 15 67 B6 04 01 00 00 72 98 FA 68 E4 13 32 E9 [12:33:46]CommunicateWithHost err = 0 [12:33:46]CheckOFDResponse [12:33:46]1017 (14) - 77093643461234 [12:33:46]1041 (16) - 0000000002094219 [12:33:46]1040 (4) - 30601 [12:33:46]1012 (4) - 21.10.2024 06:29 [12:33:46]1206 (1) - 0 [12:33:46]OFD Sender: Remove packet 30601 [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00030601 [12:33:46]NVStorageDeleteData [12:33:46]Write to MH i2c: 01 00 00 84 3B BF [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 84 3B 00 00 00 00 00 EF 0C C1 [12:33:46]RasterBufferAndPrint [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]written 0, free lines is 3318 [12:33:46]MH_Cut [12:33:46]Write to MH i2c: D1 01 00 8B 3B 01 98 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 01 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 01 00 8B 3B 00 97 [12:33:46]Write to MH i2c: 01 00 00 8C 3B C7 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:47]OFD Sender: No OFD packet to send [12:33:47]*** Cut start [12:33:47]*** Partial cut [12:33:47]*** CUTSNS_PIN = 1 [12:33:47]*** CUTSNS_PIN = 0 [12:33:47]*** Brake cut motor [12:33:48]Read from MH i2c: 01 [12:33:48]MH_I2C_Read... [12:33:48]*** Stop cut motor [12:33:48]*** Cut end [12:33:48]Read from MH i2c: 01 07 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 8C 3B 00 00 00 00 00 FF 0F DC [12:33:48]process_action close_receipt done [12:33:48]requested_data is exist [12:33:48]produce_requested_data [12:33:48]requested_item fm.sn is exist - process it [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 11 00 00 [12:33:48]Write to MH i2c: E2 08 00 8D 3B 80 11 00 00 00 00 00 00 42 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:48]Read from MH i2c: E2 17 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 17 00 8D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [12:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:33:48]wFMCommunicate OK [12:33:48]requested_item fd.num is exist - process it [12:33:48]SAM_PROTO_GetFieldsCounters [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 13 00 00 [12:33:48]Write to MH i2c: E2 08 00 8E 3B 80 13 00 00 00 00 00 00 45 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 62 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 62 00 8E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 77 00 00 0E 04 04 00 73 00 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 04 [12:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 89 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_GetFieldsCounters done [12:33:48]requested_item shift.num is exist - process it [12:33:48]requested_item shift.opened is exist - process it [12:33:48]req_shift_opened [12:33:48]FM_GetShiftState [12:33:48]SAM_PROTO_GetShiftState [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 13 01 00 [12:33:48]Write to MH i2c: E2 08 00 8F 3B 80 13 01 00 00 00 00 00 47 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0E 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0E 00 8F 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C3 [12:33:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_GetShiftState done [12:33:48]FM_GetShiftState done [12:33:48]req_shift_opened done [12:33:48]requested_item shift.open_date is exist - process it [12:33:48]req_shift_open_date [12:33:48]req_shift_open_date done [12:33:48]produce_requested_data done [12:33:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30601,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:33:48]process_action_free close_receipt [12:33:48]json_value_free [12:33:48]json_value_free done [12:33:48]process_json_proto returns [12:33:48]Send response to host [12:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30601,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:33:48]free response buf [12:33:48]execute_script done [12:33:48]execute_script returns [12:33:48]free content buf [12:33:48]Sock 7.Close socket [12:33:48]Sock 7.Thread stoped [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]accept exits with 9 [12:34:17]New connection [12:34:17]New thread 3067346276 created [12:34:17]Thread 3067489636 joined [12:34:17]Waiting for new connection... [12:34:17] Sock 9.Parse request [12:34:17]Sock 9.Check first char [12:34:17]Sock 9.First char is OK [12:34:17]request: POST /json_proto HTTP/1.0 [12:34:17]Method: POST [12:34:17]URL: /json_proto [12:34:17]Method is POST - this is cgi request [12:34:17]url: /json_proto [12:34:17]query_string will be loaded in cgi processing [12:34:17]execute_cgi json_proto POST (null) [12:34:17]execute_cgi path=json_proto method=POST [12:34:17]POST find Content-Length [12:34:17]Host: 172.17.51.3:8080 [12:34:17]Content-Length: 677 [12:34:17]Content-Type: application/json [12:34:17] [12:34:17]POST finish read [12:34:17]Found Content-Length = 677 [12:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:17]execute_script... [12: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 : (1)343010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:17]POST & json_proto [12:34:17]process_json_proto [12:34:17]json parsed OK: [12:34:17]protocol is kg_v1.0 [12:34:17]action value=close_receipt [12:34:17]process_action close_receipt [12:34:17]cmd_close_receipt [12:34:17]MH_GetDate [12:34:17]Write to MH i2c: F0 00 00 90 3B BA [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 09 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: F0 09 00 90 3B 00 4D 4A 16 67 04 C1 95 66 97 [12:34:17]GetLastDocTimeStamp 1729514029 [12:34:17]current date 1729514061 [12:34:17]FM_GetShiftState [12:34:17]SAM_PROTO_GetShiftState [12:34:17]wFMCommunicate request_size=4 [12:34:17]MH_SAM_APDU [12:34:17]CAPDU: 80 13 01 00 [12:34:17]Write to MH i2c: E2 08 00 91 3B 80 13 01 00 00 00 00 00 49 [12:34:17]Write i2c OK [12:34:17]MH_I2C_Read... [12:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:17]Read from MH i2c: E2 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 [12:34:17]MH_I2C_Read... [12:34:17]Read from MH i2c: E2 0E 00 91 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C5 [12:34:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:34:17]wFMCommunicate OK [12:34:17]SAM_PROTO_GetShiftState done [12:34:17]FM_GetShiftState done [12:34:17]opened in 1729471058 [12:34:17]opened+sec_in_day 1729557458 [12:34:17]quantity*price = 35055 [12:34:17]sum+1 = 35057 [12:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 99 21.10.2024 12:34 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30602 ФПД: 201837082884675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30602&fm=201837082884675&tin=02508201610067®Number=0000000000186857&sum=35000 [12:34:18]StoreToDocumentArchive [12:34:18]shift 115 fd 30602 [12:34:18]save to /storage/0115/doc_00030602 [12:34:18]save last doc name /storage/0115/doc_00030602 to /storage/kkm_last_doc_name [12:34:18]save OK [12:34:18]Clear old archive folders... [12:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:18]tlvbuf is 01DFF5A0 [12:34:18]SAM_PROTO_ClearQueue [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 09 00 00 [12:34:18]Write to MH i2c: E2 08 00 9E 3B 80 09 00 00 00 00 00 00 4B [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 9E 3B 00 90 00 4D [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]SAM_PROTO_ClearQueue done [12:34:18]KKMCreateOFDPacket [12:34:18]OFDProtocolAddRootSTLVToBuf [12:34:18]FM_MakeSignedData [12:34:18]FM_MakeSignedData [12:34:18]SAM_PROTO_SignData [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 01 02 [12:34:18]Write to MH i2c: E2 08 00 9F 3B 80 0D 01 02 00 00 00 00 53 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 9F 3B 00 90 00 4E [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=255 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 63 00 00 00 F4 03 04 00 4E 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 77 00 00 35 04 06 00 B7 [12:34:18]Write to MH i2c: E2 02 01 A0 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 63 00 00 00 F4 03 04 00 4E 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 77 00 00 35 04 06 00 B7 00 00 92 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 A0 3B 00 90 00 4F [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=10 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 02 02 05 91 DB A0 BA 43 [12:34:18]Write to MH i2c: E2 0D 00 A1 3B 80 0D 02 02 05 00 91 DB A0 BA 43 00 00 69 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 03 00 A1 3B 00 90 00 50 [12:34:18]RAPDU: 90 00 [12:34:18]wFMCommunicate OK [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 0D 03 02 [12:34:18]Write to MH i2c: E2 08 00 A2 3B 80 0D 03 02 00 00 00 00 58 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0B 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 0B 00 A2 3B 00 95 CA 19 27 AF D8 71 84 90 00 74 [12:34:18]RAPDU: 95 CA 19 27 AF D8 71 84 90 00 [12:34:18]wFMCommunicate OK [12:34:18]SAM_PROTO_SignData done [12:34:18]FM_MakeSignedData done [12:34:18]CreateOFDProtocolMessage [12:34:18]wFMCommunicate request_size=4 [12:34:18]MH_SAM_APDU [12:34:18]CAPDU: 80 11 00 00 [12:34:18]Write to MH i2c: E2 08 00 A3 3B 80 11 00 00 00 00 00 00 58 [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:18]Read from MH i2c: E2 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 17 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: E2 17 00 A3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [12:34:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:34:18]wFMCommunicate OK [12:34:18]CreateOFDProtocolMessage done [12:34:18]OFDSenderStorePacket 30602 [12:34:18]StoreOFDPacket docnum=30602 [12:34:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 04 37 07 01 5B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 63 00 00 00 F4 03 04 00 4E 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 77 00 00 35 04 06 00 B7 91 DB A0 BA 43 95 CA 19 27 AF D8 71 84 [12:34:18]CheckFolder [12:34:18]dirname=/storage/ofd_packets [12:34:18]CheckFolder done [12:34:18]ProducePacketName [12:34:18]name=ofd_packets/00030602 [12:34:18]NVStorageSaveData ofd_packets/00030602 [12:34:18]File name is /storage/ofd_packets/00030602 [12:34:18]Write 301 bytes [12:34:18]NVStorageSaveData done [12:34:18]OFDSenderStorePacket done [12:34:18]KKMCreateOFDPacket done [12:34:18]NVStorageSaveData kkm_last_timestamp [12:34:18]File name is /storage/kkm_last_timestamp [12:34:18]Write 4 bytes [12:34:18]NVStorageSaveData done [12:34:18]ExternCall_PrintAddStr [12:34:18]wPrintStart [12:34:18]Write to MH i2c: 01 00 00 A4 3B DF [12:34:18]Write i2c OK [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 07 00 [12:34:18]MH_I2C_Read... [12:34:18]Read from MH i2c: 01 07 00 A4 3B 00 00 00 00 00 FF 0F F4 [12:34:18]RasterBufferAndPrint [12:34:18]line Счет N : (1)343010 [12:34:18]line ИНН: 02508201610067 [12:34:18]line Контрольно-Кассовый Чек [12:34:18]line ПРОДАЖА [12:34:18]line ТРК (МРК, ГНК) : 33 [12:34:18]line Товар: 2710124130 [12:34:18]line Аи-92-К-2 [12:34:18]line 5.240 * 66.90 [12:34:18]line = 350.56 [12:34:18]line НДС 12% НСП 1% [12:34:18]line > о реализуемом товаре [12:34:18]line ОКРУГЛЕНИЕ: -0.56 [12:34:18]line ИТОГО: 350.00 [12:34:18]line Внесено: 350.00 [12:34:18]line СДАЧА: 0.00 [12:34:18]line НСП 1% : 3.10 [12:34:18]line НДС 12% : 37.23 [12:34:18]line Наличными: 350.00 [12:34:18]line Безнал.: 0.00 [12:34:18]line Место: АЗС № 78 "Партнер Нефть" [12:34:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:34:18]line СНО: Общий режим [12:34:18]line Чек 99 21.10.2024 12:34 [12:34:18]line Смена: 115 ФФД: 1.0 [12:34:19]line ЗНМ: 0300000137 [12:34:19]line РНМ: 0000000000186857 [12:34:19]line Версия ККМ: v1.0 [12:34:19]line ФМ: 0000000002094219 [12:34:19]line ФД: 30602 [12:34:19]line ФПД: 201837082884675 [12:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30602&fm=201837082884675&tin=02508201610067®Number=0000000000186857&sum=35000 [12:34:19]OFD Sender: Processing packet 30602 [packets to send 10, broken 9] [12:34:19]ProducePacketName [12:34:19]name=ofd_packets/00030602 [12:34:19]OFD Sender: To server: pG, [12:34:19]CommunicateWithHost lk.salyk.kg:30040 [12:34:19]ConnectInit lk.salyk.kg [12:34:19]written 0, free lines is 4095 [12:34:19]Connected sock=10 [12:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 04 37 07 01 5B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 63 00 00 00 F4 03 04 00 4E 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 77 00 00 35 04 06 00 B7 91 DB A0 BA 43 95 CA 19 27 AF D8 71 84 [12:34:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6B D5 47 00 3D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8A 77 00 00 F4 03 04 00 CE F4 15 67 B6 04 01 00 00 63 C2 0E 07 CA 89 2B 0C [12:34:19]CommunicateWithHost err = 0 [12:34:19]CheckOFDResponse [12:34:19]1017 (14) - 77093643461234 [12:34:19]1041 (16) - 0000000002094219 [12:34:19]1040 (4) - 30602 [12:34:19]1012 (4) - 21.10.2024 06:29 [12:34:19]1206 (1) - 0 [12:34:19]OFD Sender: Remove packet 30602 [12:34:19]ProducePacketName [12:34:19]name=ofd_packets/00030602 [12:34:19]NVStorageDeleteData [12:34:19]Write to MH i2c: 01 00 00 CF 3B 0A [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: 01 07 00 CF 3B 00 00 00 00 00 F3 0C 10 [12:34:19]RasterBufferAndPrint [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]line [12:34:19]written 0, free lines is 3321 [12:34:19]MH_Cut [12:34:19]Write to MH i2c: D1 01 00 D6 3B 01 E3 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 [12:34:19]MH_I2C_Read... [12:34:19]Read from MH i2c: D1 01 00 D6 3B 00 E2 [12:34:19]Write to MH i2c: 01 00 00 D7 3B 12 [12:34:19]Write i2c OK [12:34:19]MH_I2C_Read... [12:34:20]OFD Sender: No OFD packet to send [12:34:20]*** Cut start [12:34:20]*** Partial cut [12:34:20]*** CUTSNS_PIN = 1 [12:34:20]*** CUTSNS_PIN = 0 [12:34:20]*** Brake cut motor [12:34:20]Read from MH i2c: 01 [12:34:20]MH_I2C_Read... [12:34:20]*** Stop cut motor [12:34:20]*** Cut end [12:34:20]Read from MH i2c: 01 07 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 FF 0F 27 [12:34:20]process_action close_receipt done [12:34:20]requested_data is exist [12:34:20]produce_requested_data [12:34:20]requested_item fm.sn is exist - process it [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 11 00 00 [12:34:20]Write to MH i2c: E2 08 00 D8 3B 80 11 00 00 00 00 00 00 8D [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:20]Read from MH i2c: E2 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 17 00 [12:34:20]MH_I2C_Read... [12:34:20]Read from MH i2c: E2 17 00 D8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [12:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:34:20]wFMCommunicate OK [12:34:20]requested_item fd.num is exist - process it [12:34:20]SAM_PROTO_GetFieldsCounters [12:34:20]wFMCommunicate request_size=4 [12:34:20]MH_SAM_APDU [12:34:20]CAPDU: 80 13 00 00 [12:34:20]Write to MH i2c: E2 08 00 D9 3B 80 13 00 00 00 00 00 00 90 [12:34:20]Write i2c OK [12:34:20]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 62 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 62 00 D9 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 77 00 00 0E 04 04 00 73 00 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 53 [12:34:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_GetFieldsCounters done [12:34:21]requested_item shift.num is exist - process it [12:34:21]requested_item shift.opened is exist - process it [12:34:21]req_shift_opened [12:34:21]FM_GetShiftState [12:34:21]SAM_PROTO_GetShiftState [12:34:21]wFMCommunicate request_size=4 [12:34:21]MH_SAM_APDU [12:34:21]CAPDU: 80 13 01 00 [12:34:21]Write to MH i2c: E2 08 00 DA 3B 80 13 01 00 00 00 00 00 92 [12:34:21]Write i2c OK [12:34:21]MH_I2C_Read... [12:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:21]Read from MH i2c: E2 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0E 00 [12:34:21]MH_I2C_Read... [12:34:21]Read from MH i2c: E2 0E 00 DA 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0E [12:34:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:34:21]wFMCommunicate OK [12:34:21]SAM_PROTO_GetShiftState done [12:34:21]FM_GetShiftState done [12:34:21]req_shift_opened done [12:34:21]requested_item shift.open_date is exist - process it [12:34:21]req_shift_open_date [12:34:21]req_shift_open_date done [12:34:21]produce_requested_data done [12:34:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30602,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:34:21]process_action_free close_receipt [12:34:21]json_value_free [12:34:21]json_value_free done [12:34:21]process_json_proto returns [12:34:21]Send response to host [12:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30602,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:34:21]free response buf [12:34:21]execute_script done [12:34:21]execute_script returns [12:34:21]free content buf [12:34:21]Sock 9.Close socket [12:34:21]Sock 9.Thread stoped [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:34]accept exits with 7 [12:36:34]New connection [12:36:34]New thread 3067489636 created [12:36:34]Thread 3067346276 joined [12:36:34]Waiting for new connection... [12:36:34] Sock 7.Parse request [12:36:34]Sock 7.Check first char [12:36:34]Sock 7.First char is OK [12:36:34]request: POST /json_proto HTTP/1.0 [12:36:34]Method: POST [12:36:34]URL: /json_proto [12:36:34]Method is POST - this is cgi request [12:36:34]url: /json_proto [12:36:34]query_string will be loaded in cgi processing [12:36:34]execute_cgi json_proto POST (null) [12:36:34]execute_cgi path=json_proto method=POST [12:36:34]POST find Content-Length [12:36:34]Host: 172.17.51.3:8080 [12:36:34]Content-Length: 688 [12:36:34]Content-Type: application/json [12:36:34] [12:36:34]POST finish read [12:36:34]Found Content-Length = 688 [12:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:34]execute_script... [12:36:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:34]POST & json_proto [12:36:34]process_json_proto [12:36:34]json parsed OK: [12:36:34]protocol is kg_v1.0 [12:36:34]action value=close_receipt [12:36:34]process_action close_receipt [12:36:34]cmd_close_receipt [12:36:34]MH_GetDate [12:36:34]Write to MH i2c: F0 00 00 DB 3B 05 [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: F0 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: F0 09 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: F0 09 00 DB 3B 00 D7 4A 16 67 04 C1 95 66 6C [12:36:34]GetLastDocTimeStamp 1729514062 [12:36:34]current date 1729514199 [12:36:34]FM_GetShiftState [12:36:34]SAM_PROTO_GetShiftState [12:36:34]wFMCommunicate request_size=4 [12:36:34]MH_SAM_APDU [12:36:34]CAPDU: 80 13 01 00 [12:36:34]Write to MH i2c: E2 08 00 DC 3B 80 13 01 00 00 00 00 00 94 [12:36:34]Write i2c OK [12:36:34]MH_I2C_Read... [12:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:34]Read from MH i2c: E2 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 0E 00 [12:36:34]MH_I2C_Read... [12:36:34]Read from MH i2c: E2 0E 00 DC 3B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 10 [12:36:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:36:34]wFMCommunicate OK [12:36:34]SAM_PROTO_GetShiftState done [12:36:34]FM_GetShiftState done [12:36:34]opened in 1729471058 [12:36:34]opened+sec_in_day 1729557458 [12:36:34]quantity*price = 400050 [12:36:34]sum+1 = 400051 [12:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 100 21.10.2024 12:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30603 ФПД: 22617199068185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30603&fm=22617199068185&tin=02508201610067®Number=0000000000186857&sum=400000 [12:36:35]StoreToDocumentArchive [12:36:35]shift 115 fd 30603 [12:36:35]save to /storage/0115/doc_00030603 [12:36:35]save last doc name /storage/0115/doc_00030603 to /storage/kkm_last_doc_name [12:36:35]save OK [12:36:35]Clear old archive folders... [12:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:36:35]tlvbuf is 01E1C940 [12:36:35]SAM_PROTO_ClearQueue [12:36:35]wFMCommunicate request_size=4 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 09 00 00 [12:36:35]Write to MH i2c: E2 08 00 E9 3B 80 09 00 00 00 00 00 00 96 [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 E9 3B 00 90 00 98 [12:36:35]RAPDU: 90 00 [12:36:35]wFMCommunicate OK [12:36:35]SAM_PROTO_ClearQueue done [12:36:35]KKMCreateOFDPacket [12:36:35]OFDProtocolAddRootSTLVToBuf [12:36:35]FM_MakeSignedData [12:36:35]FM_MakeSignedData [12:36:35]SAM_PROTO_SignData [12:36:35]wFMCommunicate request_size=4 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 0D 01 02 [12:36:35]Write to MH i2c: E2 08 00 EA 3B 80 0D 01 02 00 00 00 00 9E [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 EA 3B 00 90 00 99 [12:36:35]RAPDU: 90 00 [12:36:35]wFMCommunicate OK [12:36:35]wFMCommunicate request_size=255 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 D7 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 77 00 [12:36:35]Write to MH i2c: E2 02 01 EB 3B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 D7 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 77 00 00 00 94 [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 EB 3B 00 90 00 9A [12:36:35]RAPDU: 90 00 [12:36:35]wFMCommunicate OK [12:36:35]wFMCommunicate request_size=16 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 14 91 FA 1D C4 19 [12:36:35]Write to MH i2c: E2 13 00 EC 3B 80 0D 02 02 0B 00 00 35 04 06 00 14 91 FA 1D C4 19 00 00 8F [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 03 00 EC 3B 00 90 00 9B [12:36:35]RAPDU: 90 00 [12:36:35]wFMCommunicate OK [12:36:35]wFMCommunicate request_size=4 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 0D 03 02 [12:36:35]Write to MH i2c: E2 08 00 ED 3B 80 0D 03 02 00 00 00 00 A3 [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 0B 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 0B 00 ED 3B 00 FB A6 52 D6 8B 1B 96 D1 90 00 7A [12:36:35]RAPDU: FB A6 52 D6 8B 1B 96 D1 90 00 [12:36:35]wFMCommunicate OK [12:36:35]SAM_PROTO_SignData done [12:36:35]FM_MakeSignedData done [12:36:35]CreateOFDProtocolMessage [12:36:35]wFMCommunicate request_size=4 [12:36:35]MH_SAM_APDU [12:36:35]CAPDU: 80 11 00 00 [12:36:35]Write to MH i2c: E2 08 00 EE 3B 80 11 00 00 00 00 00 00 A3 [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:35]Read from MH i2c: E2 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 17 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: E2 17 00 EE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [12:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:36:35]wFMCommunicate OK [12:36:35]CreateOFDProtocolMessage done [12:36:35]OFDSenderStorePacket 30603 [12:36:35]StoreOFDPacket docnum=30603 [12:36:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 47 67 0D 01 3F 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 D7 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 77 00 00 35 04 06 00 14 91 FA 1D C4 19 FB A6 52 D6 8B 1B 96 D1 [12:36:35]CheckFolder [12:36:35]dirname=/storage/ofd_packets [12:36:35]CheckFolder done [12:36:35]ProducePacketName [12:36:35]name=ofd_packets/00030603 [12:36:35]NVStorageSaveData ofd_packets/00030603 [12:36:35]File name is /storage/ofd_packets/00030603 [12:36:35]Write 307 bytes [12:36:35]NVStorageSaveData done [12:36:35]OFDSenderStorePacket done [12:36:35]KKMCreateOFDPacket done [12:36:35]NVStorageSaveData kkm_last_timestamp [12:36:35]File name is /storage/kkm_last_timestamp [12:36:35]Write 4 bytes [12:36:35]NVStorageSaveData done [12:36:35]ExternCall_PrintAddStr [12:36:35]wPrintStart [12:36:35]Write to MH i2c: 01 00 00 EF 3B 2A [12:36:35]Write i2c OK [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: 01 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: 01 07 00 [12:36:35]MH_I2C_Read... [12:36:35]Read from MH i2c: 01 07 00 EF 3B 00 00 00 00 00 FF 0F 3F [12:36:35]RasterBufferAndPrint [12:36:35]line Счет N : (1)343011 [12:36:35]line ИНН: 02508201610067 [12:36:35]line Контрольно-Кассовый Чек [12:36:35]line ПРОДАЖА [12:36:35]line ТРК (МРК, ГНК) : 61 [12:36:35]line Товар: 2710194210 [12:36:35]line D-ENERGY Дт-К-2 [12:36:35]line 51.820 * 77.20 [12:36:35]line = 4000.50 [12:36:35]line НДС 12% НСП 1% [12:36:35]line > о реализуемом товаре [12:36:35]line ОКРУГЛЕНИЕ: -0.50 [12:36:35]line ИТОГО: 4000.00 [12:36:35]line Внесено: 4000.00 [12:36:35]line СДАЧА: 0.00 [12:36:35]line НСП 1% : 35.40 [12:36:35]line НДС 12% : 424.83 [12:36:35]line Наличными: 4000.00 [12:36:35]line Безнал.: 0.00 [12:36:35]line Место: АЗС № 78 "Партнер Нефть" [12:36:35]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:36:35]line СНО: Общий режим [12:36:36]line Чек 100 21.10.2024 12:36 [12:36:36]line Смена: 115 ФФД: 1.0 [12:36:36]line ЗНМ: 0300000137 [12:36:36]line РНМ: 0000000000186857 [12:36:36]line Версия ККМ: v1.0 [12:36:36]line ФМ: 0000000002094219 [12:36:36]line ФД: 30603 [12:36:36]line ФПД: 22617199068185 [12:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123639&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30603&fm=22617199068185&tin=02508201610067®Number=0000000000186857&sum=400000 [12:36:36]OFD Sender: Processing packet 30603 [packets to send 10, broken 9] [12:36:36]ProducePacketName [12:36:36]name=ofd_packets/00030603 [12:36:36]OFD Sender: To server: pG, [12:36:36]CommunicateWithHost lk.salyk.kg:30040 [12:36:36]ConnectInit lk.salyk.kg [12:36:36]written 0, free lines is 4095 [12:36:36]Connected sock=10 [12:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 47 67 0D 01 3F 05 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 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 D7 4A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 77 00 00 35 04 06 00 14 91 FA 1D C4 19 FB A6 52 D6 8B 1B 96 D1 [12:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 67 47 00 BD D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8B 77 00 00 F4 03 04 00 57 F5 15 67 B6 04 01 00 00 8B 7B BB 4F 9D C4 7C DB [12:36:36]CommunicateWithHost err = 0 [12:36:36]CheckOFDResponse [12:36:36]1017 (14) - 77093643461234 [12:36:36]1041 (16) - 0000000002094219 [12:36:36]1040 (4) - 30603 [12:36:36]1012 (4) - 21.10.2024 06:31 [12:36:36]1206 (1) - 0 [12:36:36]OFD Sender: Remove packet 30603 [12:36:36]ProducePacketName [12:36:36]name=ofd_packets/00030603 [12:36:36]NVStorageDeleteData [12:36:36]Write to MH i2c: 01 00 00 1A 3C 56 [12:36:36]Write i2c OK [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: 01 [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: 01 07 00 [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: 01 07 00 1A 3C 00 00 00 00 00 F7 0C 60 [12:36:36]RasterBufferAndPrint [12:36:36]line [12:36:36]line [12:36:36]line [12:36:36]line [12:36:36]line [12:36:36]written 0, free lines is 3326 [12:36:36]MH_Cut [12:36:36]Write to MH i2c: D1 01 00 21 3C 01 2F [12:36:36]Write i2c OK [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: D1 [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: D1 01 00 [12:36:36]MH_I2C_Read... [12:36:36]Read from MH i2c: D1 01 00 21 3C 00 2E [12:36:36]Write to MH i2c: 01 00 00 22 3C 5E [12:36:36]Write i2c OK [12:36:36]MH_I2C_Read... [12:36:37]OFD Sender: No OFD packet to send [12:36:37]*** Cut start [12:36:37]*** Partial cut [12:36:37]*** CUTSNS_PIN = 1 [12:36:37]*** CUTSNS_PIN = 0 [12:36:37]*** Brake cut motor [12:36:38]Read from MH i2c: 01 [12:36:38]MH_I2C_Read... [12:36:38]*** Stop cut motor [12:36:38]*** Cut end [12:36:38]Read from MH i2c: 01 07 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: 01 07 00 22 3C 00 00 00 00 00 FF 0F 73 [12:36:38]process_action close_receipt done [12:36:38]requested_data is exist [12:36:38]produce_requested_data [12:36:38]requested_item fm.sn is exist - process it [12:36:38]wFMCommunicate request_size=4 [12:36:38]MH_SAM_APDU [12:36:38]CAPDU: 80 11 00 00 [12:36:38]Write to MH i2c: E2 08 00 23 3C 80 11 00 00 00 00 00 00 D9 [12:36:38]Write i2c OK [12:36:38]MH_I2C_Read... [12:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:38]Read from MH i2c: E2 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 17 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 17 00 23 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [12:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:36:38]wFMCommunicate OK [12:36:38]requested_item fd.num is exist - process it [12:36:38]SAM_PROTO_GetFieldsCounters [12:36:38]wFMCommunicate request_size=4 [12:36:38]MH_SAM_APDU [12:36:38]CAPDU: 80 13 00 00 [12:36:38]Write to MH i2c: E2 08 00 24 3C 80 13 00 00 00 00 00 00 DC [12:36:38]Write i2c OK [12:36:38]MH_I2C_Read... [12:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:38]Read from MH i2c: E2 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 62 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 62 00 24 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 77 00 00 0E 04 04 00 73 00 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 A3 [12:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:38]wFMCommunicate OK [12:36:38]SAM_PROTO_GetFieldsCounters done [12:36:38]requested_item shift.num is exist - process it [12:36:38]requested_item shift.opened is exist - process it [12:36:38]req_shift_opened [12:36:38]FM_GetShiftState [12:36:38]SAM_PROTO_GetShiftState [12:36:38]wFMCommunicate request_size=4 [12:36:38]MH_SAM_APDU [12:36:38]CAPDU: 80 13 01 00 [12:36:38]Write to MH i2c: E2 08 00 25 3C 80 13 01 00 00 00 00 00 DE [12:36:38]Write i2c OK [12:36:38]MH_I2C_Read... [12:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:38]Read from MH i2c: E2 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 0E 00 [12:36:38]MH_I2C_Read... [12:36:38]Read from MH i2c: E2 0E 00 25 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5A [12:36:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:36:38]wFMCommunicate OK [12:36:38]SAM_PROTO_GetShiftState done [12:36:38]FM_GetShiftState done [12:36:38]req_shift_opened done [12:36:38]requested_item shift.open_date is exist - process it [12:36:38]req_shift_open_date [12:36:38]req_shift_open_date done [12:36:38]produce_requested_data done [12:36:38]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30603,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:36:38]process_action_free close_receipt [12:36:38]json_value_free [12:36:38]json_value_free done [12:36:38]process_json_proto returns [12:36:38]Send response to host [12:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30603,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:36:38]free response buf [12:36:38]execute_script done [12:36:38]execute_script returns [12:36:38]free content buf [12:36:38]Sock 7.Close socket [12:36:38]Sock 7.Thread stoped [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:19]accept exits with 9 [12:41:19]New connection [12:41:19]New thread 3067346276 created [12:41:19]Thread 3067489636 joined [12:41:19]Waiting for new connection... [12:41:19] Sock 9.Parse request [12:41:19]Sock 9.Check first char [12:41:19]Sock 9.First char is OK [12:41:19]request: POST /json_proto HTTP/1.0 [12:41:19]Method: POST [12:41:19]URL: /json_proto [12:41:19]Method is POST - this is cgi request [12:41:19]url: /json_proto [12:41:19]query_string will be loaded in cgi processing [12:41:19]execute_cgi json_proto POST (null) [12:41:19]execute_cgi path=json_proto method=POST [12:41:19]POST find Content-Length [12:41:19]Host: 172.17.51.3:8080 [12:41:19]Content-Length: 792 [12:41:19]Content-Type: application/json [12:41:19] [12:41:19]POST finish read [12:41:19]Found Content-Length = 792 [12:41:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:19]execute_script... [12:41:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:19]POST & json_proto [12:41:19]process_json_proto [12:41:19]json parsed OK: [12:41:19]protocol is kg_v1.0 [12:41:19]action value=close_receipt [12:41:19]process_action close_receipt [12:41:19]cmd_close_receipt [12:41:19]MH_GetDate [12:41:19]Write to MH i2c: F0 00 00 26 3C 51 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 09 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: F0 09 00 26 3C 00 F4 4B 16 67 04 C1 95 66 D6 [12:41:19]GetLastDocTimeStamp 1729514199 [12:41:19]current date 1729514484 [12:41:19]FM_GetShiftState [12:41:19]SAM_PROTO_GetShiftState [12:41:19]wFMCommunicate request_size=4 [12:41:19]MH_SAM_APDU [12:41:19]CAPDU: 80 13 01 00 [12:41:19]Write to MH i2c: E2 08 00 27 3C 80 13 01 00 00 00 00 00 E0 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:19]Read from MH i2c: E2 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0E 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: E2 0E 00 27 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5C [12:41:19]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:41:19]wFMCommunicate OK [12:41:19]SAM_PROTO_GetShiftState done [12:41:19]FM_GetShiftState done [12:41:19]opened in 1729471058 [12:41:19]opened+sec_in_day 1729557458 [12:41:19]quantity*price = 0 [12:41:19]sum+1 = 1 [12:41:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 101 21.10.2024 12:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31055 ФМ: 0000000002094219 ФД: 30604 ФПД: 272270482788715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124124&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30604&fm=272270482788715&tin=02508201610067®Number=0000000000186857&sum=0 [12:41:21]StoreToDocumentArchive [12:41:21]shift 115 fd 30604 [12:41:21]save to /storage/0115/doc_00030604 [12:41:21]save last doc name /storage/0115/doc_00030604 to /storage/kkm_last_doc_name [12:41:21]save OK [12:41:21]Clear old archive folders... [12:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:21]tlvbuf is 01DF66B0 [12:41:21]SAM_PROTO_ClearQueue [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 09 00 00 [12:41:21]Write to MH i2c: E2 08 00 34 3C 80 09 00 00 00 00 00 00 E2 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 34 3C 00 90 00 E4 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_ClearQueue done [12:41:21]KKMCreateOFDPacket [12:41:21]OFDProtocolAddRootSTLVToBuf [12:41:21]FM_MakeSignedData [12:41:21]FM_MakeSignedData [12:41:21]SAM_PROTO_SignData [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 01 02 [12:41:21]Write to MH i2c: E2 08 00 35 3C 80 0D 01 02 00 00 00 00 EA [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 35 3C 00 90 00 E5 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]wFMCommunicate request_size=255 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F4 4B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 77 00 00 35 04 06 00 F7 [12:41:21]Write to MH i2c: E2 02 01 36 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F4 4B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 77 00 00 35 04 06 00 F7 00 00 9C [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 36 3C 00 90 00 E6 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]wFMCommunicate request_size=10 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 02 02 05 A0 E9 68 D1 6B [12:41:21]Write to MH i2c: E2 0D 00 37 3C 80 0D 02 02 05 00 A0 E9 68 D1 6B 00 00 24 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 03 00 37 3C 00 90 00 E7 [12:41:21]RAPDU: 90 00 [12:41:21]wFMCommunicate OK [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 0D 03 02 [12:41:21]Write to MH i2c: E2 08 00 38 3C 80 0D 03 02 00 00 00 00 EF [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0B 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0B 00 38 3C 00 9B D9 38 05 A5 70 CE C9 90 00 4D [12:41:21]RAPDU: 9B D9 38 05 A5 70 CE C9 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_SignData done [12:41:21]FM_MakeSignedData done [12:41:21]CreateOFDProtocolMessage [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 11 00 00 [12:41:21]Write to MH i2c: E2 08 00 39 3C 80 11 00 00 00 00 00 00 EF [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 17 00 39 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [12:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:21]wFMCommunicate OK [12:41:21]CreateOFDProtocolMessage done [12:41:21]OFDSenderStorePacket 30604 [12:41:21]StoreOFDPacket docnum=30604 [12:41:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 64 31 07 01 4E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F4 4B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 77 00 00 35 04 06 00 F7 A0 E9 68 D1 6B 9B D9 38 05 A5 70 CE C9 [12:41:21]CheckFolder [12:41:21]dirname=/storage/ofd_packets [12:41:21]CheckFolder done [12:41:21]ProducePacketName [12:41:21]name=ofd_packets/00030604 [12:41:21]NVStorageSaveData ofd_packets/00030604 [12:41:21]File name is /storage/ofd_packets/00030604 [12:41:21]Write 301 bytes [12:41:21]NVStorageSaveData done [12:41:21]OFDSenderStorePacket done [12:41:21]KKMCreateOFDPacket done [12:41:21]NVStorageSaveData kkm_last_timestamp [12:41:21]File name is /storage/kkm_last_timestamp [12:41:21]Write 4 bytes [12:41:21]NVStorageSaveData done [12:41:21]ExternCall_PrintAddStr [12:41:21]wPrintStart [12:41:21]Write to MH i2c: 01 00 00 3A 3C 76 [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: 01 07 00 3A 3C 00 00 00 00 00 FF 0F 8B [12:41:21]RasterBufferAndPrint [12:41:21]line Счет N : (1)343012 [12:41:21]line ИНН: 02508201610067 [12:41:21]line Контрольно-Кассовый Чек [12:41:21]line ПРОДАЖА [12:41:21]line ТРК (МРК, ГНК) : 42 [12:41:21]line Товар: 2710124500 [12:41:21]line Аи-95-К-3 [12:41:21]line 50.000 * 0.00 [12:41:21]line = 0.00 [12:41:21]line НДС 12% НСП 1% [12:41:21]line > о реализуемом товаре [12:41:21]line ИТОГО: 0.00 [12:41:21]line НСП 1% : 0.00 [12:41:21]line НДС 12% : 0.00 [12:41:21]line Наличными: 0.00 [12:41:21]line Безнал.: 0.00 [12:41:21]line Место: АЗС № 78 "Партнер Нефть" [12:41:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:41:21]line СНО: Общий режим [12:41:21]line Чек 101 21.10.2024 12:41 [12:41:21]line Смена: 115 ФФД: 1.0 [12:41:21]line ЗНМ: 0300000137 [12:41:21]line РНМ: 0000000000186857 [12:41:21]line Версия ККМ: v1.0 [12:41:21]line Талоны: Топливная Карта [12:41:21]line 31055 [12:41:21]line ФМ: 0000000002094219 [12:41:21]line ФД: 30604 [12:41:21]line ФПД: 272270482788715 [12:41:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124124&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30604&fm=272270482788715&tin=02508201610067®Number=0000000000186857&sum=0 [12:41:21]OFD Sender: Processing packet 30604 [packets to send 10, broken 9] [12:41:21]ProducePacketName [12:41:21]name=ofd_packets/00030604 [12:41:21]OFD Sender: To server: pG, [12:41:21]CommunicateWithHost lk.salyk.kg:30040 [12:41:21]ConnectInit lk.salyk.kg [12:41:21]written 0, free lines is 4095 [12:41:21]Connected sock=10 [12:41:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 64 31 07 01 4E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 F4 4B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 77 00 00 35 04 06 00 F7 A0 E9 68 D1 6B 9B D9 38 05 A5 70 CE C9 [12:41:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B5 D3 47 00 0F 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8C 77 00 00 F4 03 04 00 75 F6 15 67 B6 04 01 00 00 1A A0 C4 98 1F 4E 35 FC [12:41:22]CommunicateWithHost err = 0 [12:41:22]CheckOFDResponse [12:41:22]1017 (14) - 77093643461234 [12:41:22]1041 (16) - 0000000002094219 [12:41:22]1040 (4) - 30604 [12:41:22]1012 (4) - 21.10.2024 06:36 [12:41:22]1206 (1) - 0 [12:41:22]OFD Sender: Remove packet 30604 [12:41:22]ProducePacketName [12:41:22]name=ofd_packets/00030604 [12:41:22]NVStorageDeleteData [12:41:22]Write to MH i2c: 01 00 00 64 3C A0 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: 01 07 00 64 3C 00 00 00 00 00 FA 0C AD [12:41:22]RasterBufferAndPrint [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]line [12:41:22]written 0, free lines is 3328 [12:41:22]MH_Cut [12:41:22]Write to MH i2c: D1 01 00 6B 3C 01 79 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: D1 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: D1 01 00 [12:41:22]MH_I2C_Read... [12:41:22]Read from MH i2c: D1 01 00 6B 3C 00 78 [12:41:22]Write to MH i2c: 01 00 00 6C 3C A8 [12:41:22]Write i2c OK [12:41:22]MH_I2C_Read... [12:41:22]OFD Sender: No OFD packet to send [12:41:23]*** Cut start [12:41:23]*** Partial cut [12:41:23]*** CUTSNS_PIN = 1 [12:41:23]*** CUTSNS_PIN = 0 [12:41:23]*** Brake cut motor [12:41:23]Read from MH i2c: 01 [12:41:23]MH_I2C_Read... [12:41:23]*** Stop cut motor [12:41:23]*** Cut end [12:41:23]Read from MH i2c: 01 07 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: 01 07 00 6C 3C 00 00 00 00 00 FF 0F BD [12:41:23]process_action close_receipt done [12:41:23]requested_data is exist [12:41:23]produce_requested_data [12:41:23]requested_item fm.sn is exist - process it [12:41:23]wFMCommunicate request_size=4 [12:41:23]MH_SAM_APDU [12:41:23]CAPDU: 80 11 00 00 [12:41:23]Write to MH i2c: E2 08 00 6D 3C 80 11 00 00 00 00 00 00 23 [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:23]Read from MH i2c: E2 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 17 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 17 00 6D 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [12:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:41:23]wFMCommunicate OK [12:41:23]requested_item fd.num is exist - process it [12:41:23]SAM_PROTO_GetFieldsCounters [12:41:23]wFMCommunicate request_size=4 [12:41:23]MH_SAM_APDU [12:41:23]CAPDU: 80 13 00 00 [12:41:23]Write to MH i2c: E2 08 00 6E 3C 80 13 00 00 00 00 00 00 26 [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:23]Read from MH i2c: E2 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 62 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 62 00 6E 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 77 00 00 0E 04 04 00 73 00 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 F1 [12:41:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8C 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:23]wFMCommunicate OK [12:41:23]SAM_PROTO_GetFieldsCounters done [12:41:23]requested_item shift.num is exist - process it [12:41:23]requested_item shift.opened is exist - process it [12:41:23]req_shift_opened [12:41:23]FM_GetShiftState [12:41:23]SAM_PROTO_GetShiftState [12:41:23]wFMCommunicate request_size=4 [12:41:23]MH_SAM_APDU [12:41:23]CAPDU: 80 13 01 00 [12:41:23]Write to MH i2c: E2 08 00 6F 3C 80 13 01 00 00 00 00 00 28 [12:41:23]Write i2c OK [12:41:23]MH_I2C_Read... [12:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:23]Read from MH i2c: E2 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 0E 00 [12:41:23]MH_I2C_Read... [12:41:23]Read from MH i2c: E2 0E 00 6F 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A4 [12:41:23]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:41:23]wFMCommunicate OK [12:41:23]SAM_PROTO_GetShiftState done [12:41:23]FM_GetShiftState done [12:41:23]req_shift_opened done [12:41:23]requested_item shift.open_date is exist - process it [12:41:23]req_shift_open_date [12:41:23]req_shift_open_date done [12:41:23]produce_requested_data done [12:41:23]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30604,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:41:23]process_action_free close_receipt [12:41:23]json_value_free [12:41:23]json_value_free done [12:41:23]process_json_proto returns [12:41:23]Send response to host [12:41:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30604,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:41:23]free response buf [12:41:23]execute_script done [12:41:23]execute_script returns [12:41:23]free content buf [12:41:23]Sock 9.Close socket [12:41:23]Sock 9.Thread stoped [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: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: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:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:35]accept exits with 7 [12:49:35]New connection [12:49:35]New thread 3067489636 created [12:49:35]Thread 3067346276 joined [12:49:35]Waiting for new connection... [12:49:35] Sock 7.Parse request [12:49:35]Sock 7.Check first char [12:49:35]Sock 7.First char is OK [12:49:35]request: POST /json_proto HTTP/1.0 [12:49:35]Method: POST [12:49:35]URL: /json_proto [12:49:35]Method is POST - this is cgi request [12:49:35]url: /json_proto [12:49:35]query_string will be loaded in cgi processing [12:49:35]execute_cgi json_proto POST (null) [12:49:35]execute_cgi path=json_proto method=POST [12:49:35]POST find Content-Length [12:49:35]Host: 172.17.51.3:8080 [12:49:35]Content-Length: 682 [12:49:35]Content-Type: application/json [12:49:35] [12:49:35]POST finish read [12:49:35]Found Content-Length = 682 [12:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:35]execute_script... [12:49:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:35]POST & json_proto [12:49:35]process_json_proto [12:49:35]json parsed OK: [12:49:35]protocol is kg_v1.0 [12:49:35]action value=close_receipt [12:49:35]process_action close_receipt [12:49:35]cmd_close_receipt [12:49:35]MH_GetDate [12:49:35]Write to MH i2c: F0 00 00 70 3C 9B [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 09 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: F0 09 00 70 3C 00 E4 4D 16 67 04 C1 95 66 12 [12:49:35]GetLastDocTimeStamp 1729514484 [12:49:35]current date 1729514980 [12:49:35]FM_GetShiftState [12:49:35]SAM_PROTO_GetShiftState [12:49:35]wFMCommunicate request_size=4 [12:49:35]MH_SAM_APDU [12:49:35]CAPDU: 80 13 01 00 [12:49:35]Write to MH i2c: E2 08 00 71 3C 80 13 01 00 00 00 00 00 2A [12:49:35]Write i2c OK [12:49:35]MH_I2C_Read... [12:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:35]Read from MH i2c: E2 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 [12:49:35]MH_I2C_Read... [12:49:35]Read from MH i2c: E2 0E 00 71 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A6 [12:49:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:49:35]wFMCommunicate OK [12:49:35]SAM_PROTO_GetShiftState done [12:49:35]FM_GetShiftState done [12:49:35]opened in 1729471058 [12:49:35]opened+sec_in_day 1729557458 [12:49:35]quantity*price = 200031 [12:49:35]sum+1 = 200032 [12:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 102 21.10.2024 12:49 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30605 ФПД: 88592752921371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124940&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30605&fm=88592752921371&tin=02508201610067®Number=0000000000186857&sum=200000 [12:49:36]StoreToDocumentArchive [12:49:36]shift 115 fd 30605 [12:49:36]save to /storage/0115/doc_00030605 [12:49:36]save last doc name /storage/0115/doc_00030605 to /storage/kkm_last_doc_name [12:49:36]save OK [12:49:36]Clear old archive folders... [12:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:36]tlvbuf is 01DB8E70 [12:49:36]SAM_PROTO_ClearQueue [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 09 00 00 [12:49:36]Write to MH i2c: E2 08 00 7E 3C 80 09 00 00 00 00 00 00 2C [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 7E 3C 00 90 00 2E [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_ClearQueue done [12:49:36]KKMCreateOFDPacket [12:49:36]OFDProtocolAddRootSTLVToBuf [12:49:36]FM_MakeSignedData [12:49:36]FM_MakeSignedData [12:49:36]SAM_PROTO_SignData [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 01 02 [12:49:36]Write to MH i2c: E2 08 00 7F 3C 80 0D 01 02 00 00 00 00 34 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 7F 3C 00 90 00 2F [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=255 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E4 4D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 77 00 00 35 04 06 00 50 [12:49:36]Write to MH i2c: E2 02 01 80 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E4 4D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 77 00 00 35 04 06 00 50 00 00 E2 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 80 3C 00 90 00 30 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=10 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 02 02 05 93 1B 91 4B 1B [12:49:36]Write to MH i2c: E2 0D 00 81 3C 80 0D 02 02 05 00 93 1B 91 4B 1B 00 00 E6 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 03 00 81 3C 00 90 00 31 [12:49:36]RAPDU: 90 00 [12:49:36]wFMCommunicate OK [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 0D 03 02 [12:49:36]Write to MH i2c: E2 08 00 82 3C 80 0D 03 02 00 00 00 00 39 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 0B 00 82 3C 00 60 6F 69 F6 A6 7B C9 64 90 00 B6 [12:49:36]RAPDU: 60 6F 69 F6 A6 7B C9 64 90 00 [12:49:36]wFMCommunicate OK [12:49:36]SAM_PROTO_SignData done [12:49:36]FM_MakeSignedData done [12:49:36]CreateOFDProtocolMessage [12:49:36]wFMCommunicate request_size=4 [12:49:36]MH_SAM_APDU [12:49:36]CAPDU: 80 11 00 00 [12:49:36]Write to MH i2c: E2 08 00 83 3C 80 11 00 00 00 00 00 00 39 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:36]Read from MH i2c: E2 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: E2 17 00 83 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [12:49:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:49:36]wFMCommunicate OK [12:49:36]CreateOFDProtocolMessage done [12:49:36]OFDSenderStorePacket 30605 [12:49:36]StoreOFDPacket docnum=30605 [12:49:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD B9 07 01 EF 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E4 4D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 77 00 00 35 04 06 00 50 93 1B 91 4B 1B 60 6F 69 F6 A6 7B C9 64 [12:49:36]CheckFolder [12:49:36]dirname=/storage/ofd_packets [12:49:36]CheckFolder done [12:49:36]ProducePacketName [12:49:36]name=ofd_packets/00030605 [12:49:36]NVStorageSaveData ofd_packets/00030605 [12:49:36]File name is /storage/ofd_packets/00030605 [12:49:36]Write 301 bytes [12:49:36]NVStorageSaveData done [12:49:36]OFDSenderStorePacket done [12:49:36]KKMCreateOFDPacket done [12:49:36]NVStorageSaveData kkm_last_timestamp [12:49:36]File name is /storage/kkm_last_timestamp [12:49:36]Write 4 bytes [12:49:36]NVStorageSaveData done [12:49:36]ExternCall_PrintAddStr [12:49:36]wPrintStart [12:49:36]Write to MH i2c: 01 00 00 84 3C C0 [12:49:36]Write i2c OK [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 [12:49:36]MH_I2C_Read... [12:49:36]Read from MH i2c: 01 07 00 84 3C 00 00 00 00 00 FF 0F D5 [12:49:36]RasterBufferAndPrint [12:49:36]line Счет N : (1)343013 [12:49:36]line ИНН: 02508201610067 [12:49:36]line Контрольно-Кассовый Чек [12:49:36]line ПРОДАЖА [12:49:36]line ТРК (МРК, ГНК) : 33 [12:49:36]line Товар: 2710124130 [12:49:36]line Аи-92-К-2 [12:49:36]line 29.900 * 66.90 [12:49:36]line = 2000.31 [12:49:36]line НДС 12% НСП 1% [12:49:36]line > о реализуемом товаре [12:49:36]line ОКРУГЛЕНИЕ: -0.31 [12:49:36]line ИТОГО: 2000.00 [12:49:36]line Внесено: 2000.00 [12:49:36]line СДАЧА: 0.00 [12:49:36]line НСП 1% : 17.70 [12:49:36]line НДС 12% : 212.42 [12:49:36]line Наличными: 2000.00 [12:49:36]line Безнал.: 0.00 [12:49:36]line Место: АЗС № 78 "Партнер Нефть" [12:49:36]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:49:36]line СНО: Общий режим [12:49:36]line Чек 102 21.10.2024 12:49 [12:49:36]line Смена: 115 ФФД: 1.0 [12:49:36]line ЗНМ: 0300000137 [12:49:36]line РНМ: 0000000000186857 [12:49:36]line Версия ККМ: v1.0 [12:49:36]line ФМ: 0000000002094219 [12:49:36]line ФД: 30605 [12:49:36]line ФПД: 88592752921371 [12:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124940&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30605&fm=88592752921371&tin=02508201610067®Number=0000000000186857&sum=200000 [12:49:37]OFD Sender: Processing packet 30605 [packets to send 10, broken 9] [12:49:37]ProducePacketName [12:49:37]name=ofd_packets/00030605 [12:49:37]OFD Sender: To server: pG, [12:49:37]CommunicateWithHost lk.salyk.kg:30040 [12:49:37]ConnectInit lk.salyk.kg [12:49:37]written 0, free lines is 4095 [12:49:37]Connected sock=10 [12:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CD B9 07 01 EF 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 E4 4D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 77 00 00 35 04 06 00 50 93 1B 91 4B 1B 60 6F 69 F6 A6 7B C9 64 [12:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 66 50 47 00 D0 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8D 77 00 00 F4 03 04 00 64 F8 15 67 B6 04 01 00 00 BB 55 F9 BB A7 1B B4 84 [12:49:37]CommunicateWithHost err = 0 [12:49:37]CheckOFDResponse [12:49:37]1017 (14) - 77093643461234 [12:49:37]1041 (16) - 0000000002094219 [12:49:37]1040 (4) - 30605 [12:49:37]1012 (4) - 21.10.2024 06:44 [12:49:37]1206 (1) - 0 [12:49:37]OFD Sender: Remove packet 30605 [12:49:37]ProducePacketName [12:49:37]name=ofd_packets/00030605 [12:49:37]NVStorageDeleteData [12:49:37]Write to MH i2c: 01 00 00 AF 3C EB [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 07 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: 01 07 00 AF 3C 00 00 00 00 00 F7 0C F5 [12:49:37]RasterBufferAndPrint [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]line [12:49:37]written 0, free lines is 3326 [12:49:37]MH_Cut [12:49:37]Write to MH i2c: D1 01 00 B6 3C 01 C4 [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 01 00 [12:49:37]MH_I2C_Read... [12:49:37]Read from MH i2c: D1 01 00 B6 3C 00 C3 [12:49:37]Write to MH i2c: 01 00 00 B7 3C F3 [12:49:37]Write i2c OK [12:49:37]MH_I2C_Read... [12:49:38]OFD Sender: No OFD packet to send [12:49:38]*** Cut start [12:49:38]*** Partial cut [12:49:38]*** CUTSNS_PIN = 1 [12:49:38]*** CUTSNS_PIN = 0 [12:49:38]*** Brake cut motor [12:49:39]Read from MH i2c: 01 [12:49:39]MH_I2C_Read... [12:49:39]*** Stop cut motor [12:49:39]*** Cut end [12:49:39]Read from MH i2c: 01 07 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: 01 07 00 B7 3C 00 00 00 00 00 FF 0F 08 [12:49:39]process_action close_receipt done [12:49:39]requested_data is exist [12:49:39]produce_requested_data [12:49:39]requested_item fm.sn is exist - process it [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 11 00 00 [12:49:39]Write to MH i2c: E2 08 00 B8 3C 80 11 00 00 00 00 00 00 6E [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 17 00 B8 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [12:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:49:39]wFMCommunicate OK [12:49:39]requested_item fd.num is exist - process it [12:49:39]SAM_PROTO_GetFieldsCounters [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 00 00 [12:49:39]Write to MH i2c: E2 08 00 B9 3C 80 13 00 00 00 00 00 00 71 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 62 00 B9 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 77 00 00 0E 04 04 00 73 00 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 40 [12:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetFieldsCounters done [12:49:39]requested_item shift.num is exist - process it [12:49:39]requested_item shift.opened is exist - process it [12:49:39]req_shift_opened [12:49:39]FM_GetShiftState [12:49:39]SAM_PROTO_GetShiftState [12:49:39]wFMCommunicate request_size=4 [12:49:39]MH_SAM_APDU [12:49:39]CAPDU: 80 13 01 00 [12:49:39]Write to MH i2c: E2 08 00 BA 3C 80 13 01 00 00 00 00 00 73 [12:49:39]Write i2c OK [12:49:39]MH_I2C_Read... [12:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:39]Read from MH i2c: E2 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 [12:49:39]MH_I2C_Read... [12:49:39]Read from MH i2c: E2 0E 00 BA 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EF [12:49:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:49:39]wFMCommunicate OK [12:49:39]SAM_PROTO_GetShiftState done [12:49:39]FM_GetShiftState done [12:49:39]req_shift_opened done [12:49:39]requested_item shift.open_date is exist - process it [12:49:39]req_shift_open_date [12:49:39]req_shift_open_date done [12:49:39]produce_requested_data done [12:49:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30605,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:49:39]process_action_free close_receipt [12:49:39]json_value_free [12:49:39]json_value_free done [12:49:39]process_json_proto returns [12:49:39]Send response to host [12:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30605,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:49:39]free response buf [12:49:39]execute_script done [12:49:39]execute_script returns [12:49:39]free content buf [12:49:39]Sock 7.Close socket [12:49:39]Sock 7.Thread stoped [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:42]accept exits with 9 [12:50:42]New connection [12:50:42]New thread 3067346276 created [12:50:42]Thread 3067489636 joined [12:50:42]Waiting for new connection... [12:50:42] Sock 9.Parse request [12:50:42]Sock 9.Check first char [12:50:42]Sock 9.First char is OK [12:50:42]request: POST /json_proto HTTP/1.0 [12:50:42]Method: POST [12:50:42]URL: /json_proto [12:50:42]Method is POST - this is cgi request [12:50:42]url: /json_proto [12:50:42]query_string will be loaded in cgi processing [12:50:42]execute_cgi json_proto POST (null) [12:50:42]execute_cgi path=json_proto method=POST [12:50:42]POST find Content-Length [12:50:42]Host: 172.17.51.3:8080 [12:50:42]Content-Length: 677 [12:50:42]Content-Type: application/json [12:50:42] [12:50:42]POST finish read [12:50:42]Found Content-Length = 677 [12:50:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:42]execute_script... [12:50:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:42]POST & json_proto [12:50:42]process_json_proto [12:50:42]json parsed OK: [12:50:42]protocol is kg_v1.0 [12:50:42]action value=close_receipt [12:50:42]process_action close_receipt [12:50:42]cmd_close_receipt [12:50:42]MH_GetDate [12:50:42]Write to MH i2c: F0 00 00 BB 3C E6 [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: F0 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: F0 09 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: F0 09 00 BB 3C 00 26 4E 16 67 04 C1 95 66 A0 [12:50:42]GetLastDocTimeStamp 1729514980 [12:50:42]current date 1729515046 [12:50:42]FM_GetShiftState [12:50:42]SAM_PROTO_GetShiftState [12:50:42]wFMCommunicate request_size=4 [12:50:42]MH_SAM_APDU [12:50:42]CAPDU: 80 13 01 00 [12:50:42]Write to MH i2c: E2 08 00 BC 3C 80 13 01 00 00 00 00 00 75 [12:50:42]Write i2c OK [12:50:42]MH_I2C_Read... [12:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:42]Read from MH i2c: E2 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 0E 00 [12:50:42]MH_I2C_Read... [12:50:42]Read from MH i2c: E2 0E 00 BC 3C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F1 [12:50:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:50:42]wFMCommunicate OK [12:50:42]SAM_PROTO_GetShiftState done [12:50:42]FM_GetShiftState done [12:50:42]opened in 1729471058 [12:50:42]opened+sec_in_day 1729557458 [12:50:42]quantity*price = 30038 [12:50:42]sum+1 = 30039 [12:50:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 103 21.10.2024 12:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30606 ФПД: 260132044246634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125046&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30606&fm=260132044246634&tin=02508201610067®Number=0000000000186857&sum=30000 [12:50:43]StoreToDocumentArchive [12:50:43]shift 115 fd 30606 [12:50:43]save to /storage/0115/doc_00030606 [12:50:43]save last doc name /storage/0115/doc_00030606 to /storage/kkm_last_doc_name [12:50:43]save OK [12:50:43]Clear old archive folders... [12:50:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:43]tlvbuf is 01E063A0 [12:50:43]SAM_PROTO_ClearQueue [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 09 00 00 [12:50:43]Write to MH i2c: E2 08 00 C9 3C 80 09 00 00 00 00 00 00 77 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 C9 3C 00 90 00 79 [12:50:43]RAPDU: 90 00 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_ClearQueue done [12:50:43]KKMCreateOFDPacket [12:50:43]OFDProtocolAddRootSTLVToBuf [12:50:43]FM_MakeSignedData [12:50:43]FM_MakeSignedData [12:50:43]SAM_PROTO_SignData [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 0D 01 02 [12:50:43]Write to MH i2c: E2 08 00 CA 3C 80 0D 01 02 00 00 00 00 7F [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 CA 3C 00 90 00 7A [12:50:43]RAPDU: 90 00 [12:50:43]wFMCommunicate OK [12:50:43]wFMCommunicate request_size=255 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 26 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 77 00 00 35 04 06 00 EC [12:50:43]Write to MH i2c: E2 02 01 CB 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 26 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 77 00 00 35 04 06 00 EC 00 00 C0 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 CB 3C 00 90 00 7B [12:50:43]RAPDU: 90 00 [12:50:43]wFMCommunicate OK [12:50:43]wFMCommunicate request_size=10 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 0D 02 02 05 96 B6 17 8E 6A [12:50:43]Write to MH i2c: E2 0D 00 CC 3C 80 0D 02 02 05 00 96 B6 17 8E 6A 00 00 E7 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 03 00 CC 3C 00 90 00 7C [12:50:43]RAPDU: 90 00 [12:50:43]wFMCommunicate OK [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 0D 03 02 [12:50:43]Write to MH i2c: E2 08 00 CD 3C 80 0D 03 02 00 00 00 00 84 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0B 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 0B 00 CD 3C 00 FE AF 9B 6C C9 3A 9F 96 90 00 71 [12:50:43]RAPDU: FE AF 9B 6C C9 3A 9F 96 90 00 [12:50:43]wFMCommunicate OK [12:50:43]SAM_PROTO_SignData done [12:50:43]FM_MakeSignedData done [12:50:43]CreateOFDProtocolMessage [12:50:43]wFMCommunicate request_size=4 [12:50:43]MH_SAM_APDU [12:50:43]CAPDU: 80 11 00 00 [12:50:43]Write to MH i2c: E2 08 00 CE 3C 80 11 00 00 00 00 00 00 84 [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:43]Read from MH i2c: E2 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 17 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: E2 17 00 CE 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [12:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:50:43]wFMCommunicate OK [12:50:43]CreateOFDProtocolMessage done [12:50:43]OFDSenderStorePacket 30606 [12:50:43]StoreOFDPacket docnum=30606 [12:50:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 C0 07 01 C4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 26 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 77 00 00 35 04 06 00 EC 96 B6 17 8E 6A FE AF 9B 6C C9 3A 9F 96 [12:50:43]CheckFolder [12:50:43]dirname=/storage/ofd_packets [12:50:43]CheckFolder done [12:50:43]ProducePacketName [12:50:43]name=ofd_packets/00030606 [12:50:43]NVStorageSaveData ofd_packets/00030606 [12:50:43]File name is /storage/ofd_packets/00030606 [12:50:43]Write 301 bytes [12:50:43]NVStorageSaveData done [12:50:43]OFDSenderStorePacket done [12:50:43]KKMCreateOFDPacket done [12:50:43]NVStorageSaveData kkm_last_timestamp [12:50:43]File name is /storage/kkm_last_timestamp [12:50:43]Write 4 bytes [12:50:43]NVStorageSaveData done [12:50:43]ExternCall_PrintAddStr [12:50:43]wPrintStart [12:50:43]Write to MH i2c: 01 00 00 CF 3C 0B [12:50:43]Write i2c OK [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 07 00 [12:50:43]MH_I2C_Read... [12:50:43]Read from MH i2c: 01 07 00 CF 3C 00 00 00 00 00 FF 0F 20 [12:50:43]RasterBufferAndPrint [12:50:43]line Счет N : (1)343014 [12:50:43]line ИНН: 02508201610067 [12:50:43]line Контрольно-Кассовый Чек [12:50:43]line ПРОДАЖА [12:50:43]line ТРК (МРК, ГНК) : 63 [12:50:43]line Товар: 2710124130 [12:50:43]line Аи-92-К-2 [12:50:43]line 4.490 * 66.90 [12:50:43]line = 300.38 [12:50:43]line НДС 12% НСП 1% [12:50:43]line > о реализуемом товаре [12:50:43]line ОКРУГЛЕНИЕ: -0.38 [12:50:43]line ИТОГО: 300.00 [12:50:43]line Внесено: 300.00 [12:50:43]line СДАЧА: 0.00 [12:50:43]line НСП 1% : 2.66 [12:50:43]line НДС 12% : 31.90 [12:50:43]line Наличными: 300.00 [12:50:43]line Безнал.: 0.00 [12:50:43]line Место: АЗС № 78 "Партнер Нефть" [12:50:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:50:43]line СНО: Общий режим [12:50:43]line Чек 103 21.10.2024 12:50 [12:50:43]line Смена: 115 ФФД: 1.0 [12:50:43]line ЗНМ: 0300000137 [12:50:43]line РНМ: 0000000000186857 [12:50:43]line Версия ККМ: v1.0 [12:50:43]line ФМ: 0000000002094219 [12:50:43]line ФД: 30606 [12:50:43]line ФПД: 260132044246634 [12:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125046&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30606&fm=260132044246634&tin=02508201610067®Number=0000000000186857&sum=30000 [12:50:44]OFD Sender: Processing packet 30606 [packets to send 10, broken 9] [12:50:44]ProducePacketName [12:50:44]name=ofd_packets/00030606 [12:50:44]OFD Sender: To server: pG, [12:50:44]CommunicateWithHost lk.salyk.kg:30040 [12:50:44]ConnectInit lk.salyk.kg [12:50:44]written 0, free lines is 4095 [12:50:44]Connected sock=10 [12:50:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 C0 07 01 C4 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 26 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 77 00 00 35 04 06 00 EC 96 B6 17 8E 6A FE AF 9B 6C C9 3A 9F 96 [12:50:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B9 B5 47 00 8D 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8E 77 00 00 F4 03 04 00 A7 F8 15 67 B6 04 01 00 00 AD 51 F0 64 D2 A0 DE 3B [12:50:44]CommunicateWithHost err = 0 [12:50:44]CheckOFDResponse [12:50:44]1017 (14) - 77093643461234 [12:50:44]1041 (16) - 0000000002094219 [12:50:44]1040 (4) - 30606 [12:50:44]1012 (4) - 21.10.2024 06:45 [12:50:44]1206 (1) - 0 [12:50:44]OFD Sender: Remove packet 30606 [12:50:44]ProducePacketName [12:50:44]name=ofd_packets/00030606 [12:50:44]NVStorageDeleteData [12:50:44]Write to MH i2c: 01 00 00 FA 3C 36 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: 01 07 00 FA 3C 00 00 00 00 00 F2 0C 3B [12:50:44]RasterBufferAndPrint [12:50:44]line [12:50:44]line [12:50:44]line [12:50:44]line [12:50:44]line [12:50:44]written 0, free lines is 3320 [12:50:44]MH_Cut [12:50:44]Write to MH i2c: D1 01 00 01 3D 01 10 [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: D1 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: D1 01 00 [12:50:44]MH_I2C_Read... [12:50:44]Read from MH i2c: D1 01 00 01 3D 00 0F [12:50:44]Write to MH i2c: 01 00 00 02 3D 3F [12:50:44]Write i2c OK [12:50:44]MH_I2C_Read... [12:50:44]OFD Sender: No OFD packet to send [12:50:45]*** Cut start [12:50:45]*** Partial cut [12:50:45]*** CUTSNS_PIN = 1 [12:50:45]*** CUTSNS_PIN = 0 [12:50:45]*** Brake cut motor [12:50:45]Read from MH i2c: 01 [12:50:45]MH_I2C_Read... [12:50:45]*** Stop cut motor [12:50:45]*** Cut end [12:50:45]Read from MH i2c: 01 07 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: 01 07 00 02 3D 00 00 00 00 00 FF 0F 54 [12:50:45]process_action close_receipt done [12:50:45]requested_data is exist [12:50:45]produce_requested_data [12:50:45]requested_item fm.sn is exist - process it [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 11 00 00 [12:50:45]Write to MH i2c: E2 08 00 03 3D 80 11 00 00 00 00 00 00 BA [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 17 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 17 00 03 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [12:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:50:45]wFMCommunicate OK [12:50:45]requested_item fd.num is exist - process it [12:50:45]SAM_PROTO_GetFieldsCounters [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 00 00 [12:50:45]Write to MH i2c: E2 08 00 04 3D 80 13 00 00 00 00 00 00 BD [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:45]Read from MH i2c: E2 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 62 00 [12:50:45]MH_I2C_Read... [12:50:45]Read from MH i2c: E2 62 00 04 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 77 00 00 0E 04 04 00 73 00 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 90 [12:50:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:45]wFMCommunicate OK [12:50:45]SAM_PROTO_GetFieldsCounters done [12:50:45]requested_item shift.num is exist - process it [12:50:45]requested_item shift.opened is exist - process it [12:50:45]req_shift_opened [12:50:45]FM_GetShiftState [12:50:45]SAM_PROTO_GetShiftState [12:50:45]wFMCommunicate request_size=4 [12:50:45]MH_SAM_APDU [12:50:45]CAPDU: 80 13 01 00 [12:50:45]Write to MH i2c: E2 08 00 05 3D 80 13 01 00 00 00 00 00 BF [12:50:45]Write i2c OK [12:50:45]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 05 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3B [12:50:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_GetShiftState done [12:50:46]FM_GetShiftState done [12:50:46]req_shift_opened done [12:50:46]requested_item shift.open_date is exist - process it [12:50:46]req_shift_open_date [12:50:46]req_shift_open_date done [12:50:46]produce_requested_data done [12:50:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30606,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:50:46]process_action_free close_receipt [12:50:46]json_value_free [12:50:46]json_value_free done [12:50:46]process_json_proto returns [12:50:46]Send response to host [12:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30606,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:50:46]free response buf [12:50:46]execute_script done [12:50:46]execute_script returns [12:50:46]free content buf [12:50:46]Sock 9.Close socket [12:50:46]Sock 9.Thread stoped [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:28]accept exits with 7 [12:51:28]New connection [12:51:28]New thread 3067489636 created [12:51:28]Thread 3067346276 joined [12:51:28]Waiting for new connection... [12:51:28] Sock 7.Parse request [12:51:28]Sock 7.Check first char [12:51:28]Sock 7.First char is OK [12:51:28]request: POST /json_proto HTTP/1.0 [12:51:28]Method: POST [12:51:28]URL: /json_proto [12:51:28]Method is POST - this is cgi request [12:51:28]url: /json_proto [12:51:28]query_string will be loaded in cgi processing [12:51:28]execute_cgi json_proto POST (null) [12:51:28]execute_cgi path=json_proto method=POST [12:51:28]POST find Content-Length [12:51:28]Host: 172.17.51.3:8080 [12:51:28]Content-Length: 674 [12:51:28]Content-Type: application/json [12:51:28] [12:51:28]POST finish read [12:51:28]Found Content-Length = 674 [12:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:28]execute_script... [12:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:28]POST & json_proto [12:51:28]process_json_proto [12:51:28]json parsed OK: [12:51:28]protocol is kg_v1.0 [12:51:28]action value=close_receipt [12:51:28]process_action close_receipt [12:51:28]cmd_close_receipt [12:51:28]MH_GetDate [12:51:28]Write to MH i2c: F0 00 00 06 3D 32 [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 09 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: F0 09 00 06 3D 00 55 4E 16 67 04 C1 95 66 1B [12:51:28]GetLastDocTimeStamp 1729515046 [12:51:28]current date 1729515093 [12:51:28]FM_GetShiftState [12:51:28]SAM_PROTO_GetShiftState [12:51:28]wFMCommunicate request_size=4 [12:51:28]MH_SAM_APDU [12:51:28]CAPDU: 80 13 01 00 [12:51:28]Write to MH i2c: E2 08 00 07 3D 80 13 01 00 00 00 00 00 C1 [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:28]Read from MH i2c: E2 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 0E 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 0E 00 07 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3D [12:51:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:51:28]wFMCommunicate OK [12:51:28]SAM_PROTO_GetShiftState done [12:51:28]FM_GetShiftState done [12:51:28]opened in 1729471058 [12:51:28]opened+sec_in_day 1729557458 [12:51:28]quantity*price = 50063 [12:51:28]sum+1 = 50064 [12:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 104 21.10.2024 12:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30607 ФПД: 60556310552207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125133&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30607&fm=60556310552207&tin=02508201610067®Number=0000000000186857&sum=50000 [12:51:29]StoreToDocumentArchive [12:51:29]shift 115 fd 30607 [12:51:29]save to /storage/0115/doc_00030607 [12:51:29]save last doc name /storage/0115/doc_00030607 to /storage/kkm_last_doc_name [12:51:29]save OK [12:51:29]Clear old archive folders... [12:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:29]tlvbuf is 01E31740 [12:51:29]SAM_PROTO_ClearQueue [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 09 00 00 [12:51:29]Write to MH i2c: E2 08 00 14 3D 80 09 00 00 00 00 00 00 C3 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 14 3D 00 90 00 C5 [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_ClearQueue done [12:51:29]KKMCreateOFDPacket [12:51:29]OFDProtocolAddRootSTLVToBuf [12:51:29]FM_MakeSignedData [12:51:29]FM_MakeSignedData [12:51:29]SAM_PROTO_SignData [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 01 02 [12:51:29]Write to MH i2c: E2 08 00 15 3D 80 0D 01 02 00 00 00 00 CB [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 15 3D 00 90 00 C6 [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]wFMCommunicate request_size=255 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 55 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 77 00 00 35 04 06 00 37 13 5D 61 [12:51:29]Write to MH i2c: E2 02 01 16 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 55 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 77 00 00 35 04 06 00 37 13 5D 61 00 00 E3 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]OFD Sender: No OFD packet to send [12:51:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 03 00 16 3D 00 90 00 C7 [12:51:29]RAPDU: 90 00 [12:51:29]wFMCommunicate OK [12:51:29]wFMCommunicate request_size=7 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 0D 02 02 02 1E 8F [12:51:29]Write to MH i2c: E2 0A 00 17 3D 80 0D 02 02 02 00 1E 8F 00 00 7F [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:30]Read from MH i2c: E2 03 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 03 00 17 3D 00 90 00 C8 [12:51:30]RAPDU: 90 00 [12:51:30]wFMCommunicate OK [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 0D 03 02 [12:51:30]Write to MH i2c: E2 08 00 18 3D 80 0D 03 02 00 00 00 00 D0 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0B 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 0B 00 18 3D 00 31 2E 0F 98 DB 36 36 AB 90 00 C9 [12:51:30]RAPDU: 31 2E 0F 98 DB 36 36 AB 90 00 [12:51:30]wFMCommunicate OK [12:51:30]SAM_PROTO_SignData done [12:51:30]FM_MakeSignedData done [12:51:30]CreateOFDProtocolMessage [12:51:30]wFMCommunicate request_size=4 [12:51:30]MH_SAM_APDU [12:51:30]CAPDU: 80 11 00 00 [12:51:30]Write to MH i2c: E2 08 00 19 3D 80 11 00 00 00 00 00 00 D0 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:30]Read from MH i2c: E2 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 17 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: E2 17 00 19 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1E [12:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:30]wFMCommunicate OK [12:51:30]CreateOFDProtocolMessage done [12:51:30]OFDSenderStorePacket 30607 [12:51:30]StoreOFDPacket docnum=30607 [12:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B6 D3 04 01 03 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 55 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 77 00 00 35 04 06 00 37 13 5D 61 1E 8F 31 2E 0F 98 DB 36 36 AB [12:51:30]CheckFolder [12:51:30]dirname=/storage/ofd_packets [12:51:30]CheckFolder done [12:51:30]ProducePacketName [12:51:30]name=ofd_packets/00030607 [12:51:30]NVStorageSaveData ofd_packets/00030607 [12:51:30]File name is /storage/ofd_packets/00030607 [12:51:30]Write 298 bytes [12:51:30]NVStorageSaveData done [12:51:30]OFDSenderStorePacket done [12:51:30]KKMCreateOFDPacket done [12:51:30]NVStorageSaveData kkm_last_timestamp [12:51:30]File name is /storage/kkm_last_timestamp [12:51:30]Write 4 bytes [12:51:30]NVStorageSaveData done [12:51:30]ExternCall_PrintAddStr [12:51:30]wPrintStart [12:51:30]Write to MH i2c: 01 00 00 1A 3D 57 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 1A 3D 00 00 00 00 00 FF 0F 6C [12:51:30]RasterBufferAndPrint [12:51:30]line Счет N : (1)343016 [12:51:30]line ИНН: 02508201610067 [12:51:30]line Контрольно-Кассовый Чек [12:51:30]line ПРОДАЖА [12:51:30]line ТРК (МРК, ГНК) : 64 [12:51:30]line Товар: 2710194210 [12:51:30]line ДТ-К-2 [12:51:30]line 6.570 * 76.20 [12:51:30]line = 500.63 [12:51:30]line НДС 12% НСП 1% [12:51:30]line > о реализуемом товаре [12:51:30]line ОКРУГЛЕНИЕ: -0.63 [12:51:30]line ИТОГО: 500.00 [12:51:30]line Внесено: 500.00 [12:51:30]line СДАЧА: 0.00 [12:51:30]line НСП 1% : 4.43 [12:51:30]line НДС 12% : 53.16 [12:51:30]line Наличными: 500.00 [12:51:30]line Безнал.: 0.00 [12:51:30]line Место: АЗС № 78 "Партнер Нефть" [12:51:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:51:30]line СНО: Общий режим [12:51:30]line Чек 104 21.10.2024 12:51 [12:51:30]line Смена: 115 ФФД: 1.0 [12:51:30]line ЗНМ: 0300000137 [12:51:30]line РНМ: 0000000000186857 [12:51:30]line Версия ККМ: v1.0 [12:51:30]line ФМ: 0000000002094219 [12:51:30]line ФД: 30607 [12:51:30]line ФПД: 60556310552207 [12:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125133&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30607&fm=60556310552207&tin=02508201610067®Number=0000000000186857&sum=50000 [12:51:30]OFD Sender: Processing packet 30607 [packets to send 10, broken 9] [12:51:30]ProducePacketName [12:51:30]name=ofd_packets/00030607 [12:51:30]OFD Sender: To server: pG, [12:51:30]CommunicateWithHost lk.salyk.kg:30040 [12:51:30]ConnectInit lk.salyk.kg [12:51:30]written 0, free lines is 4095 [12:51:30]Write to MH i2c: 01 00 00 45 3D 82 [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: 01 07 00 45 3D 00 00 00 00 00 E0 0C 75 [12:51:30]RasterBufferAndPrint [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]line [12:51:30]written 0, free lines is 3302 [12:51:30]MH_Cut [12:51:30]Write to MH i2c: D1 01 00 4C 3D 01 5B [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 01 00 [12:51:30]MH_I2C_Read... [12:51:30]Read from MH i2c: D1 01 00 4C 3D 00 5A [12:51:30]Write to MH i2c: 01 00 00 4D 3D 8A [12:51:30]Write i2c OK [12:51:30]MH_I2C_Read... [12:51:31]*** Cut start [12:51:31]*** Partial cut [12:51:31]*** CUTSNS_PIN = 1 [12:51:31]*** CUTSNS_PIN = 0 [12:51:31]Connected sock=11 [12:51:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B6 D3 04 01 03 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 55 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 8F 77 00 00 35 04 06 00 37 13 5D 61 1E 8F 31 2E 0F 98 DB 36 36 AB [12:51:31]*** Brake cut motor [12:51:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 24 0C 47 00 8F 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 32 30 39 34 32 31 39 10 04 04 00 8F 77 00 00 F4 03 04 00 D7 F8 15 67 B6 04 01 00 00 40 CE B4 B5 F1 28 E4 C6 [12:51:32]CommunicateWithHost err = 0 [12:51:32]CheckOFDResponse [12:51:32]1017 (14) - 77093643461234 [12:51:32]1041 (16) - 0000000002094219 [12:51:32]1040 (4) - 30607 [12:51:32]1012 (4) - 21.10.2024 06:46 [12:51:32]1206 (1) - 0 [12:51:32]OFD Sender: Remove packet 30607 [12:51:32]ProducePacketName [12:51:32]name=ofd_packets/00030607 [12:51:32]NVStorageDeleteData [12:51:32]Read from MH i2c: 01 [12:51:32]MH_I2C_Read... [12:51:32]*** Stop cut motor [12:51:32]*** Cut end [12:51:32]Read from MH i2c: 01 07 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: 01 07 00 4D 3D 00 00 00 00 00 FF 0F 9F [12:51:32]process_action close_receipt done [12:51:32]requested_data is exist [12:51:32]produce_requested_data [12:51:32]requested_item fm.sn is exist - process it [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 11 00 00 [12:51:32]Write to MH i2c: E2 08 00 4E 3D 80 11 00 00 00 00 00 00 05 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 17 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 17 00 4E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [12:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:32]wFMCommunicate OK [12:51:32]requested_item fd.num is exist - process it [12:51:32]SAM_PROTO_GetFieldsCounters [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 13 00 00 [12:51:32]Write to MH i2c: E2 08 00 4F 3D 80 13 00 00 00 00 00 00 08 [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 62 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 62 00 4F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [12:51:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 8F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:32]wFMCommunicate OK [12:51:32]SAM_PROTO_GetFieldsCounters done [12:51:32]requested_item shift.num is exist - process it [12:51:32]requested_item shift.opened is exist - process it [12:51:32]req_shift_opened [12:51:32]FM_GetShiftState [12:51:32]SAM_PROTO_GetShiftState [12:51:32]wFMCommunicate request_size=4 [12:51:32]MH_SAM_APDU [12:51:32]CAPDU: 80 13 01 00 [12:51:32]Write to MH i2c: E2 08 00 50 3D 80 13 01 00 00 00 00 00 0A [12:51:32]Write i2c OK [12:51:32]MH_I2C_Read... [12:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:32]Read from MH i2c: E2 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 0E 00 [12:51:32]MH_I2C_Read... [12:51:32]Read from MH i2c: E2 0E 00 50 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 86 [12:51:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:51:32]wFMCommunicate OK [12:51:32]SAM_PROTO_GetShiftState done [12:51:32]FM_GetShiftState done [12:51:32]req_shift_opened done [12:51:32]requested_item shift.open_date is exist - process it [12:51:32]req_shift_open_date [12:51:32]req_shift_open_date done [12:51:32]produce_requested_data done [12:51:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30607,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:51:32]process_action_free close_receipt [12:51:32]json_value_free [12:51:32]json_value_free done [12:51:32]process_json_proto returns [12:51:32]Send response to host [12:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30607,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:51:32]free response buf [12:51:32]execute_script done [12:51:32]execute_script returns [12:51:32]free content buf [12:51:32]Sock 7.Close socket [12:51:32]Sock 7.Thread stoped [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:51]accept exits with 9 [12:51:51]New connection [12:51:51]New thread 3067346276 created [12:51:51]Thread 3067489636 joined [12:51:51]Waiting for new connection... [12:51:51] Sock 9.Parse request [12:51:51]Sock 9.Check first char [12:51:51]Sock 9.First char is OK [12:51:51]request: POST /json_proto HTTP/1.0 [12:51:51]Method: POST [12:51:51]URL: /json_proto [12:51:51]Method is POST - this is cgi request [12:51:51]url: /json_proto [12:51:51]query_string will be loaded in cgi processing [12:51:51]execute_cgi json_proto POST (null) [12:51:51]execute_cgi path=json_proto method=POST [12:51:51]POST find Content-Length [12:51:51]Host: 172.17.51.3:8080 [12:51:51]Content-Length: 679 [12:51:51]Content-Type: application/json [12:51:51] [12:51:51]POST finish read [12:51:51]Found Content-Length = 679 [12:51:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:51]execute_script... [12:51:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:51]POST & json_proto [12:51:51]process_json_proto [12:51:51]json parsed OK: [12:51:51]protocol is kg_v1.0 [12:51:51]action value=close_receipt [12:51:51]process_action close_receipt [12:51:51]cmd_close_receipt [12:51:51]MH_GetDate [12:51:51]Write to MH i2c: F0 00 00 51 3D 7D [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: F0 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: F0 09 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: F0 09 00 51 3D 00 6C 4E 16 67 04 C1 95 66 7D [12:51:51]GetLastDocTimeStamp 1729515093 [12:51:51]current date 1729515116 [12:51:51]FM_GetShiftState [12:51:51]SAM_PROTO_GetShiftState [12:51:51]wFMCommunicate request_size=4 [12:51:51]MH_SAM_APDU [12:51:51]CAPDU: 80 13 01 00 [12:51:51]Write to MH i2c: E2 08 00 52 3D 80 13 01 00 00 00 00 00 0C [12:51:51]Write i2c OK [12:51:51]MH_I2C_Read... [12:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:51]Read from MH i2c: E2 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 0E 00 [12:51:51]MH_I2C_Read... [12:51:51]Read from MH i2c: E2 0E 00 52 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 88 [12:51:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:51:51]wFMCommunicate OK [12:51:51]SAM_PROTO_GetShiftState done [12:51:51]FM_GetShiftState done [12:51:51]opened in 1729471058 [12:51:51]opened+sec_in_day 1729557458 [12:51:51]quantity*price = 300075 [12:51:51]sum+1 = 300077 [12:51:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 105 21.10.2024 12:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30608 ФПД: 53540171312394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125156&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30608&fm=53540171312394&tin=02508201610067®Number=0000000000186857&sum=300000 [12:51:52]StoreToDocumentArchive [12:51:52]shift 115 fd 30608 [12:51:52]save to /storage/0115/doc_00030608 [12:51:52]save last doc name /storage/0115/doc_00030608 to /storage/kkm_last_doc_name [12:51:52]save OK [12:51:52]Clear old archive folders... [12:51:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:51:52]tlvbuf is 01E08840 [12:51:52]SAM_PROTO_ClearQueue [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 09 00 00 [12:51:52]Write to MH i2c: E2 08 00 5F 3D 80 09 00 00 00 00 00 00 0E [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:52]Read from MH i2c: E2 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 [12:51:52]MH_I2C_Read... [12:51:52]Read from MH i2c: E2 03 00 5F 3D 00 90 00 10 [12:51:52]RAPDU: 90 00 [12:51:52]wFMCommunicate OK [12:51:52]SAM_PROTO_ClearQueue done [12:51:52]KKMCreateOFDPacket [12:51:52]OFDProtocolAddRootSTLVToBuf [12:51:52]FM_MakeSignedData [12:51:52]FM_MakeSignedData [12:51:52]SAM_PROTO_SignData [12:51:52]wFMCommunicate request_size=4 [12:51:52]MH_SAM_APDU [12:51:52]CAPDU: 80 0D 01 02 [12:51:52]Write to MH i2c: E2 08 00 60 3D 80 0D 01 02 00 00 00 00 16 [12:51:52]Write i2c OK [12:51:52]MH_I2C_Read... [12:51:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 60 3D 00 90 00 11 [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=255 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 77 00 00 35 04 06 00 30 B1 CA E4 [12:51:53]Write to MH i2c: E2 02 01 61 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 77 00 00 35 04 06 00 30 B1 CA E4 00 00 7D [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 61 3D 00 90 00 12 [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=7 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 02 02 02 6D 0A [12:51:53]Write to MH i2c: E2 0A 00 62 3D 80 0D 02 02 02 00 6D 0A 00 00 94 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 03 00 62 3D 00 90 00 13 [12:51:53]RAPDU: 90 00 [12:51:53]wFMCommunicate OK [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 0D 03 02 [12:51:53]Write to MH i2c: E2 08 00 63 3D 80 0D 03 02 00 00 00 00 1B [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0B 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 0B 00 63 3D 00 88 D0 C2 2B 43 6B AF AD 90 00 6B [12:51:53]RAPDU: 88 D0 C2 2B 43 6B AF AD 90 00 [12:51:53]wFMCommunicate OK [12:51:53]SAM_PROTO_SignData done [12:51:53]FM_MakeSignedData done [12:51:53]CreateOFDProtocolMessage [12:51:53]wFMCommunicate request_size=4 [12:51:53]MH_SAM_APDU [12:51:53]CAPDU: 80 11 00 00 [12:51:53]Write to MH i2c: E2 08 00 64 3D 80 11 00 00 00 00 00 00 1B [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:53]Read from MH i2c: E2 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: E2 17 00 64 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 69 [12:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:53]wFMCommunicate OK [12:51:53]CreateOFDProtocolMessage done [12:51:53]OFDSenderStorePacket 30608 [12:51:53]StoreOFDPacket docnum=30608 [12:51:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1F EF 04 01 1A D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 77 00 00 35 04 06 00 30 B1 CA E4 6D 0A 88 D0 C2 2B 43 6B AF AD [12:51:53]CheckFolder [12:51:53]dirname=/storage/ofd_packets [12:51:53]CheckFolder done [12:51:53]ProducePacketName [12:51:53]name=ofd_packets/00030608 [12:51:53]NVStorageSaveData ofd_packets/00030608 [12:51:53]File name is /storage/ofd_packets/00030608 [12:51:53]Write 298 bytes [12:51:53]NVStorageSaveData done [12:51:53]OFDSenderStorePacket done [12:51:53]KKMCreateOFDPacket done [12:51:53]NVStorageSaveData kkm_last_timestamp [12:51:53]File name is /storage/kkm_last_timestamp [12:51:53]Write 4 bytes [12:51:53]NVStorageSaveData done [12:51:53]ExternCall_PrintAddStr [12:51:53]wPrintStart [12:51:53]Write to MH i2c: 01 00 00 65 3D A2 [12:51:53]Write i2c OK [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 [12:51:53]MH_I2C_Read... [12:51:53]Read from MH i2c: 01 07 00 65 3D 00 00 00 00 00 FF 0F B7 [12:51:53]RasterBufferAndPrint [12:51:53]line Счет N : (1)343015 [12:51:53]line ИНН: 02508201610067 [12:51:53]line Контрольно-Кассовый Чек [12:51:53]line ПРОДАЖА [12:51:53]line ТРК (МРК, ГНК) : 44 [12:51:53]line Товар: 2710194210 [12:51:53]line ДТ-К-2 [12:51:53]line 39.380 * 76.20 [12:51:53]line = 3000.76 [12:51:53]line НДС 12% НСП 1% [12:51:53]line > о реализуемом товаре [12:51:53]line ОКРУГЛЕНИЕ: -0.76 [12:51:53]line ИТОГО: 3000.00 [12:51:53]line Внесено: 3000.00 [12:51:53]line СДАЧА: 0.00 [12:51:53]line НСП 1% : 26.55 [12:51:53]line НДС 12% : 318.66 [12:51:53]line Наличными: 3000.00 [12:51:53]line Безнал.: 0.00 [12:51:53]line Место: АЗС № 78 "Партнер Нефть" [12:51:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:51:53]line СНО: Общий режим [12:51:53]line Чек 105 21.10.2024 12:51 [12:51:53]line Смена: 115 ФФД: 1.0 [12:51:53]line ЗНМ: 0300000137 [12:51:53]line РНМ: 0000000000186857 [12:51:53]line Версия ККМ: v1.0 [12:51:53]line ФМ: 0000000002094219 [12:51:53]line ФД: 30608 [12:51:53]line ФПД: 53540171312394 [12:51:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125156&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30608&fm=53540171312394&tin=02508201610067®Number=0000000000186857&sum=300000 [12:51:53]OFD Sender: Processing packet 30608 [packets to send 10, broken 9] [12:51:53]ProducePacketName [12:51:53]name=ofd_packets/00030608 [12:51:53]OFD Sender: To server: pG, [12:51:53]CommunicateWithHost lk.salyk.kg:30040 [12:51:53]ConnectInit lk.salyk.kg [12:51:53]written 0, free lines is 4095 [12:51:53]Connected sock=10 [12:51:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 1F EF 04 01 1A D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6C 4E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 90 77 00 00 35 04 06 00 30 B1 CA E4 6D 0A 88 D0 C2 2B 43 6B AF AD [12:51:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EC 5D 47 00 0D 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 32 30 39 34 32 31 39 10 04 04 00 90 77 00 00 F4 03 04 00 ED F8 15 67 B6 04 01 00 00 EA A5 65 A2 56 89 E8 FB [12:51:54]CommunicateWithHost err = 0 [12:51:54]CheckOFDResponse [12:51:54]1017 (14) - 77093643461234 [12:51:54]1041 (16) - 0000000002094219 [12:51:54]1040 (4) - 30608 [12:51:54]1012 (4) - 21.10.2024 06:47 [12:51:54]1206 (1) - 0 [12:51:54]OFD Sender: Remove packet 30608 [12:51:54]ProducePacketName [12:51:54]name=ofd_packets/00030608 [12:51:54]NVStorageDeleteData [12:51:54]Write to MH i2c: 01 00 00 90 3D CD [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: 01 07 00 90 3D 00 00 00 00 00 E6 0C C6 [12:51:54]RasterBufferAndPrint [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]line [12:51:54]written 0, free lines is 3309 [12:51:54]MH_Cut [12:51:54]Write to MH i2c: D1 01 00 97 3D 01 A6 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 01 00 [12:51:54]MH_I2C_Read... [12:51:54]Read from MH i2c: D1 01 00 97 3D 00 A5 [12:51:54]Write to MH i2c: 01 00 00 98 3D D5 [12:51:54]Write i2c OK [12:51:54]MH_I2C_Read... [12:51:54]OFD Sender: No OFD packet to send [12:51:54]*** Cut start [12:51:54]*** Partial cut [12:51:54]*** CUTSNS_PIN = 1 [12:51:54]*** CUTSNS_PIN = 0 [12:51:55]*** Brake cut motor [12:51:55]Read from MH i2c: 01 [12:51:55]MH_I2C_Read... [12:51:55]*** Stop cut motor [12:51:55]*** Cut end [12:51:55]Read from MH i2c: 01 07 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: 01 07 00 98 3D 00 00 00 00 00 FF 0F EA [12:51:55]process_action close_receipt done [12:51:55]requested_data is exist [12:51:55]produce_requested_data [12:51:55]requested_item fm.sn is exist - process it [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 11 00 00 [12:51:55]Write to MH i2c: E2 08 00 99 3D 80 11 00 00 00 00 00 00 50 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 17 00 99 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [12:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:51:55]wFMCommunicate OK [12:51:55]requested_item fd.num is exist - process it [12:51:55]SAM_PROTO_GetFieldsCounters [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 13 00 00 [12:51:55]Write to MH i2c: E2 08 00 9A 3D 80 13 00 00 00 00 00 00 53 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 62 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 62 00 9A 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:51:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 90 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_GetFieldsCounters done [12:51:55]requested_item shift.num is exist - process it [12:51:55]requested_item shift.opened is exist - process it [12:51:55]req_shift_opened [12:51:55]FM_GetShiftState [12:51:55]SAM_PROTO_GetShiftState [12:51:55]wFMCommunicate request_size=4 [12:51:55]MH_SAM_APDU [12:51:55]CAPDU: 80 13 01 00 [12:51:55]Write to MH i2c: E2 08 00 9B 3D 80 13 01 00 00 00 00 00 55 [12:51:55]Write i2c OK [12:51:55]MH_I2C_Read... [12:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:55]Read from MH i2c: E2 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0E 00 [12:51:55]MH_I2C_Read... [12:51:55]Read from MH i2c: E2 0E 00 9B 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D1 [12:51:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:51:55]wFMCommunicate OK [12:51:55]SAM_PROTO_GetShiftState done [12:51:55]FM_GetShiftState done [12:51:55]req_shift_opened done [12:51:55]requested_item shift.open_date is exist - process it [12:51:55]req_shift_open_date [12:51:55]req_shift_open_date done [12:51:55]produce_requested_data done [12:51:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30608,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:51:55]process_action_free close_receipt [12:51:55]json_value_free [12:51:55]json_value_free done [12:51:55]process_json_proto returns [12:51:55]Send response to host [12:51:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30608,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:51:55]free response buf [12:51:55]execute_script done [12:51:55]execute_script returns [12:51:55]free content buf [12:51:55]Sock 9.Close socket [12:51:55]Sock 9.Thread stoped [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:31]accept exits with 7 [12:55:31]New connection [12:55:31]New thread 3067489636 created [12:55:31]Thread 3067346276 joined [12:55:31]Waiting for new connection... [12:55:31] Sock 7.Parse request [12:55:31]Sock 7.Check first char [12:55:31]Sock 7.First char is OK [12:55:31]request: POST /json_proto HTTP/1.0 [12:55:31]Method: POST [12:55:31]URL: /json_proto [12:55:31]Method is POST - this is cgi request [12:55:31]url: /json_proto [12:55:31]query_string will be loaded in cgi processing [12:55:31]execute_cgi json_proto POST (null) [12:55:31]execute_cgi path=json_proto method=POST [12:55:31]POST find Content-Length [12:55:31]Host: 172.17.51.3:8080 [12:55:31]Content-Length: 682 [12:55:31]Content-Type: application/json [12:55:31] [12:55:31]POST finish read [12:55:31]Found Content-Length = 682 [12:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:31]execute_script... [12:55:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:31]POST & json_proto [12:55:31]process_json_proto [12:55:31]json parsed OK: [12:55:31]protocol is kg_v1.0 [12:55:31]action value=close_receipt [12:55:31]process_action close_receipt [12:55:31]cmd_close_receipt [12:55:31]MH_GetDate [12:55:31]Write to MH i2c: F0 00 00 9C 3D C8 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: F0 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: F0 09 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: F0 09 00 9C 3D 00 48 4F 16 67 04 C1 95 66 A5 [12:55:31]GetLastDocTimeStamp 1729515116 [12:55:31]current date 1729515336 [12:55:31]FM_GetShiftState [12:55:31]SAM_PROTO_GetShiftState [12:55:31]wFMCommunicate request_size=4 [12:55:31]MH_SAM_APDU [12:55:31]CAPDU: 80 13 01 00 [12:55:31]Write to MH i2c: E2 08 00 9D 3D 80 13 01 00 00 00 00 00 57 [12:55:31]Write i2c OK [12:55:31]MH_I2C_Read... [12:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:31]Read from MH i2c: E2 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 0E 00 [12:55:31]MH_I2C_Read... [12:55:31]Read from MH i2c: E2 0E 00 9D 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D3 [12:55:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:55:31]wFMCommunicate OK [12:55:31]SAM_PROTO_GetShiftState done [12:55:31]FM_GetShiftState done [12:55:31]opened in 1729471058 [12:55:31]opened+sec_in_day 1729557458 [12:55:31]quantity*price = 100015 [12:55:31]sum+1 = 100017 [12:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 106 21.10.2024 12:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30609 ФПД: 36609419538686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125536&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30609&fm=36609419538686&tin=02508201610067®Number=0000000000186857&sum=100000 [12:55:32]StoreToDocumentArchive [12:55:32]shift 115 fd 30609 [12:55:32]save to /storage/0115/doc_00030609 [12:55:32]save last doc name /storage/0115/doc_00030609 to /storage/kkm_last_doc_name [12:55:32]save OK [12:55:32]Clear old archive folders... [12:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:32]tlvbuf is 01E560E0 [12:55:32]SAM_PROTO_ClearQueue [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 09 00 00 [12:55:32]Write to MH i2c: E2 08 00 AA 3D 80 09 00 00 00 00 00 00 59 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 AA 3D 00 90 00 5B [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]SAM_PROTO_ClearQueue done [12:55:32]KKMCreateOFDPacket [12:55:32]OFDProtocolAddRootSTLVToBuf [12:55:32]FM_MakeSignedData [12:55:32]FM_MakeSignedData [12:55:32]SAM_PROTO_SignData [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 01 02 [12:55:32]Write to MH i2c: E2 08 00 AB 3D 80 0D 01 02 00 00 00 00 61 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 AB 3D 00 90 00 5C [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]wFMCommunicate request_size=255 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 48 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 77 00 00 35 04 06 00 21 [12:55:32]Write to MH i2c: E2 02 01 AC 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 48 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 77 00 00 35 04 06 00 21 00 00 06 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 AC 3D 00 90 00 5D [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]wFMCommunicate request_size=10 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 02 02 05 4B CB 72 70 FE [12:55:32]Write to MH i2c: E2 0D 00 AD 3D 80 0D 02 02 05 00 4B CB 72 70 FE 00 00 64 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:32]Read from MH i2c: E2 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 [12:55:32]MH_I2C_Read... [12:55:32]Read from MH i2c: E2 03 00 AD 3D 00 90 00 5E [12:55:32]RAPDU: 90 00 [12:55:32]wFMCommunicate OK [12:55:32]wFMCommunicate request_size=4 [12:55:32]MH_SAM_APDU [12:55:32]CAPDU: 80 0D 03 02 [12:55:32]Write to MH i2c: E2 08 00 AE 3D 80 0D 03 02 00 00 00 00 66 [12:55:32]Write i2c OK [12:55:32]MH_I2C_Read... [12:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:33]Read from MH i2c: E2 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: E2 0B 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: E2 0B 00 AE 3D 00 0E 7A 0E 5C 65 BE 78 D5 90 00 C9 [12:55:33]RAPDU: 0E 7A 0E 5C 65 BE 78 D5 90 00 [12:55:33]wFMCommunicate OK [12:55:33]SAM_PROTO_SignData done [12:55:33]FM_MakeSignedData done [12:55:33]CreateOFDProtocolMessage [12:55:33]wFMCommunicate request_size=4 [12:55:33]MH_SAM_APDU [12:55:33]CAPDU: 80 11 00 00 [12:55:33]Write to MH i2c: E2 08 00 AF 3D 80 11 00 00 00 00 00 00 66 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:33]Read from MH i2c: E2 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: E2 17 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: E2 17 00 AF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B4 [12:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:33]wFMCommunicate OK [12:55:33]CreateOFDProtocolMessage done [12:55:33]OFDSenderStorePacket 30609 [12:55:33]StoreOFDPacket docnum=30609 [12:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 2E 07 01 2E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 48 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 77 00 00 35 04 06 00 21 4B CB 72 70 FE 0E 7A 0E 5C 65 BE 78 D5 [12:55:33]CheckFolder [12:55:33]dirname=/storage/ofd_packets [12:55:33]CheckFolder done [12:55:33]ProducePacketName [12:55:33]name=ofd_packets/00030609 [12:55:33]NVStorageSaveData ofd_packets/00030609 [12:55:33]File name is /storage/ofd_packets/00030609 [12:55:33]Write 301 bytes [12:55:33]NVStorageSaveData done [12:55:33]OFDSenderStorePacket done [12:55:33]KKMCreateOFDPacket done [12:55:33]NVStorageSaveData kkm_last_timestamp [12:55:33]File name is /storage/kkm_last_timestamp [12:55:33]Write 4 bytes [12:55:33]NVStorageSaveData done [12:55:33]ExternCall_PrintAddStr [12:55:33]wPrintStart [12:55:33]Write to MH i2c: 01 00 00 B0 3D ED [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 B0 3D 00 00 00 00 00 FF 0F 02 [12:55:33]RasterBufferAndPrint [12:55:33]line Счет N : (1)343017 [12:55:33]line ИНН: 02508201610067 [12:55:33]line Контрольно-Кассовый Чек [12:55:33]line ПРОДАЖА [12:55:33]line ТРК (МРК, ГНК) : 43 [12:55:33]line Товар: 2710124130 [12:55:33]line Аи-92-К-2 [12:55:33]line 14.950 * 66.90 [12:55:33]line = 1000.16 [12:55:33]line НДС 12% НСП 1% [12:55:33]line > о реализуемом товаре [12:55:33]line ОКРУГЛЕНИЕ: -0.16 [12:55:33]line ИТОГО: 1000.00 [12:55:33]line Внесено: 1000.00 [12:55:33]line СДАЧА: 0.00 [12:55:33]line НСП 1% : 8.85 [12:55:33]line НДС 12% : 106.21 [12:55:33]line Наличными: 1000.00 [12:55:33]line Безнал.: 0.00 [12:55:33]line Место: АЗС № 78 "Партнер Нефть" [12:55:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:55:33]line СНО: Общий режим [12:55:33]line Чек 106 21.10.2024 12:55 [12:55:33]line Смена: 115 ФФД: 1.0 [12:55:33]line ЗНМ: 0300000137 [12:55:33]line РНМ: 0000000000186857 [12:55:33]line Версия ККМ: v1.0 [12:55:33]line ФМ: 0000000002094219 [12:55:33]line ФД: 30609 [12:55:33]line ФПД: 36609419538686 [12:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125536&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30609&fm=36609419538686&tin=02508201610067®Number=0000000000186857&sum=100000 [12:55:33]OFD Sender: Processing packet 30609 [packets to send 10, broken 9] [12:55:33]ProducePacketName [12:55:33]name=ofd_packets/00030609 [12:55:33]OFD Sender: To server: pG, [12:55:33]CommunicateWithHost lk.salyk.kg:30040 [12:55:33]ConnectInit lk.salyk.kg [12:55:33]written 0, free lines is 4095 [12:55:33]Connected sock=10 [12:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 2E 07 01 2E 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 48 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 91 77 00 00 35 04 06 00 21 4B CB 72 70 FE 0E 7A 0E 5C 65 BE 78 D5 [12:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 84 B7 47 00 86 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 32 30 39 34 32 31 39 10 04 04 00 91 77 00 00 F4 03 04 00 C8 F9 15 67 B6 04 01 00 00 FF 33 28 F7 96 0F 58 2D [12:55:33]CommunicateWithHost err = 0 [12:55:33]CheckOFDResponse [12:55:33]1017 (14) - 77093643461234 [12:55:33]1041 (16) - 0000000002094219 [12:55:33]1040 (4) - 30609 [12:55:33]1012 (4) - 21.10.2024 06:50 [12:55:33]1206 (1) - 0 [12:55:33]OFD Sender: Remove packet 30609 [12:55:33]ProducePacketName [12:55:33]name=ofd_packets/00030609 [12:55:33]NVStorageDeleteData [12:55:33]Write to MH i2c: 01 00 00 DB 3D 18 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 DB 3D 00 00 00 00 00 F0 0C 1B [12:55:33]RasterBufferAndPrint [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]line [12:55:33]written 0, free lines is 3318 [12:55:33]MH_Cut [12:55:33]Write to MH i2c: D1 01 00 E2 3D 01 F1 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 01 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D1 01 00 E2 3D 00 F0 [12:55:33]Write to MH i2c: 01 00 00 E3 3D 20 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:34]OFD Sender: No OFD packet to send [12:55:34]*** Cut start [12:55:34]*** Partial cut [12:55:34]*** CUTSNS_PIN = 1 [12:55:34]*** CUTSNS_PIN = 0 [12:55:34]*** Brake cut motor [12:55:35]Read from MH i2c: 01 [12:55:35]MH_I2C_Read... [12:55:35]*** Stop cut motor [12:55:35]*** Cut end [12:55:35]Read from MH i2c: 01 07 00 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: 01 07 00 E3 3D 00 00 00 00 00 FF 0F 35 [12:55:35]process_action close_receipt done [12:55:35]requested_data is exist [12:55:35]produce_requested_data [12:55:35]requested_item fm.sn is exist - process it [12:55:35]wFMCommunicate request_size=4 [12:55:35]MH_SAM_APDU [12:55:35]CAPDU: 80 11 00 00 [12:55:35]Write to MH i2c: E2 08 00 E4 3D 80 11 00 00 00 00 00 00 9B [12:55:35]Write i2c OK [12:55:35]MH_I2C_Read... [12:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:35]Read from MH i2c: E2 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 17 00 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 17 00 E4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E9 [12:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:55:35]wFMCommunicate OK [12:55:35]requested_item fd.num is exist - process it [12:55:35]SAM_PROTO_GetFieldsCounters [12:55:35]wFMCommunicate request_size=4 [12:55:35]MH_SAM_APDU [12:55:35]CAPDU: 80 13 00 00 [12:55:35]Write to MH i2c: E2 08 00 E5 3D 80 13 00 00 00 00 00 00 9E [12:55:35]Write i2c OK [12:55:35]MH_I2C_Read... [12:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:35]Read from MH i2c: E2 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 62 00 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 62 00 E5 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 91 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:35]wFMCommunicate OK [12:55:35]SAM_PROTO_GetFieldsCounters done [12:55:35]requested_item shift.num is exist - process it [12:55:35]requested_item shift.opened is exist - process it [12:55:35]req_shift_opened [12:55:35]FM_GetShiftState [12:55:35]SAM_PROTO_GetShiftState [12:55:35]wFMCommunicate request_size=4 [12:55:35]MH_SAM_APDU [12:55:35]CAPDU: 80 13 01 00 [12:55:35]Write to MH i2c: E2 08 00 E6 3D 80 13 01 00 00 00 00 00 A0 [12:55:35]Write i2c OK [12:55:35]MH_I2C_Read... [12:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:35]Read from MH i2c: E2 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 0E 00 [12:55:35]MH_I2C_Read... [12:55:35]Read from MH i2c: E2 0E 00 E6 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1C [12:55:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:55:35]wFMCommunicate OK [12:55:35]SAM_PROTO_GetShiftState done [12:55:35]FM_GetShiftState done [12:55:35]req_shift_opened done [12:55:35]requested_item shift.open_date is exist - process it [12:55:35]req_shift_open_date [12:55:35]req_shift_open_date done [12:55:35]produce_requested_data done [12:55:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30609,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:55:35]process_action_free close_receipt [12:55:35]json_value_free [12:55:35]json_value_free done [12:55:35]process_json_proto returns [12:55:35]Send response to host [12:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30609,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:55:35]free response buf [12:55:35]execute_script done [12:55:35]execute_script returns [12:55:35]free content buf [12:55:35]Sock 7.Close socket [12:55:35]Sock 7.Thread stoped [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:07]accept exits with 9 [12:58:07]New connection [12:58:07]New thread 3067346276 created [12:58:07]Thread 3067489636 joined [12:58:07]Waiting for new connection... [12:58:07] Sock 9.Parse request [12:58:07]Sock 9.Check first char [12:58:07]Sock 9.First char is OK [12:58:07]request: POST /json_proto HTTP/1.0 [12:58:07]Method: POST [12:58:07]URL: /json_proto [12:58:07]Method is POST - this is cgi request [12:58:07]url: /json_proto [12:58:07]query_string will be loaded in cgi processing [12:58:07]execute_cgi json_proto POST (null) [12:58:07]execute_cgi path=json_proto method=POST [12:58:07]POST find Content-Length [12:58:07]Host: 172.17.51.3:8080 [12:58:07]Content-Length: 679 [12:58:07]Content-Type: application/json [12:58:07] [12:58:07]POST finish read [12:58:07]Found Content-Length = 679 [12:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:07]execute_script... [12:58:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:07]POST & json_proto [12:58:07]process_json_proto [12:58:07]json parsed OK: [12:58:07]protocol is kg_v1.0 [12:58:07]action value=close_receipt [12:58:07]process_action close_receipt [12:58:07]cmd_close_receipt [12:58:07]MH_GetDate [12:58:07]Write to MH i2c: F0 00 00 E7 3D 13 [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: F0 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: F0 09 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: F0 09 00 E7 3D 00 E4 4F 16 67 04 C1 95 66 8C [12:58:07]GetLastDocTimeStamp 1729515336 [12:58:07]current date 1729515492 [12:58:07]FM_GetShiftState [12:58:07]SAM_PROTO_GetShiftState [12:58:07]wFMCommunicate request_size=4 [12:58:07]MH_SAM_APDU [12:58:07]CAPDU: 80 13 01 00 [12:58:07]Write to MH i2c: E2 08 00 E8 3D 80 13 01 00 00 00 00 00 A2 [12:58:07]Write i2c OK [12:58:07]MH_I2C_Read... [12:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:07]Read from MH i2c: E2 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 0E 00 [12:58:07]MH_I2C_Read... [12:58:07]Read from MH i2c: E2 0E 00 E8 3D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1E [12:58:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:58:07]wFMCommunicate OK [12:58:07]SAM_PROTO_GetShiftState done [12:58:07]FM_GetShiftState done [12:58:07]opened in 1729471058 [12:58:07]opened+sec_in_day 1729557458 [12:58:07]quantity*price = 100050 [12:58:07]sum+1 = 100052 [12:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 107 21.10.2024 12:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30610 ФПД: 196061395346096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125812&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30610&fm=196061395346096&tin=02508201610067®Number=0000000000186857&sum=100000 [12:58:08]StoreToDocumentArchive [12:58:08]shift 115 fd 30610 [12:58:08]save to /storage/0115/doc_00030610 [12:58:08]save last doc name /storage/0115/doc_00030610 to /storage/kkm_last_doc_name [12:58:08]save OK [12:58:08]Clear old archive folders... [12:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:58:08]tlvbuf is 01DEA7A0 [12:58:08]SAM_PROTO_ClearQueue [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 09 00 00 [12:58:08]Write to MH i2c: E2 08 00 F5 3D 80 09 00 00 00 00 00 00 A4 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 F5 3D 00 90 00 A6 [12:58:08]RAPDU: 90 00 [12:58:08]wFMCommunicate OK [12:58:08]SAM_PROTO_ClearQueue done [12:58:08]KKMCreateOFDPacket [12:58:08]OFDProtocolAddRootSTLVToBuf [12:58:08]FM_MakeSignedData [12:58:08]FM_MakeSignedData [12:58:08]SAM_PROTO_SignData [12:58:08]wFMCommunicate request_size=4 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 0D 01 02 [12:58:08]Write to MH i2c: E2 08 00 F6 3D 80 0D 01 02 00 00 00 00 AC [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:08]Read from MH i2c: E2 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 [12:58:08]MH_I2C_Read... [12:58:08]Read from MH i2c: E2 03 00 F6 3D 00 90 00 A7 [12:58:08]RAPDU: 90 00 [12:58:08]wFMCommunicate OK [12:58:08]wFMCommunicate request_size=255 [12:58:08]MH_SAM_APDU [12:58:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E4 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 77 00 00 35 04 06 00 B2 51 19 D2 [12:58:08]Write to MH i2c: E2 02 01 F7 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E4 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 77 00 00 35 04 06 00 B2 51 19 D2 00 00 B8 [12:58:08]Write i2c OK [12:58:08]MH_I2C_Read... [12:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:09]Read from MH i2c: E2 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 03 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 03 00 F7 3D 00 90 00 A8 [12:58:09]RAPDU: 90 00 [12:58:09]wFMCommunicate OK [12:58:09]wFMCommunicate request_size=7 [12:58:09]MH_SAM_APDU [12:58:09]CAPDU: 80 0D 02 02 02 E2 B0 [12:58:09]Write to MH i2c: E2 0A 00 F8 3D 80 0D 02 02 02 00 E2 B0 00 00 45 [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:09]Read from MH i2c: E2 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 03 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 03 00 F8 3D 00 90 00 A9 [12:58:09]RAPDU: 90 00 [12:58:09]wFMCommunicate OK [12:58:09]wFMCommunicate request_size=4 [12:58:09]MH_SAM_APDU [12:58:09]CAPDU: 80 0D 03 02 [12:58:09]Write to MH i2c: E2 08 00 F9 3D 80 0D 03 02 00 00 00 00 B1 [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:09]Read from MH i2c: E2 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 0B 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 0B 00 F9 3D 00 A0 7C 06 4E 42 20 A7 F6 90 00 21 [12:58:09]RAPDU: A0 7C 06 4E 42 20 A7 F6 90 00 [12:58:09]wFMCommunicate OK [12:58:09]SAM_PROTO_SignData done [12:58:09]FM_MakeSignedData done [12:58:09]CreateOFDProtocolMessage [12:58:09]wFMCommunicate request_size=4 [12:58:09]MH_SAM_APDU [12:58:09]CAPDU: 80 11 00 00 [12:58:09]Write to MH i2c: E2 08 00 FA 3D 80 11 00 00 00 00 00 00 B1 [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:09]Read from MH i2c: E2 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 17 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: E2 17 00 FA 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [12:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:58:09]wFMCommunicate OK [12:58:09]CreateOFDProtocolMessage done [12:58:09]OFDSenderStorePacket 30610 [12:58:09]StoreOFDPacket docnum=30610 [12:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B7 47 04 01 33 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E4 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 77 00 00 35 04 06 00 B2 51 19 D2 E2 B0 A0 7C 06 4E 42 20 A7 F6 [12:58:09]CheckFolder [12:58:09]dirname=/storage/ofd_packets [12:58:09]CheckFolder done [12:58:09]ProducePacketName [12:58:09]name=ofd_packets/00030610 [12:58:09]NVStorageSaveData ofd_packets/00030610 [12:58:09]File name is /storage/ofd_packets/00030610 [12:58:09]Write 298 bytes [12:58:09]NVStorageSaveData done [12:58:09]OFDSenderStorePacket done [12:58:09]KKMCreateOFDPacket done [12:58:09]NVStorageSaveData kkm_last_timestamp [12:58:09]File name is /storage/kkm_last_timestamp [12:58:09]Write 4 bytes [12:58:09]NVStorageSaveData done [12:58:09]ExternCall_PrintAddStr [12:58:09]wPrintStart [12:58:09]Write to MH i2c: 01 00 00 FB 3D 38 [12:58:09]OFD Sender: Processing packet 30610 [packets to send 10, broken 9] [12:58:09]ProducePacketName [12:58:09]name=ofd_packets/00030610 [12:58:09]OFD Sender: To server: pG, [12:58:09]CommunicateWithHost lk.salyk.kg:30040 [12:58:09]ConnectInit lk.salyk.kg [12:58:09]Write i2c OK [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 07 00 [12:58:09]MH_I2C_Read... [12:58:09]Read from MH i2c: 01 07 00 FB 3D 00 00 00 00 00 FF 0F 4D [12:58:09]RasterBufferAndPrint [12:58:09]line Счет N : (1)343018 [12:58:09]line ИНН: 02508201610067 [12:58:09]line Контрольно-Кассовый Чек [12:58:09]line ПРОДАЖА [12:58:09]line ТРК (МРК, ГНК) : 44 [12:58:09]line Товар: 2710194210 [12:58:09]line ДТ-К-2 [12:58:09]line 13.130 * 76.20 [12:58:09]line = 1000.51 [12:58:09]line НДС 12% НСП 1% [12:58:09]line > о реализуемом товаре [12:58:09]line ОКРУГЛЕНИЕ: -0.51 [12:58:09]line ИТОГО: 1000.00 [12:58:09]line Внесено: 1000.00 [12:58:09]line СДАЧА: 0.00 [12:58:09]line НСП 1% : 8.85 [12:58:09]line НДС 12% : 106.25 [12:58:09]line Наличными: 1000.00 [12:58:09]line Безнал.: 0.00 [12:58:09]line Место: АЗС № 78 "Партнер Нефть" [12:58:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [12:58:09]line СНО: Общий режим [12:58:09]line Чек 107 21.10.2024 12:58 [12:58:09]line Смена: 115 ФФД: 1.0 [12:58:09]line ЗНМ: 0300000137 [12:58:09]line РНМ: 0000000000186857 [12:58:09]line Версия ККМ: v1.0 [12:58:09]line ФМ: 0000000002094219 [12:58:09]line ФД: 30610 [12:58:09]line ФПД: 196061395346096 [12:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125812&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30610&fm=196061395346096&tin=02508201610067®Number=0000000000186857&sum=100000 [12:58:09]Connected sock=11 [12:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B7 47 04 01 33 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E4 4F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 77 00 00 35 04 06 00 B2 51 19 D2 E2 B0 A0 7C 06 4E 42 20 A7 F6 [12:58:09]written 0, free lines is 4095 [12:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 86 D6 47 00 E9 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 92 77 00 00 F4 03 04 00 65 FA 15 67 B6 04 01 00 00 9F 49 8F BD EF C0 36 91 [12:58:09]CommunicateWithHost err = 0 [12:58:09]CheckOFDResponse [12:58:09]1017 (14) - 77093643461234 [12:58:09]1041 (16) - 0000000002094219 [12:58:09]1040 (4) - 30610 [12:58:09]1012 (4) - 21.10.2024 06:53 [12:58:09]1206 (1) - 0 [12:58:09]OFD Sender: Remove packet 30610 [12:58:09]ProducePacketName [12:58:09]name=ofd_packets/00030610 [12:58:09]NVStorageDeleteData [12:58:10]Write to MH i2c: 01 00 00 26 3E 64 [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: 01 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: 01 07 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: 01 07 00 26 3E 00 00 00 00 00 E7 0C 5E [12:58:10]RasterBufferAndPrint [12:58:10]line [12:58:10]line [12:58:10]line [12:58:10]line [12:58:10]line [12:58:10]written 0, free lines is 3309 [12:58:10]MH_Cut [12:58:10]Write to MH i2c: D1 01 00 2D 3E 01 3D [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: D1 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: D1 01 00 [12:58:10]MH_I2C_Read... [12:58:10]Read from MH i2c: D1 01 00 2D 3E 00 3C [12:58:10]Write to MH i2c: 01 00 00 2E 3E 6C [12:58:10]Write i2c OK [12:58:10]MH_I2C_Read... [12:58:10]OFD Sender: No OFD packet to send [12:58:10]*** Cut start [12:58:10]*** Partial cut [12:58:10]*** CUTSNS_PIN = 1 [12:58:10]*** CUTSNS_PIN = 0 [12:58:11]*** Brake cut motor [12:58:11]Read from MH i2c: 01 [12:58:11]MH_I2C_Read... [12:58:11]*** Stop cut motor [12:58:11]*** Cut end [12:58:11]Read from MH i2c: 01 07 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: 01 07 00 2E 3E 00 00 00 00 00 FF 0F 81 [12:58:11]process_action close_receipt done [12:58:11]requested_data is exist [12:58:11]produce_requested_data [12:58:11]requested_item fm.sn is exist - process it [12:58:11]wFMCommunicate request_size=4 [12:58:11]MH_SAM_APDU [12:58:11]CAPDU: 80 11 00 00 [12:58:11]Write to MH i2c: E2 08 00 2F 3E 80 11 00 00 00 00 00 00 E7 [12:58:11]Write i2c OK [12:58:11]MH_I2C_Read... [12:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:11]Read from MH i2c: E2 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 17 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 17 00 2F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [12:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [12:58:11]wFMCommunicate OK [12:58:11]requested_item fd.num is exist - process it [12:58:11]SAM_PROTO_GetFieldsCounters [12:58:11]wFMCommunicate request_size=4 [12:58:11]MH_SAM_APDU [12:58:11]CAPDU: 80 13 00 00 [12:58:11]Write to MH i2c: E2 08 00 30 3E 80 13 00 00 00 00 00 00 EA [12:58:11]Write i2c OK [12:58:11]MH_I2C_Read... [12:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:11]Read from MH i2c: E2 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 62 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 62 00 30 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 92 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:11]wFMCommunicate OK [12:58:11]SAM_PROTO_GetFieldsCounters done [12:58:11]requested_item shift.num is exist - process it [12:58:11]requested_item shift.opened is exist - process it [12:58:11]req_shift_opened [12:58:11]FM_GetShiftState [12:58:11]SAM_PROTO_GetShiftState [12:58:11]wFMCommunicate request_size=4 [12:58:11]MH_SAM_APDU [12:58:11]CAPDU: 80 13 01 00 [12:58:11]Write to MH i2c: E2 08 00 31 3E 80 13 01 00 00 00 00 00 EC [12:58:11]Write i2c OK [12:58:11]MH_I2C_Read... [12:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:11]Read from MH i2c: E2 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 0E 00 [12:58:11]MH_I2C_Read... [12:58:11]Read from MH i2c: E2 0E 00 31 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 68 [12:58:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:58:11]wFMCommunicate OK [12:58:11]SAM_PROTO_GetShiftState done [12:58:11]FM_GetShiftState done [12:58:11]req_shift_opened done [12:58:11]requested_item shift.open_date is exist - process it [12:58:11]req_shift_open_date [12:58:11]req_shift_open_date done [12:58:11]produce_requested_data done [12:58:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30610,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [12:58:11]process_action_free close_receipt [12:58:11]json_value_free [12:58:11]json_value_free done [12:58:11]process_json_proto returns [12:58:11]Send response to host [12:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30610,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [12:58:11]free response buf [12:58:11]execute_script done [12:58:11]execute_script returns [12:58:11]free content buf [12:58:11]Sock 9.Close socket [12:58:11]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [12:59:59]accept exits with 7 [12:59:59]New connection [12:59:59]New thread 3067489636 created [12:59:59]Thread 3067346276 joined [12:59:59]Waiting for new connection... [12:59:59] Sock 7.Parse request [12:59:59]Sock 7.Check first char [12:59:59]Sock 7.First char is OK [12:59:59]request: POST /json_proto HTTP/1.0 [12:59:59]Method: POST [12:59:59]URL: /json_proto [12:59:59]Method is POST - this is cgi request [12:59:59]url: /json_proto [12:59:59]query_string will be loaded in cgi processing [12:59:59]execute_cgi json_proto POST (null) [12:59:59]execute_cgi path=json_proto method=POST [12:59:59]POST find Content-Length [12:59:59]Host: 172.17.51.3:8080 [12:59:59]Content-Length: 677 [12:59:59]Content-Type: application/json [12:59:59] [12:59:59]POST finish read [12:59:59]Found Content-Length = 677 [12:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:59]execute_script... [12:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:59]POST & json_proto [12:59:59]process_json_proto [12:59:59]json parsed OK: [12:59:59]protocol is kg_v1.0 [12:59:59]action value=close_receipt [12:59:59]process_action close_receipt [12:59:59]cmd_close_receipt [12:59:59]MH_GetDate [12:59:59]Write to MH i2c: F0 00 00 32 3E 5F [12:59:59]Write i2c OK [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: F0 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: F0 09 00 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: F0 09 00 32 3E 00 53 50 16 67 04 C1 95 66 48 [12:59:59]GetLastDocTimeStamp 1729515492 [12:59:59]current date 1729515603 [12:59:59]FM_GetShiftState [12:59:59]SAM_PROTO_GetShiftState [12:59:59]wFMCommunicate request_size=4 [12:59:59]MH_SAM_APDU [12:59:59]CAPDU: 80 13 01 00 [12:59:59]Write to MH i2c: E2 08 00 33 3E 80 13 01 00 00 00 00 00 EE [12:59:59]Write i2c OK [12:59:59]MH_I2C_Read... [12:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:59]Read from MH i2c: E2 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: E2 0E 00 [12:59:59]MH_I2C_Read... [12:59:59]Read from MH i2c: E2 0E 00 33 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6A [12:59:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [12:59:59]wFMCommunicate OK [12:59:59]SAM_PROTO_GetShiftState done [12:59:59]FM_GetShiftState done [12:59:59]opened in 1729471058 [12:59:59]opened+sec_in_day 1729557458 [12:59:59]quantity*price = 20003 [12:59:59]sum+1 = 20004 [12:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 108 21.10.2024 13:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30611 ФПД: 80001384647047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130004&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30611&fm=80001384647047&tin=02508201610067®Number=0000000000186857&sum=20000 [13:00:00]StoreToDocumentArchive [13:00:00]shift 115 fd 30611 [13:00:00]save to /storage/0115/doc_00030611 [13:00:00]save last doc name /storage/0115/doc_00030611 to /storage/kkm_last_doc_name [13:00:00]save OK [13:00:00]Clear old archive folders... [13:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:00]tlvbuf is 01E56020 [13:00:00]SAM_PROTO_ClearQueue [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 09 00 00 [13:00:00]Write to MH i2c: E2 08 00 40 3E 80 09 00 00 00 00 00 00 F0 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 40 3E 00 90 00 F2 [13:00:00]RAPDU: 90 00 [13:00:00]wFMCommunicate OK [13:00:00]SAM_PROTO_ClearQueue done [13:00:00]KKMCreateOFDPacket [13:00:00]OFDProtocolAddRootSTLVToBuf [13:00:00]FM_MakeSignedData [13:00:00]FM_MakeSignedData [13:00:00]SAM_PROTO_SignData [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 0D 01 02 [13:00:00]Write to MH i2c: E2 08 00 41 3E 80 0D 01 02 00 00 00 00 F8 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 41 3E 00 90 00 F3 [13:00:00]RAPDU: 90 00 [13:00:00]wFMCommunicate OK [13:00:00]wFMCommunicate request_size=255 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 6C 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 77 00 00 35 04 06 00 48 [13:00:00]Write to MH i2c: E2 02 01 42 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 6C 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 77 00 00 35 04 06 00 48 00 00 9D [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]OFD Sender: No OFD packet to send [13:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 42 3E 00 90 00 F4 [13:00:00]RAPDU: 90 00 [13:00:00]wFMCommunicate OK [13:00:00]wFMCommunicate request_size=10 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 0D 02 02 05 C2 C6 1D 09 87 [13:00:00]Write to MH i2c: E2 0D 00 43 3E 80 0D 02 02 05 00 C2 C6 1D 09 87 00 00 3A [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 03 00 43 3E 00 90 00 F5 [13:00:00]RAPDU: 90 00 [13:00:00]wFMCommunicate OK [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 0D 03 02 [13:00:00]Write to MH i2c: E2 08 00 44 3E 80 0D 03 02 00 00 00 00 FD [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 0B 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 0B 00 44 3E 00 C9 DA 7E B9 0C FE 7F C3 90 00 24 [13:00:00]RAPDU: C9 DA 7E B9 0C FE 7F C3 90 00 [13:00:00]wFMCommunicate OK [13:00:00]SAM_PROTO_SignData done [13:00:00]FM_MakeSignedData done [13:00:00]CreateOFDProtocolMessage [13:00:00]wFMCommunicate request_size=4 [13:00:00]MH_SAM_APDU [13:00:00]CAPDU: 80 11 00 00 [13:00:00]Write to MH i2c: E2 08 00 45 3E 80 11 00 00 00 00 00 00 FD [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:00]Read from MH i2c: E2 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 17 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: E2 17 00 45 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [13:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:00:00]wFMCommunicate OK [13:00:00]CreateOFDProtocolMessage done [13:00:00]OFDSenderStorePacket 30611 [13:00:00]StoreOFDPacket docnum=30611 [13:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A0 12 07 01 97 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 6C 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 77 00 00 35 04 06 00 48 C2 C6 1D 09 87 C9 DA 7E B9 0C FE 7F C3 [13:00:00]CheckFolder [13:00:00]dirname=/storage/ofd_packets [13:00:00]CheckFolder done [13:00:00]ProducePacketName [13:00:00]name=ofd_packets/00030611 [13:00:00]NVStorageSaveData ofd_packets/00030611 [13:00:00]File name is /storage/ofd_packets/00030611 [13:00:00]Write 301 bytes [13:00:00]NVStorageSaveData done [13:00:00]OFDSenderStorePacket done [13:00:00]KKMCreateOFDPacket done [13:00:00]NVStorageSaveData kkm_last_timestamp [13:00:00]File name is /storage/kkm_last_timestamp [13:00:00]Write 4 bytes [13:00:00]NVStorageSaveData done [13:00:00]ExternCall_PrintAddStr [13:00:00]wPrintStart [13:00:00]Write to MH i2c: 01 00 00 46 3E 84 [13:00:00]Write i2c OK [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: 01 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: 01 07 00 [13:00:00]MH_I2C_Read... [13:00:00]Read from MH i2c: 01 07 00 46 3E 00 00 00 00 00 FF 0F 99 [13:00:00]RasterBufferAndPrint [13:00:00]line Счет N : (1)343019 [13:00:00]line ИНН: 02508201610067 [13:00:00]line Контрольно-Кассовый Чек [13:00:00]line ПРОДАЖА [13:00:00]line ТРК (МРК, ГНК) : 63 [13:00:00]line Товар: 2710124130 [13:00:00]line Аи-92-К-2 [13:00:00]line 2.990 * 66.90 [13:00:00]line = 200.03 [13:00:00]line НДС 12% НСП 1% [13:00:00]line > о реализуемом товаре [13:00:00]line ОКРУГЛЕНИЕ: -0.03 [13:00:00]line ИТОГО: 200.00 [13:00:00]line Внесено: 200.00 [13:00:00]line СДАЧА: 0.00 [13:00:00]line НСП 1% : 1.77 [13:00:00]line НДС 12% : 21.24 [13:00:00]line Наличными: 200.00 [13:00:00]line Безнал.: 0.00 [13:00:00]line Место: АЗС № 78 "Партнер Нефть" [13:00:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:00:00]line СНО: Общий режим [13:00:00]line Чек 108 21.10.2024 13:00 [13:00:00]line Смена: 115 ФФД: 1.0 [13:00:00]line ЗНМ: 0300000137 [13:00:00]line РНМ: 0000000000186857 [13:00:00]line Версия ККМ: v1.0 [13:00:00]line ФМ: 0000000002094219 [13:00:00]line ФД: 30611 [13:00:00]line ФПД: 80001384647047 [13:00:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130004&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30611&fm=80001384647047&tin=02508201610067®Number=0000000000186857&sum=20000 [13:00:01]OFD Sender: Processing packet 30611 [packets to send 10, broken 9] [13:00:01]ProducePacketName [13:00:01]name=ofd_packets/00030611 [13:00:01]OFD Sender: To server: pG, [13:00:01]CommunicateWithHost lk.salyk.kg:30040 [13:00:01]ConnectInit lk.salyk.kg [13:00:01]written 0, free lines is 4095 [13:00:01]Connected sock=10 [13:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A0 12 07 01 97 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 6C 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 93 77 00 00 35 04 06 00 48 C2 C6 1D 09 87 C9 DA 7E B9 0C FE 7F C3 [13:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6C D2 47 00 EB 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 32 30 39 34 32 31 39 10 04 04 00 93 77 00 00 F4 03 04 00 D4 FA 15 67 B6 04 01 00 00 F1 46 11 85 67 42 96 7B [13:00:01]CommunicateWithHost err = 0 [13:00:01]CheckOFDResponse [13:00:01]1017 (14) - 77093643461234 [13:00:01]1041 (16) - 0000000002094219 [13:00:01]1040 (4) - 30611 [13:00:01]1012 (4) - 21.10.2024 06:55 [13:00:01]1206 (1) - 0 [13:00:01]OFD Sender: Remove packet 30611 [13:00:01]ProducePacketName [13:00:01]name=ofd_packets/00030611 [13:00:01]NVStorageDeleteData [13:00:01]Write to MH i2c: 01 00 00 71 3E AF [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: 01 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: 01 07 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: 01 07 00 71 3E 00 00 00 00 00 EF 0C B1 [13:00:01]RasterBufferAndPrint [13:00:01]line [13:00:01]line [13:00:01]line [13:00:01]line [13:00:01]line [13:00:01]written 0, free lines is 3317 [13:00:01]MH_Cut [13:00:01]Write to MH i2c: D1 01 00 78 3E 01 88 [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: D1 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: D1 01 00 [13:00:01]MH_I2C_Read... [13:00:01]Read from MH i2c: D1 01 00 78 3E 00 87 [13:00:01]Write to MH i2c: 01 00 00 79 3E B7 [13:00:01]Write i2c OK [13:00:01]MH_I2C_Read... [13:00:01]OFD Sender: No OFD packet to send [13:00:02]*** Cut start [13:00:02]*** Partial cut [13:00:02]*** CUTSNS_PIN = 1 [13:00:02]*** CUTSNS_PIN = 0 [13:00:02]*** Brake cut motor [13:00:02]Read from MH i2c: 01 [13:00:02]MH_I2C_Read... [13:00:02]*** Stop cut motor [13:00:02]Read from MH i2c: *** Cut end [13:00:02]01 07 00 [13:00:02]MH_I2C_Read... [13:00:02]Read from MH i2c: 01 07 00 79 3E 00 00 00 00 00 FF 0F CC [13:00:02]process_action close_receipt done [13:00:02]requested_data is exist [13:00:02]produce_requested_data [13:00:02]requested_item fm.sn is exist - process it [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 7A 3E 80 11 00 00 00 00 00 00 32 [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 7A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [13:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:00:02]wFMCommunicate OK [13:00:02]requested_item fd.num is exist - process it [13:00:02]SAM_PROTO_GetFieldsCounters [13:00:02]wFMCommunicate request_size=4 [13:00:02]MH_SAM_APDU [13:00:02]CAPDU: 80 13 00 00 [13:00:02]Write to MH i2c: E2 08 00 7B 3E 80 13 00 00 00 00 00 00 35 [13:00:02]Write i2c OK [13:00:02]MH_I2C_Read... [13:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:03]Read from MH i2c: E2 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: E2 62 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: E2 62 00 7B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 93 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:03]wFMCommunicate OK [13:00:03]SAM_PROTO_GetFieldsCounters done [13:00:03]requested_item shift.num is exist - process it [13:00:03]requested_item shift.opened is exist - process it [13:00:03]req_shift_opened [13:00:03]FM_GetShiftState [13:00:03]SAM_PROTO_GetShiftState [13:00:03]wFMCommunicate request_size=4 [13:00:03]MH_SAM_APDU [13:00:03]CAPDU: 80 13 01 00 [13:00:03]Write to MH i2c: E2 08 00 7C 3E 80 13 01 00 00 00 00 00 37 [13:00:03]Write i2c OK [13:00:03]MH_I2C_Read... [13:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:03]Read from MH i2c: E2 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: E2 0E 00 [13:00:03]MH_I2C_Read... [13:00:03]Read from MH i2c: E2 0E 00 7C 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B3 [13:00:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:00:03]wFMCommunicate OK [13:00:03]SAM_PROTO_GetShiftState done [13:00:03]FM_GetShiftState done [13:00:03]req_shift_opened done [13:00:03]requested_item shift.open_date is exist - process it [13:00:03]req_shift_open_date [13:00:03]req_shift_open_date done [13:00:03]produce_requested_data done [13:00:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30611,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:00:03]process_action_free close_receipt [13:00:03]json_value_free [13:00:03]json_value_free done [13:00:03]process_json_proto returns [13:00:03]Send response to host [13:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30611,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:00:03]free response buf [13:00:03]execute_script done [13:00:03]execute_script returns [13:00:03]free content buf [13:00:03]Sock 7.Close socket [13:00:03]Sock 7.Thread stoped [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:18]accept exits with 9 [13:01:18]New connection [13:01:18]New thread 3067346276 created [13:01:18]Thread 3067489636 joined [13:01:18]Waiting for new connection... [13:01:18] Sock 9.Parse request [13:01:18]Sock 9.Check first char [13:01:18]Sock 9.First char is OK [13:01:18]request: POST /json_proto HTTP/1.0 [13:01:18]Method: POST [13:01:18]URL: /json_proto [13:01:18]Method is POST - this is cgi request [13:01:18]url: /json_proto [13:01:18]query_string will be loaded in cgi processing [13:01:18]execute_cgi json_proto POST (null) [13:01:18]execute_cgi path=json_proto method=POST [13:01:18]POST find Content-Length [13:01:18]Host: 172.17.51.3:8080 [13:01:18]Content-Length: 677 [13:01:18]Content-Type: application/json [13:01:18] [13:01:18]POST finish read [13:01:18]Found Content-Length = 677 [13:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:18]execute_script... [13:01:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:18]POST & json_proto [13:01:18]process_json_proto [13:01:18]json parsed OK: [13:01:18]protocol is kg_v1.0 [13:01:18]action value=close_receipt [13:01:18]process_action close_receipt [13:01:18]cmd_close_receipt [13:01:18]MH_GetDate [13:01:18]Write to MH i2c: F0 00 00 7D 3E AA [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 09 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: F0 09 00 7D 3E 00 A3 50 16 67 04 C1 95 66 E3 [13:01:18]GetLastDocTimeStamp 1729515604 [13:01:18]current date 1729515683 [13:01:18]FM_GetShiftState [13:01:18]SAM_PROTO_GetShiftState [13:01:18]wFMCommunicate request_size=4 [13:01:18]MH_SAM_APDU [13:01:18]CAPDU: 80 13 01 00 [13:01:18]Write to MH i2c: E2 08 00 7E 3E 80 13 01 00 00 00 00 00 39 [13:01:18]Write i2c OK [13:01:18]MH_I2C_Read... [13:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:18]Read from MH i2c: E2 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 0E 00 [13:01:18]MH_I2C_Read... [13:01:18]Read from MH i2c: E2 0E 00 7E 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B5 [13:01:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:01:18]wFMCommunicate OK [13:01:18]SAM_PROTO_GetShiftState done [13:01:18]FM_GetShiftState done [13:01:18]opened in 1729471058 [13:01:18]opened+sec_in_day 1729557458 [13:01:18]quantity*price = 30038 [13:01:18]sum+1 = 30039 [13:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 109 21.10.2024 13:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30612 ФПД: 86863083078243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130123&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30612&fm=86863083078243&tin=02508201610067®Number=0000000000186857&sum=30000 [13:01:20]StoreToDocumentArchive [13:01:20]shift 115 fd 30612 [13:01:20]save to /storage/0115/doc_00030612 [13:01:20]save last doc name /storage/0115/doc_00030612 to /storage/kkm_last_doc_name [13:01:20]save OK [13:01:20]Clear old archive folders... [13:01:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:20]tlvbuf is 01E507D0 [13:01:20]SAM_PROTO_ClearQueue [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 09 00 00 [13:01:20]Write to MH i2c: E2 08 00 8B 3E 80 09 00 00 00 00 00 00 3B [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 8B 3E 00 90 00 3D [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_ClearQueue done [13:01:20]KKMCreateOFDPacket [13:01:20]OFDProtocolAddRootSTLVToBuf [13:01:20]FM_MakeSignedData [13:01:20]FM_MakeSignedData [13:01:20]SAM_PROTO_SignData [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 01 02 [13:01:20]Write to MH i2c: E2 08 00 8C 3E 80 0D 01 02 00 00 00 00 43 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 8C 3E 00 90 00 3E [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=255 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A3 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 77 00 00 35 04 06 00 4F [13:01:20]Write to MH i2c: E2 02 01 8D 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A3 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 77 00 00 35 04 06 00 4F 00 00 72 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 8D 3E 00 90 00 3F [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=10 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 02 02 05 00 63 36 02 63 [13:01:20]Write to MH i2c: E2 0D 00 8E 3E 80 0D 02 02 05 00 00 63 36 02 63 00 00 4E [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 03 00 8E 3E 00 90 00 40 [13:01:20]RAPDU: 90 00 [13:01:20]wFMCommunicate OK [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 0D 03 02 [13:01:20]Write to MH i2c: E2 08 00 8F 3E 80 0D 03 02 00 00 00 00 48 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0B 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 0B 00 8F 3E 00 E3 76 B0 20 1E E2 D4 58 90 00 9E [13:01:20]RAPDU: E3 76 B0 20 1E E2 D4 58 90 00 [13:01:20]wFMCommunicate OK [13:01:20]SAM_PROTO_SignData done [13:01:20]FM_MakeSignedData done [13:01:20]CreateOFDProtocolMessage [13:01:20]wFMCommunicate request_size=4 [13:01:20]MH_SAM_APDU [13:01:20]CAPDU: 80 11 00 00 [13:01:20]Write to MH i2c: E2 08 00 90 3E 80 11 00 00 00 00 00 00 48 [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:20]Read from MH i2c: E2 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: E2 17 00 90 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 96 [13:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:01:20]wFMCommunicate OK [13:01:20]CreateOFDProtocolMessage done [13:01:20]OFDSenderStorePacket 30612 [13:01:20]StoreOFDPacket docnum=30612 [13:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A3 D4 07 01 E2 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A3 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 77 00 00 35 04 06 00 4F 00 63 36 02 63 E3 76 B0 20 1E E2 D4 58 [13:01:20]CheckFolder [13:01:20]dirname=/storage/ofd_packets [13:01:20]CheckFolder done [13:01:20]ProducePacketName [13:01:20]name=ofd_packets/00030612 [13:01:20]NVStorageSaveData ofd_packets/00030612 [13:01:20]File name is /storage/ofd_packets/00030612 [13:01:20]Write 301 bytes [13:01:20]NVStorageSaveData done [13:01:20]OFDSenderStorePacket done [13:01:20]KKMCreateOFDPacket done [13:01:20]NVStorageSaveData kkm_last_timestamp [13:01:20]File name is /storage/kkm_last_timestamp [13:01:20]Write 4 bytes [13:01:20]NVStorageSaveData done [13:01:20]ExternCall_PrintAddStr [13:01:20]wPrintStart [13:01:20]Write to MH i2c: 01 00 00 91 3E CF [13:01:20]Write i2c OK [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 [13:01:20]MH_I2C_Read... [13:01:20]Read from MH i2c: 01 07 00 91 3E 00 00 00 00 00 FF 0F E4 [13:01:20]RasterBufferAndPrint [13:01:20]line Счет N : (1)343020 [13:01:20]line ИНН: 02508201610067 [13:01:20]line Контрольно-Кассовый Чек [13:01:20]line ПРОДАЖА [13:01:20]line ТРК (МРК, ГНК) : 43 [13:01:20]line Товар: 2710124130 [13:01:20]line Аи-92-К-2 [13:01:20]line 4.490 * 66.90 [13:01:20]line = 300.38 [13:01:20]line НДС 12% НСП 1% [13:01:20]line > о реализуемом товаре [13:01:20]line ОКРУГЛЕНИЕ: -0.38 [13:01:20]line ИТОГО: 300.00 [13:01:20]line Внесено: 300.00 [13:01:20]line СДАЧА: 0.00 [13:01:20]line НСП 1% : 2.66 [13:01:20]line НДС 12% : 31.90 [13:01:20]line Наличными: 300.00 [13:01:20]line Безнал.: 0.00 [13:01:20]line Место: АЗС № 78 "Партнер Нефть" [13:01:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:01:20]line СНО: Общий режим [13:01:20]line Чек 109 21.10.2024 13:01 [13:01:20]line Смена: 115 ФФД: 1.0 [13:01:20]line ЗНМ: 0300000137 [13:01:20]line РНМ: 0000000000186857 [13:01:20]line Версия ККМ: v1.0 [13:01:20]line ФМ: 0000000002094219 [13:01:20]line ФД: 30612 [13:01:20]line ФПД: 86863083078243 [13:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130123&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30612&fm=86863083078243&tin=02508201610067®Number=0000000000186857&sum=30000 [13:01:20]OFD Sender: Processing packet 30612 [packets to send 10, broken 9] [13:01:20]ProducePacketName [13:01:20]name=ofd_packets/00030612 [13:01:20]OFD Sender: To server: pG, [13:01:20]CommunicateWithHost lk.salyk.kg:30040 [13:01:20]ConnectInit lk.salyk.kg [13:01:20]written 0, free lines is 4095 [13:01:20]Connected sock=10 [13:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A3 D4 07 01 E2 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 A3 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 77 00 00 35 04 06 00 4F 00 63 36 02 63 E3 76 B0 20 1E E2 D4 58 [13:01:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A3 84 47 00 DA 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 94 77 00 00 F4 03 04 00 24 FB 15 67 B6 04 01 00 00 64 AE 0F D5 1F A6 77 3C [13:01:21]CommunicateWithHost err = 0 [13:01:21]CheckOFDResponse [13:01:21]1017 (14) - 77093643461234 [13:01:21]1041 (16) - 0000000002094219 [13:01:21]1040 (4) - 30612 [13:01:21]1012 (4) - 21.10.2024 06:56 [13:01:21]1206 (1) - 0 [13:01:21]OFD Sender: Remove packet 30612 [13:01:21]ProducePacketName [13:01:21]name=ofd_packets/00030612 [13:01:21]NVStorageDeleteData [13:01:21]Write to MH i2c: 01 00 00 BC 3E FA [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: 01 07 00 BC 3E 00 00 00 00 00 EC 0C F9 [13:01:21]RasterBufferAndPrint [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]line [13:01:21]written 0, free lines is 3314 [13:01:21]MH_Cut [13:01:21]Write to MH i2c: D1 01 00 C3 3E 01 D3 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 01 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: D1 01 00 C3 3E 00 D2 [13:01:21]Write to MH i2c: 01 00 00 C4 3E 02 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]OFD Sender: No OFD packet to send [13:01:22]*** Cut start [13:01:22]*** Partial cut [13:01:22]*** CUTSNS_PIN = 1 [13:01:22]*** CUTSNS_PIN = 0 [13:01:22]*** Brake cut motor [13:01:22]Read from MH i2c: 01 [13:01:22]MH_I2C_Read... [13:01:22]*** Stop cut motor [13:01:22]*** Cut end [13:01:22]Read from MH i2c: 01 07 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: 01 07 00 C4 3E 00 00 00 00 00 FF 0F 17 [13:01:22]process_action close_receipt done [13:01:22]requested_data is exist [13:01:22]produce_requested_data [13:01:22]requested_item fm.sn is exist - process it [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 11 00 00 [13:01:22]Write to MH i2c: E2 08 00 C5 3E 80 11 00 00 00 00 00 00 7D [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:22]Read from MH i2c: E2 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 17 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 17 00 C5 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [13:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:01:22]wFMCommunicate OK [13:01:22]requested_item fd.num is exist - process it [13:01:22]SAM_PROTO_GetFieldsCounters [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 13 00 00 [13:01:22]Write to MH i2c: E2 08 00 C6 3E 80 13 00 00 00 00 00 00 80 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:22]Read from MH i2c: E2 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 62 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 62 00 C6 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 94 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:01:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 94 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:22]wFMCommunicate OK [13:01:22]SAM_PROTO_GetFieldsCounters done [13:01:22]requested_item shift.num is exist - process it [13:01:22]requested_item shift.opened is exist - process it [13:01:22]req_shift_opened [13:01:22]FM_GetShiftState [13:01:22]SAM_PROTO_GetShiftState [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 13 01 00 [13:01:22]Write to MH i2c: E2 08 00 C7 3E 80 13 01 00 00 00 00 00 82 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:22]Read from MH i2c: E2 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 0E 00 [13:01:22]MH_I2C_Read... [13:01:22]Read from MH i2c: E2 0E 00 C7 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FE [13:01:22]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:01:22]wFMCommunicate OK [13:01:22]SAM_PROTO_GetShiftState done [13:01:22]FM_GetShiftState done [13:01:22]req_shift_opened done [13:01:22]requested_item shift.open_date is exist - process it [13:01:22]req_shift_open_date [13:01:22]req_shift_open_date done [13:01:22]produce_requested_data done [13:01:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30612,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:01:22]process_action_free close_receipt [13:01:22]json_value_free [13:01:22]json_value_free done [13:01:22]process_json_proto returns [13:01:22]Send response to host [13:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30612,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:01:22]free response buf [13:01:22]execute_script done [13:01:22]execute_script returns [13:01:22]free content buf [13:01:22]Sock 9.Close socket [13:01:22]Sock 9.Thread stoped [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:13]accept exits with 7 [13:02:13]New connection [13:02:13]New thread 3067489636 created [13:02:13]Thread 3067346276 joined [13:02:13]Waiting for new connection... [13:02:13] Sock 7.Parse request [13:02:13]Sock 7.Check first char [13:02:13]Sock 7.First char is OK [13:02:13]request: POST /json_proto HTTP/1.0 [13:02:13]Method: POST [13:02:13]URL: /json_proto [13:02:13]Method is POST - this is cgi request [13:02:13]url: /json_proto [13:02:13]query_string will be loaded in cgi processing [13:02:13]execute_cgi json_proto POST (null) [13:02:13]execute_cgi path=json_proto method=POST [13:02:13]POST find Content-Length [13:02:13]Host: 172.17.51.3:8080 [13:02:13]Content-Length: 840 [13:02:13]Content-Type: application/json [13:02:13] [13:02:13]POST finish read [13:02:13]Found Content-Length = 840 [13:02:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 430.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:13]execute_script... [13:02:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.430, "sum" : 430.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 430.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:13]POST & json_proto [13:02:13]process_json_proto [13:02:13]json parsed OK: [13:02:13]protocol is kg_v1.0 [13:02:13]action value=close_receipt [13:02:13]process_action close_receipt [13:02:13]cmd_close_receipt [13:02:13]MH_GetDate [13:02:13]Write to MH i2c: F0 00 00 C8 3E F5 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: F0 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: F0 09 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: F0 09 00 C8 3E 00 DA 50 16 67 04 C1 95 66 65 [13:02:13]GetLastDocTimeStamp 1729515683 [13:02:13]current date 1729515738 [13:02:13]FM_GetShiftState [13:02:13]SAM_PROTO_GetShiftState [13:02:13]wFMCommunicate request_size=4 [13:02:13]MH_SAM_APDU [13:02:13]CAPDU: 80 13 01 00 [13:02:13]Write to MH i2c: E2 08 00 C9 3E 80 13 01 00 00 00 00 00 84 [13:02:13]Write i2c OK [13:02:13]MH_I2C_Read... [13:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:13]Read from MH i2c: E2 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0E 00 [13:02:13]MH_I2C_Read... [13:02:13]Read from MH i2c: E2 0E 00 C9 3E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 00 [13:02:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:02:13]wFMCommunicate OK [13:02:13]SAM_PROTO_GetShiftState done [13:02:13]FM_GetShiftState done [13:02:13]opened in 1729471058 [13:02:13]opened+sec_in_day 1729557458 [13:02:13]quantity*price = 43016 [13:02:13]sum+1 = 43018 [13:02:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 430.17 НСП 1% : 3.81 НДС 12% : 45.68 Наличными: 0.00 Безнал.: 430.17 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 110 21.10.2024 13:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30613 ФПД: 215460126694854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130218&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30613&fm=215460126694854&tin=02508201610067®Number=0000000000186857&sum=43017 [13:02:15]StoreToDocumentArchive [13:02:15]shift 115 fd 30613 [13:02:15]save to /storage/0115/doc_00030613 [13:02:15]save last doc name /storage/0115/doc_00030613 to /storage/kkm_last_doc_name [13:02:15]save OK [13:02:15]Clear old archive folders... [13:02:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:15]tlvbuf is B6FDB4F0 [13:02:15]SAM_PROTO_ClearQueue [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 09 00 00 [13:02:15]Write to MH i2c: E2 08 00 D6 3E 80 09 00 00 00 00 00 00 86 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 D6 3E 00 90 00 88 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_ClearQueue done [13:02:15]KKMCreateOFDPacket [13:02:15]OFDProtocolAddRootSTLVToBuf [13:02:15]FM_MakeSignedData [13:02:15]FM_MakeSignedData [13:02:15]SAM_PROTO_SignData [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 01 02 [13:02:15]Write to MH i2c: E2 08 00 D7 3E 80 0D 01 02 00 00 00 00 8E [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 D7 3E 00 90 00 89 [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]wFMCommunicate request_size=255 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DA 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 77 00 00 35 04 06 00 C3 [13:02:15]Write to MH i2c: E2 02 01 D8 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DA 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 77 00 00 35 04 06 00 C3 00 00 DE [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 D8 3E 00 90 00 8A [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]wFMCommunicate request_size=10 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 02 02 05 F5 B8 50 9D C6 [13:02:15]Write to MH i2c: E2 0D 00 D9 3E 80 0D 02 02 05 00 F5 B8 50 9D C6 00 00 FB [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 03 00 D9 3E 00 90 00 8B [13:02:15]RAPDU: 90 00 [13:02:15]wFMCommunicate OK [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 0D 03 02 [13:02:15]Write to MH i2c: E2 08 00 DA 3E 80 0D 03 02 00 00 00 00 93 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 0B 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 0B 00 DA 3E 00 8D 01 0C A1 33 E5 2D 20 90 00 34 [13:02:15]RAPDU: 8D 01 0C A1 33 E5 2D 20 90 00 [13:02:15]wFMCommunicate OK [13:02:15]SAM_PROTO_SignData done [13:02:15]FM_MakeSignedData done [13:02:15]CreateOFDProtocolMessage [13:02:15]wFMCommunicate request_size=4 [13:02:15]MH_SAM_APDU [13:02:15]CAPDU: 80 11 00 00 [13:02:15]Write to MH i2c: E2 08 00 DB 3E 80 11 00 00 00 00 00 00 93 [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:15]Read from MH i2c: E2 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 17 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: E2 17 00 DB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E1 [13:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:02:15]wFMCommunicate OK [13:02:15]CreateOFDProtocolMessage done [13:02:15]OFDSenderStorePacket 30613 [13:02:15]StoreOFDPacket docnum=30613 [13:02:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 E4 07 01 18 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DA 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 77 00 00 35 04 06 00 C3 F5 B8 50 9D C6 8D 01 0C A1 33 E5 2D 20 [13:02:15]CheckFolder [13:02:15]dirname=/storage/ofd_packets [13:02:15]CheckFolder done [13:02:15]ProducePacketName [13:02:15]name=ofd_packets/00030613 [13:02:15]NVStorageSaveData ofd_packets/00030613 [13:02:15]File name is /storage/ofd_packets/00030613 [13:02:15]Write 301 bytes [13:02:15]NVStorageSaveData done [13:02:15]OFDSenderStorePacket done [13:02:15]KKMCreateOFDPacket done [13:02:15]NVStorageSaveData kkm_last_timestamp [13:02:15]File name is /storage/kkm_last_timestamp [13:02:15]Write 4 bytes [13:02:15]NVStorageSaveData done [13:02:15]ExternCall_PrintAddStr [13:02:15]wPrintStart [13:02:15]Write to MH i2c: 01 00 00 DC 3E 1A [13:02:15]Write i2c OK [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: 01 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: 01 07 00 [13:02:15]MH_I2C_Read... [13:02:15]Read from MH i2c: 01 07 00 DC 3E 00 00 00 00 00 FF 0F 2F [13:02:15]RasterBufferAndPrint [13:02:15]line Счет N : (1)343021 [13:02:15]line ИНН: 02508201610067 [13:02:15]line Контрольно-Кассовый Чек [13:02:15]line ПРОДАЖА [13:02:15]line ТРК (МРК, ГНК) : 63 [13:02:15]line Товар: 2710124130 [13:02:15]line Аи-92-К-2 [13:02:15]line 6.430 * 66.90 [13:02:15]line = 430.17 [13:02:15]line НДС 12% НСП 1% [13:02:15]line > о реализуемом товаре [13:02:15]line ИТОГО: 430.17 [13:02:15]line НСП 1% : 3.81 [13:02:15]line НДС 12% : 45.68 [13:02:15]line Наличными: 0.00 [13:02:15]line Безнал.: 430.17 [13:02:15]line Место: АЗС № 78 "Партнер Нефть" [13:02:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:02:15]line СНО: Общий режим [13:02:15]line Чек 110 21.10.2024 13:02 [13:02:15]line Смена: 115 ФФД: 1.0 [13:02:15]line ЗНМ: 0300000137 [13:02:15]line РНМ: 0000000000186857 [13:02:15]line Версия ККМ: v1.0 [13:02:15]line Платежная система: АКБ Кыргызстан [13:02:15]line ФМ: 0000000002094219 [13:02:15]line ФД: 30613 [13:02:15]line ФПД: 215460126694854 [13:02:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130218&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30613&fm=215460126694854&tin=02508201610067®Number=0000000000186857&sum=43017 [13:02:15]OFD Sender: Processing packet 30613 [packets to send 10, broken 9] [13:02:15]ProducePacketName [13:02:15]name=ofd_packets/00030613 [13:02:15]OFD Sender: To server: pG, [13:02:15]CommunicateWithHost lk.salyk.kg:30040 [13:02:15]ConnectInit lk.salyk.kg [13:02:15]written 0, free lines is 4095 [13:02:16]Connected sock=10 [13:02:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 E4 07 01 18 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 19 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 09 A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 09 A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 DA 50 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 77 00 00 35 04 06 00 C3 F5 B8 50 9D C6 8D 01 0C A1 33 E5 2D 20 [13:02:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6D 51 47 00 1A 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 95 77 00 00 F4 03 04 00 5B FB 15 67 B6 04 01 00 00 A5 D4 30 25 A7 1D 23 23 [13:02:16]CommunicateWithHost err = 0 [13:02:16]CheckOFDResponse [13:02:16]1017 (14) - 77093643461234 [13:02:16]1041 (16) - 0000000002094219 [13:02:16]1040 (4) - 30613 [13:02:16]1012 (4) - 21.10.2024 06:57 [13:02:16]1206 (1) - 0 [13:02:16]OFD Sender: Remove packet 30613 [13:02:16]ProducePacketName [13:02:16]name=ofd_packets/00030613 [13:02:16]NVStorageDeleteData [13:02:16]Write to MH i2c: 01 00 00 06 3F 45 [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: 01 07 00 06 3F 00 00 00 00 00 05 0D 5E [13:02:16]RasterBufferAndPrint [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]line [13:02:16]written 0, free lines is 3340 [13:02:16]MH_Cut [13:02:16]Write to MH i2c: D1 01 00 0D 3F 01 1E [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 01 00 [13:02:16]MH_I2C_Read... [13:02:16]Read from MH i2c: D1 01 00 0D 3F 00 1D [13:02:16]Write to MH i2c: 01 00 00 0E 3F 4D [13:02:16]Write i2c OK [13:02:16]MH_I2C_Read... [13:02:16]OFD Sender: No OFD packet to send [13:02:17]*** Cut start [13:02:17]*** Partial cut [13:02:17]*** CUTSNS_PIN = 1 [13:02:17]*** CUTSNS_PIN = 0 [13:02:17]*** Brake cut motor [13:02:17]Read from MH i2c: 01 [13:02:17]MH_I2C_Read... [13:02:17]*** Stop cut motor [13:02:17]*** Cut end [13:02:17]Read from MH i2c: 01 07 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: 01 07 00 0E 3F 00 00 00 00 00 FF 0F 62 [13:02:17]process_action close_receipt done [13:02:17]requested_data is exist [13:02:17]produce_requested_data [13:02:17]requested_item fm.sn is exist - process it [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 11 00 00 [13:02:17]Write to MH i2c: E2 08 00 0F 3F 80 11 00 00 00 00 00 00 C8 [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 17 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 17 00 0F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [13:02:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:02:17]wFMCommunicate OK [13:02:17]requested_item fd.num is exist - process it [13:02:17]SAM_PROTO_GetFieldsCounters [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 13 00 00 [13:02:17]Write to MH i2c: E2 08 00 10 3F 80 13 00 00 00 00 00 00 CB [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 62 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 62 00 10 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:02:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 95 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:17]wFMCommunicate OK [13:02:17]SAM_PROTO_GetFieldsCounters done [13:02:17]requested_item shift.num is exist - process it [13:02:17]requested_item shift.opened is exist - process it [13:02:17]req_shift_opened [13:02:17]FM_GetShiftState [13:02:17]SAM_PROTO_GetShiftState [13:02:17]wFMCommunicate request_size=4 [13:02:17]MH_SAM_APDU [13:02:17]CAPDU: 80 13 01 00 [13:02:17]Write to MH i2c: E2 08 00 11 3F 80 13 01 00 00 00 00 00 CD [13:02:17]Write i2c OK [13:02:17]MH_I2C_Read... [13:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:17]Read from MH i2c: E2 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 0E 00 [13:02:17]MH_I2C_Read... [13:02:17]Read from MH i2c: E2 0E 00 11 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 49 [13:02:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:02:17]wFMCommunicate OK [13:02:17]SAM_PROTO_GetShiftState done [13:02:17]FM_GetShiftState done [13:02:17]req_shift_opened done [13:02:17]requested_item shift.open_date is exist - process it [13:02:17]req_shift_open_date [13:02:17]req_shift_open_date done [13:02:17]produce_requested_data done [13:02:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30613,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:02:17]process_action_free close_receipt [13:02:17]json_value_free [13:02:17]json_value_free done [13:02:17]process_json_proto returns [13:02:17]Send response to host [13:02:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30613,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:02:17]free response buf [13:02:17]execute_script done [13:02:17]execute_script returns [13:02:17]free content buf [13:02:17]Sock 7.Close socket [13:02:17]Sock 7.Thread stoped [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:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:02:58]accept exits with 9 [13:02:58]New connection [13:02:58]New thread 3067346276 created [13:02:58]Thread 3067489636 joined [13:02:58]Waiting for new connection... [13:02:58] Sock 9.Parse request [13:02:58]Sock 9.Check first char [13:02:58]Sock 9.First char is OK [13:02:58]request: POST /json_proto HTTP/1.0 [13:02:58]Method: POST [13:02:58]URL: /json_proto [13:02:58]Method is POST - this is cgi request [13:02:58]url: /json_proto [13:02:58]query_string will be loaded in cgi processing [13:02:58]execute_cgi json_proto POST (null) [13:02:58]execute_cgi path=json_proto method=POST [13:02:58]POST find Content-Length [13:02:58]Host: 172.17.51.3:8080 [13:02:58]Content-Length: 678 [13:02:58]Content-Type: application/json [13:02:58] [13:02:58]POST finish read [13:02:58]Found Content-Length = 678 [13:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:58]execute_script... [13:02:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343022", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:02:58]POST & json_proto [13:02:58]process_json_proto [13:02:58]json parsed OK: [13:02:58]protocol is kg_v1.0 [13:02:58]action value=close_receipt [13:02:58]process_action close_receipt [13:02:58]cmd_close_receipt [13:02:58]MH_GetDate [13:02:58]Write to MH i2c: F0 00 00 12 3F 40 [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: F0 09 00 12 3F 00 07 51 16 67 04 C1 95 66 DE [13:02:58]GetLastDocTimeStamp 1729515738 [13:02:58]current date 1729515783 [13:02:58]FM_GetShiftState [13:02:58]SAM_PROTO_GetShiftState [13:02:58]wFMCommunicate request_size=4 [13:02:58]MH_SAM_APDU [13:02:58]CAPDU: 80 13 01 00 [13:02:58]Write to MH i2c: E2 08 00 13 3F 80 13 01 00 00 00 00 00 CF [13:02:58]Write i2c OK [13:02:58]MH_I2C_Read... [13:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:58]Read from MH i2c: E2 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 [13:02:58]MH_I2C_Read... [13:02:58]Read from MH i2c: E2 0E 00 13 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4B [13:02:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:02:58]wFMCommunicate OK [13:02:58]SAM_PROTO_GetShiftState done [13:02:58]FM_GetShiftState done [13:02:58]opened in 1729471058 [13:02:58]opened+sec_in_day 1729557458 [13:02:58]quantity*price = 70044 [13:02:58]sum+1 = 70045 [13:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 111 21.10.2024 13:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30614 ФПД: 225582695304057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30614&fm=225582695304057&tin=02508201610067®Number=0000000000186857&sum=70000 [13:02:59]StoreToDocumentArchive [13:02:59]shift 115 fd 30614 [13:02:59]save to /storage/0115/doc_00030614 [13:02:59]save last doc name /storage/0115/doc_00030614 to /storage/kkm_last_doc_name [13:02:59]save OK [13:02:59]Clear old archive folders... [13:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:02:59]tlvbuf is 01E85C60 [13:02:59]SAM_PROTO_ClearQueue [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 09 00 00 [13:02:59]Write to MH i2c: E2 08 00 20 3F 80 09 00 00 00 00 00 00 D1 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 20 3F 00 90 00 D3 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]SAM_PROTO_ClearQueue done [13:02:59]KKMCreateOFDPacket [13:02:59]OFDProtocolAddRootSTLVToBuf [13:02:59]FM_MakeSignedData [13:02:59]FM_MakeSignedData [13:02:59]SAM_PROTO_SignData [13:02:59]wFMCommunicate request_size=4 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 01 02 [13:02:59]Write to MH i2c: E2 08 00 21 3F 80 0D 01 02 00 00 00 00 D9 [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 21 3F 00 90 00 D4 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]wFMCommunicate request_size=255 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 77 00 00 35 04 06 00 CD [13:02:59]Write to MH i2c: E2 02 01 22 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 77 00 00 35 04 06 00 CD 00 00 0B [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:59]Read from MH i2c: E2 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 [13:02:59]MH_I2C_Read... [13:02:59]Read from MH i2c: E2 03 00 22 3F 00 90 00 D5 [13:02:59]RAPDU: 90 00 [13:02:59]wFMCommunicate OK [13:02:59]wFMCommunicate request_size=10 [13:02:59]MH_SAM_APDU [13:02:59]CAPDU: 80 0D 02 02 05 2A 90 6B CB 79 [13:02:59]Write to MH i2c: E2 0D 00 23 3F 80 0D 02 02 05 00 2A 90 6B CB 79 00 00 4F [13:02:59]Write i2c OK [13:02:59]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 03 00 23 3F 00 90 00 D6 [13:03:00]RAPDU: 90 00 [13:03:00]wFMCommunicate OK [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 0D 03 02 [13:03:00]Write to MH i2c: E2 08 00 24 3F 80 0D 03 02 00 00 00 00 DE [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0B 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 0B 00 24 3F 00 42 06 A2 83 0B 87 A3 CC 90 00 4D [13:03:00]RAPDU: 42 06 A2 83 0B 87 A3 CC 90 00 [13:03:00]wFMCommunicate OK [13:03:00]SAM_PROTO_SignData done [13:03:00]FM_MakeSignedData done [13:03:00]CreateOFDProtocolMessage [13:03:00]wFMCommunicate request_size=4 [13:03:00]MH_SAM_APDU [13:03:00]CAPDU: 80 11 00 00 [13:03:00]Write to MH i2c: E2 08 00 25 3F 80 11 00 00 00 00 00 00 DE [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:00]Read from MH i2c: E2 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 17 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: E2 17 00 25 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2C [13:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:03:00]wFMCommunicate OK [13:03:00]CreateOFDProtocolMessage done [13:03:00]OFDSenderStorePacket 30614 [13:03:00]StoreOFDPacket docnum=30614 [13:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 83 07 01 55 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 77 00 00 35 04 06 00 CD 2A 90 6B CB 79 42 06 A2 83 0B 87 A3 CC [13:03:00]CheckFolder [13:03:00]dirname=/storage/ofd_packets [13:03:00]CheckFolder done [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00030614 [13:03:00]NVStorageSaveData ofd_packets/00030614 [13:03:00]File name is /storage/ofd_packets/00030614 [13:03:00]Write 301 bytes [13:03:00]NVStorageSaveData done [13:03:00]OFDSenderStorePacket done [13:03:00]KKMCreateOFDPacket done [13:03:00]NVStorageSaveData kkm_last_timestamp [13:03:00]File name is /storage/kkm_last_timestamp [13:03:00]Write 4 bytes [13:03:00]NVStorageSaveData done [13:03:00]ExternCall_PrintAddStr [13:03:00]wPrintStart [13:03:00]Write to MH i2c: 01 00 00 26 3F 65 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 26 3F 00 00 00 00 00 FF 0F 7A [13:03:00]RasterBufferAndPrint [13:03:00]line Счет N : (1)343022 [13:03:00]line ИНН: 02508201610067 [13:03:00]line Контрольно-Кассовый Чек [13:03:00]line ПРОДАЖА [13:03:00]line ТРК (МРК, ГНК) : 43 [13:03:00]line Товар: 2710124130 [13:03:00]line Аи-92-К-2 [13:03:00]line 10.470 * 66.90 [13:03:00]line = 700.44 [13:03:00]line НДС 12% НСП 1% [13:03:00]line > о реализуемом товаре [13:03:00]line ОКРУГЛЕНИЕ: -0.44 [13:03:00]line ИТОГО: 700.00 [13:03:00]line Внесено: 700.00 [13:03:00]line СДАЧА: 0.00 [13:03:00]line НСП 1% : 6.20 [13:03:00]line НДС 12% : 74.38 [13:03:00]line Наличными: 700.00 [13:03:00]line Безнал.: 0.00 [13:03:00]line Место: АЗС № 78 "Партнер Нефть" [13:03:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:03:00]line СНО: Общий режим [13:03:00]line Чек 111 21.10.2024 13:03 [13:03:00]line Смена: 115 ФФД: 1.0 [13:03:00]line ЗНМ: 0300000137 [13:03:00]line РНМ: 0000000000186857 [13:03:00]line Версия ККМ: v1.0 [13:03:00]line ФМ: 0000000002094219 [13:03:00]line ФД: 30614 [13:03:00]line ФПД: 225582695304057 [13:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130303&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30614&fm=225582695304057&tin=02508201610067®Number=0000000000186857&sum=70000 [13:03:00]OFD Sender: Processing packet 30614 [packets to send 10, broken 9] [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00030614 [13:03:00]OFD Sender: To server: pG, [13:03:00]CommunicateWithHost lk.salyk.kg:30040 [13:03:00]ConnectInit lk.salyk.kg [13:03:00]written 0, free lines is 4095 [13:03:00]Connected sock=10 [13:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 15 83 07 01 55 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 07 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 77 00 00 35 04 06 00 CD 2A 90 6B CB 79 42 06 A2 83 0B 87 A3 CC [13:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 07 67 47 00 FA D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 96 77 00 00 F4 03 04 00 88 FB 15 67 B6 04 01 00 00 C1 36 75 AA E0 7C 2D D3 [13:03:00]CommunicateWithHost err = 0 [13:03:00]CheckOFDResponse [13:03:00]1017 (14) - 77093643461234 [13:03:00]1041 (16) - 0000000002094219 [13:03:00]1040 (4) - 30614 [13:03:00]1012 (4) - 21.10.2024 06:58 [13:03:00]1206 (1) - 0 [13:03:00]OFD Sender: Remove packet 30614 [13:03:00]ProducePacketName [13:03:00]name=ofd_packets/00030614 [13:03:00]NVStorageDeleteData [13:03:00]Write to MH i2c: 01 00 00 51 3F 90 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: 01 07 00 51 3F 00 00 00 00 00 DD 0C 80 [13:03:00]RasterBufferAndPrint [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]line [13:03:00]written 0, free lines is 3299 [13:03:00]MH_Cut [13:03:00]Write to MH i2c: D1 01 00 58 3F 01 69 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 01 00 [13:03:00]MH_I2C_Read... [13:03:00]Read from MH i2c: D1 01 00 58 3F 00 68 [13:03:00]Write to MH i2c: 01 00 00 59 3F 98 [13:03:00]Write i2c OK [13:03:00]MH_I2C_Read... [13:03:01]OFD Sender: No OFD packet to send [13:03:01]*** Cut start [13:03:01]*** Partial cut [13:03:01]*** CUTSNS_PIN = 1 [13:03:01]*** CUTSNS_PIN = 0 [13:03:01]*** Brake cut motor [13:03:02]Read from MH i2c: 01 [13:03:02]MH_I2C_Read... [13:03:02]*** Stop cut motor [13:03:02]*** Cut end [13:03:02]Read from MH i2c: 01 07 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: 01 07 00 59 3F 00 00 00 00 00 FF 0F AD [13:03:02]process_action close_receipt done [13:03:02]requested_data is exist [13:03:02]produce_requested_data [13:03:02]requested_item fm.sn is exist - process it [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 11 00 00 [13:03:02]Write to MH i2c: E2 08 00 5A 3F 80 11 00 00 00 00 00 00 13 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 17 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 17 00 5A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [13:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:03:02]wFMCommunicate OK [13:03:02]requested_item fd.num is exist - process it [13:03:02]SAM_PROTO_GetFieldsCounters [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 00 00 [13:03:02]Write to MH i2c: E2 08 00 5B 3F 80 13 00 00 00 00 00 00 16 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 62 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 62 00 5B 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [13:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 96 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetFieldsCounters done [13:03:02]requested_item shift.num is exist - process it [13:03:02]requested_item shift.opened is exist - process it [13:03:02]req_shift_opened [13:03:02]FM_GetShiftState [13:03:02]SAM_PROTO_GetShiftState [13:03:02]wFMCommunicate request_size=4 [13:03:02]MH_SAM_APDU [13:03:02]CAPDU: 80 13 01 00 [13:03:02]Write to MH i2c: E2 08 00 5C 3F 80 13 01 00 00 00 00 00 18 [13:03:02]Write i2c OK [13:03:02]MH_I2C_Read... [13:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:02]Read from MH i2c: E2 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 [13:03:02]MH_I2C_Read... [13:03:02]Read from MH i2c: E2 0E 00 5C 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 94 [13:03:02]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:03:02]wFMCommunicate OK [13:03:02]SAM_PROTO_GetShiftState done [13:03:02]FM_GetShiftState done [13:03:02]req_shift_opened done [13:03:02]requested_item shift.open_date is exist - process it [13:03:02]req_shift_open_date [13:03:02]req_shift_open_date done [13:03:02]produce_requested_data done [13:03:02]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30614,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:03:02]process_action_free close_receipt [13:03:02]json_value_free [13:03:02]json_value_free done [13:03:02]process_json_proto returns [13:03:02]Send response to host [13:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30614,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:03:02]free response buf [13:03:02]execute_script done [13:03:02]execute_script returns [13:03:02]free content buf [13:03:02]Sock 9.Close socket [13:03:02]Sock 9.Thread stoped [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:28]accept exits with 7 [13:06:28]New connection [13:06:28]New thread 3067489636 created [13:06:28]Thread 3067346276 joined [13:06:28]Waiting for new connection... [13:06:28] Sock 7.Parse request [13:06:28]Sock 7.Check first char [13:06:28]Sock 7.First char is OK [13:06:28]request: POST /json_proto HTTP/1.0 [13:06:28]Method: POST [13:06:28]URL: /json_proto [13:06:28]Method is POST - this is cgi request [13:06:28]url: /json_proto [13:06:28]query_string will be loaded in cgi processing [13:06:28]execute_cgi json_proto POST (null) [13:06:28]execute_cgi path=json_proto method=POST [13:06:28]POST find Content-Length [13:06:28]Host: 172.17.51.3:8080 [13:06:28]Content-Length: 688 [13:06:28]Content-Type: application/json [13:06:28] [13:06:28]POST finish read [13:06:28]Found Content-Length = 688 [13:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:28]execute_script... [13:06:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:28]POST & json_proto [13:06:28]process_json_proto [13:06:28]json parsed OK: [13:06:28]protocol is kg_v1.0 [13:06:28]action value=close_receipt [13:06:28]process_action close_receipt [13:06:28]cmd_close_receipt [13:06:28]MH_GetDate [13:06:28]Write to MH i2c: F0 00 00 5D 3F 8B [13:06:28]Write i2c OK [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: F0 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: F0 09 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: F0 09 00 5D 3F 00 D9 51 16 67 04 C1 95 66 FB [13:06:28]GetLastDocTimeStamp 1729515783 [13:06:28]current date 1729515993 [13:06:28]FM_GetShiftState [13:06:28]SAM_PROTO_GetShiftState [13:06:28]wFMCommunicate request_size=4 [13:06:28]MH_SAM_APDU [13:06:28]CAPDU: 80 13 01 00 [13:06:28]Write to MH i2c: E2 08 00 5E 3F 80 13 01 00 00 00 00 00 1A [13:06:28]Write i2c OK [13:06:28]MH_I2C_Read... [13:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:28]Read from MH i2c: E2 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 5E 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 96 [13:06:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:06:28]wFMCommunicate OK [13:06:28]SAM_PROTO_GetShiftState done [13:06:28]FM_GetShiftState done [13:06:28]opened in 1729471058 [13:06:28]opened+sec_in_day 1729557458 [13:06:28]quantity*price = 150076 [13:06:28]sum+1 = 150078 [13:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 112 21.10.2024 13:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30615 ФПД: 192201446275899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30615&fm=192201446275899&tin=02508201610067®Number=0000000000186857&sum=150000 [13:06:30]StoreToDocumentArchive [13:06:30]shift 115 fd 30615 [13:06:30]save to /storage/0115/doc_00030615 [13:06:30]save last doc name /storage/0115/doc_00030615 to /storage/kkm_last_doc_name [13:06:30]save OK [13:06:30]Clear old archive folders... [13:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:06:30]tlvbuf is 01E0C3D0 [13:06:30]SAM_PROTO_ClearQueue [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 09 00 00 [13:06:30]Write to MH i2c: E2 08 00 6B 3F 80 09 00 00 00 00 00 00 1C [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 6B 3F 00 90 00 1E [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_ClearQueue done [13:06:30]KKMCreateOFDPacket [13:06:30]OFDProtocolAddRootSTLVToBuf [13:06:30]FM_MakeSignedData [13:06:30]FM_MakeSignedData [13:06:30]SAM_PROTO_SignData [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 01 02 [13:06:30]Write to MH i2c: E2 08 00 6C 3F 80 0D 01 02 00 00 00 00 24 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 6C 3F 00 90 00 1F [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=255 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D9 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 77 00 [13:06:30]Write to MH i2c: E2 02 01 6D 3F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D9 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 77 00 00 00 68 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 6D 3F 00 90 00 20 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=16 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AE CE 62 EE 3B 3B [13:06:30]Write to MH i2c: E2 13 00 6E 3F 80 0D 02 02 0B 00 00 35 04 06 00 AE CE 62 EE 3B 3B 00 00 BE [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 03 00 6E 3F 00 90 00 21 [13:06:30]RAPDU: 90 00 [13:06:30]wFMCommunicate OK [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 0D 03 02 [13:06:30]Write to MH i2c: E2 08 00 6F 3F 80 0D 03 02 00 00 00 00 29 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0B 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 0B 00 6F 3F 00 4B 62 17 39 6E 0C A7 58 90 00 A0 [13:06:30]RAPDU: 4B 62 17 39 6E 0C A7 58 90 00 [13:06:30]wFMCommunicate OK [13:06:30]SAM_PROTO_SignData done [13:06:30]FM_MakeSignedData done [13:06:30]CreateOFDProtocolMessage [13:06:30]wFMCommunicate request_size=4 [13:06:30]MH_SAM_APDU [13:06:30]CAPDU: 80 11 00 00 [13:06:30]Write to MH i2c: E2 08 00 70 3F 80 11 00 00 00 00 00 00 29 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:30]Read from MH i2c: E2 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 17 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: E2 17 00 70 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 77 [13:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:06:30]wFMCommunicate OK [13:06:30]CreateOFDProtocolMessage done [13:06:30]OFDSenderStorePacket 30615 [13:06:30]StoreOFDPacket docnum=30615 [13:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B3 E2 0D 01 77 FE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D9 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 77 00 00 35 04 06 00 AE CE 62 EE 3B 3B 4B 62 17 39 6E 0C A7 58 [13:06:30]CheckFolder [13:06:30]dirname=/storage/ofd_packets [13:06:30]CheckFolder done [13:06:30]ProducePacketName [13:06:30]name=ofd_packets/00030615 [13:06:30]NVStorageSaveData ofd_packets/00030615 [13:06:30]File name is /storage/ofd_packets/00030615 [13:06:30]Write 307 bytes [13:06:30]NVStorageSaveData done [13:06:30]OFDSenderStorePacket done [13:06:30]KKMCreateOFDPacket done [13:06:30]NVStorageSaveData kkm_last_timestamp [13:06:30]File name is /storage/kkm_last_timestamp [13:06:30]Write 4 bytes [13:06:30]NVStorageSaveData done [13:06:30]ExternCall_PrintAddStr [13:06:30]wPrintStart [13:06:30]Write to MH i2c: 01 00 00 71 3F B0 [13:06:30]Write i2c OK [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 07 00 [13:06:30]MH_I2C_Read... [13:06:30]Read from MH i2c: 01 07 00 71 3F 00 00 00 00 00 FF 0F C5 [13:06:30]RasterBufferAndPrint [13:06:30]line Счет N : (1)343023 [13:06:30]line ИНН: 02508201610067 [13:06:30]line Контрольно-Кассовый Чек [13:06:30]line ПРОДАЖА [13:06:30]line ТРК (МРК, ГНК) : 61 [13:06:30]line Товар: 2710194210 [13:06:30]line D-ENERGY Дт-К-2 [13:06:30]line 19.440 * 77.20 [13:06:30]line = 1500.77 [13:06:30]line НДС 12% НСП 1% [13:06:30]line > о реализуемом товаре [13:06:30]line ОКРУГЛЕНИЕ: -0.77 [13:06:30]line ИТОГО: 1500.00 [13:06:30]line Внесено: 1500.00 [13:06:30]line СДАЧА: 0.00 [13:06:30]line НСП 1% : 13.28 [13:06:30]line НДС 12% : 159.37 [13:06:30]line Наличными: 1500.00 [13:06:30]line Безнал.: 0.00 [13:06:30]line Место: АЗС № 78 "Партнер Нефть" [13:06:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:06:30]line СНО: Общий режим [13:06:30]line Чек 112 21.10.2024 13:06 [13:06:30]line Смена: 115 ФФД: 1.0 [13:06:30]line ЗНМ: 0300000137 [13:06:30]line РНМ: 0000000000186857 [13:06:30]line Версия ККМ: v1.0 [13:06:30]line ФМ: 0000000002094219 [13:06:30]line ФД: 30615 [13:06:30]line ФПД: 192201446275899 [13:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130633&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30615&fm=192201446275899&tin=02508201610067®Number=0000000000186857&sum=150000 [13:06:30]OFD Sender: Processing packet 30615 [packets to send 10, broken 9] [13:06:30]ProducePacketName [13:06:30]name=ofd_packets/00030615 [13:06:30]OFD Sender: To server: pG, [13:06:30]CommunicateWithHost lk.salyk.kg:30040 [13:06:30]ConnectInit lk.salyk.kg [13:06:30]written 0, free lines is 4095 [13:06:30]Connected sock=10 [13:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 B3 E2 0D 01 77 FE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 D9 51 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 77 00 00 35 04 06 00 AE CE 62 EE 3B 3B 4B 62 17 39 6E 0C A7 58 [13:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 49 47 00 D2 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 97 77 00 00 F4 03 04 00 5A FC 15 67 B6 04 01 00 00 15 D5 0A 24 8E B0 1C 66 [13:06:31]CommunicateWithHost err = 0 [13:06:31]CheckOFDResponse [13:06:31]1017 (14) - 77093643461234 [13:06:31]1041 (16) - 0000000002094219 [13:06:31]1040 (4) - 30615 [13:06:31]1012 (4) - 21.10.2024 07:01 [13:06:31]1206 (1) - 0 [13:06:31]OFD Sender: Remove packet 30615 [13:06:31]ProducePacketName [13:06:31]name=ofd_packets/00030615 [13:06:31]NVStorageDeleteData [13:06:31]Write to MH i2c: 01 00 00 9C 3F DB [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: 01 07 00 9C 3F 00 00 00 00 00 EA 0C D8 [13:06:31]RasterBufferAndPrint [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]line [13:06:31]written 0, free lines is 3313 [13:06:31]MH_Cut [13:06:31]Write to MH i2c: D1 01 00 A3 3F 01 B4 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 01 00 [13:06:31]MH_I2C_Read... [13:06:31]Read from MH i2c: D1 01 00 A3 3F 00 B3 [13:06:31]Write to MH i2c: 01 00 00 A4 3F E3 [13:06:31]Write i2c OK [13:06:31]MH_I2C_Read... [13:06:31]OFD Sender: No OFD packet to send [13:06:32]*** Cut start [13:06:32]*** Partial cut [13:06:32]*** CUTSNS_PIN = 1 [13:06:32]*** CUTSNS_PIN = 0 [13:06:32]*** Brake cut motor [13:06:32]Read from MH i2c: 01 [13:06:32]MH_I2C_Read... [13:06:32]*** Stop cut motor [13:06:32]*** Cut end [13:06:32]Read from MH i2c: 01 07 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: 01 07 00 A4 3F 00 00 00 00 00 FF 0F F8 [13:06:32]process_action close_receipt done [13:06:32]requested_data is exist [13:06:32]produce_requested_data [13:06:32]requested_item fm.sn is exist - process it [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 11 00 00 [13:06:32]Write to MH i2c: E2 08 00 A5 3F 80 11 00 00 00 00 00 00 5E [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 17 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 17 00 A5 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AC [13:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:06:32]wFMCommunicate OK [13:06:32]requested_item fd.num is exist - process it [13:06:32]SAM_PROTO_GetFieldsCounters [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 13 00 00 [13:06:32]Write to MH i2c: E2 08 00 A6 3F 80 13 00 00 00 00 00 00 61 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 62 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 62 00 A6 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [13:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 97 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:32]wFMCommunicate OK [13:06:32]SAM_PROTO_GetFieldsCounters done [13:06:32]requested_item shift.num is exist - process it [13:06:32]requested_item shift.opened is exist - process it [13:06:32]req_shift_opened [13:06:32]FM_GetShiftState [13:06:32]SAM_PROTO_GetShiftState [13:06:32]wFMCommunicate request_size=4 [13:06:32]MH_SAM_APDU [13:06:32]CAPDU: 80 13 01 00 [13:06:32]Write to MH i2c: E2 08 00 A7 3F 80 13 01 00 00 00 00 00 63 [13:06:32]Write i2c OK [13:06:32]MH_I2C_Read... [13:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:32]Read from MH i2c: E2 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 [13:06:32]MH_I2C_Read... [13:06:32]Read from MH i2c: E2 0E 00 A7 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DF [13:06:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:06:32]wFMCommunicate OK [13:06:32]SAM_PROTO_GetShiftState done [13:06:32]FM_GetShiftState done [13:06:32]req_shift_opened done [13:06:32]requested_item shift.open_date is exist - process it [13:06:32]req_shift_open_date [13:06:32]req_shift_open_date done [13:06:32]produce_requested_data done [13:06:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30615,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:06:32]process_action_free close_receipt [13:06:32]json_value_free [13:06:32]json_value_free done [13:06:32]process_json_proto returns [13:06:32]Send response to host [13:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30615,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:06:32]free response buf [13:06:32]execute_script done [13:06:32]execute_script returns [13:06:32]free content buf [13:06:32]Sock 7.Close socket [13:06:32]Sock 7.Thread stoped [13:06:36]OFD Sender: No OFD packet to send [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:11]OFD Sender: No OFD packet to send [13:09:16]OFD Sender: No OFD packet to send [13:09:21]OFD Sender: No OFD packet to send [13:09:26]OFD Sender: No OFD packet to send [13:09:31]OFD Sender: No OFD packet to send [13:09:36]OFD Sender: No OFD packet to send [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:06]OFD Sender: No OFD packet to send [13:10:11]OFD Sender: No OFD packet to send [13:10:16]OFD Sender: No OFD packet to send [13:10:21]OFD Sender: No OFD packet to send [13:10:26]OFD Sender: No OFD packet to send [13:10:31]OFD Sender: No OFD packet to send [13:10:36]OFD Sender: No OFD packet to send [13:10:41]OFD Sender: No OFD packet to send [13:10:46]OFD Sender: No OFD packet to send [13:10:51]OFD Sender: No OFD packet to send [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:46]OFD Sender: No OFD packet to send [13:12:51]OFD Sender: No OFD packet to send [13:12:56]OFD Sender: No OFD packet to send [13:13:01]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [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: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:27]OFD Sender: No OFD packet to send [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:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:42]accept exits with 9 [13:22:42]New connection [13:22:42]New thread 3067346276 created [13:22:42]Thread 3067489636 joined [13:22:42]Waiting for new connection... [13:22:42] Sock 9.Parse request [13:22:42]Sock 9.Check first char [13:22:42]Sock 9.First char is OK [13:22:42]request: POST /json_proto HTTP/1.0 [13:22:42]Method: POST [13:22:42]URL: /json_proto [13:22:42]Method is POST - this is cgi request [13:22:42]url: /json_proto [13:22:42]query_string will be loaded in cgi processing [13:22:42]execute_cgi json_proto POST (null) [13:22:42]execute_cgi path=json_proto method=POST [13:22:42]POST find Content-Length [13:22:42]Host: 172.17.51.3:8080 [13:22:42]Content-Length: 684 [13:22:42]Content-Type: application/json [13:22:42] [13:22:42]POST finish read [13:22:42]Found Content-Length = 684 [13:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.310, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:42]execute_script... [13:22:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.310, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:42]POST & json_proto [13:22:42]process_json_proto [13:22:42]json parsed OK: [13:22:42]protocol is kg_v1.0 [13:22:42]action value=close_receipt [13:22:42]process_action close_receipt [13:22:42]cmd_close_receipt [13:22:42]MH_GetDate [13:22:42]Write to MH i2c: F0 00 00 A8 3F D6 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 09 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: F0 09 00 A8 3F 00 A7 55 16 67 04 C1 95 66 18 [13:22:42]GetLastDocTimeStamp 1729515993 [13:22:42]current date 1729516967 [13:22:42]FM_GetShiftState [13:22:42]SAM_PROTO_GetShiftState [13:22:42]wFMCommunicate request_size=4 [13:22:42]MH_SAM_APDU [13:22:42]CAPDU: 80 13 01 00 [13:22:42]Write to MH i2c: E2 08 00 A9 3F 80 13 01 00 00 00 00 00 65 [13:22:42]Write i2c OK [13:22:42]MH_I2C_Read... [13:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:42]Read from MH i2c: E2 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0E 00 [13:22:42]MH_I2C_Read... [13:22:42]Read from MH i2c: E2 0E 00 A9 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E1 [13:22:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:22:42]wFMCommunicate OK [13:22:42]SAM_PROTO_GetShiftState done [13:22:42]FM_GetShiftState done [13:22:42]opened in 1729471058 [13:22:42]opened+sec_in_day 1729557458 [13:22:42]quantity*price = 95033 [13:22:42]sum+1 = 95034 [13:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.92 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 113 21.10.2024 13:22 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30616 ФПД: 243830253247733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132247&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30616&fm=243830253247733&tin=02508201610067®Number=0000000000186857&sum=95000 [13:22:43]StoreToDocumentArchive [13:22:43]shift 115 fd 30616 [13:22:43]save to /storage/0115/doc_00030616 [13:22:43]save last doc name /storage/0115/doc_00030616 to /storage/kkm_last_doc_name [13:22:43]save OK [13:22:43]Clear old archive folders... [13:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:22:43]tlvbuf is 01E1C8A0 [13:22:43]SAM_PROTO_ClearQueue [13:22:43]wFMCommunicate request_size=4 [13:22:43]MH_SAM_APDU [13:22:43]CAPDU: 80 09 00 00 [13:22:43]Write to MH i2c: E2 08 00 B6 3F 80 09 00 00 00 00 00 00 67 [13:22:43]Write i2c OK [13:22:43]MH_I2C_Read... [13:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 B6 3F 00 90 00 69 [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]SAM_PROTO_ClearQueue done [13:22:44]KKMCreateOFDPacket [13:22:44]OFDProtocolAddRootSTLVToBuf [13:22:44]FM_MakeSignedData [13:22:44]FM_MakeSignedData [13:22:44]SAM_PROTO_SignData [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 01 02 [13:22:44]Write to MH i2c: E2 08 00 B7 3F 80 0D 01 02 00 00 00 00 6F [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 B7 3F 00 90 00 6A [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]wFMCommunicate request_size=255 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A7 55 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 77 00 [13:22:44]Write to MH i2c: E2 02 01 B8 3F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A7 55 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 77 00 00 00 83 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 B8 3F 00 90 00 6B [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]wFMCommunicate request_size=16 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD C3 27 A1 5C F5 [13:22:44]Write to MH i2c: E2 13 00 B9 3F 80 0D 02 02 0B 00 00 35 04 06 00 DD C3 27 A1 5C F5 00 00 80 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 03 00 B9 3F 00 90 00 6C [13:22:44]RAPDU: 90 00 [13:22:44]wFMCommunicate OK [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 0D 03 02 [13:22:44]Write to MH i2c: E2 08 00 BA 3F 80 0D 03 02 00 00 00 00 74 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0B 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 0B 00 BA 3F 00 C0 0B A3 00 18 44 F8 D0 90 00 07 [13:22:44]RAPDU: C0 0B A3 00 18 44 F8 D0 90 00 [13:22:44]wFMCommunicate OK [13:22:44]SAM_PROTO_SignData done [13:22:44]FM_MakeSignedData done [13:22:44]CreateOFDProtocolMessage [13:22:44]wFMCommunicate request_size=4 [13:22:44]MH_SAM_APDU [13:22:44]CAPDU: 80 11 00 00 [13:22:44]Write to MH i2c: E2 08 00 BB 3F 80 11 00 00 00 00 00 00 74 [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:44]Read from MH i2c: E2 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 17 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: E2 17 00 BB 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C2 [13:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:22:44]wFMCommunicate OK [13:22:44]CreateOFDProtocolMessage done [13:22:44]OFDSenderStorePacket 30616 [13:22:44]StoreOFDPacket docnum=30616 [13:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 3F 57 0D 01 05 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A7 55 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 77 00 00 35 04 06 00 DD C3 27 A1 5C F5 C0 0B A3 00 18 44 F8 D0 [13:22:44]CheckFolder [13:22:44]dirname=/storage/ofd_packets [13:22:44]CheckFolder done [13:22:44]ProducePacketName [13:22:44]name=ofd_packets/00030616 [13:22:44]NVStorageSaveData ofd_packets/00030616 [13:22:44]File name is /storage/ofd_packets/00030616 [13:22:44]Write 307 bytes [13:22:44]NVStorageSaveData done [13:22:44]OFDSenderStorePacket done [13:22:44]KKMCreateOFDPacket done [13:22:44]NVStorageSaveData kkm_last_timestamp [13:22:44]File name is /storage/kkm_last_timestamp [13:22:44]Write 4 bytes [13:22:44]NVStorageSaveData done [13:22:44]ExternCall_PrintAddStr [13:22:44]wPrintStart [13:22:44]Write to MH i2c: 01 00 00 BC 3F FB [13:22:44]Write i2c OK [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 [13:22:44]MH_I2C_Read... [13:22:44]Read from MH i2c: 01 07 00 BC 3F 00 00 00 00 00 FF 0F 10 [13:22:44]RasterBufferAndPrint [13:22:44]line Счет N : (1)343024 [13:22:44]line ИНН: 02508201610067 [13:22:44]line Контрольно-Кассовый Чек [13:22:44]line ПРОДАЖА [13:22:44]line ТРК (МРК, ГНК) : 61 [13:22:44]line Товар: 2710194210 [13:22:44]line D-ENERGY Дт-К-2 [13:22:44]line 12.310 * 77.20 [13:22:44]line = 950.33 [13:22:44]line НДС 12% НСП 1% [13:22:44]line > о реализуемом товаре [13:22:44]line ОКРУГЛЕНИЕ: -0.33 [13:22:44]line ИТОГО: 950.00 [13:22:44]line Внесено: 950.00 [13:22:44]line СДАЧА: 0.00 [13:22:44]line НСП 1% : 8.41 [13:22:44]line НДС 12% : 100.92 [13:22:44]line Наличными: 950.00 [13:22:44]line Безнал.: 0.00 [13:22:44]line Место: АЗС № 78 "Партнер Нефть" [13:22:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:22:44]line СНО: Общий режим [13:22:44]line Чек 113 21.10.2024 13:22 [13:22:44]line Смена: 115 ФФД: 1.0 [13:22:44]line ЗНМ: 0300000137 [13:22:44]line РНМ: 0000000000186857 [13:22:44]line Версия ККМ: v1.0 [13:22:44]line ФМ: 0000000002094219 [13:22:44]line ФД: 30616 [13:22:44]line ФПД: 243830253247733 [13:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132247&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30616&fm=243830253247733&tin=02508201610067®Number=0000000000186857&sum=95000 [13:22:44]OFD Sender: Processing packet 30616 [packets to send 10, broken 9] [13:22:44]ProducePacketName [13:22:44]name=ofd_packets/00030616 [13:22:44]OFD Sender: To server: pG, [13:22:44]CommunicateWithHost lk.salyk.kg:30040 [13:22:44]ConnectInit lk.salyk.kg [13:22:44]written 0, free lines is 4095 [13:22:44]Connected sock=10 [13:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 3F 57 0D 01 05 EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 A7 55 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 77 00 00 35 04 06 00 DD C3 27 A1 5C F5 C0 0B A3 00 18 44 F8 D0 [13:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E2 88 47 00 F0 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 98 77 00 00 F4 03 04 00 28 00 16 67 B6 04 01 00 00 4A 3B 38 E8 D1 75 A4 78 [13:22:45]CommunicateWithHost err = 0 [13:22:45]CheckOFDResponse [13:22:45]1017 (14) - 77093643461234 [13:22:45]1041 (16) - 0000000002094219 [13:22:45]1040 (4) - 30616 [13:22:45]1012 (4) - 21.10.2024 07:18 [13:22:45]1206 (1) - 0 [13:22:45]OFD Sender: Remove packet 30616 [13:22:45]ProducePacketName [13:22:45]name=ofd_packets/00030616 [13:22:45]NVStorageDeleteData [13:22:45]Write to MH i2c: 01 00 00 E7 3F 26 [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: 01 07 00 E7 3F 00 00 00 00 00 F1 0C 2A [13:22:45]RasterBufferAndPrint [13:22:45]line [13:22:45]line [13:22:45]line [13:22:45]line [13:22:45]line [13:22:45]written 0, free lines is 3320 [13:22:45]MH_Cut [13:22:45]Write to MH i2c: D1 01 00 EE 3F 01 FF [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: D1 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: D1 01 00 [13:22:45]MH_I2C_Read... [13:22:45]Read from MH i2c: D1 01 00 EE 3F 00 FE [13:22:45]Write to MH i2c: 01 00 00 EF 3F 2E [13:22:45]Write i2c OK [13:22:45]MH_I2C_Read... [13:22:45]OFD Sender: No OFD packet to send [13:22:45]*** Cut start [13:22:45]*** Partial cut [13:22:45]*** CUTSNS_PIN = 1 [13:22:45]*** CUTSNS_PIN = 0 [13:22:46]*** Brake cut motor [13:22:46]Read from MH i2c: 01 [13:22:46]MH_I2C_Read... [13:22:46]*** Stop cut motor [13:22:46]*** Cut end [13:22:46]Read from MH i2c: 01 07 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: 01 07 00 EF 3F 00 00 00 00 00 FF 0F 43 [13:22:46]process_action close_receipt done [13:22:46]requested_data is exist [13:22:46]produce_requested_data [13:22:46]requested_item fm.sn is exist - process it [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 11 00 00 [13:22:46]Write to MH i2c: E2 08 00 F0 3F 80 11 00 00 00 00 00 00 A9 [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 17 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 17 00 F0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F7 [13:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:22:46]wFMCommunicate OK [13:22:46]requested_item fd.num is exist - process it [13:22:46]SAM_PROTO_GetFieldsCounters [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 13 00 00 [13:22:46]Write to MH i2c: E2 08 00 F1 3F 80 13 00 00 00 00 00 00 AC [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 62 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 62 00 F1 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [13:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 98 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:46]wFMCommunicate OK [13:22:46]SAM_PROTO_GetFieldsCounters done [13:22:46]requested_item shift.num is exist - process it [13:22:46]requested_item shift.opened is exist - process it [13:22:46]req_shift_opened [13:22:46]FM_GetShiftState [13:22:46]SAM_PROTO_GetShiftState [13:22:46]wFMCommunicate request_size=4 [13:22:46]MH_SAM_APDU [13:22:46]CAPDU: 80 13 01 00 [13:22:46]Write to MH i2c: E2 08 00 F2 3F 80 13 01 00 00 00 00 00 AE [13:22:46]Write i2c OK [13:22:46]MH_I2C_Read... [13:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:46]Read from MH i2c: E2 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 0E 00 [13:22:46]MH_I2C_Read... [13:22:46]Read from MH i2c: E2 0E 00 F2 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2A [13:22:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:22:46]wFMCommunicate OK [13:22:46]SAM_PROTO_GetShiftState done [13:22:46]FM_GetShiftState done [13:22:46]req_shift_opened done [13:22:46]requested_item shift.open_date is exist - process it [13:22:46]req_shift_open_date [13:22:46]req_shift_open_date done [13:22:46]produce_requested_data done [13:22:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30616,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:22:46]process_action_free close_receipt [13:22:46]json_value_free [13:22:46]json_value_free done [13:22:46]process_json_proto returns [13:22:46]Send response to host [13:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30616,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:22:46]free response buf [13:22:46]execute_script done [13:22:46]execute_script returns [13:22:46]free content buf [13:22:46]Sock 9.Close socket [13:22:46]Sock 9.Thread stoped [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:47]accept exits with 7 [13:31:47]New connection [13:31:47]New thread 3067489636 created [13:31:47]Thread 3067346276 joined [13:31:47]Waiting for new connection... [13:31:47] Sock 7.Parse request [13:31:47]Sock 7.Check first char [13:31:47]Sock 7.First char is OK [13:31:47]request: POST /json_proto HTTP/1.0 [13:31:47]Method: POST [13:31:47]URL: /json_proto [13:31:47]Method is POST - this is cgi request [13:31:47]url: /json_proto [13:31:47]query_string will be loaded in cgi processing [13:31:47]execute_cgi json_proto POST (null) [13:31:47]execute_cgi path=json_proto method=POST [13:31:47]POST find Content-Length [13:31:47]Host: 172.17.51.3:8080 [13:31:47]Content-Length: 677 [13:31:47]Content-Type: application/json [13:31:47] [13:31:47]POST finish read [13:31:47]Found Content-Length = 677 [13:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:47]execute_script... [13:31:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:47]POST & json_proto [13:31:47]process_json_proto [13:31:47]json parsed OK: [13:31:47]protocol is kg_v1.0 [13:31:47]action value=close_receipt [13:31:47]process_action close_receipt [13:31:47]cmd_close_receipt [13:31:47]MH_GetDate [13:31:47]Write to MH i2c: F0 00 00 F3 3F 21 [13:31:47]Write i2c OK [13:31:47]MH_I2C_Read... [13:31:47]Read from MH i2c: F0 [13:31:47]MH_I2C_Read... [13:31:47]Read from MH i2c: F0 09 00 [13:31:47]MH_I2C_Read... [13:31:47]Read from MH i2c: F0 09 00 F3 3F 00 C8 57 16 67 04 C1 95 66 86 [13:31:47]GetLastDocTimeStamp 1729516967 [13:31:47]current date 1729517512 [13:31:47]FM_GetShiftState [13:31:47]SAM_PROTO_GetShiftState [13:31:47]wFMCommunicate request_size=4 [13:31:47]MH_SAM_APDU [13:31:47]CAPDU: 80 13 01 00 [13:31:47]Write to MH i2c: E2 08 00 F4 3F 80 13 01 00 00 00 00 00 B0 [13:31:47]Write i2c OK [13:31:47]MH_I2C_Read... [13:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:47]Read from MH i2c: E2 [13:31:47]MH_I2C_Read... [13:31:47]Read from MH i2c: E2 0E 00 [13:31:47]MH_I2C_Read... [13:31:47]Read from MH i2c: E2 0E 00 F4 3F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2C [13:31:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:31:47]wFMCommunicate OK [13:31:47]SAM_PROTO_GetShiftState done [13:31:47]FM_GetShiftState done [13:31:47]opened in 1729471058 [13:31:47]opened+sec_in_day 1729557458 [13:31:47]quantity*price = 35055 [13:31:47]sum+1 = 35057 [13:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 114 21.10.2024 13:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30617 ФПД: 137845557218637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30617&fm=137845557218637&tin=02508201610067®Number=0000000000186857&sum=35000 [13:31:49]StoreToDocumentArchive [13:31:49]shift 115 fd 30617 [13:31:49]save to /storage/0115/doc_00030617 [13:31:49]save last doc name /storage/0115/doc_00030617 to /storage/kkm_last_doc_name [13:31:49]save OK [13:31:49]Clear old archive folders... [13:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:49]tlvbuf is 01E6FBF0 [13:31:49]SAM_PROTO_ClearQueue [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 09 00 00 [13:31:49]Write to MH i2c: E2 08 00 01 40 80 09 00 00 00 00 00 00 B3 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 01 40 00 90 00 B5 [13:31:49]RAPDU: 90 00 [13:31:49]wFMCommunicate OK [13:31:49]SAM_PROTO_ClearQueue done [13:31:49]KKMCreateOFDPacket [13:31:49]OFDProtocolAddRootSTLVToBuf [13:31:49]FM_MakeSignedData [13:31:49]FM_MakeSignedData [13:31:49]SAM_PROTO_SignData [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 0D 01 02 [13:31:49]Write to MH i2c: E2 08 00 02 40 80 0D 01 02 00 00 00 00 BB [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 02 40 00 90 00 B6 [13:31:49]RAPDU: 90 00 [13:31:49]wFMCommunicate OK [13:31:49]wFMCommunicate request_size=255 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 72 00 00 00 F4 03 04 00 C8 57 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 77 00 00 35 04 06 00 7D [13:31:49]Write to MH i2c: E2 02 01 03 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 72 00 00 00 F4 03 04 00 C8 57 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 77 00 00 35 04 06 00 7D 00 00 65 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 03 40 00 90 00 B7 [13:31:49]RAPDU: 90 00 [13:31:49]wFMCommunicate OK [13:31:49]wFMCommunicate request_size=10 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 0D 02 02 05 5E AB 78 CD 4D [13:31:49]Write to MH i2c: E2 0D 00 04 40 80 0D 02 02 05 00 5E AB 78 CD 4D 00 00 63 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 03 00 04 40 00 90 00 B8 [13:31:49]RAPDU: 90 00 [13:31:49]wFMCommunicate OK [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 0D 03 02 [13:31:49]Write to MH i2c: E2 08 00 05 40 80 0D 03 02 00 00 00 00 C0 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 0B 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 0B 00 05 40 00 8E C8 B7 A6 8D 63 E4 3A 90 00 82 [13:31:49]RAPDU: 8E C8 B7 A6 8D 63 E4 3A 90 00 [13:31:49]wFMCommunicate OK [13:31:49]SAM_PROTO_SignData done [13:31:49]FM_MakeSignedData done [13:31:49]CreateOFDProtocolMessage [13:31:49]wFMCommunicate request_size=4 [13:31:49]MH_SAM_APDU [13:31:49]CAPDU: 80 11 00 00 [13:31:49]Write to MH i2c: E2 08 00 06 40 80 11 00 00 00 00 00 00 C0 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:49]Read from MH i2c: E2 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 17 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: E2 17 00 06 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [13:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:31:49]wFMCommunicate OK [13:31:49]CreateOFDProtocolMessage done [13:31:49]OFDSenderStorePacket 30617 [13:31:49]StoreOFDPacket docnum=30617 [13:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 3C 07 01 A5 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 72 00 00 00 F4 03 04 00 C8 57 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 77 00 00 35 04 06 00 7D 5E AB 78 CD 4D 8E C8 B7 A6 8D 63 E4 3A [13:31:49]CheckFolder [13:31:49]dirname=/storage/ofd_packets [13:31:49]CheckFolder done [13:31:49]ProducePacketName [13:31:49]name=ofd_packets/00030617 [13:31:49]NVStorageSaveData ofd_packets/00030617 [13:31:49]File name is /storage/ofd_packets/00030617 [13:31:49]Write 301 bytes [13:31:49]NVStorageSaveData done [13:31:49]OFDSenderStorePacket done [13:31:49]KKMCreateOFDPacket done [13:31:49]NVStorageSaveData kkm_last_timestamp [13:31:49]File name is /storage/kkm_last_timestamp [13:31:49]Write 4 bytes [13:31:49]NVStorageSaveData done [13:31:49]ExternCall_PrintAddStr [13:31:49]wPrintStart [13:31:49]Write to MH i2c: 01 00 00 07 40 47 [13:31:49]Write i2c OK [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: 01 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: 01 07 00 [13:31:49]MH_I2C_Read... [13:31:49]Read from MH i2c: 01 07 00 07 40 00 00 00 00 00 FF 0F 5C [13:31:49]RasterBufferAndPrint [13:31:49]line Счет N : (1)343025 [13:31:49]line ИНН: 02508201610067 [13:31:49]line Контрольно-Кассовый Чек [13:31:49]line ПРОДАЖА [13:31:49]line ТРК (МРК, ГНК) : 53 [13:31:49]line Товар: 2710124130 [13:31:49]line Аи-92-К-2 [13:31:49]line 5.240 * 66.90 [13:31:49]line = 350.56 [13:31:49]line НДС 12% НСП 1% [13:31:49]line > о реализуемом товаре [13:31:49]line ОКРУГЛЕНИЕ: -0.56 [13:31:49]line ИТОГО: 350.00 [13:31:49]line Внесено: 350.00 [13:31:49]line СДАЧА: 0.00 [13:31:49]line НСП 1% : 3.10 [13:31:49]line НДС 12% : 37.23 [13:31:49]line Наличными: 350.00 [13:31:49]line Безнал.: 0.00 [13:31:49]line Место: АЗС № 78 "Партнер Нефть" [13:31:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:31:49]line СНО: Общий режим [13:31:49]line Чек 114 21.10.2024 13:31 [13:31:49]line Смена: 115 ФФД: 1.0 [13:31:49]line ЗНМ: 0300000137 [13:31:49]line РНМ: 0000000000186857 [13:31:49]line Версия ККМ: v1.0 [13:31:49]line ФМ: 0000000002094219 [13:31:49]line ФД: 30617 [13:31:49]line ФПД: 137845557218637 [13:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30617&fm=137845557218637&tin=02508201610067®Number=0000000000186857&sum=35000 [13:31:49]OFD Sender: Processing packet 30617 [packets to send 10, broken 9] [13:31:49]ProducePacketName [13:31:49]name=ofd_packets/00030617 [13:31:49]OFD Sender: To server: pG, [13:31:49]CommunicateWithHost lk.salyk.kg:30040 [13:31:49]ConnectInit lk.salyk.kg [13:31:49]written 0, free lines is 4095 [13:31:49]Connected sock=10 [13:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C9 3C 07 01 A5 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 8B 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 72 00 00 00 F4 03 04 00 C8 57 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 77 00 00 35 04 06 00 7D 5E AB 78 CD 4D 8E C8 B7 A6 8D 63 E4 3A [13:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 14 47 00 A4 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 99 77 00 00 F4 03 04 00 49 02 16 67 B6 04 01 00 00 D0 9D DF DD A0 75 74 52 [13:31:50]CommunicateWithHost err = 0 [13:31:50]CheckOFDResponse [13:31:50]1017 (14) - 77093643461234 [13:31:50]1041 (16) - 0000000002094219 [13:31:50]1040 (4) - 30617 [13:31:50]1012 (4) - 21.10.2024 07:27 [13:31:50]1206 (1) - 0 [13:31:50]OFD Sender: Remove packet 30617 [13:31:50]ProducePacketName [13:31:50]name=ofd_packets/00030617 [13:31:50]NVStorageDeleteData [13:31:50]Write to MH i2c: 01 00 00 32 40 72 [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: 01 07 00 32 40 00 00 00 00 00 E4 0C 69 [13:31:50]RasterBufferAndPrint [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]line [13:31:50]written 0, free lines is 3306 [13:31:50]MH_Cut [13:31:50]Write to MH i2c: D1 01 00 39 40 01 4B [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 01 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: D1 01 00 39 40 00 4A [13:31:50]Write to MH i2c: 01 00 00 3A 40 7A [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]OFD Sender: No OFD packet to send [13:31:51]*** Cut start [13:31:51]*** Partial cut [13:31:51]*** CUTSNS_PIN = 1 [13:31:51]*** CUTSNS_PIN = 0 [13:31:51]*** Brake cut motor [13:31:51]Read from MH i2c: 01 [13:31:51]MH_I2C_Read... [13:31:51]*** Stop cut motor [13:31:51]*** Cut end [13:31:51]Read from MH i2c: 01 07 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: 01 07 00 3A 40 00 00 00 00 00 FF 0F 8F [13:31:51]process_action close_receipt done [13:31:51]requested_data is exist [13:31:51]produce_requested_data [13:31:51]requested_item fm.sn is exist - process it [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 11 00 00 [13:31:51]Write to MH i2c: E2 08 00 3B 40 80 11 00 00 00 00 00 00 F5 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 3B 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [13:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:31:51]wFMCommunicate OK [13:31:51]requested_item fd.num is exist - process it [13:31:51]SAM_PROTO_GetFieldsCounters [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 13 00 00 [13:31:51]Write to MH i2c: E2 08 00 3C 40 80 13 00 00 00 00 00 00 F8 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 62 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 62 00 3C 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 77 00 00 0E 04 04 00 73 00 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 F7 [13:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 99 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_GetFieldsCounters done [13:31:51]requested_item shift.num is exist - process it [13:31:51]requested_item shift.opened is exist - process it [13:31:51]req_shift_opened [13:31:51]FM_GetShiftState [13:31:51]SAM_PROTO_GetShiftState [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 13 01 00 [13:31:51]Write to MH i2c: E2 08 00 3D 40 80 13 01 00 00 00 00 00 FA [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0E 00 3D 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 76 [13:31:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_GetShiftState done [13:31:51]FM_GetShiftState done [13:31:51]req_shift_opened done [13:31:51]requested_item shift.open_date is exist - process it [13:31:51]req_shift_open_date [13:31:51]req_shift_open_date done [13:31:51]produce_requested_data done [13:31:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30617,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:31:51]process_action_free close_receipt [13:31:51]json_value_free [13:31:51]json_value_free done [13:31:51]process_json_proto returns [13:31:51]Send response to host [13:31:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30617,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:31:51]free response buf [13:31:51]execute_script done [13:31:51]execute_script returns [13:31:51]free content buf [13:31:51]Sock 7.Close socket [13:31:51]Sock 7.Thread stoped [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:03]accept exits with 9 [13:35:03]New connection [13:35:03]New thread 3067346276 created [13:35:03]Thread 3067489636 joined [13:35:03]Waiting for new connection... [13:35:03] Sock 9.Parse request [13:35:03]Sock 9.Check first char [13:35:03]Sock 9.First char is OK [13:35:03]request: POST /json_proto HTTP/1.0 [13:35:03]Method: POST [13:35:03]URL: /json_proto [13:35:03]Method is POST - this is cgi request [13:35:03]url: /json_proto [13:35:03]query_string will be loaded in cgi processing [13:35:03]execute_cgi json_proto POST (null) [13:35:03]execute_cgi path=json_proto method=POST [13:35:03]POST find Content-Length [13:35:03]Host: 172.17.51.3:8080 [13:35:03]Content-Length: 677 [13:35:03]Content-Type: application/json [13:35:03] [13:35:03]POST finish read [13:35:03]Found Content-Length = 677 [13:35:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:03]execute_script... [13:35:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:03]POST & json_proto [13:35:03]process_json_proto [13:35:03]json parsed OK: [13:35:03]protocol is kg_v1.0 [13:35:03]action value=close_receipt [13:35:03]process_action close_receipt [13:35:03]cmd_close_receipt [13:35:03]MH_GetDate [13:35:03]Write to MH i2c: F0 00 00 3E 40 6D [13:35:03]Write i2c OK [13:35:03]MH_I2C_Read... [13:35:03]Read from MH i2c: F0 [13:35:03]MH_I2C_Read... [13:35:03]Read from MH i2c: F0 09 00 [13:35:03]MH_I2C_Read... [13:35:03]Read from MH i2c: F0 09 00 3E 40 00 8C 58 16 67 04 C1 95 66 97 [13:35:03]GetLastDocTimeStamp 1729517512 [13:35:03]current date 1729517708 [13:35:03]FM_GetShiftState [13:35:03]SAM_PROTO_GetShiftState [13:35:03]wFMCommunicate request_size=4 [13:35:03]MH_SAM_APDU [13:35:03]CAPDU: 80 13 01 00 [13:35:03]Write to MH i2c: E2 08 00 3F 40 80 13 01 00 00 00 00 00 FC [13:35:03]Write i2c OK [13:35:03]MH_I2C_Read... [13:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:03]Read from MH i2c: E2 [13:35:03]MH_I2C_Read... [13:35:03]Read from MH i2c: E2 0E 00 [13:35:03]MH_I2C_Read... [13:35:03]Read from MH i2c: E2 0E 00 3F 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 78 [13:35:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:35:03]wFMCommunicate OK [13:35:03]SAM_PROTO_GetShiftState done [13:35:03]FM_GetShiftState done [13:35:03]opened in 1729471058 [13:35:03]opened+sec_in_day 1729557458 [13:35:03]quantity*price = 25020 [13:35:03]sum+1 = 25022 [13:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 115 21.10.2024 13:35 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30618 ФПД: 45205571463869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30618&fm=45205571463869&tin=02508201610067®Number=0000000000186857&sum=25000 [13:35:04]StoreToDocumentArchive [13:35:04]shift 115 fd 30618 [13:35:04]save to /storage/0115/doc_00030618 [13:35:04]save last doc name /storage/0115/doc_00030618 to /storage/kkm_last_doc_name [13:35:04]save OK [13:35:04]Clear old archive folders... [13:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:04]tlvbuf is 01DE3700 [13:35:04]SAM_PROTO_ClearQueue [13:35:04]wFMCommunicate request_size=4 [13:35:04]MH_SAM_APDU [13:35:04]CAPDU: 80 09 00 00 [13:35:04]Write to MH i2c: E2 08 00 4C 40 80 09 00 00 00 00 00 00 FE [13:35:04]Write i2c OK [13:35:04]MH_I2C_Read... [13:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:04]Read from MH i2c: E2 [13:35:04]MH_I2C_Read... [13:35:04]Read from MH i2c: E2 03 00 [13:35:04]MH_I2C_Read... [13:35:04]Read from MH i2c: E2 03 00 4C 40 00 90 00 00 [13:35:04]RAPDU: 90 00 [13:35:04]wFMCommunicate OK [13:35:04]SAM_PROTO_ClearQueue done [13:35:04]KKMCreateOFDPacket [13:35:04]OFDProtocolAddRootSTLVToBuf [13:35:04]FM_MakeSignedData [13:35:04]FM_MakeSignedData [13:35:04]SAM_PROTO_SignData [13:35:04]wFMCommunicate request_size=4 [13:35:04]MH_SAM_APDU [13:35:04]CAPDU: 80 0D 01 02 [13:35:04]Write to MH i2c: E2 08 00 4D 40 80 0D 01 02 00 00 00 00 06 [13:35:04]Write i2c OK [13:35:04]MH_I2C_Read... [13:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:04]Read from MH i2c: E2 [13:35:04]MH_I2C_Read... [13:35:04]Read from MH i2c: E2 03 00 [13:35:04]MH_I2C_Read... [13:35:04]Read from MH i2c: E2 03 00 4D 40 00 90 00 01 [13:35:04]RAPDU: 90 00 [13:35:04]wFMCommunicate OK [13:35:04]wFMCommunicate request_size=255 [13:35:04]MH_SAM_APDU [13:35:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 58 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 77 00 00 35 04 06 00 29 [13:35:04]Write to MH i2c: E2 02 01 4E 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 58 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 77 00 00 35 04 06 00 29 00 00 F1 [13:35:04]Write i2c OK [13:35:04]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 [13:35:05]MH_I2C_Read... [13:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:05]Read from MH i2c: E2 03 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 03 00 4E 40 00 90 00 02 [13:35:05]RAPDU: 90 00 [13:35:05]wFMCommunicate OK [13:35:05]wFMCommunicate request_size=10 [13:35:05]MH_SAM_APDU [13:35:05]CAPDU: 80 0D 02 02 05 1D 3E 07 6A BD [13:35:05]Write to MH i2c: E2 0D 00 4F 40 80 0D 02 02 05 00 1D 3E 07 6A BD 00 00 9C [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:05]Read from MH i2c: E2 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 03 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 03 00 4F 40 00 90 00 03 [13:35:05]RAPDU: 90 00 [13:35:05]wFMCommunicate OK [13:35:05]wFMCommunicate request_size=4 [13:35:05]MH_SAM_APDU [13:35:05]CAPDU: 80 0D 03 02 [13:35:05]Write to MH i2c: E2 08 00 50 40 80 0D 03 02 00 00 00 00 0B [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:05]Read from MH i2c: E2 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 0B 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 0B 00 50 40 00 BF 87 77 DB 8B 01 13 39 90 00 7C [13:35:05]RAPDU: BF 87 77 DB 8B 01 13 39 90 00 [13:35:05]wFMCommunicate OK [13:35:05]SAM_PROTO_SignData done [13:35:05]FM_MakeSignedData done [13:35:05]CreateOFDProtocolMessage [13:35:05]wFMCommunicate request_size=4 [13:35:05]MH_SAM_APDU [13:35:05]CAPDU: 80 11 00 00 [13:35:05]Write to MH i2c: E2 08 00 51 40 80 11 00 00 00 00 00 00 0B [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:05]Read from MH i2c: E2 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 17 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 17 00 51 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 59 [13:35:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:35:05]wFMCommunicate OK [13:35:05]CreateOFDProtocolMessage done [13:35:05]OFDSenderStorePacket 30618 [13:35:05]StoreOFDPacket docnum=30618 [13:35:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CC E2 07 01 80 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 58 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 77 00 00 35 04 06 00 29 1D 3E 07 6A BD BF 87 77 DB 8B 01 13 39 [13:35:05]CheckFolder [13:35:05]dirname=/storage/ofd_packets [13:35:05]CheckFolder done [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00030618 [13:35:05]NVStorageSaveData ofd_packets/00030618 [13:35:05]File name is /storage/ofd_packets/00030618 [13:35:05]Write 301 bytes [13:35:05]NVStorageSaveData done [13:35:05]OFDSenderStorePacket done [13:35:05]KKMCreateOFDPacket done [13:35:05]NVStorageSaveData kkm_last_timestamp [13:35:05]File name is /storage/kkm_last_timestamp [13:35:05]Write 4 bytes [13:35:05]NVStorageSaveData done [13:35:05]ExternCall_PrintAddStr [13:35:05]wPrintStart [13:35:05]Write to MH i2c: 01 00 00 52 40 92 [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: 01 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: 01 07 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: 01 07 00 52 40 00 00 00 00 00 FF 0F A7 [13:35:05]RasterBufferAndPrint [13:35:05]line Счет N : (1)343026 [13:35:05]line ИНН: 02508201610067 [13:35:05]line Контрольно-Кассовый Чек [13:35:05]line ПРОДАЖА [13:35:05]line ТРК (МРК, ГНК) : 63 [13:35:05]line Товар: 2710124130 [13:35:05]line Аи-92-К-2 [13:35:05]line 3.740 * 66.90 [13:35:05]line = 250.21 [13:35:05]line НДС 12% НСП 1% [13:35:05]line > о реализуемом товаре [13:35:05]line ОКРУГЛЕНИЕ: -0.21 [13:35:05]line ИТОГО: 250.00 [13:35:05]line Внесено: 250.00 [13:35:05]line СДАЧА: 0.00 [13:35:05]line НСП 1% : 2.21 [13:35:05]line НДС 12% : 26.57 [13:35:05]line Наличными: 250.00 [13:35:05]line Безнал.: 0.00 [13:35:05]line Место: АЗС № 78 "Партнер Нефть" [13:35:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:35:05]line СНО: Общий режим [13:35:05]line Чек 115 21.10.2024 13:35 [13:35:05]line Смена: 115 ФФД: 1.0 [13:35:05]line ЗНМ: 0300000137 [13:35:05]line РНМ: 0000000000186857 [13:35:05]line Версия ККМ: v1.0 [13:35:05]line ФМ: 0000000002094219 [13:35:05]line ФД: 30618 [13:35:05]line ФПД: 45205571463869 [13:35:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133508&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30618&fm=45205571463869&tin=02508201610067®Number=0000000000186857&sum=25000 [13:35:05]OFD Sender: Processing packet 30618 [packets to send 10, broken 9] [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00030618 [13:35:05]OFD Sender: To server: pG, [13:35:05]CommunicateWithHost lk.salyk.kg:30040 [13:35:05]ConnectInit lk.salyk.kg [13:35:05]written 0, free lines is 4095 [13:35:05]Connected sock=10 [13:35:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CC E2 07 01 80 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 8C 58 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 77 00 00 35 04 06 00 29 1D 3E 07 6A BD BF 87 77 DB 8B 01 13 39 [13:35:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D7 B7 47 00 C1 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9A 77 00 00 F4 03 04 00 0D 03 16 67 B6 04 01 00 00 4E 1C CD 17 0E BA B5 AD [13:35:05]CommunicateWithHost err = 0 [13:35:05]CheckOFDResponse [13:35:05]1017 (14) - 77093643461234 [13:35:05]1041 (16) - 0000000002094219 [13:35:05]1040 (4) - 30618 [13:35:05]1012 (4) - 21.10.2024 07:30 [13:35:05]1206 (1) - 0 [13:35:05]OFD Sender: Remove packet 30618 [13:35:05]ProducePacketName [13:35:05]name=ofd_packets/00030618 [13:35:05]NVStorageDeleteData [13:35:06]Write to MH i2c: 01 00 00 7D 40 BD [13:35:06]Write i2c OK [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: 01 [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: 01 07 00 [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: 01 07 00 7D 40 00 00 00 00 00 EE 0C BE [13:35:06]RasterBufferAndPrint [13:35:06]line [13:35:06]line [13:35:06]line [13:35:06]line [13:35:06]line [13:35:06]written 0, free lines is 3316 [13:35:06]MH_Cut [13:35:06]Write to MH i2c: D1 01 00 84 40 01 96 [13:35:06]Write i2c OK [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: D1 [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: D1 01 00 [13:35:06]MH_I2C_Read... [13:35:06]Read from MH i2c: D1 01 00 84 40 00 95 [13:35:06]Write to MH i2c: 01 00 00 85 40 C5 [13:35:06]Write i2c OK [13:35:06]MH_I2C_Read... [13:35:06]OFD Sender: No OFD packet to send [13:35:06]*** Cut start [13:35:06]*** Partial cut [13:35:06]*** CUTSNS_PIN = 1 [13:35:06]*** CUTSNS_PIN = 0 [13:35:06]*** Brake cut motor [13:35:07]Read from MH i2c: 01 [13:35:07]MH_I2C_Read... [13:35:07]*** Stop cut motor [13:35:07]*** Cut end [13:35:07]Read from MH i2c: 01 07 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: 01 07 00 85 40 00 00 00 00 00 FF 0F DA [13:35:07]process_action close_receipt done [13:35:07]requested_data is exist [13:35:07]produce_requested_data [13:35:07]requested_item fm.sn is exist - process it [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 11 00 00 [13:35:07]Write to MH i2c: E2 08 00 86 40 80 11 00 00 00 00 00 00 40 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 17 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 17 00 86 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [13:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:35:07]wFMCommunicate OK [13:35:07]requested_item fd.num is exist - process it [13:35:07]SAM_PROTO_GetFieldsCounters [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 13 00 00 [13:35:07]Write to MH i2c: E2 08 00 87 40 80 13 00 00 00 00 00 00 43 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 62 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 62 00 87 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 77 00 00 0E 04 04 00 73 00 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 46 [13:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9A 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:07]wFMCommunicate OK [13:35:07]SAM_PROTO_GetFieldsCounters done [13:35:07]requested_item shift.num is exist - process it [13:35:07]requested_item shift.opened is exist - process it [13:35:07]req_shift_opened [13:35:07]FM_GetShiftState [13:35:07]SAM_PROTO_GetShiftState [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 13 01 00 [13:35:07]Write to MH i2c: E2 08 00 88 40 80 13 01 00 00 00 00 00 45 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 0E 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 0E 00 88 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C1 [13:35:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:35:07]wFMCommunicate OK [13:35:07]SAM_PROTO_GetShiftState done [13:35:07]FM_GetShiftState done [13:35:07]req_shift_opened done [13:35:07]requested_item shift.open_date is exist - process it [13:35:07]req_shift_open_date [13:35:07]req_shift_open_date done [13:35:07]produce_requested_data done [13:35:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30618,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:35:07]process_action_free close_receipt [13:35:07]json_value_free [13:35:07]json_value_free done [13:35:07]process_json_proto returns [13:35:07]Send response to host [13:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30618,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:35:07]free response buf [13:35:07]execute_script done [13:35:07]execute_script returns [13:35:07]free content buf [13:35:07]Sock 9.Close socket [13:35:07]Sock 9.Thread stoped [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:21]OFD Sender: No OFD packet to send [13:35:26]OFD Sender: No OFD packet to send [13:35:31]OFD Sender: No OFD packet to send [13:35:36]OFD Sender: No OFD packet to send [13:35:41]OFD Sender: No OFD packet to send [13:35:46]OFD Sender: No OFD packet to send [13:35:51]OFD Sender: No OFD packet to send [13:35:56]OFD Sender: No OFD packet to send [13:36:01]OFD Sender: No OFD packet to send [13:36:06]OFD Sender: No OFD packet to send [13:36:11]OFD Sender: No OFD packet to send [13:36:16]OFD Sender: No OFD packet to send [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:23]accept exits with 7 [13:45:23]New connection [13:45:23]New thread 3067489636 created [13:45:23]Thread 3067346276 joined [13:45:23]Waiting for new connection... [13:45:23] Sock 7.Parse request [13:45:23]Sock 7.Check first char [13:45:23]Sock 7.First char is OK [13:45:23]request: POST /json_proto HTTP/1.0 [13:45:23]Method: POST [13:45:23]URL: /json_proto [13:45:23]Method is POST - this is cgi request [13:45:23]url: /json_proto [13:45:23]query_string will be loaded in cgi processing [13:45:23]execute_cgi json_proto POST (null) [13:45:23]execute_cgi path=json_proto method=POST [13:45:23]POST find Content-Length [13:45:23]Host: 172.17.51.3:8080 [13:45:23]Content-Length: 677 [13:45:23]Content-Type: application/json [13:45:23] [13:45:23]POST finish read [13:45:23]Found Content-Length = 677 [13:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:23]execute_script... [13:45:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:23]POST & json_proto [13:45:23]process_json_proto [13:45:23]json parsed OK: [13:45:23]protocol is kg_v1.0 [13:45:23]action value=close_receipt [13:45:23]process_action close_receipt [13:45:23]cmd_close_receipt [13:45:23]MH_GetDate [13:45:23]Write to MH i2c: F0 00 00 89 40 B8 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: F0 09 00 89 40 00 F8 5A 16 67 04 C1 95 66 50 [13:45:23]GetLastDocTimeStamp 1729517708 [13:45:23]current date 1729518328 [13:45:23]FM_GetShiftState [13:45:23]SAM_PROTO_GetShiftState [13:45:23]wFMCommunicate request_size=4 [13:45:23]MH_SAM_APDU [13:45:23]CAPDU: 80 13 01 00 [13:45:23]Write to MH i2c: E2 08 00 8A 40 80 13 01 00 00 00 00 00 47 [13:45:23]Write i2c OK [13:45:23]MH_I2C_Read... [13:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:23]Read from MH i2c: E2 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 [13:45:23]MH_I2C_Read... [13:45:23]Read from MH i2c: E2 0E 00 8A 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C3 [13:45:23]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:45:23]wFMCommunicate OK [13:45:23]SAM_PROTO_GetShiftState done [13:45:23]FM_GetShiftState done [13:45:23]opened in 1729471058 [13:45:23]opened+sec_in_day 1729557458 [13:45:23]quantity*price = 15052 [13:45:23]sum+1 = 15054 [13:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 116 21.10.2024 13:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30619 ФПД: 170303559333264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30619&fm=170303559333264&tin=02508201610067®Number=0000000000186857&sum=15000 [13:45:24]StoreToDocumentArchive [13:45:24]shift 115 fd 30619 [13:45:24]save to /storage/0115/doc_00030619 [13:45:24]save last doc name /storage/0115/doc_00030619 to /storage/kkm_last_doc_name [13:45:24]save OK [13:45:24]Clear old archive folders... [13:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:24]tlvbuf is 01DD74D0 [13:45:24]SAM_PROTO_ClearQueue [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 09 00 00 [13:45:24]Write to MH i2c: E2 08 00 97 40 80 09 00 00 00 00 00 00 49 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 97 40 00 90 00 4B [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]SAM_PROTO_ClearQueue done [13:45:24]KKMCreateOFDPacket [13:45:24]OFDProtocolAddRootSTLVToBuf [13:45:24]FM_MakeSignedData [13:45:24]FM_MakeSignedData [13:45:24]SAM_PROTO_SignData [13:45:24]wFMCommunicate request_size=4 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 01 02 [13:45:24]Write to MH i2c: E2 08 00 98 40 80 0D 01 02 00 00 00 00 51 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:24]Read from MH i2c: E2 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 [13:45:24]MH_I2C_Read... [13:45:24]Read from MH i2c: E2 03 00 98 40 00 90 00 4C [13:45:24]RAPDU: 90 00 [13:45:24]wFMCommunicate OK [13:45:24]wFMCommunicate request_size=255 [13:45:24]MH_SAM_APDU [13:45:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 74 00 00 00 F4 03 04 00 F8 5A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 77 00 00 35 04 06 00 9A [13:45:24]Write to MH i2c: E2 02 01 99 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 74 00 00 00 F4 03 04 00 F8 5A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 77 00 00 35 04 06 00 9A 00 00 41 [13:45:24]Write i2c OK [13:45:24]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 99 40 00 90 00 4D [13:45:25]RAPDU: 90 00 [13:45:25]wFMCommunicate OK [13:45:25]wFMCommunicate request_size=10 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 0D 02 02 05 E3 E3 28 75 90 [13:45:25]Write to MH i2c: E2 0D 00 9A 40 80 0D 02 02 05 00 E3 E3 28 75 90 00 00 51 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 03 00 9A 40 00 90 00 4E [13:45:25]RAPDU: 90 00 [13:45:25]wFMCommunicate OK [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 0D 03 02 [13:45:25]Write to MH i2c: E2 08 00 9B 40 80 0D 03 02 00 00 00 00 56 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0B 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 0B 00 9B 40 00 F3 BA EE C8 8B 7D 34 91 90 00 87 [13:45:25]RAPDU: F3 BA EE C8 8B 7D 34 91 90 00 [13:45:25]wFMCommunicate OK [13:45:25]SAM_PROTO_SignData done [13:45:25]FM_MakeSignedData done [13:45:25]CreateOFDProtocolMessage [13:45:25]wFMCommunicate request_size=4 [13:45:25]MH_SAM_APDU [13:45:25]CAPDU: 80 11 00 00 [13:45:25]Write to MH i2c: E2 08 00 9C 40 80 11 00 00 00 00 00 00 56 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:25]Read from MH i2c: E2 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: E2 17 00 9C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A4 [13:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:25]wFMCommunicate OK [13:45:25]CreateOFDProtocolMessage done [13:45:25]OFDSenderStorePacket 30619 [13:45:25]StoreOFDPacket docnum=30619 [13:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 27 FC 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 74 00 00 00 F4 03 04 00 F8 5A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 77 00 00 35 04 06 00 9A E3 E3 28 75 90 F3 BA EE C8 8B 7D 34 91 [13:45:25]CheckFolder [13:45:25]dirname=/storage/ofd_packets [13:45:25]CheckFolder done [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00030619 [13:45:25]NVStorageSaveData ofd_packets/00030619 [13:45:25]File name is /storage/ofd_packets/00030619 [13:45:25]Write 301 bytes [13:45:25]NVStorageSaveData done [13:45:25]OFDSenderStorePacket done [13:45:25]KKMCreateOFDPacket done [13:45:25]NVStorageSaveData kkm_last_timestamp [13:45:25]File name is /storage/kkm_last_timestamp [13:45:25]Write 4 bytes [13:45:25]NVStorageSaveData done [13:45:25]ExternCall_PrintAddStr [13:45:25]wPrintStart [13:45:25]Write to MH i2c: 01 00 00 9D 40 DD [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 9D 40 00 00 00 00 00 FF 0F F2 [13:45:25]RasterBufferAndPrint [13:45:25]line Счет N : (1)343027 [13:45:25]line ИНН: 02508201610067 [13:45:25]line Контрольно-Кассовый Чек [13:45:25]line ПРОДАЖА [13:45:25]line ТРК (МРК, ГНК) : 63 [13:45:25]line Товар: 2710124130 [13:45:25]line Аи-92-К-2 [13:45:25]line 2.250 * 66.90 [13:45:25]line = 150.53 [13:45:25]line НДС 12% НСП 1% [13:45:25]line > о реализуемом товаре [13:45:25]line ОКРУГЛЕНИЕ: -0.53 [13:45:25]line ИТОГО: 150.00 [13:45:25]line Внесено: 150.00 [13:45:25]line СДАЧА: 0.00 [13:45:25]line НСП 1% : 1.33 [13:45:25]line НДС 12% : 15.98 [13:45:25]line Наличными: 150.00 [13:45:25]line Безнал.: 0.00 [13:45:25]line Место: АЗС № 78 "Партнер Нефть" [13:45:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:45:25]line СНО: Общий режим [13:45:25]line Чек 116 21.10.2024 13:45 [13:45:25]line Смена: 115 ФФД: 1.0 [13:45:25]line ЗНМ: 0300000137 [13:45:25]line РНМ: 0000000000186857 [13:45:25]line Версия ККМ: v1.0 [13:45:25]line ФМ: 0000000002094219 [13:45:25]line ФД: 30619 [13:45:25]line ФПД: 170303559333264 [13:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134528&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30619&fm=170303559333264&tin=02508201610067®Number=0000000000186857&sum=15000 [13:45:25]written 0, free lines is 4095 [13:45:25]OFD Sender: Processing packet 30619 [packets to send 10, broken 9] [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00030619 [13:45:25]OFD Sender: To server: pG, [13:45:25]CommunicateWithHost lk.salyk.kg:30040 [13:45:25]ConnectInit lk.salyk.kg [13:45:25]Connected sock=10 [13:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 27 FC 07 01 89 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 74 00 00 00 F4 03 04 00 F8 5A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 77 00 00 35 04 06 00 9A E3 E3 28 75 90 F3 BA EE C8 8B 7D 34 91 [13:45:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FB 89 47 00 4C 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9B 77 00 00 F4 03 04 00 79 05 16 67 B6 04 01 00 00 16 65 A3 A0 33 99 54 31 [13:45:25]CommunicateWithHost err = 0 [13:45:25]CheckOFDResponse [13:45:25]1017 (14) - 77093643461234 [13:45:25]1041 (16) - 0000000002094219 [13:45:25]1040 (4) - 30619 [13:45:25]1012 (4) - 21.10.2024 07:40 [13:45:25]1206 (1) - 0 [13:45:25]OFD Sender: Remove packet 30619 [13:45:25]ProducePacketName [13:45:25]name=ofd_packets/00030619 [13:45:25]NVStorageDeleteData [13:45:25]Write to MH i2c: 01 00 00 C8 40 08 [13:45:25]Write i2c OK [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 [13:45:25]MH_I2C_Read... [13:45:25]Read from MH i2c: 01 07 00 C8 40 00 00 00 00 00 F0 0C 0B [13:45:25]RasterBufferAndPrint [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]line [13:45:25]written 0, free lines is 3319 [13:45:26]MH_Cut [13:45:26]Write to MH i2c: D1 01 00 CF 40 01 E1 [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 01 00 [13:45:26]MH_I2C_Read... [13:45:26]Read from MH i2c: D1 01 00 CF 40 00 E0 [13:45:26]Write to MH i2c: 01 00 00 D0 40 10 [13:45:26]Write i2c OK [13:45:26]MH_I2C_Read... [13:45:26]OFD Sender: No OFD packet to send [13:45:26]*** Cut start [13:45:26]*** Partial cut [13:45:26]*** CUTSNS_PIN = 1 [13:45:26]*** CUTSNS_PIN = 0 [13:45:26]*** Brake cut motor [13:45:27]Read from MH i2c: 01 [13:45:27]MH_I2C_Read... [13:45:27]*** Stop cut motor [13:45:27]*** Cut end [13:45:27]Read from MH i2c: 01 07 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: 01 07 00 D0 40 00 00 00 00 00 FF 0F 25 [13:45:27]process_action close_receipt done [13:45:27]requested_data is exist [13:45:27]produce_requested_data [13:45:27]requested_item fm.sn is exist - process it [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 11 00 00 [13:45:27]Write to MH i2c: E2 08 00 D1 40 80 11 00 00 00 00 00 00 8B [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 17 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 17 00 D1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [13:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:45:27]wFMCommunicate OK [13:45:27]requested_item fd.num is exist - process it [13:45:27]SAM_PROTO_GetFieldsCounters [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 00 00 [13:45:27]Write to MH i2c: E2 08 00 D2 40 80 13 00 00 00 00 00 00 8E [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 62 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 62 00 D2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 77 00 00 0E 04 04 00 73 00 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 95 [13:45:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9B 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetFieldsCounters done [13:45:27]requested_item shift.num is exist - process it [13:45:27]requested_item shift.opened is exist - process it [13:45:27]req_shift_opened [13:45:27]FM_GetShiftState [13:45:27]SAM_PROTO_GetShiftState [13:45:27]wFMCommunicate request_size=4 [13:45:27]MH_SAM_APDU [13:45:27]CAPDU: 80 13 01 00 [13:45:27]Write to MH i2c: E2 08 00 D3 40 80 13 01 00 00 00 00 00 90 [13:45:27]Write i2c OK [13:45:27]MH_I2C_Read... [13:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:27]Read from MH i2c: E2 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 [13:45:27]MH_I2C_Read... [13:45:27]Read from MH i2c: E2 0E 00 D3 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0C [13:45:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:45:27]wFMCommunicate OK [13:45:27]SAM_PROTO_GetShiftState done [13:45:27]FM_GetShiftState done [13:45:27]req_shift_opened done [13:45:27]requested_item shift.open_date is exist - process it [13:45:27]req_shift_open_date [13:45:27]req_shift_open_date done [13:45:27]produce_requested_data done [13:45:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30619,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:45:27]process_action_free close_receipt [13:45:27]json_value_free [13:45:27]json_value_free done [13:45:27]process_json_proto returns [13:45:27]Send response to host [13:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30619,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:45:27]free response buf [13:45:27]execute_script done [13:45:27]execute_script returns [13:45:27]free content buf [13:45:27]Sock 7.Close socket [13:45:27]Sock 7.Thread stoped [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:26]accept exits with 9 [13:47:26]New connection [13:47:26]New thread 3067346276 created [13:47:26]Thread 3067489636 joined [13:47:26]Waiting for new connection... [13:47:26] Sock 9.Parse request [13:47:26]Sock 9.Check first char [13:47:26]Sock 9.First char is OK [13:47:26]request: POST /json_proto HTTP/1.0 [13:47:26]Method: POST [13:47:26]URL: /json_proto [13:47:26]Method is POST - this is cgi request [13:47:26]url: /json_proto [13:47:26]query_string will be loaded in cgi processing [13:47:26]execute_cgi json_proto POST (null) [13:47:26]execute_cgi path=json_proto method=POST [13:47:26]POST find Content-Length [13:47:26]Host: 172.17.51.3:8080 [13:47:26]Content-Length: 677 [13:47:26]Content-Type: application/json [13:47:26] [13:47:26]POST finish read [13:47:26]Found Content-Length = 677 [13:47:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:26]execute_script... [13:47:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:26]POST & json_proto [13:47:26]process_json_proto [13:47:26]json parsed OK: [13:47:26]protocol is kg_v1.0 [13:47:26]action value=close_receipt [13:47:26]process_action close_receipt [13:47:26]cmd_close_receipt [13:47:26]MH_GetDate [13:47:26]Write to MH i2c: F0 00 00 D4 40 03 [13:47:26]Write i2c OK [13:47:26]MH_I2C_Read... [13:47:26]Read from MH i2c: F0 [13:47:26]MH_I2C_Read... [13:47:26]Read from MH i2c: F0 09 00 [13:47:26]MH_I2C_Read... [13:47:26]Read from MH i2c: F0 09 00 D4 40 00 73 5B 16 67 04 C1 95 66 17 [13:47:26]GetLastDocTimeStamp 1729518328 [13:47:26]current date 1729518451 [13:47:26]FM_GetShiftState [13:47:26]SAM_PROTO_GetShiftState [13:47:26]wFMCommunicate request_size=4 [13:47:26]MH_SAM_APDU [13:47:26]CAPDU: 80 13 01 00 [13:47:26]Write to MH i2c: E2 08 00 D5 40 80 13 01 00 00 00 00 00 92 [13:47:26]Write i2c OK [13:47:26]MH_I2C_Read... [13:47:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:26]Read from MH i2c: E2 [13:47:26]MH_I2C_Read... [13:47:26]Read from MH i2c: E2 0E 00 [13:47:26]MH_I2C_Read... [13:47:26]Read from MH i2c: E2 0E 00 D5 40 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0E [13:47:26]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:47:26]wFMCommunicate OK [13:47:26]SAM_PROTO_GetShiftState done [13:47:26]FM_GetShiftState done [13:47:26]opened in 1729471058 [13:47:26]opened+sec_in_day 1729557458 [13:47:26]quantity*price = 15052 [13:47:26]sum+1 = 15054 [13:47:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 117 21.10.2024 13:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30620 ФПД: 272624888063094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134731&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30620&fm=272624888063094&tin=02508201610067®Number=0000000000186857&sum=15000 [13:47:27]StoreToDocumentArchive [13:47:27]shift 115 fd 30620 [13:47:27]save to /storage/0115/doc_00030620 [13:47:27]save last doc name /storage/0115/doc_00030620 to /storage/kkm_last_doc_name [13:47:27]save OK [13:47:27]Clear old archive folders... [13:47:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:27]tlvbuf is 01E06460 [13:47:27]SAM_PROTO_ClearQueue [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 09 00 00 [13:47:27]Write to MH i2c: E2 08 00 E2 40 80 09 00 00 00 00 00 00 94 [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:27]Read from MH i2c: E2 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 [13:47:27]MH_I2C_Read... [13:47:27]Read from MH i2c: E2 03 00 E2 40 00 90 00 96 [13:47:27]RAPDU: 90 00 [13:47:27]wFMCommunicate OK [13:47:27]SAM_PROTO_ClearQueue done [13:47:27]KKMCreateOFDPacket [13:47:27]OFDProtocolAddRootSTLVToBuf [13:47:27]FM_MakeSignedData [13:47:27]FM_MakeSignedData [13:47:27]SAM_PROTO_SignData [13:47:27]wFMCommunicate request_size=4 [13:47:27]MH_SAM_APDU [13:47:27]CAPDU: 80 0D 01 02 [13:47:27]Write to MH i2c: E2 08 00 E3 40 80 0D 01 02 00 00 00 00 9C [13:47:27]Write i2c OK [13:47:27]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 E3 40 00 90 00 97 [13:47:28]RAPDU: 90 00 [13:47:28]wFMCommunicate OK [13:47:28]wFMCommunicate request_size=255 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 75 00 00 00 F4 03 04 00 73 5B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 77 00 00 35 04 06 00 F7 [13:47:28]Write to MH i2c: E2 02 01 E4 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 75 00 00 00 F4 03 04 00 73 5B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 77 00 00 35 04 06 00 F7 00 00 67 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 E4 40 00 90 00 98 [13:47:28]RAPDU: 90 00 [13:47:28]wFMCommunicate OK [13:47:28]wFMCommunicate request_size=10 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 0D 02 02 05 F3 6D 9C 24 76 [13:47:28]Write to MH i2c: E2 0D 00 E5 40 80 0D 02 02 05 00 F3 6D 9C 24 76 00 00 3F [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 03 00 E5 40 00 90 00 99 [13:47:28]RAPDU: 90 00 [13:47:28]wFMCommunicate OK [13:47:28]wFMCommunicate request_size=4 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 0D 03 02 [13:47:28]Write to MH i2c: E2 08 00 E6 40 80 0D 03 02 00 00 00 00 A1 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 0B 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 0B 00 E6 40 00 FD 87 95 A4 51 B3 A4 A6 90 00 AD [13:47:28]RAPDU: FD 87 95 A4 51 B3 A4 A6 90 00 [13:47:28]wFMCommunicate OK [13:47:28]SAM_PROTO_SignData done [13:47:28]FM_MakeSignedData done [13:47:28]CreateOFDProtocolMessage [13:47:28]wFMCommunicate request_size=4 [13:47:28]MH_SAM_APDU [13:47:28]CAPDU: 80 11 00 00 [13:47:28]Write to MH i2c: E2 08 00 E7 40 80 11 00 00 00 00 00 00 A1 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:28]Read from MH i2c: E2 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 17 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: E2 17 00 E7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EF [13:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:47:28]wFMCommunicate OK [13:47:28]CreateOFDProtocolMessage done [13:47:28]OFDSenderStorePacket 30620 [13:47:28]StoreOFDPacket docnum=30620 [13:47:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 C6 07 01 88 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 75 00 00 00 F4 03 04 00 73 5B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 77 00 00 35 04 06 00 F7 F3 6D 9C 24 76 FD 87 95 A4 51 B3 A4 A6 [13:47:28]CheckFolder [13:47:28]dirname=/storage/ofd_packets [13:47:28]CheckFolder done [13:47:28]ProducePacketName [13:47:28]name=ofd_packets/00030620 [13:47:28]NVStorageSaveData ofd_packets/00030620 [13:47:28]File name is /storage/ofd_packets/00030620 [13:47:28]Write 301 bytes [13:47:28]NVStorageSaveData done [13:47:28]OFDSenderStorePacket done [13:47:28]KKMCreateOFDPacket done [13:47:28]NVStorageSaveData kkm_last_timestamp [13:47:28]File name is /storage/kkm_last_timestamp [13:47:28]Write 4 bytes [13:47:28]NVStorageSaveData done [13:47:28]ExternCall_PrintAddStr [13:47:28]wPrintStart [13:47:28]Write to MH i2c: 01 00 00 E8 40 28 [13:47:28]Write i2c OK [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 [13:47:28]MH_I2C_Read... [13:47:28]Read from MH i2c: 01 07 00 E8 40 00 00 00 00 00 FF 0F 3D [13:47:28]RasterBufferAndPrint [13:47:28]line Счет N : (1)343028 [13:47:28]line ИНН: 02508201610067 [13:47:28]line Контрольно-Кассовый Чек [13:47:28]line ПРОДАЖА [13:47:28]line ТРК (МРК, ГНК) : 53 [13:47:28]line Товар: 2710124130 [13:47:28]line Аи-92-К-2 [13:47:28]line 2.250 * 66.90 [13:47:28]line = 150.53 [13:47:28]line НДС 12% НСП 1% [13:47:28]line > о реализуемом товаре [13:47:28]line ОКРУГЛЕНИЕ: -0.53 [13:47:28]line ИТОГО: 150.00 [13:47:28]line Внесено: 150.00 [13:47:28]line СДАЧА: 0.00 [13:47:28]line НСП 1% : 1.33 [13:47:28]line НДС 12% : 15.98 [13:47:28]line Наличными: 150.00 [13:47:28]line Безнал.: 0.00 [13:47:28]line Место: АЗС № 78 "Партнер Нефть" [13:47:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:47:28]line СНО: Общий режим [13:47:28]line Чек 117 21.10.2024 13:47 [13:47:28]line Смена: 115 ФФД: 1.0 [13:47:28]line ЗНМ: 0300000137 [13:47:28]line РНМ: 0000000000186857 [13:47:28]line Версия ККМ: v1.0 [13:47:28]line ФМ: 0000000002094219 [13:47:28]line ФД: 30620 [13:47:28]line ФПД: 272624888063094 [13:47:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134731&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30620&fm=272624888063094&tin=02508201610067®Number=0000000000186857&sum=15000 [13:47:28]OFD Sender: Processing packet 30620 [packets to send 10, broken 9] [13:47:28]ProducePacketName [13:47:28]name=ofd_packets/00030620 [13:47:28]OFD Sender: To server: pG, [13:47:28]CommunicateWithHost lk.salyk.kg:30040 [13:47:28]ConnectInit lk.salyk.kg [13:47:28]written 0, free lines is 4095 [13:47:28]Connected sock=10 [13:47:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 C6 07 01 88 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 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 3E 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 75 00 00 00 F4 03 04 00 73 5B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 77 00 00 35 04 06 00 F7 F3 6D 9C 24 76 FD 87 95 A4 51 B3 A4 A6 [13:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 32 B6 47 00 C9 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9C 77 00 00 F4 03 04 00 F4 05 16 67 B6 04 01 00 00 FE B2 D8 DB 1D 25 3F F3 [13:47:29]CommunicateWithHost err = 0 [13:47:29]CheckOFDResponse [13:47:29]1017 (14) - 77093643461234 [13:47:29]1041 (16) - 0000000002094219 [13:47:29]1040 (4) - 30620 [13:47:29]1012 (4) - 21.10.2024 07:42 [13:47:29]1206 (1) - 0 [13:47:29]OFD Sender: Remove packet 30620 [13:47:29]ProducePacketName [13:47:29]name=ofd_packets/00030620 [13:47:29]NVStorageDeleteData [13:47:29]Write to MH i2c: 01 00 00 13 41 54 [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: 01 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: 01 07 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: 01 07 00 13 41 00 00 00 00 00 E7 0C 4E [13:47:29]RasterBufferAndPrint [13:47:29]line [13:47:29]line [13:47:29]line [13:47:29]line [13:47:29]line [13:47:29]written 0, free lines is 3309 [13:47:29]MH_Cut [13:47:29]Write to MH i2c: D1 01 00 1A 41 01 2D [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: D1 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: D1 01 00 [13:47:29]MH_I2C_Read... [13:47:29]Read from MH i2c: D1 01 00 1A 41 00 2C [13:47:29]Write to MH i2c: 01 00 00 1B 41 5C [13:47:29]Write i2c OK [13:47:29]MH_I2C_Read... [13:47:29]OFD Sender: No OFD packet to send [13:47:29]*** Cut start [13:47:29]*** Partial cut [13:47:29]*** CUTSNS_PIN = 1 [13:47:29]*** CUTSNS_PIN = 0 [13:47:30]*** Brake cut motor [13:47:30]Read from MH i2c: 01 [13:47:30]MH_I2C_Read... [13:47:30]*** Stop cut motor [13:47:30]*** Cut end [13:47:30]Read from MH i2c: 01 07 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: 01 07 00 1B 41 00 00 00 00 00 FF 0F 71 [13:47:30]process_action close_receipt done [13:47:30]requested_data is exist [13:47:30]produce_requested_data [13:47:30]requested_item fm.sn is exist - process it [13:47:30]wFMCommunicate request_size=4 [13:47:30]MH_SAM_APDU [13:47:30]CAPDU: 80 11 00 00 [13:47:30]Write to MH i2c: E2 08 00 1C 41 80 11 00 00 00 00 00 00 D7 [13:47:30]Write i2c OK [13:47:30]MH_I2C_Read... [13:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:30]Read from MH i2c: E2 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 17 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 17 00 1C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [13:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:47:30]wFMCommunicate OK [13:47:30]requested_item fd.num is exist - process it [13:47:30]SAM_PROTO_GetFieldsCounters [13:47:30]wFMCommunicate request_size=4 [13:47:30]MH_SAM_APDU [13:47:30]CAPDU: 80 13 00 00 [13:47:30]Write to MH i2c: E2 08 00 1D 41 80 13 00 00 00 00 00 00 DA [13:47:30]Write i2c OK [13:47:30]MH_I2C_Read... [13:47:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:30]Read from MH i2c: E2 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 62 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 62 00 1D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 77 00 00 0E 04 04 00 73 00 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 E5 [13:47:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9C 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:30]wFMCommunicate OK [13:47:30]SAM_PROTO_GetFieldsCounters done [13:47:30]requested_item shift.num is exist - process it [13:47:30]requested_item shift.opened is exist - process it [13:47:30]req_shift_opened [13:47:30]FM_GetShiftState [13:47:30]SAM_PROTO_GetShiftState [13:47:30]wFMCommunicate request_size=4 [13:47:30]MH_SAM_APDU [13:47:30]CAPDU: 80 13 01 00 [13:47:30]Write to MH i2c: E2 08 00 1E 41 80 13 01 00 00 00 00 00 DC [13:47:30]Write i2c OK [13:47:30]MH_I2C_Read... [13:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:30]Read from MH i2c: E2 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 0E 00 [13:47:30]MH_I2C_Read... [13:47:30]Read from MH i2c: E2 0E 00 1E 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 58 [13:47:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:47:30]wFMCommunicate OK [13:47:30]SAM_PROTO_GetShiftState done [13:47:30]FM_GetShiftState done [13:47:30]req_shift_opened done [13:47:30]requested_item shift.open_date is exist - process it [13:47:30]req_shift_open_date [13:47:30]req_shift_open_date done [13:47:30]produce_requested_data done [13:47:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30620,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:47:30]process_action_free close_receipt [13:47:30]json_value_free [13:47:30]json_value_free done [13:47:30]process_json_proto returns [13:47:30]Send response to host [13:47:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30620,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:47:30]free response buf [13:47:30]execute_script done [13:47:30]execute_script returns [13:47:30]free content buf [13:47:30]Sock 9.Close socket [13:47:30]Sock 9.Thread stoped [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:31]accept exits with 7 [13:50:31]New connection [13:50:31]New thread 3067489636 created [13:50:31]Thread 3067346276 joined [13:50:31]Waiting for new connection... [13:50:31] Sock 7.Parse request [13:50:31]Sock 7.Check first char [13:50:31]Sock 7.First char is OK [13:50:31]request: POST /json_proto HTTP/1.0 [13:50:31]Method: POST [13:50:31]URL: /json_proto [13:50:31]Method is POST - this is cgi request [13:50:31]url: /json_proto [13:50:31]query_string will be loaded in cgi processing [13:50:31]execute_cgi json_proto POST (null) [13:50:31]execute_cgi path=json_proto method=POST [13:50:31]POST find Content-Length [13:50:31]Host: 172.17.51.3:8080 [13:50:31]Content-Length: 677 [13:50:31]Content-Type: application/json [13:50:31] [13:50:31]POST finish read [13:50:31]Found Content-Length = 677 [13:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:31]execute_script... [13:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:31]POST & json_proto [13:50:31]process_json_proto [13:50:31]json parsed OK: [13:50:31]protocol is kg_v1.0 [13:50:31]action value=close_receipt [13:50:31]process_action close_receipt [13:50:31]cmd_close_receipt [13:50:31]MH_GetDate [13:50:31]Write to MH i2c: F0 00 00 1F 41 4F [13:50:31]Write i2c OK [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: F0 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: F0 09 00 [13:50:31]MH_I2C_Read... [13:50:31]Read from MH i2c: F0 09 00 1F 41 00 2D 5C 16 67 04 C1 95 66 1E [13:50:31]GetLastDocTimeStamp 1729518451 [13:50:31]current date 1729518637 [13:50:31]FM_GetShiftState [13:50:31]SAM_PROTO_GetShiftState [13:50:31]wFMCommunicate request_size=4 [13:50:31]MH_SAM_APDU [13:50:31]CAPDU: 80 13 01 00 [13:50:31]Write to MH i2c: E2 08 00 20 41 80 13 01 00 00 00 00 00 DE [13:50:31]Write i2c OK [13:50:31]MH_I2C_Read... [13:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:32]Read from MH i2c: E2 [13:50:32]MH_I2C_Read... [13:50:32]Read from MH i2c: E2 0E 00 [13:50:32]MH_I2C_Read... [13:50:32]Read from MH i2c: E2 0E 00 20 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5A [13:50:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:50:32]wFMCommunicate OK [13:50:32]SAM_PROTO_GetShiftState done [13:50:32]FM_GetShiftState done [13:50:32]opened in 1729471058 [13:50:32]opened+sec_in_day 1729557458 [13:50:32]quantity*price = 50041 [13:50:32]sum+1 = 50042 [13:50:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 118 21.10.2024 13:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30621 ФПД: 127500930823622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30621&fm=127500930823622&tin=02508201610067®Number=0000000000186857&sum=50000 [13:50:33]StoreToDocumentArchive [13:50:33]shift 115 fd 30621 [13:50:33]save to /storage/0115/doc_00030621 [13:50:33]save last doc name /storage/0115/doc_00030621 to /storage/kkm_last_doc_name [13:50:33]save OK [13:50:33]Clear old archive folders... [13:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:33]tlvbuf is 01E10F90 [13:50:33]SAM_PROTO_ClearQueue [13:50:33]wFMCommunicate request_size=4 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 09 00 00 [13:50:33]Write to MH i2c: E2 08 00 2D 41 80 09 00 00 00 00 00 00 E0 [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 2D 41 00 90 00 E2 [13:50:33]RAPDU: 90 00 [13:50:33]wFMCommunicate OK [13:50:33]SAM_PROTO_ClearQueue done [13:50:33]KKMCreateOFDPacket [13:50:33]OFDProtocolAddRootSTLVToBuf [13:50:33]FM_MakeSignedData [13:50:33]FM_MakeSignedData [13:50:33]SAM_PROTO_SignData [13:50:33]wFMCommunicate request_size=4 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 0D 01 02 [13:50:33]Write to MH i2c: E2 08 00 2E 41 80 0D 01 02 00 00 00 00 E8 [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 2E 41 00 90 00 E3 [13:50:33]RAPDU: 90 00 [13:50:33]wFMCommunicate OK [13:50:33]wFMCommunicate request_size=255 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 77 00 00 35 04 06 00 73 [13:50:33]Write to MH i2c: E2 02 01 2F 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 77 00 00 35 04 06 00 73 00 00 EF [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 2F 41 00 90 00 E4 [13:50:33]RAPDU: 90 00 [13:50:33]wFMCommunicate OK [13:50:33]wFMCommunicate request_size=10 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 0D 02 02 05 F6 1F B0 B5 C6 [13:50:33]Write to MH i2c: E2 0D 00 30 41 80 0D 02 02 05 00 F6 1F B0 B5 C6 00 00 35 [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 03 00 30 41 00 90 00 E5 [13:50:33]RAPDU: 90 00 [13:50:33]wFMCommunicate OK [13:50:33]wFMCommunicate request_size=4 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 0D 03 02 [13:50:33]Write to MH i2c: E2 08 00 31 41 80 0D 03 02 00 00 00 00 ED [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 0B 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 0B 00 31 41 00 2B 50 66 53 2C 1E A3 A5 90 00 B4 [13:50:33]RAPDU: 2B 50 66 53 2C 1E A3 A5 90 00 [13:50:33]wFMCommunicate OK [13:50:33]SAM_PROTO_SignData done [13:50:33]FM_MakeSignedData done [13:50:33]CreateOFDProtocolMessage [13:50:33]wFMCommunicate request_size=4 [13:50:33]MH_SAM_APDU [13:50:33]CAPDU: 80 11 00 00 [13:50:33]Write to MH i2c: E2 08 00 32 41 80 11 00 00 00 00 00 00 ED [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:33]Read from MH i2c: E2 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 17 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: E2 17 00 32 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [13:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:50:33]wFMCommunicate OK [13:50:33]CreateOFDProtocolMessage done [13:50:33]OFDSenderStorePacket 30621 [13:50:33]StoreOFDPacket docnum=30621 [13:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1E C0 07 01 94 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 77 00 00 35 04 06 00 73 F6 1F B0 B5 C6 2B 50 66 53 2C 1E A3 A5 [13:50:33]CheckFolder [13:50:33]dirname=/storage/ofd_packets [13:50:33]CheckFolder done [13:50:33]ProducePacketName [13:50:33]name=ofd_packets/00030621 [13:50:33]NVStorageSaveData ofd_packets/00030621 [13:50:33]File name is /storage/ofd_packets/00030621 [13:50:33]Write 301 bytes [13:50:33]NVStorageSaveData done [13:50:33]OFDSenderStorePacket done [13:50:33]KKMCreateOFDPacket done [13:50:33]NVStorageSaveData kkm_last_timestamp [13:50:33]File name is /storage/kkm_last_timestamp [13:50:33]Write 4 bytes [13:50:33]NVStorageSaveData done [13:50:33]ExternCall_PrintAddStr [13:50:33]wPrintStart [13:50:33]Write to MH i2c: 01 00 00 33 41 74 [13:50:33]Write i2c OK [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: 01 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: 01 07 00 [13:50:33]MH_I2C_Read... [13:50:33]Read from MH i2c: 01 07 00 33 41 00 00 00 00 00 FF 0F 89 [13:50:33]RasterBufferAndPrint [13:50:33]line Счет N : (1)343029 [13:50:33]line ИНН: 02508201610067 [13:50:33]line Контрольно-Кассовый Чек [13:50:33]line ПРОДАЖА [13:50:33]line ТРК (МРК, ГНК) : 63 [13:50:33]line Товар: 2710124130 [13:50:33]line Аи-92-К-2 [13:50:33]line 7.480 * 66.90 [13:50:33]line = 500.41 [13:50:33]line НДС 12% НСП 1% [13:50:33]line > о реализуемом товаре [13:50:33]line ОКРУГЛЕНИЕ: -0.41 [13:50:33]line ИТОГО: 500.00 [13:50:33]line Внесено: 500.00 [13:50:33]line СДАЧА: 0.00 [13:50:33]line НСП 1% : 4.43 [13:50:33]line НДС 12% : 53.14 [13:50:33]line Наличными: 500.00 [13:50:33]line Безнал.: 0.00 [13:50:33]line Место: АЗС № 78 "Партнер Нефть" [13:50:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:50:33]line СНО: Общий режим [13:50:33]line Чек 118 21.10.2024 13:50 [13:50:33]line Смена: 115 ФФД: 1.0 [13:50:33]line ЗНМ: 0300000137 [13:50:33]line РНМ: 0000000000186857 [13:50:33]line Версия ККМ: v1.0 [13:50:33]line ФМ: 0000000002094219 [13:50:33]line ФД: 30621 [13:50:33]line ФПД: 127500930823622 [13:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30621&fm=127500930823622&tin=02508201610067®Number=0000000000186857&sum=50000 [13:50:34]OFD Sender: Processing packet 30621 [packets to send 10, broken 9] [13:50:34]ProducePacketName [13:50:34]name=ofd_packets/00030621 [13:50:34]OFD Sender: To server: pG, [13:50:34]CommunicateWithHost lk.salyk.kg:30040 [13:50:34]ConnectInit lk.salyk.kg [13:50:34]written 0, free lines is 4095 [13:50:34]Connected sock=11 [13:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1E C0 07 01 94 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 2D 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 77 00 00 35 04 06 00 73 F6 1F B0 B5 C6 2B 50 66 53 2C 1E A3 A5 [13:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E3 40 47 00 31 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9D 77 00 00 F4 03 04 00 AD 06 16 67 B6 04 01 00 00 4E 02 82 73 49 DA A8 81 [13:50:34]CommunicateWithHost err = 0 [13:50:34]CheckOFDResponse [13:50:34]1017 (14) - 77093643461234 [13:50:34]1041 (16) - 0000000002094219 [13:50:34]1040 (4) - 30621 [13:50:34]1012 (4) - 21.10.2024 07:45 [13:50:34]1206 (1) - 0 [13:50:34]OFD Sender: Remove packet 30621 [13:50:34]ProducePacketName [13:50:34]name=ofd_packets/00030621 [13:50:34]NVStorageDeleteData [13:50:34]Write to MH i2c: 01 00 00 5E 41 9F [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: 01 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: 01 07 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: 01 07 00 5E 41 00 00 00 00 00 ED 0C 9F [13:50:34]RasterBufferAndPrint [13:50:34]line [13:50:34]line [13:50:34]line [13:50:34]line [13:50:34]line [13:50:34]written 0, free lines is 3315 [13:50:34]MH_Cut [13:50:34]Write to MH i2c: D1 01 00 65 41 01 78 [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: D1 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: D1 01 00 [13:50:34]MH_I2C_Read... [13:50:34]Read from MH i2c: D1 01 00 65 41 00 77 [13:50:34]Write to MH i2c: 01 00 00 66 41 A7 [13:50:34]Write i2c OK [13:50:34]MH_I2C_Read... [13:50:34]OFD Sender: No OFD packet to send [13:50:35]*** Cut start [13:50:35]*** Partial cut [13:50:35]*** CUTSNS_PIN = 1 [13:50:35]*** CUTSNS_PIN = 0 [13:50:35]*** Brake cut motor [13:50:35]Read from MH i2c: 01 [13:50:35]MH_I2C_Read... [13:50:35]*** Stop cut motor [13:50:35]*** Cut end [13:50:35]Read from MH i2c: 01 07 00 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: 01 07 00 66 41 00 00 00 00 00 FF 0F BC [13:50:35]process_action close_receipt done [13:50:35]requested_data is exist [13:50:35]produce_requested_data [13:50:35]requested_item fm.sn is exist - process it [13:50:35]wFMCommunicate request_size=4 [13:50:35]MH_SAM_APDU [13:50:35]CAPDU: 80 11 00 00 [13:50:35]Write to MH i2c: E2 08 00 67 41 80 11 00 00 00 00 00 00 22 [13:50:35]Write i2c OK [13:50:35]MH_I2C_Read... [13:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:35]Read from MH i2c: E2 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 17 00 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 17 00 67 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [13:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:50:35]wFMCommunicate OK [13:50:35]requested_item fd.num is exist - process it [13:50:35]SAM_PROTO_GetFieldsCounters [13:50:35]wFMCommunicate request_size=4 [13:50:35]MH_SAM_APDU [13:50:35]CAPDU: 80 13 00 00 [13:50:35]Write to MH i2c: E2 08 00 68 41 80 13 00 00 00 00 00 00 25 [13:50:35]Write i2c OK [13:50:35]MH_I2C_Read... [13:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:35]Read from MH i2c: E2 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 62 00 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 62 00 68 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 77 00 00 0E 04 04 00 73 00 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 34 [13:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9D 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:35]wFMCommunicate OK [13:50:35]SAM_PROTO_GetFieldsCounters done [13:50:35]requested_item shift.num is exist - process it [13:50:35]requested_item shift.opened is exist - process it [13:50:35]req_shift_opened [13:50:35]FM_GetShiftState [13:50:35]SAM_PROTO_GetShiftState [13:50:35]wFMCommunicate request_size=4 [13:50:35]MH_SAM_APDU [13:50:35]CAPDU: 80 13 01 00 [13:50:35]Write to MH i2c: E2 08 00 69 41 80 13 01 00 00 00 00 00 27 [13:50:35]Write i2c OK [13:50:35]MH_I2C_Read... [13:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:35]Read from MH i2c: E2 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 0E 00 [13:50:35]MH_I2C_Read... [13:50:35]Read from MH i2c: E2 0E 00 69 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A3 [13:50:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:50:35]wFMCommunicate OK [13:50:35]SAM_PROTO_GetShiftState done [13:50:35]FM_GetShiftState done [13:50:35]req_shift_opened done [13:50:35]requested_item shift.open_date is exist - process it [13:50:35]req_shift_open_date [13:50:35]req_shift_open_date done [13:50:35]produce_requested_data done [13:50:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30621,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:50:35]process_action_free close_receipt [13:50:35]json_value_free [13:50:35]json_value_free done [13:50:35]process_json_proto returns [13:50:35]Send response to host [13:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30621,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:50:35]free response buf [13:50:35]execute_script done [13:50:35]execute_script returns [13:50:35]free content buf [13:50:35]Sock 7.Close socket [13:50:35]Sock 7.Thread stoped [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:53]accept exits with 9 [13:52:53]New connection [13:52:53]New thread 3067346276 created [13:52:53]Thread 3067489636 joined [13:52:53]Waiting for new connection... [13:52:53] Sock 9.Parse request [13:52:53]Sock 9.Check first char [13:52:53]Sock 9.First char is OK [13:52:53]request: POST /json_proto HTTP/1.0 [13:52:53]Method: POST [13:52:53]URL: /json_proto [13:52:53]Method is POST - this is cgi request [13:52:53]url: /json_proto [13:52:53]query_string will be loaded in cgi processing [13:52:53]execute_cgi json_proto POST (null) [13:52:53]execute_cgi path=json_proto method=POST [13:52:53]POST find Content-Length [13:52:53]Host: 172.17.51.3:8080 [13:52:53]Content-Length: 677 [13:52:53]Content-Type: application/json [13:52:53] [13:52:53]POST finish read [13:52:53]Found Content-Length = 677 [13:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:53]execute_script... [13:52:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343030", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:52:53]POST & json_proto [13:52:53]process_json_proto [13:52:53]json parsed OK: [13:52:53]protocol is kg_v1.0 [13:52:53]action value=close_receipt [13:52:53]process_action close_receipt [13:52:53]cmd_close_receipt [13:52:53]MH_GetDate [13:52:53]Write to MH i2c: F0 00 00 6A 41 9A [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: F0 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: F0 09 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: F0 09 00 6A 41 00 BA 5C 16 67 04 C1 95 66 F6 [13:52:53]GetLastDocTimeStamp 1729518637 [13:52:53]current date 1729518778 [13:52:53]FM_GetShiftState [13:52:53]SAM_PROTO_GetShiftState [13:52:53]wFMCommunicate request_size=4 [13:52:53]MH_SAM_APDU [13:52:53]CAPDU: 80 13 01 00 [13:52:53]Write to MH i2c: E2 08 00 6B 41 80 13 01 00 00 00 00 00 29 [13:52:53]Write i2c OK [13:52:53]MH_I2C_Read... [13:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:53]Read from MH i2c: E2 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: E2 0E 00 [13:52:53]MH_I2C_Read... [13:52:53]Read from MH i2c: E2 0E 00 6B 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A5 [13:52:53]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:52:53]wFMCommunicate OK [13:52:53]SAM_PROTO_GetShiftState done [13:52:53]FM_GetShiftState done [13:52:53]opened in 1729471058 [13:52:53]opened+sec_in_day 1729557458 [13:52:53]quantity*price = 50041 [13:52:53]sum+1 = 50042 [13:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 119 21.10.2024 13:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30622 ФПД: 126368337740636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135258&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30622&fm=126368337740636&tin=02508201610067®Number=0000000000186857&sum=50000 [13:52:54]StoreToDocumentArchive [13:52:54]shift 115 fd 30622 [13:52:54]save to /storage/0115/doc_00030622 [13:52:54]save last doc name /storage/0115/doc_00030622 to /storage/kkm_last_doc_name [13:52:54]save OK [13:52:54]Clear old archive folders... [13:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:52:54]tlvbuf is 01DB6100 [13:52:54]SAM_PROTO_ClearQueue [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 09 00 00 [13:52:54]Write to MH i2c: E2 08 00 78 41 80 09 00 00 00 00 00 00 2B [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 03 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 03 00 78 41 00 90 00 2D [13:52:54]RAPDU: 90 00 [13:52:54]wFMCommunicate OK [13:52:54]SAM_PROTO_ClearQueue done [13:52:54]KKMCreateOFDPacket [13:52:54]OFDProtocolAddRootSTLVToBuf [13:52:54]FM_MakeSignedData [13:52:54]FM_MakeSignedData [13:52:54]SAM_PROTO_SignData [13:52:54]wFMCommunicate request_size=4 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 0D 01 02 [13:52:54]Write to MH i2c: E2 08 00 79 41 80 0D 01 02 00 00 00 00 33 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:54]OFD Sender: No OFD packet to send [13:52:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:54]Read from MH i2c: E2 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 03 00 [13:52:54]MH_I2C_Read... [13:52:54]Read from MH i2c: E2 03 00 79 41 00 90 00 2E [13:52:54]RAPDU: 90 00 [13:52:54]wFMCommunicate OK [13:52:54]wFMCommunicate request_size=255 [13:52:54]MH_SAM_APDU [13:52:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BA 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 77 00 00 35 04 06 00 72 [13:52:54]Write to MH i2c: E2 02 01 7A 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BA 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 77 00 00 35 04 06 00 72 00 00 C8 [13:52:54]Write i2c OK [13:52:54]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 03 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 03 00 7A 41 00 90 00 2F [13:52:55]RAPDU: 90 00 [13:52:55]wFMCommunicate OK [13:52:55]wFMCommunicate request_size=10 [13:52:55]MH_SAM_APDU [13:52:55]CAPDU: 80 0D 02 02 05 EE 6B E1 C3 5C [13:52:55]Write to MH i2c: E2 0D 00 7B 41 80 0D 02 02 05 00 EE 6B E1 C3 5C 00 00 99 [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 03 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 03 00 7B 41 00 90 00 30 [13:52:55]RAPDU: 90 00 [13:52:55]wFMCommunicate OK [13:52:55]wFMCommunicate request_size=4 [13:52:55]MH_SAM_APDU [13:52:55]CAPDU: 80 0D 03 02 [13:52:55]Write to MH i2c: E2 08 00 7C 41 80 0D 03 02 00 00 00 00 38 [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0B 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 0B 00 7C 41 00 55 4A 93 1B BF EC 28 47 90 00 A0 [13:52:55]RAPDU: 55 4A 93 1B BF EC 28 47 90 00 [13:52:55]wFMCommunicate OK [13:52:55]SAM_PROTO_SignData done [13:52:55]FM_MakeSignedData done [13:52:55]CreateOFDProtocolMessage [13:52:55]wFMCommunicate request_size=4 [13:52:55]MH_SAM_APDU [13:52:55]CAPDU: 80 11 00 00 [13:52:55]Write to MH i2c: E2 08 00 7D 41 80 11 00 00 00 00 00 00 38 [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:55]Read from MH i2c: E2 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 17 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: E2 17 00 7D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [13:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:52:55]wFMCommunicate OK [13:52:55]CreateOFDProtocolMessage done [13:52:55]OFDSenderStorePacket 30622 [13:52:55]StoreOFDPacket docnum=30622 [13:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 1D 07 01 16 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BA 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 77 00 00 35 04 06 00 72 EE 6B E1 C3 5C 55 4A 93 1B BF EC 28 47 [13:52:55]CheckFolder [13:52:55]dirname=/storage/ofd_packets [13:52:55]CheckFolder done [13:52:55]ProducePacketName [13:52:55]name=ofd_packets/00030622 [13:52:55]NVStorageSaveData ofd_packets/00030622 [13:52:55]File name is /storage/ofd_packets/00030622 [13:52:55]Write 301 bytes [13:52:55]NVStorageSaveData done [13:52:55]OFDSenderStorePacket done [13:52:55]KKMCreateOFDPacket done [13:52:55]NVStorageSaveData kkm_last_timestamp [13:52:55]File name is /storage/kkm_last_timestamp [13:52:55]Write 4 bytes [13:52:55]NVStorageSaveData done [13:52:55]ExternCall_PrintAddStr [13:52:55]wPrintStart [13:52:55]Write to MH i2c: 01 00 00 7E 41 BF [13:52:55]Write i2c OK [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: 01 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: 01 07 00 [13:52:55]MH_I2C_Read... [13:52:55]Read from MH i2c: 01 07 00 7E 41 00 00 00 00 00 FF 0F D4 [13:52:55]RasterBufferAndPrint [13:52:55]line Счет N : (1)343030 [13:52:55]line ИНН: 02508201610067 [13:52:55]line Контрольно-Кассовый Чек [13:52:55]line ПРОДАЖА [13:52:55]line ТРК (МРК, ГНК) : 63 [13:52:55]line Товар: 2710124130 [13:52:55]line Аи-92-К-2 [13:52:55]line 7.480 * 66.90 [13:52:55]line = 500.41 [13:52:55]line НДС 12% НСП 1% [13:52:55]line > о реализуемом товаре [13:52:55]line ОКРУГЛЕНИЕ: -0.41 [13:52:55]line ИТОГО: 500.00 [13:52:55]line Внесено: 500.00 [13:52:55]line СДАЧА: 0.00 [13:52:55]line НСП 1% : 4.43 [13:52:55]line НДС 12% : 53.14 [13:52:55]line Наличными: 500.00 [13:52:55]line Безнал.: 0.00 [13:52:55]line Место: АЗС № 78 "Партнер Нефть" [13:52:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:52:55]line СНО: Общий режим [13:52:55]line Чек 119 21.10.2024 13:52 [13:52:55]line Смена: 115 ФФД: 1.0 [13:52:55]line ЗНМ: 0300000137 [13:52:55]line РНМ: 0000000000186857 [13:52:55]line Версия ККМ: v1.0 [13:52:55]line ФМ: 0000000002094219 [13:52:55]line ФД: 30622 [13:52:55]line ФПД: 126368337740636 [13:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135258&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30622&fm=126368337740636&tin=02508201610067®Number=0000000000186857&sum=50000 [13:52:55]OFD Sender: Processing packet 30622 [packets to send 10, broken 9] [13:52:55]ProducePacketName [13:52:55]name=ofd_packets/00030622 [13:52:55]OFD Sender: To server: pG, [13:52:55]CommunicateWithHost lk.salyk.kg:30040 [13:52:55]ConnectInit lk.salyk.kg [13:52:55]written 0, free lines is 4095 [13:52:55]Connected sock=10 [13:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2D 1D 07 01 16 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 BA 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 77 00 00 35 04 06 00 72 EE 6B E1 C3 5C 55 4A 93 1B BF EC 28 47 [13:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8D DB 47 00 7E 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9E 77 00 00 F4 03 04 00 3B 07 16 67 B6 04 01 00 00 48 22 C3 C2 FF CB 26 9C [13:52:56]CommunicateWithHost err = 0 [13:52:56]CheckOFDResponse [13:52:56]1017 (14) - 77093643461234 [13:52:56]1041 (16) - 0000000002094219 [13:52:56]1040 (4) - 30622 [13:52:56]1012 (4) - 21.10.2024 07:48 [13:52:56]1206 (1) - 0 [13:52:56]OFD Sender: Remove packet 30622 [13:52:56]ProducePacketName [13:52:56]name=ofd_packets/00030622 [13:52:56]NVStorageDeleteData [13:52:56]Write to MH i2c: 01 00 00 A9 41 EA [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: 01 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: 01 07 00 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: 01 07 00 A9 41 00 00 00 00 00 F4 0C F1 [13:52:56]RasterBufferAndPrint [13:52:56]line [13:52:56]line [13:52:56]line [13:52:56]line [13:52:56]line [13:52:56]written 0, free lines is 3322 [13:52:56]MH_Cut [13:52:56]Write to MH i2c: D1 01 00 B0 41 01 C3 [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: D1 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: D1 01 00 [13:52:56]MH_I2C_Read... [13:52:56]Read from MH i2c: D1 01 00 B0 41 00 C2 [13:52:56]Write to MH i2c: 01 00 00 B1 41 F2 [13:52:56]Write i2c OK [13:52:56]MH_I2C_Read... [13:52:56]OFD Sender: No OFD packet to send [13:52:56]*** Cut start [13:52:56]*** Partial cut [13:52:56]*** CUTSNS_PIN = 1 [13:52:56]*** CUTSNS_PIN = 0 [13:52:57]*** Brake cut motor [13:52:57]Read from MH i2c: 01 [13:52:57]MH_I2C_Read... [13:52:57]*** Stop cut motor [13:52:57]*** Cut end [13:52:57]Read from MH i2c: 01 07 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: 01 07 00 B1 41 00 00 00 00 00 FF 0F 07 [13:52:57]process_action close_receipt done [13:52:57]requested_data is exist [13:52:57]produce_requested_data [13:52:57]requested_item fm.sn is exist - process it [13:52:57]wFMCommunicate request_size=4 [13:52:57]MH_SAM_APDU [13:52:57]CAPDU: 80 11 00 00 [13:52:57]Write to MH i2c: E2 08 00 B2 41 80 11 00 00 00 00 00 00 6D [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:57]Read from MH i2c: E2 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 17 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 17 00 B2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [13:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:52:57]wFMCommunicate OK [13:52:57]requested_item fd.num is exist - process it [13:52:57]SAM_PROTO_GetFieldsCounters [13:52:57]wFMCommunicate request_size=4 [13:52:57]MH_SAM_APDU [13:52:57]CAPDU: 80 13 00 00 [13:52:57]Write to MH i2c: E2 08 00 B3 41 80 13 00 00 00 00 00 00 70 [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:57]Read from MH i2c: E2 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 62 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 62 00 B3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 77 00 00 0E 04 04 00 73 00 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 83 [13:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9E 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:57]wFMCommunicate OK [13:52:57]SAM_PROTO_GetFieldsCounters done [13:52:57]requested_item shift.num is exist - process it [13:52:57]requested_item shift.opened is exist - process it [13:52:57]req_shift_opened [13:52:57]FM_GetShiftState [13:52:57]SAM_PROTO_GetShiftState [13:52:57]wFMCommunicate request_size=4 [13:52:57]MH_SAM_APDU [13:52:57]CAPDU: 80 13 01 00 [13:52:57]Write to MH i2c: E2 08 00 B4 41 80 13 01 00 00 00 00 00 72 [13:52:57]Write i2c OK [13:52:57]MH_I2C_Read... [13:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:57]Read from MH i2c: E2 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 0E 00 [13:52:57]MH_I2C_Read... [13:52:57]Read from MH i2c: E2 0E 00 B4 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EE [13:52:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:52:57]wFMCommunicate OK [13:52:57]SAM_PROTO_GetShiftState done [13:52:57]FM_GetShiftState done [13:52:57]req_shift_opened done [13:52:57]requested_item shift.open_date is exist - process it [13:52:57]req_shift_open_date [13:52:57]req_shift_open_date done [13:52:57]produce_requested_data done [13:52:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30622,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:52:57]process_action_free close_receipt [13:52:57]json_value_free [13:52:57]json_value_free done [13:52:57]process_json_proto returns [13:52:57]Send response to host [13:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30622,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:52:57]free response buf [13:52:57]execute_script done [13:52:57]execute_script returns [13:52:57]free content buf [13:52:57]Sock 9.Close socket [13:52:57]Sock 9.Thread stoped [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:32]accept exits with 7 [13:53:32]New connection [13:53:32]New thread 3067489636 created [13:53:32]Thread 3067346276 joined [13:53:32]Waiting for new connection... [13:53:32] Sock 7.Parse request [13:53:32]Sock 7.Check first char [13:53:32]Sock 7.First char is OK [13:53:32]request: POST /json_proto HTTP/1.0 [13:53:32]Method: POST [13:53:32]URL: /json_proto [13:53:32]Method is POST - this is cgi request [13:53:32]url: /json_proto [13:53:32]query_string will be loaded in cgi processing [13:53:32]execute_cgi json_proto POST (null) [13:53:32]execute_cgi path=json_proto method=POST [13:53:32]POST find Content-Length [13:53:32]Host: 172.17.51.3:8080 [13:53:32]Content-Length: 675 [13:53:32]Content-Type: application/json [13:53:32] [13:53:32]POST finish read [13:53:32]Found Content-Length = 675 [13:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:32]execute_script... [13:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 11.820, "sum" : 900.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:32]POST & json_proto [13:53:32]process_json_proto [13:53:32]json parsed OK: [13:53:32]protocol is kg_v1.0 [13:53:32]action value=close_receipt [13:53:32]process_action close_receipt [13:53:32]cmd_close_receipt [13:53:32]MH_GetDate [13:53:32]Write to MH i2c: F0 00 00 B5 41 E5 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: F0 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: F0 09 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: F0 09 00 B5 41 00 E1 5C 16 67 04 C1 95 66 68 [13:53:32]GetLastDocTimeStamp 1729518778 [13:53:32]current date 1729518817 [13:53:32]FM_GetShiftState [13:53:32]SAM_PROTO_GetShiftState [13:53:32]wFMCommunicate request_size=4 [13:53:32]MH_SAM_APDU [13:53:32]CAPDU: 80 13 01 00 [13:53:32]Write to MH i2c: E2 08 00 B6 41 80 13 01 00 00 00 00 00 74 [13:53:32]Write i2c OK [13:53:32]MH_I2C_Read... [13:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:32]Read from MH i2c: E2 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 0E 00 [13:53:32]MH_I2C_Read... [13:53:32]Read from MH i2c: E2 0E 00 B6 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F0 [13:53:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:53:32]wFMCommunicate OK [13:53:32]SAM_PROTO_GetShiftState done [13:53:32]FM_GetShiftState done [13:53:32]opened in 1729471058 [13:53:32]opened+sec_in_day 1729557458 [13:53:32]quantity*price = 90068 [13:53:32]sum+1 = 90069 [13:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.65 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 120 21.10.2024 13:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30623 ФПД: 261560594436209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30623&fm=261560594436209&tin=02508201610067®Number=0000000000186857&sum=90000 [13:53:33]StoreToDocumentArchive [13:53:33]shift 115 fd 30623 [13:53:33]save to /storage/0115/doc_00030623 [13:53:33]save last doc name /storage/0115/doc_00030623 to /storage/kkm_last_doc_name [13:53:33]save OK [13:53:33]Clear old archive folders... [13:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:33]tlvbuf is 01E10FD0 [13:53:33]SAM_PROTO_ClearQueue [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 09 00 00 [13:53:33]Write to MH i2c: E2 08 00 C3 41 80 09 00 00 00 00 00 00 76 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 C3 41 00 90 00 78 [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_ClearQueue done [13:53:33]KKMCreateOFDPacket [13:53:33]OFDProtocolAddRootSTLVToBuf [13:53:33]FM_MakeSignedData [13:53:33]FM_MakeSignedData [13:53:33]SAM_PROTO_SignData [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 01 02 [13:53:33]Write to MH i2c: E2 08 00 C4 41 80 0D 01 02 00 00 00 00 7E [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 C4 41 00 90 00 79 [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=255 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E1 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 77 00 00 35 04 06 00 ED E3 52 51 [13:53:33]Write to MH i2c: E2 02 01 C5 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E1 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 77 00 00 35 04 06 00 ED E3 52 51 00 00 FC [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 C5 41 00 90 00 7A [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=7 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 02 02 02 90 71 [13:53:33]Write to MH i2c: E2 0A 00 C6 41 80 0D 02 02 02 00 90 71 00 00 86 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 03 00 C6 41 00 90 00 7B [13:53:33]RAPDU: 90 00 [13:53:33]wFMCommunicate OK [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 0D 03 02 [13:53:33]Write to MH i2c: E2 08 00 C7 41 80 0D 03 02 00 00 00 00 83 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:33]Read from MH i2c: E2 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 [13:53:33]MH_I2C_Read... [13:53:33]Read from MH i2c: E2 0B 00 C7 41 00 AD F3 E5 6F F3 C5 E2 18 90 00 2A [13:53:33]RAPDU: AD F3 E5 6F F3 C5 E2 18 90 00 [13:53:33]wFMCommunicate OK [13:53:33]SAM_PROTO_SignData done [13:53:33]FM_MakeSignedData done [13:53:33]CreateOFDProtocolMessage [13:53:33]wFMCommunicate request_size=4 [13:53:33]MH_SAM_APDU [13:53:33]CAPDU: 80 11 00 00 [13:53:33]Write to MH i2c: E2 08 00 C8 41 80 11 00 00 00 00 00 00 83 [13:53:33]Write i2c OK [13:53:33]MH_I2C_Read... [13:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:34]Read from MH i2c: E2 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 17 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: E2 17 00 C8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [13:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:53:34]wFMCommunicate OK [13:53:34]CreateOFDProtocolMessage done [13:53:34]OFDSenderStorePacket 30623 [13:53:34]StoreOFDPacket docnum=30623 [13:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 51 37 04 01 EA 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E1 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 77 00 00 35 04 06 00 ED E3 52 51 90 71 AD F3 E5 6F F3 C5 E2 18 [13:53:34]CheckFolder [13:53:34]dirname=/storage/ofd_packets [13:53:34]CheckFolder done [13:53:34]ProducePacketName [13:53:34]name=ofd_packets/00030623 [13:53:34]NVStorageSaveData ofd_packets/00030623 [13:53:34]File name is /storage/ofd_packets/00030623 [13:53:34]Write 298 bytes [13:53:34]NVStorageSaveData done [13:53:34]OFDSenderStorePacket done [13:53:34]KKMCreateOFDPacket done [13:53:34]NVStorageSaveData kkm_last_timestamp [13:53:34]File name is /storage/kkm_last_timestamp [13:53:34]Write 4 bytes [13:53:34]NVStorageSaveData done [13:53:34]ExternCall_PrintAddStr [13:53:34]wPrintStart [13:53:34]Write to MH i2c: 01 00 00 C9 41 0A [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 C9 41 00 00 00 00 00 FF 0F 1F [13:53:34]RasterBufferAndPrint [13:53:34]line Счет N : (1)343031 [13:53:34]line ИНН: 02508201610067 [13:53:34]line Контрольно-Кассовый Чек [13:53:34]line ПРОДАЖА [13:53:34]line ТРК (МРК, ГНК) : 54 [13:53:34]line Товар: 2710194210 [13:53:34]line ДТ-К-2 [13:53:34]line 11.820 * 76.20 [13:53:34]line = 900.68 [13:53:34]line НДС 12% НСП 1% [13:53:34]line > о реализуемом товаре [13:53:34]line ОКРУГЛЕНИЕ: -0.68 [13:53:34]line ИТОГО: 900.00 [13:53:34]line Внесено: 900.00 [13:53:34]line СДАЧА: 0.00 [13:53:34]line НСП 1% : 7.97 [13:53:34]line НДС 12% : 95.65 [13:53:34]line Наличными: 900.00 [13:53:34]line Безнал.: 0.00 [13:53:34]line Место: АЗС № 78 "Партнер Нефть" [13:53:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:53:34]line СНО: Общий режим [13:53:34]line Чек 120 21.10.2024 13:53 [13:53:34]line Смена: 115 ФФД: 1.0 [13:53:34]line ЗНМ: 0300000137 [13:53:34]line РНМ: 0000000000186857 [13:53:34]line Версия ККМ: v1.0 [13:53:34]line ФМ: 0000000002094219 [13:53:34]line ФД: 30623 [13:53:34]line ФПД: 261560594436209 [13:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30623&fm=261560594436209&tin=02508201610067®Number=0000000000186857&sum=90000 [13:53:34]OFD Sender: Processing packet 30623 [packets to send 10, broken 9] [13:53:34]ProducePacketName [13:53:34]name=ofd_packets/00030623 [13:53:34]OFD Sender: To server: pG, [13:53:34]CommunicateWithHost lk.salyk.kg:30040 [13:53:34]ConnectInit lk.salyk.kg [13:53:34]written 0, free lines is 4095 [13:53:34]Connected sock=10 [13:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 51 37 04 01 EA 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 2C 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D4 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 E1 5C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 77 00 00 35 04 06 00 ED E3 52 51 90 71 AD F3 E5 6F F3 C5 E2 18 [13:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BA D9 47 00 8F F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 9F 77 00 00 F4 03 04 00 61 07 16 67 B6 04 01 00 00 8E D6 78 75 D8 52 E6 D3 [13:53:34]CommunicateWithHost err = 0 [13:53:34]CheckOFDResponse [13:53:34]1017 (14) - 77093643461234 [13:53:34]1041 (16) - 0000000002094219 [13:53:34]1040 (4) - 30623 [13:53:34]1012 (4) - 21.10.2024 07:48 [13:53:34]1206 (1) - 0 [13:53:34]OFD Sender: Remove packet 30623 [13:53:34]ProducePacketName [13:53:34]name=ofd_packets/00030623 [13:53:34]NVStorageDeleteData [13:53:34]Write to MH i2c: 01 00 00 F4 41 35 [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: 01 07 00 F4 41 00 00 00 00 00 FA 0C 42 [13:53:34]RasterBufferAndPrint [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]line [13:53:34]written 0, free lines is 3328 [13:53:34]MH_Cut [13:53:34]Write to MH i2c: D1 01 00 FB 41 01 0E [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: D1 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: D1 01 00 [13:53:34]MH_I2C_Read... [13:53:34]Read from MH i2c: D1 01 00 FB 41 00 0D [13:53:34]Write to MH i2c: 01 00 00 FC 41 3D [13:53:34]Write i2c OK [13:53:34]MH_I2C_Read... [13:53:35]OFD Sender: No OFD packet to send [13:53:35]*** Cut start [13:53:35]*** Partial cut [13:53:35]*** CUTSNS_PIN = 1 [13:53:35]*** CUTSNS_PIN = 0 [13:53:35]*** Brake cut motor [13:53:36]Read from MH i2c: 01 [13:53:36]MH_I2C_Read... [13:53:36]*** Stop cut motor [13:53:36]*** Cut end [13:53:36]Read from MH i2c: 01 07 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: 01 07 00 FC 41 00 00 00 00 00 FF 0F 52 [13:53:36]process_action close_receipt done [13:53:36]requested_data is exist [13:53:36]produce_requested_data [13:53:36]requested_item fm.sn is exist - process it [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 11 00 00 [13:53:36]Write to MH i2c: E2 08 00 FD 41 80 11 00 00 00 00 00 00 B8 [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 17 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 17 00 FD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [13:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:53:36]wFMCommunicate OK [13:53:36]requested_item fd.num is exist - process it [13:53:36]SAM_PROTO_GetFieldsCounters [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 13 00 00 [13:53:36]Write to MH i2c: E2 08 00 FE 41 80 13 00 00 00 00 00 00 BB [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 62 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 62 00 FE 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 77 00 00 0E 04 04 00 73 00 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 D2 [13:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 9F 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:36]wFMCommunicate OK [13:53:36]SAM_PROTO_GetFieldsCounters done [13:53:36]requested_item shift.num is exist - process it [13:53:36]requested_item shift.opened is exist - process it [13:53:36]req_shift_opened [13:53:36]FM_GetShiftState [13:53:36]SAM_PROTO_GetShiftState [13:53:36]wFMCommunicate request_size=4 [13:53:36]MH_SAM_APDU [13:53:36]CAPDU: 80 13 01 00 [13:53:36]Write to MH i2c: E2 08 00 FF 41 80 13 01 00 00 00 00 00 BD [13:53:36]Write i2c OK [13:53:36]MH_I2C_Read... [13:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:36]Read from MH i2c: E2 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 0E 00 [13:53:36]MH_I2C_Read... [13:53:36]Read from MH i2c: E2 0E 00 FF 41 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 39 [13:53:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:53:36]wFMCommunicate OK [13:53:36]SAM_PROTO_GetShiftState done [13:53:36]FM_GetShiftState done [13:53:36]req_shift_opened done [13:53:36]requested_item shift.open_date is exist - process it [13:53:36]req_shift_open_date [13:53:36]req_shift_open_date done [13:53:36]produce_requested_data done [13:53:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30623,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:53:36]process_action_free close_receipt [13:53:36]json_value_free [13:53:36]json_value_free done [13:53:36]process_json_proto returns [13:53:36]Send response to host [13:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30623,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:53:36]free response buf [13:53:36]execute_script done [13:53:36]execute_script returns [13:53:36]free content buf [13:53:36]Sock 7.Close socket [13:53:36]Sock 7.Thread stoped [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:20]accept exits with 9 [13:58:20]New connection [13:58:20]New thread 3067346276 created [13:58:20]Thread 3067489636 joined [13:58:20]Waiting for new connection... [13:58:20] Sock 9.Parse request [13:58:20]Sock 9.Check first char [13:58:20]Sock 9.First char is OK [13:58:20]request: POST /json_proto HTTP/1.0 [13:58:20]Method: POST [13:58:20]URL: /json_proto [13:58:20]Method is POST - this is cgi request [13:58:20]url: /json_proto [13:58:20]query_string will be loaded in cgi processing [13:58:20]execute_cgi json_proto POST (null) [13:58:20]execute_cgi path=json_proto method=POST [13:58:20]POST find Content-Length [13:58:20]Host: 172.17.51.3:8080 [13:58:20]Content-Length: 751 [13:58:20]Content-Type: application/json [13:58:20] [13:58:20]POST finish read [13:58:20]Found Content-Length = 751 [13:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098489", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:20]execute_script... [13:58:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098489", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:20]POST & json_proto [13:58:20]process_json_proto [13:58:20]json parsed OK: [13:58:20]protocol is kg_v1.0 [13:58:20]action value=close_receipt [13:58:20]process_action close_receipt [13:58:20]cmd_close_receipt [13:58:20]MH_GetDate [13:58:20]Write to MH i2c: F0 00 00 00 42 31 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 09 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 09 00 00 42 00 01 5E 16 67 04 C1 95 66 D6 [13:58:20]GetLastDocTimeStamp 1729518817 [13:58:20]current date 1729519105 [13:58:20]FM_GetShiftState [13:58:20]SAM_PROTO_GetShiftState [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 13 01 00 [13:58:20]Write to MH i2c: E2 08 00 01 42 80 13 01 00 00 00 00 00 C0 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 01 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3C [13:58:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_GetShiftState done [13:58:20]FM_GetShiftState done [13:58:20]opened in 1729471058 [13:58:20]opened+sec_in_day 1729557458 [13:58:20]quantity*price = 0 [13:58:20]sum+1 = 1 [13:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 121 21.10.2024 13:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30098489 ФМ: 0000000002094219 ФД: 30624 ФПД: 191527866252231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30624&fm=191527866252231&tin=02508201610067®Number=0000000000186857&sum=0 [13:58:21]StoreToDocumentArchive [13:58:21]shift 115 fd 30624 [13:58:21]save to /storage/0115/doc_00030624 [13:58:21]save last doc name /storage/0115/doc_00030624 to /storage/kkm_last_doc_name [13:58:21]save OK [13:58:21]Clear old archive folders... [13:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:21]tlvbuf is 01E7B5E0 [13:58:21]SAM_PROTO_ClearQueue [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 09 00 00 [13:58:21]Write to MH i2c: E2 08 00 0E 42 80 09 00 00 00 00 00 00 C2 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 0E 42 00 90 00 C4 [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_ClearQueue done [13:58:21]KKMCreateOFDPacket [13:58:21]OFDProtocolAddRootSTLVToBuf [13:58:21]FM_MakeSignedData [13:58:21]FM_MakeSignedData [13:58:21]SAM_PROTO_SignData [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 01 02 [13:58:21]Write to MH i2c: E2 08 00 0F 42 80 0D 01 02 00 00 00 00 CA [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 0F 42 00 90 00 C5 [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=255 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 01 5E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 77 00 00 35 04 06 00 AE 31 8E 6E [13:58:21]Write to MH i2c: E2 02 01 10 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 01 5E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 77 00 00 35 04 06 00 AE 31 8E 6E 00 00 BF [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 10 42 00 90 00 C6 [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=7 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 02 BB C7 [13:58:21]Write to MH i2c: E2 0A 00 11 42 80 0D 02 02 02 00 BB C7 00 00 53 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 03 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 03 00 11 42 00 90 00 C7 [13:58:22]RAPDU: 90 00 [13:58:22]wFMCommunicate OK [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 0D 03 02 [13:58:22]Write to MH i2c: E2 08 00 12 42 80 0D 03 02 00 00 00 00 CF [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0B 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 0B 00 12 42 00 D7 97 5D 5F 3E 62 0D 6E 90 00 15 [13:58:22]RAPDU: D7 97 5D 5F 3E 62 0D 6E 90 00 [13:58:22]wFMCommunicate OK [13:58:22]SAM_PROTO_SignData done [13:58:22]FM_MakeSignedData done [13:58:22]CreateOFDProtocolMessage [13:58:22]wFMCommunicate request_size=4 [13:58:22]MH_SAM_APDU [13:58:22]CAPDU: 80 11 00 00 [13:58:22]Write to MH i2c: E2 08 00 13 42 80 11 00 00 00 00 00 00 CF [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:22]Read from MH i2c: E2 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 17 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: E2 17 00 13 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [13:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:58:22]wFMCommunicate OK [13:58:22]CreateOFDProtocolMessage done [13:58:22]OFDSenderStorePacket 30624 [13:58:22]StoreOFDPacket docnum=30624 [13:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 23 F2 04 01 7A 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 01 5E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 77 00 00 35 04 06 00 AE 31 8E 6E BB C7 D7 97 5D 5F 3E 62 0D 6E [13:58:22]CheckFolder [13:58:22]dirname=/storage/ofd_packets [13:58:22]CheckFolder done [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00030624 [13:58:22]NVStorageSaveData ofd_packets/00030624 [13:58:22]File name is /storage/ofd_packets/00030624 [13:58:22]Write 298 bytes [13:58:22]NVStorageSaveData done [13:58:22]OFDSenderStorePacket done [13:58:22]KKMCreateOFDPacket done [13:58:22]NVStorageSaveData kkm_last_timestamp [13:58:22]File name is /storage/kkm_last_timestamp [13:58:22]Write 4 bytes [13:58:22]NVStorageSaveData done [13:58:22]ExternCall_PrintAddStr [13:58:22]wPrintStart [13:58:22]Write to MH i2c: 01 00 00 14 42 56 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 14 42 00 00 00 00 00 FF 0F 6B [13:58:22]RasterBufferAndPrint [13:58:22]line Счет N : (1)343032 [13:58:22]line ИНН: 02508201610067 [13:58:22]line Контрольно-Кассовый Чек [13:58:22]line ПРОДАЖА [13:58:22]line ТРК (МРК, ГНК) : 64 [13:58:22]line Товар: 2710194210 [13:58:22]line ДТ-К-2 [13:58:22]line 40.000 * 0.00 [13:58:22]line = 0.00 [13:58:22]line НДС 12% НСП 1% [13:58:22]line > о реализуемом товаре [13:58:22]line ИТОГО: 0.00 [13:58:22]line НСП 1% : 0.00 [13:58:22]line НДС 12% : 0.00 [13:58:22]line Наличными: 0.00 [13:58:22]line Безнал.: 0.00 [13:58:22]line Место: АЗС № 78 "Партнер Нефть" [13:58:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [13:58:22]line СНО: Общий режим [13:58:22]line Чек 121 21.10.2024 13:58 [13:58:22]line Смена: 115 ФФД: 1.0 [13:58:22]line ЗНМ: 0300000137 [13:58:22]line РНМ: 0000000000186857 [13:58:22]line Версия ККМ: v1.0 [13:58:22]line Талоны: ТК ГПНА Online [13:58:22]line 30098489 [13:58:22]line ФМ: 0000000002094219 [13:58:22]line ФД: 30624 [13:58:22]line ФПД: 191527866252231 [13:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135825&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30624&fm=191527866252231&tin=02508201610067®Number=0000000000186857&sum=0 [13:58:22]OFD Sender: Processing packet 30624 [packets to send 10, broken 9] [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00030624 [13:58:22]OFD Sender: To server: pG, [13:58:22]CommunicateWithHost lk.salyk.kg:30040 [13:58:22]ConnectInit lk.salyk.kg [13:58:22]written 0, free lines is 4095 [13:58:22]Connected sock=10 [13:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 23 F2 04 01 7A 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 01 5E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 77 00 00 35 04 06 00 AE 31 8E 6E BB C7 D7 97 5D 5F 3E 62 0D 6E [13:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 E2 47 00 AD 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A0 77 00 00 F4 03 04 00 82 08 16 67 B6 04 01 00 00 62 DD A7 48 7B 5C AB BF [13:58:22]CommunicateWithHost err = 0 [13:58:22]CheckOFDResponse [13:58:22]1017 (14) - 77093643461234 [13:58:22]1041 (16) - 0000000002094219 [13:58:22]1040 (4) - 30624 [13:58:22]1012 (4) - 21.10.2024 07:53 [13:58:22]1206 (1) - 0 [13:58:22]OFD Sender: Remove packet 30624 [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00030624 [13:58:22]NVStorageDeleteData [13:58:22]Write to MH i2c: 01 00 00 3E 42 80 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 3E 42 00 00 00 00 00 10 0D A4 [13:58:22]RasterBufferAndPrint [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]written 0, free lines is 3350 [13:58:22]MH_Cut [13:58:22]Write to MH i2c: D1 01 00 45 42 01 59 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 45 42 00 58 [13:58:22]Write to MH i2c: 01 00 00 46 42 88 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:23]OFD Sender: No OFD packet to send [13:58:23]*** Cut start [13:58:23]*** Partial cut [13:58:23]*** CUTSNS_PIN = 1 [13:58:23]*** CUTSNS_PIN = 0 [13:58:23]*** Brake cut motor [13:58:24]Read from MH i2c: 01 [13:58:24]MH_I2C_Read... [13:58:24]*** Stop cut motor [13:58:24]*** Cut end [13:58:24]Read from MH i2c: 01 07 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: 01 07 00 46 42 00 00 00 00 00 FF 0F 9D [13:58:24]process_action close_receipt done [13:58:24]requested_data is exist [13:58:24]produce_requested_data [13:58:24]requested_item fm.sn is exist - process it [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 11 00 00 [13:58:24]Write to MH i2c: E2 08 00 47 42 80 11 00 00 00 00 00 00 03 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 17 00 47 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [13:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [13:58:24]wFMCommunicate OK [13:58:24]requested_item fd.num is exist - process it [13:58:24]SAM_PROTO_GetFieldsCounters [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 13 00 00 [13:58:24]Write to MH i2c: E2 08 00 48 42 80 13 00 00 00 00 00 00 06 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 62 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 62 00 48 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 77 00 00 0E 04 04 00 73 00 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 21 [13:58:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_GetFieldsCounters done [13:58:24]requested_item shift.num is exist - process it [13:58:24]requested_item shift.opened is exist - process it [13:58:24]req_shift_opened [13:58:24]FM_GetShiftState [13:58:24]SAM_PROTO_GetShiftState [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 13 01 00 [13:58:24]Write to MH i2c: E2 08 00 49 42 80 13 01 00 00 00 00 00 08 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0E 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0E 00 49 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 84 [13:58:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_GetShiftState done [13:58:24]FM_GetShiftState done [13:58:24]req_shift_opened done [13:58:24]requested_item shift.open_date is exist - process it [13:58:24]req_shift_open_date [13:58:24]req_shift_open_date done [13:58:24]produce_requested_data done [13:58:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30624,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [13:58:24]process_action_free close_receipt [13:58:24]json_value_free [13:58:24]json_value_free done [13:58:24]process_json_proto returns [13:58:24]Send response to host [13:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30624,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [13:58:24]free response buf [13:58:24]execute_script done [13:58:24]execute_script returns [13:58:24]free content buf [13:58:24]Sock 9.Close socket [13:58:24]Sock 9.Thread stoped [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:18]OFD Sender: No OFD packet to send [14:03:23]OFD Sender: No OFD packet to send [14:03:28]OFD Sender: No OFD packet to send [14:03:33]OFD Sender: No OFD packet to send [14:03:38]OFD Sender: No OFD packet to send [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:08]OFD Sender: No OFD packet to send [14:04:13]OFD Sender: No OFD packet to send [14:04:18]OFD Sender: No OFD packet to send [14:04:23]OFD Sender: No OFD packet to send [14:04:28]OFD Sender: No OFD packet to send [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:49]accept exits with 7 [14:05:49]New connection [14:05:49]New thread 3067489636 created [14:05:49]Thread 3067346276 joined [14:05:49]Waiting for new connection... [14:05:49] Sock 7.Parse request [14:05:49]Sock 7.Check first char [14:05:49]Sock 7.First char is OK [14:05:49]request: POST /json_proto HTTP/1.0 [14:05:49]Method: POST [14:05:49]URL: /json_proto [14:05:49]Method is POST - this is cgi request [14:05:49]url: /json_proto [14:05:49]query_string will be loaded in cgi processing [14:05:49]execute_cgi json_proto POST (null) [14:05:49]execute_cgi path=json_proto method=POST [14:05:49]POST find Content-Length [14:05:49]Host: 172.17.51.3:8080 [14:05:49]Content-Length: 678 [14:05:49]Content-Type: application/json [14:05:49] [14:05:49]POST finish read [14:05:49]Found Content-Length = 678 [14:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:49]execute_script... [14:05:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:49]POST & json_proto [14:05:49]process_json_proto [14:05:49]json parsed OK: [14:05:49]protocol is kg_v1.0 [14:05:49]action value=close_receipt [14:05:49]process_action close_receipt [14:05:49]cmd_close_receipt [14:05:49]MH_GetDate [14:05:49]Write to MH i2c: F0 00 00 4A 42 7B [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: F0 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: F0 09 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: F0 09 00 4A 42 00 C2 5F 16 67 04 C1 95 66 E2 [14:05:49]GetLastDocTimeStamp 1729519105 [14:05:49]current date 1729519554 [14:05:49]FM_GetShiftState [14:05:49]SAM_PROTO_GetShiftState [14:05:49]wFMCommunicate request_size=4 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 13 01 00 [14:05:49]Write to MH i2c: E2 08 00 4B 42 80 13 01 00 00 00 00 00 0A [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 0E 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 0E 00 4B 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 86 [14:05:49]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:05:49]wFMCommunicate OK [14:05:49]SAM_PROTO_GetShiftState done [14:05:49]FM_GetShiftState done [14:05:49]opened in 1729471058 [14:05:49]opened+sec_in_day 1729557458 [14:05:49]quantity*price = 70044 [14:05:49]sum+1 = 70045 [14:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 122 21.10.2024 14:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30625 ФПД: 6267362061210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140554&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30625&fm=6267362061210&tin=02508201610067®Number=0000000000186857&sum=70000 [14:05:50]StoreToDocumentArchive [14:05:50]shift 115 fd 30625 [14:05:50]save to /storage/0115/doc_00030625 [14:05:50]save last doc name /storage/0115/doc_00030625 to /storage/kkm_last_doc_name [14:05:50]save OK [14:05:50]Clear old archive folders... [14:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:50]tlvbuf is 01F099F0 [14:05:50]SAM_PROTO_ClearQueue [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 09 00 00 [14:05:50]Write to MH i2c: E2 08 00 58 42 80 09 00 00 00 00 00 00 0C [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 58 42 00 90 00 0E [14:05:50]RAPDU: 90 00 [14:05:50]wFMCommunicate OK [14:05:50]SAM_PROTO_ClearQueue done [14:05:50]KKMCreateOFDPacket [14:05:50]OFDProtocolAddRootSTLVToBuf [14:05:50]FM_MakeSignedData [14:05:50]FM_MakeSignedData [14:05:50]SAM_PROTO_SignData [14:05:50]wFMCommunicate request_size=4 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 0D 01 02 [14:05:50]Write to MH i2c: E2 08 00 59 42 80 0D 01 02 00 00 00 00 14 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 59 42 00 90 00 0F [14:05:50]RAPDU: 90 00 [14:05:50]wFMCommunicate OK [14:05:50]wFMCommunicate request_size=255 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C2 5F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 77 00 00 35 04 06 00 05 [14:05:50]Write to MH i2c: E2 02 01 5A 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C2 5F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 77 00 00 35 04 06 00 05 00 00 5D [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:50]Read from MH i2c: E2 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: E2 03 00 5A 42 00 90 00 10 [14:05:50]RAPDU: 90 00 [14:05:50]wFMCommunicate OK [14:05:50]wFMCommunicate request_size=10 [14:05:50]MH_SAM_APDU [14:05:50]CAPDU: 80 0D 02 02 05 B3 3B E3 AB 9A [14:05:50]Write to MH i2c: E2 0D 00 5B 42 80 0D 02 02 05 00 B3 3B E3 AB 9A 00 00 37 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 03 00 5B 42 00 90 00 11 [14:05:51]RAPDU: 90 00 [14:05:51]wFMCommunicate OK [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 0D 03 02 [14:05:51]Write to MH i2c: E2 08 00 5C 42 80 0D 03 02 00 00 00 00 19 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0B 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 0B 00 5C 42 00 0D 74 3E 0B 88 11 D0 ED 90 00 3A [14:05:51]RAPDU: 0D 74 3E 0B 88 11 D0 ED 90 00 [14:05:51]wFMCommunicate OK [14:05:51]SAM_PROTO_SignData done [14:05:51]FM_MakeSignedData done [14:05:51]CreateOFDProtocolMessage [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 11 00 00 [14:05:51]Write to MH i2c: E2 08 00 5D 42 80 11 00 00 00 00 00 00 19 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 5D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [14:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:05:51]wFMCommunicate OK [14:05:51]CreateOFDProtocolMessage done [14:05:51]OFDSenderStorePacket 30625 [14:05:51]StoreOFDPacket docnum=30625 [14:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 71 30 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C2 5F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 77 00 00 35 04 06 00 05 B3 3B E3 AB 9A 0D 74 3E 0B 88 11 D0 ED [14:05:51]CheckFolder [14:05:51]dirname=/storage/ofd_packets [14:05:51]CheckFolder done [14:05:51]ProducePacketName [14:05:51]name=ofd_packets/00030625 [14:05:51]NVStorageSaveData ofd_packets/00030625 [14:05:51]File name is /storage/ofd_packets/00030625 [14:05:51]Write 301 bytes [14:05:51]NVStorageSaveData done [14:05:51]OFDSenderStorePacket done [14:05:51]KKMCreateOFDPacket done [14:05:51]NVStorageSaveData kkm_last_timestamp [14:05:51]File name is /storage/kkm_last_timestamp [14:05:51]Write 4 bytes [14:05:51]NVStorageSaveData done [14:05:51]ExternCall_PrintAddStr [14:05:51]wPrintStart [14:05:51]Write to MH i2c: 01 00 00 5E 42 A0 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 5E 42 00 00 00 00 00 FF 0F B5 [14:05:51]RasterBufferAndPrint [14:05:51]line Счет N : (1)343034 [14:05:51]line ИНН: 02508201610067 [14:05:51]line Контрольно-Кассовый Чек [14:05:51]line ПРОДАЖА [14:05:51]line ТРК (МРК, ГНК) : 53 [14:05:51]line Товар: 2710124130 [14:05:51]line Аи-92-К-2 [14:05:51]line 10.470 * 66.90 [14:05:51]line = 700.44 [14:05:51]line НДС 12% НСП 1% [14:05:51]line > о реализуемом товаре [14:05:51]line ОКРУГЛЕНИЕ: -0.44 [14:05:51]line ИТОГО: 700.00 [14:05:51]line Внесено: 700.00 [14:05:51]line СДАЧА: 0.00 [14:05:51]line НСП 1% : 6.20 [14:05:51]line НДС 12% : 74.38 [14:05:51]line Наличными: 700.00 [14:05:51]line Безнал.: 0.00 [14:05:51]line Место: АЗС № 78 "Партнер Нефть" [14:05:51]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:05:51]line СНО: Общий режим [14:05:51]line Чек 122 21.10.2024 14:05 [14:05:51]line Смена: 115 ФФД: 1.0 [14:05:51]line ЗНМ: 0300000137 [14:05:51]line РНМ: 0000000000186857 [14:05:51]line Версия ККМ: v1.0 [14:05:51]line ФМ: 0000000002094219 [14:05:51]line ФД: 30625 [14:05:51]line ФПД: 6267362061210 [14:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140554&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30625&fm=6267362061210&tin=02508201610067®Number=0000000000186857&sum=70000 [14:05:51]OFD Sender: Processing packet 30625 [packets to send 10, broken 9] [14:05:51]ProducePacketName [14:05:51]name=ofd_packets/00030625 [14:05:51]OFD Sender: To server: pG, [14:05:51]CommunicateWithHost lk.salyk.kg:30040 [14:05:51]ConnectInit lk.salyk.kg [14:05:51]written 0, free lines is 4095 [14:05:51]Connected sock=10 [14:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 71 30 07 01 FF 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 C2 5F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 77 00 00 35 04 06 00 05 B3 3B E3 AB 9A 0D 74 3E 0B 88 11 D0 ED [14:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 01 02 47 00 76 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A1 77 00 00 F4 03 04 00 43 0A 16 67 B6 04 01 00 00 80 B7 0D 18 D1 F1 CD FC [14:05:51]CommunicateWithHost err = 0 [14:05:51]CheckOFDResponse [14:05:51]1017 (14) - 77093643461234 [14:05:51]1041 (16) - 0000000002094219 [14:05:51]1040 (4) - 30625 [14:05:51]1012 (4) - 21.10.2024 08:01 [14:05:51]1206 (1) - 0 [14:05:51]OFD Sender: Remove packet 30625 [14:05:51]ProducePacketName [14:05:51]name=ofd_packets/00030625 [14:05:51]NVStorageDeleteData [14:05:51]Write to MH i2c: 01 00 00 89 42 CB [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 89 42 00 00 00 00 00 FE 0C DC [14:05:51]RasterBufferAndPrint [14:05:51]line [14:05:51]line [14:05:51]line [14:05:51]line [14:05:51]line [14:05:51]written 0, free lines is 3335 [14:05:51]MH_Cut [14:05:51]Write to MH i2c: D1 01 00 90 42 01 A4 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: D1 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: D1 01 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: D1 01 00 90 42 00 A3 [14:05:51]Write to MH i2c: 01 00 00 91 42 D3 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:52]OFD Sender: No OFD packet to send [14:05:52]*** Cut start [14:05:52]*** Partial cut [14:05:52]*** CUTSNS_PIN = 1 [14:05:52]*** CUTSNS_PIN = 0 [14:05:52]*** Brake cut motor [14:05:53]Read from MH i2c: 01 [14:05:53]MH_I2C_Read... [14:05:53]*** Stop cut motor [14:05:53]*** Cut end [14:05:53]Read from MH i2c: 01 07 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: 01 07 00 91 42 00 00 00 00 00 FF 0F E8 [14:05:53]process_action close_receipt done [14:05:53]requested_data is exist [14:05:53]produce_requested_data [14:05:53]requested_item fm.sn is exist - process it [14:05:53]wFMCommunicate request_size=4 [14:05:53]MH_SAM_APDU [14:05:53]CAPDU: 80 11 00 00 [14:05:53]Write to MH i2c: E2 08 00 92 42 80 11 00 00 00 00 00 00 4E [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 17 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 17 00 92 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [14:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:05:53]wFMCommunicate OK [14:05:53]requested_item fd.num is exist - process it [14:05:53]SAM_PROTO_GetFieldsCounters [14:05:53]wFMCommunicate request_size=4 [14:05:53]MH_SAM_APDU [14:05:53]CAPDU: 80 13 00 00 [14:05:53]Write to MH i2c: E2 08 00 93 42 80 13 00 00 00 00 00 00 51 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 62 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 62 00 93 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 77 00 00 0E 04 04 00 73 00 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 70 [14:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:53]wFMCommunicate OK [14:05:53]SAM_PROTO_GetFieldsCounters done [14:05:53]requested_item shift.num is exist - process it [14:05:53]requested_item shift.opened is exist - process it [14:05:53]req_shift_opened [14:05:53]FM_GetShiftState [14:05:53]SAM_PROTO_GetShiftState [14:05:53]wFMCommunicate request_size=4 [14:05:53]MH_SAM_APDU [14:05:53]CAPDU: 80 13 01 00 [14:05:53]Write to MH i2c: E2 08 00 94 42 80 13 01 00 00 00 00 00 53 [14:05:53]Write i2c OK [14:05:53]MH_I2C_Read... [14:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:53]Read from MH i2c: E2 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 0E 00 [14:05:53]MH_I2C_Read... [14:05:53]Read from MH i2c: E2 0E 00 94 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CF [14:05:53]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:05:53]wFMCommunicate OK [14:05:53]SAM_PROTO_GetShiftState done [14:05:53]FM_GetShiftState done [14:05:53]req_shift_opened done [14:05:53]requested_item shift.open_date is exist - process it [14:05:53]req_shift_open_date [14:05:53]req_shift_open_date done [14:05:53]produce_requested_data done [14:05:53]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30625,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:05:53]process_action_free close_receipt [14:05:53]json_value_free [14:05:53]json_value_free done [14:05:53]process_json_proto returns [14:05:53]Send response to host [14:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30625,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:05:53]free response buf [14:05:53]execute_script done [14:05:53]execute_script returns [14:05:53]free content buf [14:05:53]Sock 7.Close socket [14:05:53]Sock 7.Thread stoped [14:05:57]OFD Sender: No OFD packet to send [14:06:02]OFD Sender: No OFD packet to send [14:06:07]OFD Sender: No OFD packet to send [14:06:12]OFD Sender: No OFD packet to send [14:06:17]OFD Sender: No OFD packet to send [14:06:22]OFD Sender: No OFD packet to send [14:06:27]OFD Sender: No OFD packet to send [14:06:32]OFD Sender: No OFD packet to send [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:27]OFD Sender: No OFD packet to send [14:09:32]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]accept exits with 9 [14:11:32]New connection [14:11:32]New thread 3067346276 created [14:11:32]Thread 3067489636 joined [14:11:32]Waiting for new connection... [14:11:32] Sock 9.Parse request [14:11:32]Sock 9.Check first char [14:11:32]Sock 9.First char is OK [14:11:32]request: POST /json_proto HTTP/1.0 [14:11:32]Method: POST [14:11:32]URL: /json_proto [14:11:32]Method is POST - this is cgi request [14:11:32]url: /json_proto [14:11:32]query_string will be loaded in cgi processing [14:11:32]execute_cgi json_proto POST (null) [14:11:32]execute_cgi path=json_proto method=POST [14:11:32]POST find Content-Length [14:11:32]Host: 172.17.51.3:8080 [14:11:32]Content-Length: 679 [14:11:32]Content-Type: application/json [14:11:32] [14:11:32]POST finish read [14:11:32]Found Content-Length = 679 [14:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:32]execute_script... [14:11:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:32]POST & json_proto [14:11:32]process_json_proto [14:11:32]json parsed OK: [14:11:32]protocol is kg_v1.0 [14:11:32]action value=close_receipt [14:11:32]process_action close_receipt [14:11:32]cmd_close_receipt [14:11:32]MH_GetDate [14:11:32]Write to MH i2c: F0 00 00 95 42 C6 [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: F0 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: F0 09 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: F0 09 00 95 42 00 19 61 16 67 04 C1 95 66 86 [14:11:32]GetLastDocTimeStamp 1729519554 [14:11:32]current date 1729519897 [14:11:32]FM_GetShiftState [14:11:32]SAM_PROTO_GetShiftState [14:11:32]wFMCommunicate request_size=4 [14:11:32]MH_SAM_APDU [14:11:32]CAPDU: 80 13 01 00 [14:11:32]Write to MH i2c: E2 08 00 96 42 80 13 01 00 00 00 00 00 55 [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:32]Read from MH i2c: E2 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 0E 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 0E 00 96 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D1 [14:11:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:11:32]wFMCommunicate OK [14:11:32]SAM_PROTO_GetShiftState done [14:11:32]FM_GetShiftState done [14:11:32]opened in 1729471058 [14:11:32]opened+sec_in_day 1729557458 [14:11:32]quantity*price = 100050 [14:11:32]sum+1 = 100052 [14:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 123 21.10.2024 14:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30626 ФПД: 125328513007256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141137&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30626&fm=125328513007256&tin=02508201610067®Number=0000000000186857&sum=100000 [14:11:33]StoreToDocumentArchive [14:11:33]shift 115 fd 30626 [14:11:33]save to /storage/0115/doc_00030626 [14:11:33]save last doc name /storage/0115/doc_00030626 to /storage/kkm_last_doc_name [14:11:33]save OK [14:11:33]Clear old archive folders... [14:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:11:33]tlvbuf is 01DAF7D0 [14:11:33]SAM_PROTO_ClearQueue [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 09 00 00 [14:11:33]Write to MH i2c: E2 08 00 A3 42 80 09 00 00 00 00 00 00 57 [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 A3 42 00 90 00 59 [14:11:33]RAPDU: 90 00 [14:11:33]wFMCommunicate OK [14:11:33]SAM_PROTO_ClearQueue done [14:11:33]KKMCreateOFDPacket [14:11:33]OFDProtocolAddRootSTLVToBuf [14:11:33]FM_MakeSignedData [14:11:33]FM_MakeSignedData [14:11:33]SAM_PROTO_SignData [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 0D 01 02 [14:11:33]Write to MH i2c: E2 08 00 A4 42 80 0D 01 02 00 00 00 00 5F [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 A4 42 00 90 00 5A [14:11:33]RAPDU: 90 00 [14:11:33]wFMCommunicate OK [14:11:33]wFMCommunicate request_size=255 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 77 00 00 35 04 06 00 71 FC 51 7F [14:11:33]Write to MH i2c: E2 02 01 A5 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 77 00 00 35 04 06 00 71 FC 51 7F 00 00 21 [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 A5 42 00 90 00 5B [14:11:33]RAPDU: 90 00 [14:11:33]wFMCommunicate OK [14:11:33]wFMCommunicate request_size=7 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 0D 02 02 02 7E 98 [14:11:33]Write to MH i2c: E2 0A 00 A6 42 80 0D 02 02 02 00 7E 98 00 00 7C [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 03 00 A6 42 00 90 00 5C [14:11:33]RAPDU: 90 00 [14:11:33]wFMCommunicate OK [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 0D 03 02 [14:11:33]Write to MH i2c: E2 08 00 A7 42 80 0D 03 02 00 00 00 00 64 [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:33]Read from MH i2c: E2 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0B 00 [14:11:33]MH_I2C_Read... [14:11:33]Read from MH i2c: E2 0B 00 A7 42 00 61 05 22 97 BE 9E A8 BD 90 00 45 [14:11:33]RAPDU: 61 05 22 97 BE 9E A8 BD 90 00 [14:11:33]wFMCommunicate OK [14:11:33]SAM_PROTO_SignData done [14:11:33]FM_MakeSignedData done [14:11:33]CreateOFDProtocolMessage [14:11:33]wFMCommunicate request_size=4 [14:11:33]MH_SAM_APDU [14:11:33]CAPDU: 80 11 00 00 [14:11:33]Write to MH i2c: E2 08 00 A8 42 80 11 00 00 00 00 00 00 64 [14:11:33]Write i2c OK [14:11:33]MH_I2C_Read... [14:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:34]Read from MH i2c: E2 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 17 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: E2 17 00 A8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [14:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:11:34]wFMCommunicate OK [14:11:34]CreateOFDProtocolMessage done [14:11:34]OFDSenderStorePacket 30626 [14:11:34]StoreOFDPacket docnum=30626 [14:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CF 11 04 01 1A 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 77 00 00 35 04 06 00 71 FC 51 7F 7E 98 61 05 22 97 BE 9E A8 BD [14:11:34]CheckFolder [14:11:34]dirname=/storage/ofd_packets [14:11:34]CheckFolder done [14:11:34]ProducePacketName [14:11:34]name=ofd_packets/00030626 [14:11:34]NVStorageSaveData ofd_packets/00030626 [14:11:34]File name is /storage/ofd_packets/00030626 [14:11:34]Write 298 bytes [14:11:34]NVStorageSaveData done [14:11:34]OFDSenderStorePacket done [14:11:34]KKMCreateOFDPacket done [14:11:34]NVStorageSaveData kkm_last_timestamp [14:11:34]File name is /storage/kkm_last_timestamp [14:11:34]Write 4 bytes [14:11:34]NVStorageSaveData done [14:11:34]ExternCall_PrintAddStr [14:11:34]wPrintStart [14:11:34]Write to MH i2c: 01 00 00 A9 42 EB [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 07 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 07 00 A9 42 00 00 00 00 00 FF 0F 00 [14:11:34]RasterBufferAndPrint [14:11:34]line Счет N : (1)343035 [14:11:34]line ИНН: 02508201610067 [14:11:34]line Контрольно-Кассовый Чек [14:11:34]line ПРОДАЖА [14:11:34]line ТРК (МРК, ГНК) : 44 [14:11:34]line Товар: 2710194210 [14:11:34]line ДТ-К-2 [14:11:34]line 13.130 * 76.20 [14:11:34]line = 1000.51 [14:11:34]line НДС 12% НСП 1% [14:11:34]line > о реализуемом товаре [14:11:34]line ОКРУГЛЕНИЕ: -0.51 [14:11:34]line ИТОГО: 1000.00 [14:11:34]line Внесено: 1000.00 [14:11:34]line СДАЧА: 0.00 [14:11:34]line НСП 1% : 8.85 [14:11:34]line НДС 12% : 106.25 [14:11:34]line Наличными: 1000.00 [14:11:34]line Безнал.: 0.00 [14:11:34]line Место: АЗС № 78 "Партнер Нефть" [14:11:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:11:34]line СНО: Общий режим [14:11:34]line Чек 123 21.10.2024 14:11 [14:11:34]line Смена: 115 ФФД: 1.0 [14:11:34]line ЗНМ: 0300000137 [14:11:34]line РНМ: 0000000000186857 [14:11:34]line Версия ККМ: v1.0 [14:11:34]line ФМ: 0000000002094219 [14:11:34]line ФД: 30626 [14:11:34]line ФПД: 125328513007256 [14:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141137&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30626&fm=125328513007256&tin=02508201610067®Number=0000000000186857&sum=100000 [14:11:34]OFD Sender: Processing packet 30626 [packets to send 10, broken 9] [14:11:34]ProducePacketName [14:11:34]name=ofd_packets/00030626 [14:11:34]OFD Sender: To server: pG, [14:11:34]CommunicateWithHost lk.salyk.kg:30040 [14:11:34]ConnectInit lk.salyk.kg [14:11:34]written 0, free lines is 4095 [14:11:34]Connected sock=10 [14:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 CF 11 04 01 1A 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 19 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A2 77 00 00 35 04 06 00 71 FC 51 7F 7E 98 61 05 22 97 BE 9E A8 BD [14:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4D 06 47 00 D9 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 32 30 39 34 32 31 39 10 04 04 00 A2 77 00 00 F4 03 04 00 9A 0B 16 67 B6 04 01 00 00 86 8A 33 EE B5 60 9E E3 [14:11:34]CommunicateWithHost err = 0 [14:11:34]CheckOFDResponse [14:11:34]1017 (14) - 77093643461234 [14:11:34]1041 (16) - 0000000002094219 [14:11:34]1040 (4) - 30626 [14:11:34]1012 (4) - 21.10.2024 08:06 [14:11:34]1206 (1) - 0 [14:11:34]OFD Sender: Remove packet 30626 [14:11:34]ProducePacketName [14:11:34]name=ofd_packets/00030626 [14:11:34]NVStorageDeleteData [14:11:34]Write to MH i2c: 01 00 00 D4 42 16 [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 07 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: 01 07 00 D4 42 00 00 00 00 00 F0 0C 19 [14:11:34]RasterBufferAndPrint [14:11:34]line [14:11:34]line [14:11:34]line [14:11:34]line [14:11:34]line [14:11:34]written 0, free lines is 3318 [14:11:34]MH_Cut [14:11:34]Write to MH i2c: D1 01 00 DB 42 01 EF [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: D1 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: D1 01 00 [14:11:34]MH_I2C_Read... [14:11:34]Read from MH i2c: D1 01 00 DB 42 00 EE [14:11:34]Write to MH i2c: 01 00 00 DC 42 1E [14:11:34]Write i2c OK [14:11:34]MH_I2C_Read... [14:11:35]OFD Sender: No OFD packet to send [14:11:35]*** Cut start [14:11:35]*** Partial cut [14:11:35]*** CUTSNS_PIN = 1 [14:11:35]*** CUTSNS_PIN = 0 [14:11:35]*** Brake cut motor [14:11:36]Read from MH i2c: 01 [14:11:36]MH_I2C_Read... [14:11:36]*** Stop cut motor [14:11:36]*** Cut end [14:11:36]Read from MH i2c: 01 07 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: 01 07 00 DC 42 00 00 00 00 00 FF 0F 33 [14:11:36]process_action close_receipt done [14:11:36]requested_data is exist [14:11:36]produce_requested_data [14:11:36]requested_item fm.sn is exist - process it [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 11 00 00 [14:11:36]Write to MH i2c: E2 08 00 DD 42 80 11 00 00 00 00 00 00 99 [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 17 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 17 00 DD 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [14:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:11:36]wFMCommunicate OK [14:11:36]requested_item fd.num is exist - process it [14:11:36]SAM_PROTO_GetFieldsCounters [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 13 00 00 [14:11:36]Write to MH i2c: E2 08 00 DE 42 80 13 00 00 00 00 00 00 9C [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 62 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 62 00 DE 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 77 00 00 0E 04 04 00 73 00 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 BF [14:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A2 77 00 00 0E 04 04 00 73 00 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 [14:11:36]wFMCommunicate OK [14:11:36]SAM_PROTO_GetFieldsCounters done [14:11:36]requested_item shift.num is exist - process it [14:11:36]requested_item shift.opened is exist - process it [14:11:36]req_shift_opened [14:11:36]FM_GetShiftState [14:11:36]SAM_PROTO_GetShiftState [14:11:36]wFMCommunicate request_size=4 [14:11:36]MH_SAM_APDU [14:11:36]CAPDU: 80 13 01 00 [14:11:36]Write to MH i2c: E2 08 00 DF 42 80 13 01 00 00 00 00 00 9E [14:11:36]Write i2c OK [14:11:36]MH_I2C_Read... [14:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:36]Read from MH i2c: E2 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 0E 00 [14:11:36]MH_I2C_Read... [14:11:36]Read from MH i2c: E2 0E 00 DF 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1A [14:11:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:11:36]wFMCommunicate OK [14:11:36]SAM_PROTO_GetShiftState done [14:11:36]FM_GetShiftState done [14:11:36]req_shift_opened done [14:11:36]requested_item shift.open_date is exist - process it [14:11:36]req_shift_open_date [14:11:36]req_shift_open_date done [14:11:36]produce_requested_data done [14:11:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30626,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:11:36]process_action_free close_receipt [14:11:36]json_value_free [14:11:36]json_value_free done [14:11:36]process_json_proto returns [14:11:36]Send response to host [14:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30626,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:11:36]free response buf [14:11:36]execute_script done [14:11:36]execute_script returns [14:11:36]free content buf [14:11:36]Sock 9.Close socket [14:11:36]Sock 9.Thread stoped [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:12]accept exits with 7 [14:12:12]New connection [14:12:12]New thread 3067489636 created [14:12:12]Thread 3067346276 joined [14:12:12]Waiting for new connection... [14:12:12] Sock 7.Parse request [14:12:12]Sock 7.Check first char [14:12:12]Sock 7.First char is OK [14:12:12]request: POST /json_proto HTTP/1.0 [14:12:12]Method: POST [14:12:12]URL: /json_proto [14:12:12]Method is POST - this is cgi request [14:12:12]url: /json_proto [14:12:12]query_string will be loaded in cgi processing [14:12:12]execute_cgi json_proto POST (null) [14:12:12]execute_cgi path=json_proto method=POST [14:12:12]POST find Content-Length [14:12:12]Host: 172.17.51.3:8080 [14:12:12]Content-Length: 677 [14:12:12]Content-Type: application/json [14:12:12] [14:12:12]POST finish read [14:12:12]Found Content-Length = 677 [14:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:12]execute_script... [14:12:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:12]POST & json_proto [14:12:12]process_json_proto [14:12:12]json parsed OK: [14:12:12]protocol is kg_v1.0 [14:12:12]action value=close_receipt [14:12:12]process_action close_receipt [14:12:12]cmd_close_receipt [14:12:12]MH_GetDate [14:12:12]Write to MH i2c: F0 00 00 E0 42 11 [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: F0 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: F0 09 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: F0 09 00 E0 42 00 41 61 16 67 04 C1 95 66 F9 [14:12:12]GetLastDocTimeStamp 1729519897 [14:12:12]current date 1729519937 [14:12:12]FM_GetShiftState [14:12:12]SAM_PROTO_GetShiftState [14:12:12]wFMCommunicate request_size=4 [14:12:12]MH_SAM_APDU [14:12:12]CAPDU: 80 13 01 00 [14:12:12]Write to MH i2c: E2 08 00 E1 42 80 13 01 00 00 00 00 00 A0 [14:12:12]Write i2c OK [14:12:12]MH_I2C_Read... [14:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:12]Read from MH i2c: E2 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 0E 00 [14:12:12]MH_I2C_Read... [14:12:12]Read from MH i2c: E2 0E 00 E1 42 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1C [14:12:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:12:12]wFMCommunicate OK [14:12:12]SAM_PROTO_GetShiftState done [14:12:12]FM_GetShiftState done [14:12:12]opened in 1729471058 [14:12:12]opened+sec_in_day 1729557458 [14:12:12]quantity*price = 40006 [14:12:12]sum+1 = 40007 [14:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 124 21.10.2024 14:12 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30627 ФПД: 1960510304975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30627&fm=1960510304975&tin=02508201610067®Number=0000000000186857&sum=40000 [14:12:13]StoreToDocumentArchive [14:12:13]shift 115 fd 30627 [14:12:13]save to /storage/0115/doc_00030627 [14:12:13]save last doc name /storage/0115/doc_00030627 to /storage/kkm_last_doc_name [14:12:13]save OK [14:12:13]Clear old archive folders... [14:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:13]tlvbuf is 01E7BD80 [14:12:13]SAM_PROTO_ClearQueue [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 09 00 00 [14:12:13]Write to MH i2c: E2 08 00 EE 42 80 09 00 00 00 00 00 00 A2 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 EE 42 00 90 00 A4 [14:12:13]RAPDU: 90 00 [14:12:13]wFMCommunicate OK [14:12:13]SAM_PROTO_ClearQueue done [14:12:13]KKMCreateOFDPacket [14:12:13]OFDProtocolAddRootSTLVToBuf [14:12:13]FM_MakeSignedData [14:12:13]FM_MakeSignedData [14:12:13]SAM_PROTO_SignData [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 0D 01 02 [14:12:13]Write to MH i2c: E2 08 00 EF 42 80 0D 01 02 00 00 00 00 AA [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 EF 42 00 90 00 A5 [14:12:13]RAPDU: 90 00 [14:12:13]wFMCommunicate OK [14:12:13]wFMCommunicate request_size=255 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 41 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 77 00 00 35 04 06 00 01 [14:12:13]Write to MH i2c: E2 02 01 F0 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 41 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 77 00 00 35 04 06 00 01 00 00 33 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 F0 42 00 90 00 A6 [14:12:13]RAPDU: 90 00 [14:12:13]wFMCommunicate OK [14:12:13]wFMCommunicate request_size=10 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 0D 02 02 05 C8 77 85 32 CF [14:12:13]Write to MH i2c: E2 0D 00 F1 42 80 0D 02 02 05 00 C8 77 85 32 CF 00 00 7C [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 03 00 F1 42 00 90 00 A7 [14:12:13]RAPDU: 90 00 [14:12:13]wFMCommunicate OK [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 0D 03 02 [14:12:13]Write to MH i2c: E2 08 00 F2 42 80 0D 03 02 00 00 00 00 AF [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 0B 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 0B 00 F2 42 00 53 AB 2B 6D 8B B0 22 30 90 00 D3 [14:12:13]RAPDU: 53 AB 2B 6D 8B B0 22 30 90 00 [14:12:13]wFMCommunicate OK [14:12:13]SAM_PROTO_SignData done [14:12:13]FM_MakeSignedData done [14:12:13]CreateOFDProtocolMessage [14:12:13]wFMCommunicate request_size=4 [14:12:13]MH_SAM_APDU [14:12:13]CAPDU: 80 11 00 00 [14:12:13]Write to MH i2c: E2 08 00 F3 42 80 11 00 00 00 00 00 00 AF [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:13]Read from MH i2c: E2 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: E2 17 00 F3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [14:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:12:13]wFMCommunicate OK [14:12:13]CreateOFDProtocolMessage done [14:12:13]OFDSenderStorePacket 30627 [14:12:13]StoreOFDPacket docnum=30627 [14:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC F5 07 01 23 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 41 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 77 00 00 35 04 06 00 01 C8 77 85 32 CF 53 AB 2B 6D 8B B0 22 30 [14:12:13]CheckFolder [14:12:13]dirname=/storage/ofd_packets [14:12:13]CheckFolder done [14:12:13]ProducePacketName [14:12:13]name=ofd_packets/00030627 [14:12:13]NVStorageSaveData ofd_packets/00030627 [14:12:13]File name is /storage/ofd_packets/00030627 [14:12:13]Write 301 bytes [14:12:13]NVStorageSaveData done [14:12:13]OFDSenderStorePacket done [14:12:13]KKMCreateOFDPacket done [14:12:13]NVStorageSaveData kkm_last_timestamp [14:12:13]File name is /storage/kkm_last_timestamp [14:12:13]Write 4 bytes [14:12:13]NVStorageSaveData done [14:12:13]ExternCall_PrintAddStr [14:12:13]wPrintStart [14:12:13]Write to MH i2c: 01 00 00 F4 42 36 [14:12:13]Write i2c OK [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 [14:12:13]MH_I2C_Read... [14:12:13]Read from MH i2c: 01 07 00 F4 42 00 00 00 00 00 FF 0F 4B [14:12:13]RasterBufferAndPrint [14:12:13]line Счет N : (1)343036 [14:12:13]line ИНН: 02508201610067 [14:12:13]line Контрольно-Кассовый Чек [14:12:13]line ПРОДАЖА [14:12:13]line ТРК (МРК, ГНК) : 53 [14:12:13]line Товар: 2710124130 [14:12:13]line Аи-92-К-2 [14:12:13]line 5.980 * 66.90 [14:12:13]line = 400.06 [14:12:13]line НДС 12% НСП 1% [14:12:13]line > о реализуемом товаре [14:12:13]line ОКРУГЛЕНИЕ: -0.06 [14:12:13]line ИТОГО: 400.00 [14:12:13]line Внесено: 400.00 [14:12:13]line СДАЧА: 0.00 [14:12:13]line НСП 1% : 3.54 [14:12:13]line НДС 12% : 42.48 [14:12:13]line Наличными: 400.00 [14:12:13]line Безнал.: 0.00 [14:12:13]line Место: АЗС № 78 "Партнер Нефть" [14:12:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:12:13]line СНО: Общий режим [14:12:13]line Чек 124 21.10.2024 14:12 [14:12:13]line Смена: 115 ФФД: 1.0 [14:12:13]line ЗНМ: 0300000137 [14:12:13]line РНМ: 0000000000186857 [14:12:13]line Версия ККМ: v1.0 [14:12:13]line ФМ: 0000000002094219 [14:12:13]line ФД: 30627 [14:12:13]line ФПД: 1960510304975 [14:12:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30627&fm=1960510304975&tin=02508201610067®Number=0000000000186857&sum=40000 [14:12:14]OFD Sender: Processing packet 30627 [packets to send 10, broken 9] [14:12:14]ProducePacketName [14:12:14]name=ofd_packets/00030627 [14:12:14]OFD Sender: To server: pG, [14:12:14]CommunicateWithHost lk.salyk.kg:30040 [14:12:14]ConnectInit lk.salyk.kg [14:12:14]written 0, free lines is 4095 [14:12:14]Connected sock=11 [14:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FC F5 07 01 23 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 41 61 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A3 77 00 00 35 04 06 00 01 C8 77 85 32 CF 53 AB 2B 6D 8B B0 22 30 [14:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 20 47 00 B5 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 32 30 39 34 32 31 39 10 04 04 00 A3 77 00 00 F4 03 04 00 C1 0B 16 67 B6 04 01 00 00 72 5F 82 80 47 E5 1C CE [14:12:14]CommunicateWithHost err = 0 [14:12:14]CheckOFDResponse [14:12:14]1017 (14) - 77093643461234 [14:12:14]1041 (16) - 0000000002094219 [14:12:14]1040 (4) - 30627 [14:12:14]1012 (4) - 21.10.2024 08:07 [14:12:14]1206 (1) - 0 [14:12:14]OFD Sender: Remove packet 30627 [14:12:14]ProducePacketName [14:12:14]name=ofd_packets/00030627 [14:12:14]NVStorageDeleteData [14:12:14]Write to MH i2c: 01 00 00 1F 43 62 [14:12:14]Write i2c OK [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: 01 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: 01 07 00 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: 01 07 00 1F 43 00 00 00 00 00 DC 0C 51 [14:12:14]RasterBufferAndPrint [14:12:14]line [14:12:14]line [14:12:14]line [14:12:14]line [14:12:14]line [14:12:14]written 0, free lines is 3298 [14:12:14]MH_Cut [14:12:14]Write to MH i2c: D1 01 00 26 43 01 3B [14:12:14]Write i2c OK [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: D1 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: D1 01 00 [14:12:14]MH_I2C_Read... [14:12:14]Read from MH i2c: D1 01 00 26 43 00 3A [14:12:14]Write to MH i2c: 01 00 00 27 43 6A [14:12:14]Write i2c OK [14:12:14]MH_I2C_Read... [14:12:15]OFD Sender: No OFD packet to send [14:12:15]*** Cut start [14:12:15]*** Partial cut [14:12:15]*** CUTSNS_PIN = 1 [14:12:15]*** CUTSNS_PIN = 0 [14:12:15]*** Brake cut motor [14:12:15]Read from MH i2c: 01 [14:12:15]MH_I2C_Read... [14:12:15]*** Stop cut motor [14:12:15]*** Cut end [14:12:15]Read from MH i2c: 01 07 00 [14:12:15]MH_I2C_Read... [14:12:15]Read from MH i2c: 01 07 00 27 43 00 00 00 00 00 FF 0F 7F [14:12:15]process_action close_receipt done [14:12:15]requested_data is exist [14:12:15]produce_requested_data [14:12:15]requested_item fm.sn is exist - process it [14:12:15]wFMCommunicate request_size=4 [14:12:15]MH_SAM_APDU [14:12:15]CAPDU: 80 11 00 00 [14:12:15]Write to MH i2c: E2 08 00 28 43 80 11 00 00 00 00 00 00 E5 [14:12:15]Write i2c OK [14:12:15]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 17 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 17 00 28 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [14:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:12:16]wFMCommunicate OK [14:12:16]requested_item fd.num is exist - process it [14:12:16]SAM_PROTO_GetFieldsCounters [14:12:16]wFMCommunicate request_size=4 [14:12:16]MH_SAM_APDU [14:12:16]CAPDU: 80 13 00 00 [14:12:16]Write to MH i2c: E2 08 00 29 43 80 13 00 00 00 00 00 00 E8 [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 62 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 62 00 29 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [14:12:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:16]wFMCommunicate OK [14:12:16]SAM_PROTO_GetFieldsCounters done [14:12:16]requested_item shift.num is exist - process it [14:12:16]requested_item shift.opened is exist - process it [14:12:16]req_shift_opened [14:12:16]FM_GetShiftState [14:12:16]SAM_PROTO_GetShiftState [14:12:16]wFMCommunicate request_size=4 [14:12:16]MH_SAM_APDU [14:12:16]CAPDU: 80 13 01 00 [14:12:16]Write to MH i2c: E2 08 00 2A 43 80 13 01 00 00 00 00 00 EA [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 0E 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 0E 00 2A 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 66 [14:12:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:12:16]wFMCommunicate OK [14:12:16]SAM_PROTO_GetShiftState done [14:12:16]FM_GetShiftState done [14:12:16]req_shift_opened done [14:12:16]requested_item shift.open_date is exist - process it [14:12:16]req_shift_open_date [14:12:16]req_shift_open_date done [14:12:16]produce_requested_data done [14:12:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30627,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:12:16]process_action_free close_receipt [14:12:16]json_value_free [14:12:16]json_value_free done [14:12:16]process_json_proto returns [14:12:16]Send response to host [14:12:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30627,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:12:16]free response buf [14:12:16]execute_script done [14:12:16]execute_script returns [14:12:16]free content buf [14:12:16]Sock 7.Close socket [14:12:16]Sock 7.Thread stoped [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:15:55]accept exits with 9 [14:15:55]New connection [14:15:55]New thread 3067346276 created [14:15:55]Thread 3067489636 joined [14:15:55]Waiting for new connection... [14:15:55] Sock 9.Parse request [14:15:55]Sock 9.Check first char [14:15:55]Sock 9.First char is OK [14:15:55]request: POST /json_proto HTTP/1.0 [14:15:55]Method: POST [14:15:55]URL: /json_proto [14:15:55]Method is POST - this is cgi request [14:15:55]url: /json_proto [14:15:55]query_string will be loaded in cgi processing [14:15:55]execute_cgi json_proto POST (null) [14:15:55]execute_cgi path=json_proto method=POST [14:15:55]POST find Content-Length [14:15:55]Host: 172.17.51.3:8080 [14:15:55]Content-Length: 674 [14:15:55]Content-Type: application/json [14:15:55] [14:15:55]POST finish read [14:15:55]Found Content-Length = 674 [14:15:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:55]execute_script... [14:15:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.910, "sum" : 450.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:15:55]POST & json_proto [14:15:55]process_json_proto [14:15:55]json parsed OK: [14:15:55]protocol is kg_v1.0 [14:15:55]action value=close_receipt [14:15:55]process_action close_receipt [14:15:55]cmd_close_receipt [14:15:55]MH_GetDate [14:15:55]Write to MH i2c: F0 00 00 2B 43 5D [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: F0 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: F0 09 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: F0 09 00 2B 43 00 20 62 16 67 04 C1 95 66 25 [14:15:55]GetLastDocTimeStamp 1729519937 [14:15:55]current date 1729520160 [14:15:55]FM_GetShiftState [14:15:55]SAM_PROTO_GetShiftState [14:15:55]wFMCommunicate request_size=4 [14:15:55]MH_SAM_APDU [14:15:55]CAPDU: 80 13 01 00 [14:15:55]Write to MH i2c: E2 08 00 2C 43 80 13 01 00 00 00 00 00 EC [14:15:55]Write i2c OK [14:15:55]MH_I2C_Read... [14:15:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:55]Read from MH i2c: E2 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 0E 00 [14:15:55]MH_I2C_Read... [14:15:55]Read from MH i2c: E2 0E 00 2C 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 68 [14:15:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:15:55]wFMCommunicate OK [14:15:55]SAM_PROTO_GetShiftState done [14:15:55]FM_GetShiftState done [14:15:55]opened in 1729471058 [14:15:55]opened+sec_in_day 1729557458 [14:15:55]quantity*price = 45034 [14:15:55]sum+1 = 45035 [14:15:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.82 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 125 21.10.2024 14:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30628 ФПД: 276193106908936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141600&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30628&fm=276193106908936&tin=02508201610067®Number=0000000000186857&sum=45000 [14:15:56]StoreToDocumentArchive [14:15:56]shift 115 fd 30628 [14:15:56]save to /storage/0115/doc_00030628 [14:15:56]save last doc name /storage/0115/doc_00030628 to /storage/kkm_last_doc_name [14:15:56]save OK [14:15:56]Clear old archive folders... [14:15:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:15:56]tlvbuf is 01E1C990 [14:15:56]SAM_PROTO_ClearQueue [14:15:56]wFMCommunicate request_size=4 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 09 00 00 [14:15:56]Write to MH i2c: E2 08 00 39 43 80 09 00 00 00 00 00 00 EE [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:56]Read from MH i2c: E2 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 03 00 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 03 00 39 43 00 90 00 F0 [14:15:56]RAPDU: 90 00 [14:15:56]wFMCommunicate OK [14:15:56]SAM_PROTO_ClearQueue done [14:15:56]KKMCreateOFDPacket [14:15:56]OFDProtocolAddRootSTLVToBuf [14:15:56]FM_MakeSignedData [14:15:56]FM_MakeSignedData [14:15:56]SAM_PROTO_SignData [14:15:56]wFMCommunicate request_size=4 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 0D 01 02 [14:15:56]Write to MH i2c: E2 08 00 3A 43 80 0D 01 02 00 00 00 00 F6 [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:56]Read from MH i2c: E2 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 03 00 [14:15:56]MH_I2C_Read... [14:15:56]Read from MH i2c: E2 03 00 3A 43 00 90 00 F1 [14:15:56]RAPDU: 90 00 [14:15:56]wFMCommunicate OK [14:15:56]wFMCommunicate request_size=255 [14:15:56]MH_SAM_APDU [14:15:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 20 62 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 77 00 00 35 04 06 00 FB 32 38 06 [14:15:56]Write to MH i2c: E2 02 01 3B 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 20 62 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 77 00 00 35 04 06 00 FB 32 38 06 00 00 AE [14:15:56]Write i2c OK [14:15:56]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 03 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 03 00 3B 43 00 90 00 F2 [14:15:57]RAPDU: 90 00 [14:15:57]wFMCommunicate OK [14:15:57]wFMCommunicate request_size=7 [14:15:57]MH_SAM_APDU [14:15:57]CAPDU: 80 0D 02 02 02 D7 08 [14:15:57]Write to MH i2c: E2 0A 00 3C 43 80 0D 02 02 02 00 D7 08 00 00 DC [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 03 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 03 00 3C 43 00 90 00 F3 [14:15:57]RAPDU: 90 00 [14:15:57]wFMCommunicate OK [14:15:57]wFMCommunicate request_size=4 [14:15:57]MH_SAM_APDU [14:15:57]CAPDU: 80 0D 03 02 [14:15:57]Write to MH i2c: E2 08 00 3D 43 80 0D 03 02 00 00 00 00 FB [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 0B 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 0B 00 3D 43 00 D4 22 90 33 48 17 A3 A7 90 00 5E [14:15:57]RAPDU: D4 22 90 33 48 17 A3 A7 90 00 [14:15:57]wFMCommunicate OK [14:15:57]SAM_PROTO_SignData done [14:15:57]FM_MakeSignedData done [14:15:57]CreateOFDProtocolMessage [14:15:57]wFMCommunicate request_size=4 [14:15:57]MH_SAM_APDU [14:15:57]CAPDU: 80 11 00 00 [14:15:57]Write to MH i2c: E2 08 00 3E 43 80 11 00 00 00 00 00 00 FB [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:57]Read from MH i2c: E2 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 17 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: E2 17 00 3E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [14:15:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:15:57]wFMCommunicate OK [14:15:57]CreateOFDProtocolMessage done [14:15:57]OFDSenderStorePacket 30628 [14:15:57]StoreOFDPacket docnum=30628 [14:15:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 72 4B 04 01 E0 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 20 62 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 77 00 00 35 04 06 00 FB 32 38 06 D7 08 D4 22 90 33 48 17 A3 A7 [14:15:57]CheckFolder [14:15:57]dirname=/storage/ofd_packets [14:15:57]CheckFolder done [14:15:57]ProducePacketName [14:15:57]name=ofd_packets/00030628 [14:15:57]NVStorageSaveData ofd_packets/00030628 [14:15:57]File name is /storage/ofd_packets/00030628 [14:15:57]Write 298 bytes [14:15:57]NVStorageSaveData done [14:15:57]OFDSenderStorePacket done [14:15:57]KKMCreateOFDPacket done [14:15:57]NVStorageSaveData kkm_last_timestamp [14:15:57]File name is /storage/kkm_last_timestamp [14:15:57]Write 4 bytes [14:15:57]NVStorageSaveData done [14:15:57]ExternCall_PrintAddStr [14:15:57]wPrintStart [14:15:57]Write to MH i2c: 01 00 00 3F 43 82 [14:15:57]Write i2c OK [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: 01 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: 01 07 00 [14:15:57]MH_I2C_Read... [14:15:57]Read from MH i2c: 01 07 00 3F 43 00 00 00 00 00 FF 0F 97 [14:15:57]RasterBufferAndPrint [14:15:57]line Счет N : (1)343037 [14:15:57]line ИНН: 02508201610067 [14:15:57]line Контрольно-Кассовый Чек [14:15:57]line ПРОДАЖА [14:15:57]line ТРК (МРК, ГНК) : 54 [14:15:57]line Товар: 2710194210 [14:15:57]line ДТ-К-2 [14:15:57]line 5.910 * 76.20 [14:15:57]line = 450.34 [14:15:57]line НДС 12% НСП 1% [14:15:57]line > о реализуемом товаре [14:15:57]line ОКРУГЛЕНИЕ: -0.34 [14:15:57]line ИТОГО: 450.00 [14:15:57]line Внесено: 450.00 [14:15:57]line СДАЧА: 0.00 [14:15:57]line НСП 1% : 3.98 [14:15:57]line НДС 12% : 47.82 [14:15:57]line Наличными: 450.00 [14:15:57]line Безнал.: 0.00 [14:15:57]line Место: АЗС № 78 "Партнер Нефть" [14:15:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:15:57]line СНО: Общий режим [14:15:57]line Чек 125 21.10.2024 14:16 [14:15:57]line Смена: 115 ФФД: 1.0 [14:15:57]line ЗНМ: 0300000137 [14:15:57]line РНМ: 0000000000186857 [14:15:57]line Версия ККМ: v1.0 [14:15:57]line ФМ: 0000000002094219 [14:15:57]line ФД: 30628 [14:15:57]line ФПД: 276193106908936 [14:15:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141600&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30628&fm=276193106908936&tin=02508201610067®Number=0000000000186857&sum=45000 [14:15:57]OFD Sender: Processing packet 30628 [packets to send 10, broken 9] [14:15:57]ProducePacketName [14:15:57]name=ofd_packets/00030628 [14:15:57]OFD Sender: To server: pG, [14:15:57]CommunicateWithHost lk.salyk.kg:30040 [14:15:57]ConnectInit lk.salyk.kg [14:15:57]written 0, free lines is 4095 [14:15:57]Connected sock=10 [14:15:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 72 4B 04 01 E0 05 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 16 17 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 20 62 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A4 77 00 00 35 04 06 00 FB 32 38 06 D7 08 D4 22 90 33 48 17 A3 A7 [14:15:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 57 23 47 00 80 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 32 30 39 34 32 31 39 10 04 04 00 A4 77 00 00 F4 03 04 00 A1 0C 16 67 B6 04 01 00 00 A4 53 FA C8 CF 43 79 63 [14:15:57]CommunicateWithHost err = 0 [14:15:57]CheckOFDResponse [14:15:57]1017 (14) - 77093643461234 [14:15:57]1041 (16) - 0000000002094219 [14:15:57]1040 (4) - 30628 [14:15:57]1012 (4) - 21.10.2024 08:11 [14:15:57]1206 (1) - 0 [14:15:57]OFD Sender: Remove packet 30628 [14:15:57]ProducePacketName [14:15:57]name=ofd_packets/00030628 [14:15:57]NVStorageDeleteData [14:15:58]Write to MH i2c: 01 00 00 6A 43 AD [14:15:58]Write i2c OK [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: 01 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: 01 07 00 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: 01 07 00 6A 43 00 00 00 00 00 EE 0C AE [14:15:58]RasterBufferAndPrint [14:15:58]line [14:15:58]line [14:15:58]line [14:15:58]line [14:15:58]line [14:15:58]written 0, free lines is 3316 [14:15:58]MH_Cut [14:15:58]Write to MH i2c: D1 01 00 71 43 01 86 [14:15:58]Write i2c OK [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: D1 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: D1 01 00 [14:15:58]MH_I2C_Read... [14:15:58]Read from MH i2c: D1 01 00 71 43 00 85 [14:15:58]Write to MH i2c: 01 00 00 72 43 B5 [14:15:58]Write i2c OK [14:15:58]MH_I2C_Read... [14:15:58]OFD Sender: No OFD packet to send [14:15:58]*** Cut start [14:15:58]*** Partial cut [14:15:58]*** CUTSNS_PIN = 1 [14:15:58]*** CUTSNS_PIN = 0 [14:15:58]*** Brake cut motor [14:15:59]Read from MH i2c: 01 [14:15:59]MH_I2C_Read... [14:15:59]*** Stop cut motor [14:15:59]*** Cut end [14:15:59]Read from MH i2c: 01 07 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: 01 07 00 72 43 00 00 00 00 00 FF 0F CA [14:15:59]process_action close_receipt done [14:15:59]requested_data is exist [14:15:59]produce_requested_data [14:15:59]requested_item fm.sn is exist - process it [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 11 00 00 [14:15:59]Write to MH i2c: E2 08 00 73 43 80 11 00 00 00 00 00 00 30 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 17 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 17 00 73 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [14:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:15:59]wFMCommunicate OK [14:15:59]requested_item fd.num is exist - process it [14:15:59]SAM_PROTO_GetFieldsCounters [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 13 00 00 [14:15:59]Write to MH i2c: E2 08 00 74 43 80 13 00 00 00 00 00 00 33 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 62 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 62 00 74 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 77 00 00 0E 04 04 00 73 00 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 5E [14:15:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A4 77 00 00 0E 04 04 00 73 00 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 [14:15:59]wFMCommunicate OK [14:15:59]SAM_PROTO_GetFieldsCounters done [14:15:59]requested_item shift.num is exist - process it [14:15:59]requested_item shift.opened is exist - process it [14:15:59]req_shift_opened [14:15:59]FM_GetShiftState [14:15:59]SAM_PROTO_GetShiftState [14:15:59]wFMCommunicate request_size=4 [14:15:59]MH_SAM_APDU [14:15:59]CAPDU: 80 13 01 00 [14:15:59]Write to MH i2c: E2 08 00 75 43 80 13 01 00 00 00 00 00 35 [14:15:59]Write i2c OK [14:15:59]MH_I2C_Read... [14:15:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:59]Read from MH i2c: E2 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 0E 00 [14:15:59]MH_I2C_Read... [14:15:59]Read from MH i2c: E2 0E 00 75 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B1 [14:15:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:15:59]wFMCommunicate OK [14:15:59]SAM_PROTO_GetShiftState done [14:15:59]FM_GetShiftState done [14:15:59]req_shift_opened done [14:15:59]requested_item shift.open_date is exist - process it [14:15:59]req_shift_open_date [14:15:59]req_shift_open_date done [14:15:59]produce_requested_data done [14:15:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30628,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:15:59]process_action_free close_receipt [14:15:59]json_value_free [14:15:59]json_value_free done [14:15:59]process_json_proto returns [14:15:59]Send response to host [14:15:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30628,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:15:59]free response buf [14:15:59]execute_script done [14:15:59]execute_script returns [14:15:59]free content buf [14:15:59]Sock 9.Close socket [14:15:59]Sock 9.Thread stoped [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:32]accept exits with 7 [14:21:32]New connection [14:21:32]New thread 3067489636 created [14:21:32]Thread 3067346276 joined [14:21:32]Waiting for new connection... [14:21:32] Sock 7.Parse request [14:21:32]Sock 7.Check first char [14:21:32]Sock 7.First char is OK [14:21:32]request: POST /json_proto HTTP/1.0 [14:21:32]Method: POST [14:21:32]URL: /json_proto [14:21:32]Method is POST - this is cgi request [14:21:32]url: /json_proto [14:21:32]query_string will be loaded in cgi processing [14:21:32]execute_cgi json_proto POST (null) [14:21:32]execute_cgi path=json_proto method=POST [14:21:32]POST find Content-Length [14:21:32]Host: 172.17.51.3:8080 [14:21:32]Content-Length: 843 [14:21:32]Content-Type: application/json [14:21:32] [14:21:32]POST finish read [14:21:32]Found Content-Length = 843 [14:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:32]execute_script... [14:21:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:32]POST & json_proto [14:21:32]process_json_proto [14:21:32]json parsed OK: [14:21:32]protocol is kg_v1.0 [14:21:32]action value=close_receipt [14:21:32]process_action close_receipt [14:21:32]cmd_close_receipt [14:21:32]MH_GetDate [14:21:32]Write to MH i2c: F0 00 00 76 43 A8 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: F0 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: F0 09 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: F0 09 00 76 43 00 72 63 16 67 04 C1 95 66 C3 [14:21:32]GetLastDocTimeStamp 1729520160 [14:21:32]current date 1729520498 [14:21:32]FM_GetShiftState [14:21:32]SAM_PROTO_GetShiftState [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 13 01 00 [14:21:32]Write to MH i2c: E2 08 00 77 43 80 13 01 00 00 00 00 00 37 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0E 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0E 00 77 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B3 [14:21:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:21:32]wFMCommunicate OK [14:21:32]SAM_PROTO_GetShiftState done [14:21:32]FM_GetShiftState done [14:21:32]opened in 1729471058 [14:21:32]opened+sec_in_day 1729557458 [14:21:32]quantity*price = 150056 [14:21:32]sum+1 = 150058 [14:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 126 21.10.2024 14:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30629 ФПД: 28975471426324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30629&fm=28975471426324&tin=02508201610067®Number=0000000000186857&sum=150057 [14:21:34]StoreToDocumentArchive [14:21:34]shift 115 fd 30629 [14:21:34]save to /storage/0115/doc_00030629 [14:21:34]save last doc name /storage/0115/doc_00030629 to /storage/kkm_last_doc_name [14:21:34]save OK [14:21:34]Clear old archive folders... [14:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:34]tlvbuf is 01DCBEB0 [14:21:34]SAM_PROTO_ClearQueue [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 09 00 00 [14:21:34]Write to MH i2c: E2 08 00 84 43 80 09 00 00 00 00 00 00 39 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 84 43 00 90 00 3B [14:21:34]RAPDU: 90 00 [14:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_ClearQueue done [14:21:34]KKMCreateOFDPacket [14:21:34]OFDProtocolAddRootSTLVToBuf [14:21:34]FM_MakeSignedData [14:21:34]FM_MakeSignedData [14:21:34]SAM_PROTO_SignData [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 0D 01 02 [14:21:34]Write to MH i2c: E2 08 00 85 43 80 0D 01 02 00 00 00 00 41 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 85 43 00 90 00 3C [14:21:34]RAPDU: 90 00 [14:21:34]wFMCommunicate OK [14:21:34]wFMCommunicate request_size=255 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 72 63 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 77 00 00 35 04 06 00 1A [14:21:34]Write to MH i2c: E2 02 01 86 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 72 63 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 77 00 00 35 04 06 00 1A 00 00 08 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 86 43 00 90 00 3D [14:21:34]RAPDU: 90 00 [14:21:34]wFMCommunicate OK [14:21:34]wFMCommunicate request_size=10 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 0D 02 02 05 5A 60 AE 7B 14 [14:21:34]Write to MH i2c: E2 0D 00 87 43 80 0D 02 02 05 00 5A 60 AE 7B 14 00 00 45 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 03 00 87 43 00 90 00 3E [14:21:34]RAPDU: 90 00 [14:21:34]wFMCommunicate OK [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 0D 03 02 [14:21:34]Write to MH i2c: E2 08 00 88 43 80 0D 03 02 00 00 00 00 46 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0B 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0B 00 88 43 00 BD 09 6F 71 A2 9F 49 AA 90 00 21 [14:21:34]RAPDU: BD 09 6F 71 A2 9F 49 AA 90 00 [14:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_SignData done [14:21:34]FM_MakeSignedData done [14:21:34]CreateOFDProtocolMessage [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 11 00 00 [14:21:34]Write to MH i2c: E2 08 00 89 43 80 11 00 00 00 00 00 00 46 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 89 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [14:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:21:34]wFMCommunicate OK [14:21:34]CreateOFDProtocolMessage done [14:21:34]OFDSenderStorePacket 30629 [14:21:34]StoreOFDPacket docnum=30629 [14:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 FE 07 01 EF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 72 63 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 77 00 00 35 04 06 00 1A 5A 60 AE 7B 14 BD 09 6F 71 A2 9F 49 AA [14:21:34]CheckFolder [14:21:34]dirname=/storage/ofd_packets [14:21:34]CheckFolder done [14:21:34]ProducePacketName [14:21:34]name=ofd_packets/00030629 [14:21:34]NVStorageSaveData ofd_packets/00030629 [14:21:34]File name is /storage/ofd_packets/00030629 [14:21:34]Write 301 bytes [14:21:34]NVStorageSaveData done [14:21:34]OFDSenderStorePacket done [14:21:34]KKMCreateOFDPacket done [14:21:34]NVStorageSaveData kkm_last_timestamp [14:21:34]File name is /storage/kkm_last_timestamp [14:21:34]Write 4 bytes [14:21:34]NVStorageSaveData done [14:21:34]ExternCall_PrintAddStr [14:21:34]wPrintStart [14:21:34]Write to MH i2c: 01 00 00 8A 43 CD [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: 01 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: 01 07 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: 01 07 00 8A 43 00 00 00 00 00 FF 0F E2 [14:21:34]RasterBufferAndPrint [14:21:34]line Счет N : (1)343038 [14:21:34]line ИНН: 02508201610067 [14:21:34]line Контрольно-Кассовый Чек [14:21:34]line ПРОДАЖА [14:21:34]line ТРК (МРК, ГНК) : 63 [14:21:34]line Товар: 2710124130 [14:21:34]line Аи-92-К-2 [14:21:34]line 22.430 * 66.90 [14:21:34]line = 1500.57 [14:21:34]line НДС 12% НСП 1% [14:21:34]line > о реализуемом товаре [14:21:34]line ИТОГО: 1500.57 [14:21:34]line НСП 1% : 13.28 [14:21:34]line НДС 12% : 159.35 [14:21:34]line Наличными: 0.00 [14:21:34]line Безнал.: 1500.57 [14:21:34]line Место: АЗС № 78 "Партнер Нефть" [14:21:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:21:34]line СНО: Общий режим [14:21:34]line Чек 126 21.10.2024 14:21 [14:21:34]line Смена: 115 ФФД: 1.0 [14:21:34]line ЗНМ: 0300000137 [14:21:34]line РНМ: 0000000000186857 [14:21:34]line Версия ККМ: v1.0 [14:21:34]line Платежная система: АКБ Кыргызстан [14:21:34]line ФМ: 0000000002094219 [14:21:34]line ФД: 30629 [14:21:34]line ФПД: 28975471426324 [14:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30629&fm=28975471426324&tin=02508201610067®Number=0000000000186857&sum=150057 [14:21:34]OFD Sender: Processing packet 30629 [packets to send 10, broken 9] [14:21:34]ProducePacketName [14:21:34]name=ofd_packets/00030629 [14:21:34]OFD Sender: To server: pG, [14:21:34]CommunicateWithHost lk.salyk.kg:30040 [14:21:34]ConnectInit lk.salyk.kg [14:21:34]written 0, free lines is 4095 [14:21:35]Connected sock=10 [14:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 FE 07 01 EF 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 72 63 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A5 77 00 00 35 04 06 00 1A 5A 60 AE 7B 14 BD 09 6F 71 A2 9F 49 AA [14:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 82 9A 47 00 CE 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 32 30 39 34 32 31 39 10 04 04 00 A5 77 00 00 F4 03 04 00 F2 0D 16 67 B6 04 01 00 00 EB 7D 99 BB 4B CF 90 22 [14:21:35]CommunicateWithHost err = 0 [14:21:35]CheckOFDResponse [14:21:35]1017 (14) - 77093643461234 [14:21:35]1041 (16) - 0000000002094219 [14:21:35]1040 (4) - 30629 [14:21:35]1012 (4) - 21.10.2024 08:16 [14:21:35]1206 (1) - 0 [14:21:35]OFD Sender: Remove packet 30629 [14:21:35]ProducePacketName [14:21:35]name=ofd_packets/00030629 [14:21:35]NVStorageDeleteData [14:21:35]Write to MH i2c: 01 00 00 B4 43 F7 [14:21:35]Write i2c OK [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: 01 [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: 01 07 00 [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: 01 07 00 B4 43 00 00 00 00 00 FF 0C 09 [14:21:35]RasterBufferAndPrint [14:21:35]line [14:21:35]line [14:21:35]line [14:21:35]line [14:21:35]line [14:21:35]written 0, free lines is 3333 [14:21:35]MH_Cut [14:21:35]Write to MH i2c: D1 01 00 BB 43 01 D0 [14:21:35]Write i2c OK [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: D1 [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: D1 01 00 [14:21:35]MH_I2C_Read... [14:21:35]Read from MH i2c: D1 01 00 BB 43 00 CF [14:21:35]Write to MH i2c: 01 00 00 BC 43 FF [14:21:35]Write i2c OK [14:21:35]MH_I2C_Read... [14:21:35]OFD Sender: No OFD packet to send [14:21:36]*** Cut start [14:21:36]*** Partial cut [14:21:36]*** CUTSNS_PIN = 1 [14:21:36]*** CUTSNS_PIN = 0 [14:21:36]*** Brake cut motor [14:21:36]Read from MH i2c: 01 [14:21:36]MH_I2C_Read... [14:21:36]*** Stop cut motor [14:21:36]*** Cut end [14:21:36]Read from MH i2c: 01 07 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: 01 07 00 BC 43 00 00 00 00 00 FF 0F 14 [14:21:36]process_action close_receipt done [14:21:36]requested_data is exist [14:21:36]produce_requested_data [14:21:36]requested_item fm.sn is exist - process it [14:21:36]wFMCommunicate request_size=4 [14:21:36]MH_SAM_APDU [14:21:36]CAPDU: 80 11 00 00 [14:21:36]Write to MH i2c: E2 08 00 BD 43 80 11 00 00 00 00 00 00 7A [14:21:36]Write i2c OK [14:21:36]MH_I2C_Read... [14:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:36]Read from MH i2c: E2 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 17 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 17 00 BD 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [14:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:21:36]wFMCommunicate OK [14:21:36]requested_item fd.num is exist - process it [14:21:36]SAM_PROTO_GetFieldsCounters [14:21:36]wFMCommunicate request_size=4 [14:21:36]MH_SAM_APDU [14:21:36]CAPDU: 80 13 00 00 [14:21:36]Write to MH i2c: E2 08 00 BE 43 80 13 00 00 00 00 00 00 7D [14:21:36]Write i2c OK [14:21:36]MH_I2C_Read... [14:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:36]Read from MH i2c: E2 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 62 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 62 00 BE 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [14:21:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:36]wFMCommunicate OK [14:21:36]SAM_PROTO_GetFieldsCounters done [14:21:36]requested_item shift.num is exist - process it [14:21:36]requested_item shift.opened is exist - process it [14:21:36]req_shift_opened [14:21:36]FM_GetShiftState [14:21:36]SAM_PROTO_GetShiftState [14:21:36]wFMCommunicate request_size=4 [14:21:36]MH_SAM_APDU [14:21:36]CAPDU: 80 13 01 00 [14:21:36]Write to MH i2c: E2 08 00 BF 43 80 13 01 00 00 00 00 00 7F [14:21:36]Write i2c OK [14:21:36]MH_I2C_Read... [14:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:36]Read from MH i2c: E2 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 0E 00 [14:21:36]MH_I2C_Read... [14:21:36]Read from MH i2c: E2 0E 00 BF 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FB [14:21:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:21:36]wFMCommunicate OK [14:21:36]SAM_PROTO_GetShiftState done [14:21:36]FM_GetShiftState done [14:21:36]req_shift_opened done [14:21:36]requested_item shift.open_date is exist - process it [14:21:36]req_shift_open_date [14:21:36]req_shift_open_date done [14:21:36]produce_requested_data done [14:21:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30629,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:21:36]process_action_free close_receipt [14:21:36]json_value_free [14:21:36]json_value_free done [14:21:36]process_json_proto returns [14:21:36]Send response to host [14:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30629,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:21:36]free response buf [14:21:36]execute_script done [14:21:36]execute_script returns [14:21:36]free content buf [14:21:36]Sock 7.Close socket [14:21:36]Sock 7.Thread stoped [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:13]accept exits with 9 [14:27:13]New connection [14:27:13]New thread 3067346276 created [14:27:13]Thread 3067489636 joined [14:27:13]Waiting for new connection... [14:27:13] Sock 9.Parse request [14:27:13]Sock 9.Check first char [14:27:13]Sock 9.First char is OK [14:27:13]request: POST /json_proto HTTP/1.0 [14:27:13]Method: POST [14:27:13]URL: /json_proto [14:27:13]Method is POST - this is cgi request [14:27:13]url: /json_proto [14:27:13]query_string will be loaded in cgi processing [14:27:13]execute_cgi json_proto POST (null) [14:27:13]execute_cgi path=json_proto method=POST [14:27:13]POST find Content-Length [14:27:13]Host: 172.17.51.3:8080 [14:27:13]Content-Length: 677 [14:27:13]Content-Type: application/json [14:27:13] [14:27:13]POST finish read [14:27:13]Found Content-Length = 677 [14:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:13]execute_script... [14:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:13]POST & json_proto [14:27:13]process_json_proto [14:27:13]json parsed OK: [14:27:13]protocol is kg_v1.0 [14:27:13]action value=close_receipt [14:27:13]process_action close_receipt [14:27:13]cmd_close_receipt [14:27:13]MH_GetDate [14:27:13]Write to MH i2c: F0 00 00 C0 43 F2 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: F0 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: F0 09 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: F0 09 00 C0 43 00 C7 64 16 67 04 C1 95 66 63 [14:27:13]GetLastDocTimeStamp 1729520498 [14:27:13]current date 1729520839 [14:27:13]FM_GetShiftState [14:27:13]SAM_PROTO_GetShiftState [14:27:13]wFMCommunicate request_size=4 [14:27:13]MH_SAM_APDU [14:27:13]CAPDU: 80 13 01 00 [14:27:13]Write to MH i2c: E2 08 00 C1 43 80 13 01 00 00 00 00 00 81 [14:27:13]Write i2c OK [14:27:13]MH_I2C_Read... [14:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:13]Read from MH i2c: E2 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 0E 00 [14:27:13]MH_I2C_Read... [14:27:13]Read from MH i2c: E2 0E 00 C1 43 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FD [14:27:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:27:13]wFMCommunicate OK [14:27:13]SAM_PROTO_GetShiftState done [14:27:13]FM_GetShiftState done [14:27:13]opened in 1729471058 [14:27:13]opened+sec_in_day 1729557458 [14:27:13]quantity*price = 50041 [14:27:13]sum+1 = 50042 [14:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 127 21.10.2024 14:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30630 ФПД: 203086192298546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30630&fm=203086192298546&tin=02508201610067®Number=0000000000186857&sum=50000 [14:27:15]StoreToDocumentArchive [14:27:15]shift 115 fd 30630 [14:27:15]save to /storage/0115/doc_00030630 [14:27:15]save last doc name /storage/0115/doc_00030630 to /storage/kkm_last_doc_name [14:27:15]save OK [14:27:15]Clear old archive folders... [14:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:15]tlvbuf is 01DE3480 [14:27:15]SAM_PROTO_ClearQueue [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 09 00 00 [14:27:15]Write to MH i2c: E2 08 00 CE 43 80 09 00 00 00 00 00 00 83 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 CE 43 00 90 00 85 [14:27:15]RAPDU: 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_ClearQueue done [14:27:15]KKMCreateOFDPacket [14:27:15]OFDProtocolAddRootSTLVToBuf [14:27:15]FM_MakeSignedData [14:27:15]FM_MakeSignedData [14:27:15]SAM_PROTO_SignData [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 0D 01 02 [14:27:15]Write to MH i2c: E2 08 00 CF 43 80 0D 01 02 00 00 00 00 8B [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 CF 43 00 90 00 86 [14:27:15]RAPDU: 90 00 [14:27:15]wFMCommunicate OK [14:27:15]wFMCommunicate request_size=255 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C7 64 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 77 00 00 35 04 06 00 B8 [14:27:15]Write to MH i2c: E2 02 01 D0 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C7 64 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 77 00 00 35 04 06 00 B8 00 00 8B [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:15]Read from MH i2c: E2 03 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 D0 43 00 90 00 87 [14:27:15]RAPDU: 90 00 [14:27:15]wFMCommunicate OK [14:27:15]wFMCommunicate request_size=10 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 0D 02 02 05 B4 B0 59 CA 32 [14:27:15]Write to MH i2c: E2 0D 00 D1 43 80 0D 02 02 05 00 B4 B0 59 CA 32 00 00 51 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 03 00 D1 43 00 90 00 88 [14:27:15]RAPDU: 90 00 [14:27:15]wFMCommunicate OK [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 0D 03 02 [14:27:15]Write to MH i2c: E2 08 00 D2 43 80 0D 03 02 00 00 00 00 90 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0B 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 0B 00 D2 43 00 47 CA C0 75 DC 6F D4 8A 90 00 80 [14:27:15]RAPDU: 47 CA C0 75 DC 6F D4 8A 90 00 [14:27:15]wFMCommunicate OK [14:27:15]SAM_PROTO_SignData done [14:27:15]FM_MakeSignedData done [14:27:15]CreateOFDProtocolMessage [14:27:15]wFMCommunicate request_size=4 [14:27:15]MH_SAM_APDU [14:27:15]CAPDU: 80 11 00 00 [14:27:15]Write to MH i2c: E2 08 00 D3 43 80 11 00 00 00 00 00 00 90 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:15]Read from MH i2c: E2 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: E2 17 00 D3 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [14:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:27:15]wFMCommunicate OK [14:27:15]CreateOFDProtocolMessage done [14:27:15]OFDSenderStorePacket 30630 [14:27:15]StoreOFDPacket docnum=30630 [14:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 46 45 07 01 CF 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C7 64 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 77 00 00 35 04 06 00 B8 B4 B0 59 CA 32 47 CA C0 75 DC 6F D4 8A [14:27:15]CheckFolder [14:27:15]dirname=/storage/ofd_packets [14:27:15]CheckFolder done [14:27:15]ProducePacketName [14:27:15]name=ofd_packets/00030630 [14:27:15]NVStorageSaveData ofd_packets/00030630 [14:27:15]File name is /storage/ofd_packets/00030630 [14:27:15]Write 301 bytes [14:27:15]NVStorageSaveData done [14:27:15]OFDSenderStorePacket done [14:27:15]KKMCreateOFDPacket done [14:27:15]NVStorageSaveData kkm_last_timestamp [14:27:15]File name is /storage/kkm_last_timestamp [14:27:15]Write 4 bytes [14:27:15]NVStorageSaveData done [14:27:15]ExternCall_PrintAddStr [14:27:15]wPrintStart [14:27:15]Write to MH i2c: 01 00 00 D4 43 17 [14:27:15]Write i2c OK [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 [14:27:15]MH_I2C_Read... [14:27:15]Read from MH i2c: 01 07 00 D4 43 00 00 00 00 00 FF 0F 2C [14:27:15]RasterBufferAndPrint [14:27:15]line Счет N : (1)343039 [14:27:15]line ИНН: 02508201610067 [14:27:15]line Контрольно-Кассовый Чек [14:27:15]line ПРОДАЖА [14:27:15]line ТРК (МРК, ГНК) : 33 [14:27:15]line Товар: 2710124130 [14:27:15]line Аи-92-К-2 [14:27:15]line 7.480 * 66.90 [14:27:15]line = 500.41 [14:27:15]line НДС 12% НСП 1% [14:27:15]line > о реализуемом товаре [14:27:15]line ОКРУГЛЕНИЕ: -0.41 [14:27:15]line ИТОГО: 500.00 [14:27:15]line Внесено: 500.00 [14:27:15]line СДАЧА: 0.00 [14:27:15]line НСП 1% : 4.43 [14:27:15]line НДС 12% : 53.14 [14:27:15]line Наличными: 500.00 [14:27:15]line Безнал.: 0.00 [14:27:15]line Место: АЗС № 78 "Партнер Нефть" [14:27:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:27:15]line СНО: Общий режим [14:27:15]line Чек 127 21.10.2024 14:27 [14:27:15]line Смена: 115 ФФД: 1.0 [14:27:15]line ЗНМ: 0300000137 [14:27:15]line РНМ: 0000000000186857 [14:27:15]line Версия ККМ: v1.0 [14:27:15]line ФМ: 0000000002094219 [14:27:15]line ФД: 30630 [14:27:15]line ФПД: 203086192298546 [14:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30630&fm=203086192298546&tin=02508201610067®Number=0000000000186857&sum=50000 [14:27:15]OFD Sender: Processing packet 30630 [packets to send 10, broken 9] [14:27:15]ProducePacketName [14:27:15]name=ofd_packets/00030630 [14:27:15]OFD Sender: To server: pG, [14:27:15]CommunicateWithHost lk.salyk.kg:30040 [14:27:15]ConnectInit lk.salyk.kg [14:27:15]written 0, free lines is 4095 [14:27:16]Connected sock=10 [14:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 46 45 07 01 CF 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 C7 64 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A6 77 00 00 35 04 06 00 B8 B4 B0 59 CA 32 47 CA C0 75 DC 6F D4 8A [14:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 18 47 00 DA 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 32 30 39 34 32 31 39 10 04 04 00 A6 77 00 00 F4 03 04 00 47 0F 16 67 B6 04 01 00 00 5B 69 F1 A0 86 9B F3 E4 [14:27:16]CommunicateWithHost err = 0 [14:27:16]CheckOFDResponse [14:27:16]1017 (14) - 77093643461234 [14:27:16]1041 (16) - 0000000002094219 [14:27:16]1040 (4) - 30630 [14:27:16]1012 (4) - 21.10.2024 08:22 [14:27:16]1206 (1) - 0 [14:27:16]OFD Sender: Remove packet 30630 [14:27:16]ProducePacketName [14:27:16]name=ofd_packets/00030630 [14:27:16]NVStorageDeleteData [14:27:16]Write to MH i2c: 01 00 00 FF 43 42 [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 07 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: 01 07 00 FF 43 00 00 00 00 00 FD 0C 52 [14:27:16]RasterBufferAndPrint [14:27:16]line [14:27:16]line [14:27:16]line [14:27:16]line [14:27:16]line [14:27:16]written 0, free lines is 3331 [14:27:16]MH_Cut [14:27:16]Write to MH i2c: D1 01 00 06 44 01 1C [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: D1 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: D1 01 00 [14:27:16]MH_I2C_Read... [14:27:16]Read from MH i2c: D1 01 00 06 44 00 1B [14:27:16]Write to MH i2c: 01 00 00 07 44 4B [14:27:16]Write i2c OK [14:27:16]MH_I2C_Read... [14:27:16]OFD Sender: No OFD packet to send [14:27:17]*** Cut start [14:27:17]*** Partial cut [14:27:17]*** CUTSNS_PIN = 1 [14:27:17]*** CUTSNS_PIN = 0 [14:27:17]*** Brake cut motor [14:27:17]Read from MH i2c: 01 [14:27:17]MH_I2C_Read... [14:27:17]*** Stop cut motor [14:27:17]*** Cut end [14:27:17]Read from MH i2c: 01 07 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: 01 07 00 07 44 00 00 00 00 00 FF 0F 60 [14:27:17]process_action close_receipt done [14:27:17]requested_data is exist [14:27:17]produce_requested_data [14:27:17]requested_item fm.sn is exist - process it [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 11 00 00 [14:27:17]Write to MH i2c: E2 08 00 08 44 80 11 00 00 00 00 00 00 C6 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 17 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 17 00 08 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [14:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:27:17]wFMCommunicate OK [14:27:17]requested_item fd.num is exist - process it [14:27:17]SAM_PROTO_GetFieldsCounters [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 13 00 00 [14:27:17]Write to MH i2c: E2 08 00 09 44 80 13 00 00 00 00 00 00 C9 [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 62 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 62 00 09 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 77 00 00 0E 04 04 00 73 00 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 FC [14:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:17]wFMCommunicate OK [14:27:17]SAM_PROTO_GetFieldsCounters done [14:27:17]requested_item shift.num is exist - process it [14:27:17]requested_item shift.opened is exist - process it [14:27:17]req_shift_opened [14:27:17]FM_GetShiftState [14:27:17]SAM_PROTO_GetShiftState [14:27:17]wFMCommunicate request_size=4 [14:27:17]MH_SAM_APDU [14:27:17]CAPDU: 80 13 01 00 [14:27:17]Write to MH i2c: E2 08 00 0A 44 80 13 01 00 00 00 00 00 CB [14:27:17]Write i2c OK [14:27:17]MH_I2C_Read... [14:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:17]Read from MH i2c: E2 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 0E 00 [14:27:17]MH_I2C_Read... [14:27:17]Read from MH i2c: E2 0E 00 0A 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 47 [14:27:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:27:17]wFMCommunicate OK [14:27:17]SAM_PROTO_GetShiftState done [14:27:17]FM_GetShiftState done [14:27:17]req_shift_opened done [14:27:17]requested_item shift.open_date is exist - process it [14:27:17]req_shift_open_date [14:27:17]req_shift_open_date done [14:27:17]produce_requested_data done [14:27:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30630,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:27:17]process_action_free close_receipt [14:27:17]json_value_free [14:27:17]json_value_free done [14:27:17]process_json_proto returns [14:27:17]Send response to host [14:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30630,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:27:17]free response buf [14:27:17]execute_script done [14:27:17]execute_script returns [14:27:17]free content buf [14:27:17]Sock 9.Close socket [14:27:17]Sock 9.Thread stoped [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:07]accept exits with 7 [14:29:07]New connection [14:29:07]New thread 3067489636 created [14:29:07]Thread 3067346276 joined [14:29:07]Waiting for new connection... [14:29:07] Sock 7.Parse request [14:29:07]Sock 7.Check first char [14:29:07]Sock 7.First char is OK [14:29:07]request: POST /json_proto HTTP/1.0 [14:29:07]Method: POST [14:29:07]URL: /json_proto [14:29:07]Method is POST - this is cgi request [14:29:07]url: /json_proto [14:29:07]query_string will be loaded in cgi processing [14:29:07]execute_cgi json_proto POST (null) [14:29:07]execute_cgi path=json_proto method=POST [14:29:07]POST find Content-Length [14:29:07]Host: 172.17.51.3:8080 [14:29:07]Content-Length: 679 [14:29:07]Content-Type: application/json [14:29:07] [14:29:07]POST finish read [14:29:07]Found Content-Length = 679 [14:29:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:07]execute_script... [14:29:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343040", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:07]POST & json_proto [14:29:07]process_json_proto [14:29:07]json parsed OK: [14:29:07]protocol is kg_v1.0 [14:29:07]action value=close_receipt [14:29:07]process_action close_receipt [14:29:07]cmd_close_receipt [14:29:07]MH_GetDate [14:29:07]Write to MH i2c: F0 00 00 0B 44 3E [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: F0 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: F0 09 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: F0 09 00 0B 44 00 38 65 16 67 04 C1 95 66 21 [14:29:07]GetLastDocTimeStamp 1729520839 [14:29:07]current date 1729520952 [14:29:07]FM_GetShiftState [14:29:07]SAM_PROTO_GetShiftState [14:29:07]wFMCommunicate request_size=4 [14:29:07]MH_SAM_APDU [14:29:07]CAPDU: 80 13 01 00 [14:29:07]Write to MH i2c: E2 08 00 0C 44 80 13 01 00 00 00 00 00 CD [14:29:07]Write i2c OK [14:29:07]MH_I2C_Read... [14:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:07]Read from MH i2c: E2 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 0E 00 [14:29:07]MH_I2C_Read... [14:29:07]Read from MH i2c: E2 0E 00 0C 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 49 [14:29:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:29:07]wFMCommunicate OK [14:29:07]SAM_PROTO_GetShiftState done [14:29:07]FM_GetShiftState done [14:29:07]opened in 1729471058 [14:29:07]opened+sec_in_day 1729557458 [14:29:07]quantity*price = 100050 [14:29:07]sum+1 = 100052 [14:29:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 128 21.10.2024 14:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30631 ФПД: 35802383029953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30631&fm=35802383029953&tin=02508201610067®Number=0000000000186857&sum=100000 [14:29:08]StoreToDocumentArchive [14:29:08]shift 115 fd 30631 [14:29:08]save to /storage/0115/doc_00030631 [14:29:08]save last doc name /storage/0115/doc_00030631 to /storage/kkm_last_doc_name [14:29:08]save OK [14:29:08]Clear old archive folders... [14:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:29:08]tlvbuf is 01DAF9E0 [14:29:08]SAM_PROTO_ClearQueue [14:29:08]wFMCommunicate request_size=4 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 09 00 00 [14:29:08]Write to MH i2c: E2 08 00 19 44 80 09 00 00 00 00 00 00 CF [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:08]Read from MH i2c: E2 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 03 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 03 00 19 44 00 90 00 D1 [14:29:08]RAPDU: 90 00 [14:29:08]wFMCommunicate OK [14:29:08]SAM_PROTO_ClearQueue done [14:29:08]KKMCreateOFDPacket [14:29:08]OFDProtocolAddRootSTLVToBuf [14:29:08]FM_MakeSignedData [14:29:08]FM_MakeSignedData [14:29:08]SAM_PROTO_SignData [14:29:08]wFMCommunicate request_size=4 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 0D 01 02 [14:29:08]Write to MH i2c: E2 08 00 1A 44 80 0D 01 02 00 00 00 00 D7 [14:29:08]Write i2c OK [14:29:08]MH_I2C_Read... [14:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:08]Read from MH i2c: E2 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 03 00 [14:29:08]MH_I2C_Read... [14:29:08]Read from MH i2c: E2 03 00 1A 44 00 90 00 D2 [14:29:08]RAPDU: 90 00 [14:29:08]wFMCommunicate OK [14:29:08]wFMCommunicate request_size=255 [14:29:08]MH_SAM_APDU [14:29:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 77 00 00 35 04 06 00 20 8F E4 52 [14:29:08]Write to MH i2c: E2 02 01 1B 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 77 00 00 35 04 06 00 20 8F E4 52 00 00 6F [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:09]Read from MH i2c: E2 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 03 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 03 00 1B 44 00 90 00 D3 [14:29:09]RAPDU: 90 00 [14:29:09]wFMCommunicate OK [14:29:09]wFMCommunicate request_size=7 [14:29:09]MH_SAM_APDU [14:29:09]CAPDU: 80 0D 02 02 02 96 C1 [14:29:09]Write to MH i2c: E2 0A 00 1C 44 80 0D 02 02 02 00 96 C1 00 00 35 [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:09]Read from MH i2c: E2 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 03 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 03 00 1C 44 00 90 00 D4 [14:29:09]RAPDU: 90 00 [14:29:09]wFMCommunicate OK [14:29:09]wFMCommunicate request_size=4 [14:29:09]MH_SAM_APDU [14:29:09]CAPDU: 80 0D 03 02 [14:29:09]Write to MH i2c: E2 08 00 1D 44 80 0D 03 02 00 00 00 00 DC [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:09]Read from MH i2c: E2 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 0B 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 0B 00 1D 44 00 2E 47 1B F2 DD D3 12 7D 90 00 9E [14:29:09]RAPDU: 2E 47 1B F2 DD D3 12 7D 90 00 [14:29:09]wFMCommunicate OK [14:29:09]SAM_PROTO_SignData done [14:29:09]FM_MakeSignedData done [14:29:09]CreateOFDProtocolMessage [14:29:09]wFMCommunicate request_size=4 [14:29:09]MH_SAM_APDU [14:29:09]CAPDU: 80 11 00 00 [14:29:09]Write to MH i2c: E2 08 00 1E 44 80 11 00 00 00 00 00 00 DC [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:09]Read from MH i2c: E2 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 17 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: E2 17 00 1E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [14:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:29:09]wFMCommunicate OK [14:29:09]CreateOFDProtocolMessage done [14:29:09]OFDSenderStorePacket 30631 [14:29:09]StoreOFDPacket docnum=30631 [14:29:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 16 70 04 01 B5 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 77 00 00 35 04 06 00 20 8F E4 52 96 C1 2E 47 1B F2 DD D3 12 7D [14:29:09]CheckFolder [14:29:09]dirname=/storage/ofd_packets [14:29:09]CheckFolder done [14:29:09]ProducePacketName [14:29:09]name=ofd_packets/00030631 [14:29:09]NVStorageSaveData ofd_packets/00030631 [14:29:09]File name is /storage/ofd_packets/00030631 [14:29:09]Write 298 bytes [14:29:09]NVStorageSaveData done [14:29:09]OFDSenderStorePacket done [14:29:09]KKMCreateOFDPacket done [14:29:09]NVStorageSaveData kkm_last_timestamp [14:29:09]File name is /storage/kkm_last_timestamp [14:29:09]Write 4 bytes [14:29:09]NVStorageSaveData done [14:29:09]ExternCall_PrintAddStr [14:29:09]wPrintStart [14:29:09]Write to MH i2c: 01 00 00 1F 44 63 [14:29:09]Write i2c OK [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: 01 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: 01 07 00 [14:29:09]MH_I2C_Read... [14:29:09]Read from MH i2c: 01 07 00 1F 44 00 00 00 00 00 FF 0F 78 [14:29:09]RasterBufferAndPrint [14:29:09]line Счет N : (1)343040 [14:29:09]line ИНН: 02508201610067 [14:29:09]line Контрольно-Кассовый Чек [14:29:09]line ПРОДАЖА [14:29:09]line ТРК (МРК, ГНК) : 34 [14:29:09]line Товар: 2710194210 [14:29:09]line ДТ-К-2 [14:29:09]line 13.130 * 76.20 [14:29:09]line = 1000.51 [14:29:09]line НДС 12% НСП 1% [14:29:09]line > о реализуемом товаре [14:29:09]line ОКРУГЛЕНИЕ: -0.51 [14:29:09]line ИТОГО: 1000.00 [14:29:09]line Внесено: 1000.00 [14:29:09]line СДАЧА: 0.00 [14:29:09]line НСП 1% : 8.85 [14:29:09]line НДС 12% : 106.25 [14:29:09]line Наличными: 1000.00 [14:29:09]line Безнал.: 0.00 [14:29:09]line Место: АЗС № 78 "Партнер Нефть" [14:29:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:29:09]line СНО: Общий режим [14:29:09]line Чек 128 21.10.2024 14:29 [14:29:09]line Смена: 115 ФФД: 1.0 [14:29:09]line ЗНМ: 0300000137 [14:29:09]line РНМ: 0000000000186857 [14:29:09]line Версия ККМ: v1.0 [14:29:09]line ФМ: 0000000002094219 [14:29:09]line ФД: 30631 [14:29:09]line ФПД: 35802383029953 [14:29:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30631&fm=35802383029953&tin=02508201610067®Number=0000000000186857&sum=100000 [14:29:09]OFD Sender: Processing packet 30631 [packets to send 10, broken 9] [14:29:09]ProducePacketName [14:29:09]name=ofd_packets/00030631 [14:29:09]OFD Sender: To server: pG, [14:29:09]CommunicateWithHost lk.salyk.kg:30040 [14:29:09]ConnectInit lk.salyk.kg [14:29:09]written 0, free lines is 4095 [14:29:09]Connected sock=10 [14:29:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 16 70 04 01 B5 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 39 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A7 77 00 00 35 04 06 00 20 8F E4 52 96 C1 2E 47 1B F2 DD D3 12 7D [14:29:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7B CC 47 00 CA 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 32 30 39 34 32 31 39 10 04 04 00 A7 77 00 00 F4 03 04 00 B9 0F 16 67 B6 04 01 00 00 88 53 F9 22 57 C0 95 7C [14:29:10]CommunicateWithHost err = 0 [14:29:10]CheckOFDResponse [14:29:10]1017 (14) - 77093643461234 [14:29:10]1041 (16) - 0000000002094219 [14:29:10]1040 (4) - 30631 [14:29:10]1012 (4) - 21.10.2024 08:24 [14:29:10]1206 (1) - 0 [14:29:10]OFD Sender: Remove packet 30631 [14:29:10]ProducePacketName [14:29:10]name=ofd_packets/00030631 [14:29:10]NVStorageDeleteData [14:29:10]Write to MH i2c: 01 00 00 4A 44 8E [14:29:10]Write i2c OK [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: 01 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: 01 07 00 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: 01 07 00 4A 44 00 00 00 00 00 E6 0C 87 [14:29:10]RasterBufferAndPrint [14:29:10]line [14:29:10]line [14:29:10]line [14:29:10]line [14:29:10]line [14:29:10]written 0, free lines is 3308 [14:29:10]MH_Cut [14:29:10]Write to MH i2c: D1 01 00 51 44 01 67 [14:29:10]Write i2c OK [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: D1 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: D1 01 00 [14:29:10]MH_I2C_Read... [14:29:10]Read from MH i2c: D1 01 00 51 44 00 66 [14:29:10]Write to MH i2c: 01 00 00 52 44 96 [14:29:10]Write i2c OK [14:29:10]MH_I2C_Read... [14:29:10]OFD Sender: No OFD packet to send [14:29:10]*** Cut start [14:29:10]*** Partial cut [14:29:10]*** CUTSNS_PIN = 1 [14:29:10]*** CUTSNS_PIN = 0 [14:29:11]*** Brake cut motor [14:29:11]Read from MH i2c: 01 [14:29:11]MH_I2C_Read... [14:29:11]*** Stop cut motor [14:29:11]*** Cut end [14:29:11]Read from MH i2c: 01 07 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: 01 07 00 52 44 00 00 00 00 00 FF 0F AB [14:29:11]process_action close_receipt done [14:29:11]requested_data is exist [14:29:11]produce_requested_data [14:29:11]requested_item fm.sn is exist - process it [14:29:11]wFMCommunicate request_size=4 [14:29:11]MH_SAM_APDU [14:29:11]CAPDU: 80 11 00 00 [14:29:11]Write to MH i2c: E2 08 00 53 44 80 11 00 00 00 00 00 00 11 [14:29:11]Write i2c OK [14:29:11]MH_I2C_Read... [14:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:11]Read from MH i2c: E2 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 17 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 17 00 53 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [14:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:29:11]wFMCommunicate OK [14:29:11]requested_item fd.num is exist - process it [14:29:11]SAM_PROTO_GetFieldsCounters [14:29:11]wFMCommunicate request_size=4 [14:29:11]MH_SAM_APDU [14:29:11]CAPDU: 80 13 00 00 [14:29:11]Write to MH i2c: E2 08 00 54 44 80 13 00 00 00 00 00 00 14 [14:29:11]Write i2c OK [14:29:11]MH_I2C_Read... [14:29:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:11]Read from MH i2c: E2 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 62 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 62 00 54 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 77 00 00 0E 04 04 00 73 00 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 4B [14:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:11]wFMCommunicate OK [14:29:11]SAM_PROTO_GetFieldsCounters done [14:29:11]requested_item shift.num is exist - process it [14:29:11]requested_item shift.opened is exist - process it [14:29:11]req_shift_opened [14:29:11]FM_GetShiftState [14:29:11]SAM_PROTO_GetShiftState [14:29:11]wFMCommunicate request_size=4 [14:29:11]MH_SAM_APDU [14:29:11]CAPDU: 80 13 01 00 [14:29:11]Write to MH i2c: E2 08 00 55 44 80 13 01 00 00 00 00 00 16 [14:29:11]Write i2c OK [14:29:11]MH_I2C_Read... [14:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:11]Read from MH i2c: E2 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 0E 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 0E 00 55 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 92 [14:29:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:29:11]wFMCommunicate OK [14:29:11]SAM_PROTO_GetShiftState done [14:29:11]FM_GetShiftState done [14:29:11]req_shift_opened done [14:29:11]requested_item shift.open_date is exist - process it [14:29:11]req_shift_open_date [14:29:11]req_shift_open_date done [14:29:11]produce_requested_data done [14:29:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30631,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:29:11]process_action_free close_receipt [14:29:11]json_value_free [14:29:11]json_value_free done [14:29:11]process_json_proto returns [14:29:11]Send response to host [14:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30631,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:29:11]free response buf [14:29:11]execute_script done [14:29:11]execute_script returns [14:29:11]free content buf [14:29:11]Sock 7.Close socket [14:29:11]Sock 7.Thread stoped [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:54]accept exits with 9 [14:30:54]New connection [14:30:54]New thread 3067346276 created [14:30:54]Thread 3067489636 joined [14:30:54]Waiting for new connection... [14:30:54] Sock 9.Parse request [14:30:54]Sock 9.Check first char [14:30:54]Sock 9.First char is OK [14:30:54]request: POST /json_proto HTTP/1.0 [14:30:54]Method: POST [14:30:54]URL: /json_proto [14:30:54]Method is POST - this is cgi request [14:30:54]url: /json_proto [14:30:54]query_string will be loaded in cgi processing [14:30:54]execute_cgi json_proto POST (null) [14:30:54]execute_cgi path=json_proto method=POST [14:30:54]POST find Content-Length [14:30:54]Host: 172.17.51.3:8080 [14:30:54]Content-Length: 800 [14:30:54]Content-Type: application/json [14:30:54] [14:30:54]POST finish read [14:30:54]Found Content-Length = 800 [14:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1663890", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:54]execute_script... [14:30:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1663890", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:54]POST & json_proto [14:30:54]process_json_proto [14:30:54]json parsed OK: [14:30:54]protocol is kg_v1.0 [14:30:54]action value=close_receipt [14:30:54]process_action close_receipt [14:30:54]cmd_close_receipt [14:30:54]MH_GetDate [14:30:54]Write to MH i2c: F0 00 00 56 44 89 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 09 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: F0 09 00 56 44 00 A4 65 16 67 04 C1 95 66 D8 [14:30:54]GetLastDocTimeStamp 1729520953 [14:30:54]current date 1729521060 [14:30:54]FM_GetShiftState [14:30:54]SAM_PROTO_GetShiftState [14:30:54]wFMCommunicate request_size=4 [14:30:54]MH_SAM_APDU [14:30:54]CAPDU: 80 13 01 00 [14:30:54]Write to MH i2c: E2 08 00 57 44 80 13 01 00 00 00 00 00 18 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:54]Read from MH i2c: E2 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: E2 0E 00 57 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 94 [14:30:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:30:54]wFMCommunicate OK [14:30:54]SAM_PROTO_GetShiftState done [14:30:54]FM_GetShiftState done [14:30:54]opened in 1729471058 [14:30:54]opened+sec_in_day 1729557458 [14:30:54]quantity*price = 0 [14:30:54]sum+1 = 1 [14:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 129 21.10.2024 14:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 1663890 ФМ: 0000000002094219 ФД: 30632 ФПД: 99239201659141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30632&fm=99239201659141&tin=02508201610067®Number=0000000000186857&sum=0 [14:30:55]StoreToDocumentArchive [14:30:55]shift 115 fd 30632 [14:30:55]save to /storage/0115/doc_00030632 [14:30:55]save last doc name /storage/0115/doc_00030632 to /storage/kkm_last_doc_name [14:30:55]save OK [14:30:55]Clear old archive folders... [14:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:55]tlvbuf is 01ED8580 [14:30:55]SAM_PROTO_ClearQueue [14:30:55]wFMCommunicate request_size=4 [14:30:55]MH_SAM_APDU [14:30:55]CAPDU: 80 09 00 00 [14:30:55]Write to MH i2c: E2 08 00 64 44 80 09 00 00 00 00 00 00 1A [14:30:55]Write i2c OK [14:30:55]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 64 44 00 90 00 1C [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_ClearQueue done [14:30:56]KKMCreateOFDPacket [14:30:56]OFDProtocolAddRootSTLVToBuf [14:30:56]FM_MakeSignedData [14:30:56]FM_MakeSignedData [14:30:56]SAM_PROTO_SignData [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 01 02 [14:30:56]Write to MH i2c: E2 08 00 65 44 80 0D 01 02 00 00 00 00 22 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 65 44 00 90 00 1D [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=255 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 77 00 00 35 04 06 00 5A [14:30:56]Write to MH i2c: E2 02 01 66 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 77 00 00 35 04 06 00 5A 00 00 02 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 66 44 00 90 00 1E [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=10 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 02 02 05 41 ED 5C D9 05 [14:30:56]Write to MH i2c: E2 0D 00 67 44 80 0D 02 02 05 00 41 ED 5C D9 05 00 00 97 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 03 00 67 44 00 90 00 1F [14:30:56]RAPDU: 90 00 [14:30:56]wFMCommunicate OK [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 0D 03 02 [14:30:56]Write to MH i2c: E2 08 00 68 44 80 0D 03 02 00 00 00 00 27 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 0B 00 68 44 00 8B E6 D9 2E 4C 35 52 EE 90 00 61 [14:30:56]RAPDU: 8B E6 D9 2E 4C 35 52 EE 90 00 [14:30:56]wFMCommunicate OK [14:30:56]SAM_PROTO_SignData done [14:30:56]FM_MakeSignedData done [14:30:56]CreateOFDProtocolMessage [14:30:56]wFMCommunicate request_size=4 [14:30:56]MH_SAM_APDU [14:30:56]CAPDU: 80 11 00 00 [14:30:56]Write to MH i2c: E2 08 00 69 44 80 11 00 00 00 00 00 00 27 [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:56]Read from MH i2c: E2 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: E2 17 00 69 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [14:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:30:56]wFMCommunicate OK [14:30:56]CreateOFDProtocolMessage done [14:30:56]OFDSenderStorePacket 30632 [14:30:56]StoreOFDPacket docnum=30632 [14:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 4C 07 01 96 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 77 00 00 35 04 06 00 5A 41 ED 5C D9 05 8B E6 D9 2E 4C 35 52 EE [14:30:56]CheckFolder [14:30:56]dirname=/storage/ofd_packets [14:30:56]CheckFolder done [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00030632 [14:30:56]NVStorageSaveData ofd_packets/00030632 [14:30:56]File name is /storage/ofd_packets/00030632 [14:30:56]Write 301 bytes [14:30:56]NVStorageSaveData done [14:30:56]OFDSenderStorePacket done [14:30:56]KKMCreateOFDPacket done [14:30:56]NVStorageSaveData kkm_last_timestamp [14:30:56]File name is /storage/kkm_last_timestamp [14:30:56]Write 4 bytes [14:30:56]NVStorageSaveData done [14:30:56]ExternCall_PrintAddStr [14:30:56]wPrintStart [14:30:56]Write to MH i2c: 01 00 00 6A 44 AE [14:30:56]Write i2c OK [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 [14:30:56]MH_I2C_Read... [14:30:56]Read from MH i2c: 01 07 00 6A 44 00 00 00 00 00 FF 0F C3 [14:30:56]RasterBufferAndPrint [14:30:56]line Счет N : (1)343041 [14:30:56]line ИНН: 02508201610067 [14:30:56]line Контрольно-Кассовый Чек [14:30:56]line ПРОДАЖА [14:30:56]line ТРК (МРК, ГНК) : 42 [14:30:56]line Товар: 2710124500 [14:30:56]line Аи-95-К-3 [14:30:56]line 40.000 * 0.00 [14:30:56]line = 0.00 [14:30:56]line НДС 12% НСП 1% [14:30:56]line > о реализуемом товаре [14:30:56]line ИТОГО: 0.00 [14:30:56]line НСП 1% : 0.00 [14:30:56]line НДС 12% : 0.00 [14:30:56]line Наличными: 0.00 [14:30:56]line Безнал.: 0.00 [14:30:56]line Место: АЗС № 78 "Партнер Нефть" [14:30:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:30:56]line СНО: Общий режим [14:30:56]line Чек 129 21.10.2024 14:31 [14:30:56]line Смена: 115 ФФД: 1.0 [14:30:56]line ЗНМ: 0300000137 [14:30:56]line РНМ: 0000000000186857 [14:30:56]line Версия ККМ: v1.0 [14:30:56]line Талоны: Топливные Талоны [14:30:56]line 1663890 [14:30:56]line ФМ: 0000000002094219 [14:30:56]line ФД: 30632 [14:30:56]line ФПД: 99239201659141 [14:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143100&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30632&fm=99239201659141&tin=02508201610067®Number=0000000000186857&sum=0 [14:30:56]OFD Sender: Processing packet 30632 [packets to send 10, broken 9] [14:30:56]ProducePacketName [14:30:56]name=ofd_packets/00030632 [14:30:56]OFD Sender: To server: pG, [14:30:56]CommunicateWithHost lk.salyk.kg:30040 [14:30:56]ConnectInit lk.salyk.kg [14:30:56]written 0, free lines is 4095 [14:30:56]Connected sock=10 [14:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2C 4C 07 01 96 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 77 00 00 35 04 06 00 5A 41 ED 5C D9 05 8B E6 D9 2E 4C 35 52 EE [14:30:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 15 64 47 00 3E 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A8 77 00 00 F4 03 04 00 24 10 16 67 B6 04 01 00 00 58 D2 DB EA A1 E0 9A 2D [14:30:57]CommunicateWithHost err = 0 [14:30:57]CheckOFDResponse [14:30:57]1017 (14) - 77093643461234 [14:30:57]1041 (16) - 0000000002094219 [14:30:57]1040 (4) - 30632 [14:30:57]1012 (4) - 21.10.2024 08:26 [14:30:57]1206 (1) - 0 [14:30:57]OFD Sender: Remove packet 30632 [14:30:57]ProducePacketName [14:30:57]name=ofd_packets/00030632 [14:30:57]NVStorageDeleteData [14:30:57]Write to MH i2c: 01 00 00 94 44 D8 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 94 44 00 00 00 00 00 01 0D ED [14:30:57]RasterBufferAndPrint [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]line [14:30:57]written 0, free lines is 3335 [14:30:57]MH_Cut [14:30:57]Write to MH i2c: D1 01 00 9B 44 01 B1 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: D1 01 00 9B 44 00 B0 [14:30:57]Write to MH i2c: 01 00 00 9C 44 E0 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]OFD Sender: No OFD packet to send [14:30:57]*** Cut start [14:30:57]*** Partial cut [14:30:57]*** CUTSNS_PIN = 1 [14:30:57]*** CUTSNS_PIN = 0 [14:30:58]*** Brake cut motor [14:30:58]Read from MH i2c: 01 [14:30:58]MH_I2C_Read... [14:30:58]*** Stop cut motor [14:30:58]*** Cut end [14:30:58]Read from MH i2c: 01 07 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: 01 07 00 9C 44 00 00 00 00 00 FF 0F F5 [14:30:58]process_action close_receipt done [14:30:58]requested_data is exist [14:30:58]produce_requested_data [14:30:58]requested_item fm.sn is exist - process it [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 11 00 00 [14:30:58]Write to MH i2c: E2 08 00 9D 44 80 11 00 00 00 00 00 00 5B [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 17 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 17 00 9D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [14:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:30:58]wFMCommunicate OK [14:30:58]requested_item fd.num is exist - process it [14:30:58]SAM_PROTO_GetFieldsCounters [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 13 00 00 [14:30:58]Write to MH i2c: E2 08 00 9E 44 80 13 00 00 00 00 00 00 5E [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 62 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 62 00 9E 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 77 00 00 0E 04 04 00 73 00 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 99 [14:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:58]wFMCommunicate OK [14:30:58]SAM_PROTO_GetFieldsCounters done [14:30:58]requested_item shift.num is exist - process it [14:30:58]requested_item shift.opened is exist - process it [14:30:58]req_shift_opened [14:30:58]FM_GetShiftState [14:30:58]SAM_PROTO_GetShiftState [14:30:58]wFMCommunicate request_size=4 [14:30:58]MH_SAM_APDU [14:30:58]CAPDU: 80 13 01 00 [14:30:58]Write to MH i2c: E2 08 00 9F 44 80 13 01 00 00 00 00 00 60 [14:30:58]Write i2c OK [14:30:58]MH_I2C_Read... [14:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:58]Read from MH i2c: E2 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 0E 00 [14:30:58]MH_I2C_Read... [14:30:58]Read from MH i2c: E2 0E 00 9F 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DC [14:30:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:30:58]wFMCommunicate OK [14:30:58]SAM_PROTO_GetShiftState done [14:30:58]FM_GetShiftState done [14:30:58]req_shift_opened done [14:30:58]requested_item shift.open_date is exist - process it [14:30:58]req_shift_open_date [14:30:58]req_shift_open_date done [14:30:58]produce_requested_data done [14:30:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30632,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:30:58]process_action_free close_receipt [14:30:58]json_value_free [14:30:58]json_value_free done [14:30:58]process_json_proto returns [14:30:58]Send response to host [14:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30632,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:30:58]free response buf [14:30:58]execute_script done [14:30:58]execute_script returns [14:30:58]free content buf [14:30:58]Sock 9.Close socket [14:30:58]Sock 9.Thread stoped [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:10]accept exits with 7 [14:31:10]New connection [14:31:10]New thread 3067489636 created [14:31:10]Thread 3067346276 joined [14:31:10]Waiting for new connection... [14:31:10] Sock 7.Parse request [14:31:10]Sock 7.Check first char [14:31:10]Sock 7.First char is OK [14:31:10]request: POST /json_proto HTTP/1.0 [14:31:10]Method: POST [14:31:10]URL: /json_proto [14:31:10]Method is POST - this is cgi request [14:31:10]url: /json_proto [14:31:10]query_string will be loaded in cgi processing [14:31:10]execute_cgi json_proto POST (null) [14:31:10]execute_cgi path=json_proto method=POST [14:31:10]POST find Content-Length [14:31:10]Host: 172.17.51.3:8080 [14:31:10]Content-Length: 677 [14:31:10]Content-Type: application/json [14:31:10] [14:31:10]POST finish read [14:31:10]Found Content-Length = 677 [14:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:10]execute_script... [14:31:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343042", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:10]POST & json_proto [14:31:10]process_json_proto [14:31:10]json parsed OK: [14:31:10]protocol is kg_v1.0 [14:31:10]action value=close_receipt [14:31:10]process_action close_receipt [14:31:10]cmd_close_receipt [14:31:10]MH_GetDate [14:31:10]Write to MH i2c: F0 00 00 A0 44 D3 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: F0 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: F0 09 00 [14:31:10]MH_I2C_Read... [14:31:10]Read from MH i2c: F0 09 00 A0 44 00 B4 65 16 67 04 C1 95 66 32 [14:31:10]GetLastDocTimeStamp 1729521060 [14:31:10]current date 1729521076 [14:31:10]FM_GetShiftState [14:31:10]SAM_PROTO_GetShiftState [14:31:10]wFMCommunicate request_size=4 [14:31:10]MH_SAM_APDU [14:31:10]CAPDU: 80 13 01 00 [14:31:10]Write to MH i2c: E2 08 00 A1 44 80 13 01 00 00 00 00 00 62 [14:31:10]Write i2c OK [14:31:10]MH_I2C_Read... [14:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:11]Read from MH i2c: E2 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 [14:31:11]MH_I2C_Read... [14:31:11]Read from MH i2c: E2 0E 00 A1 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DE [14:31:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:31:11]wFMCommunicate OK [14:31:11]SAM_PROTO_GetShiftState done [14:31:11]FM_GetShiftState done [14:31:11]opened in 1729471058 [14:31:11]opened+sec_in_day 1729557458 [14:31:11]quantity*price = 50041 [14:31:11]sum+1 = 50042 [14:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 130 21.10.2024 14:31 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30633 ФПД: 246924827935530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30633&fm=246924827935530&tin=02508201610067®Number=0000000000186857&sum=50000 [14:31:12]StoreToDocumentArchive [14:31:12]shift 115 fd 30633 [14:31:12]save to /storage/0115/doc_00030633 [14:31:12]save last doc name /storage/0115/doc_00030633 to /storage/kkm_last_doc_name [14:31:12]save OK [14:31:12]Clear old archive folders... [14:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:12]tlvbuf is 01DEACB0 [14:31:12]SAM_PROTO_ClearQueue [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 09 00 00 [14:31:12]Write to MH i2c: E2 08 00 AE 44 80 09 00 00 00 00 00 00 64 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 AE 44 00 90 00 66 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]SAM_PROTO_ClearQueue done [14:31:12]KKMCreateOFDPacket [14:31:12]OFDProtocolAddRootSTLVToBuf [14:31:12]FM_MakeSignedData [14:31:12]FM_MakeSignedData [14:31:12]SAM_PROTO_SignData [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 01 02 [14:31:12]Write to MH i2c: E2 08 00 AF 44 80 0D 01 02 00 00 00 00 6C [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 AF 44 00 90 00 67 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=255 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 77 00 00 35 04 06 00 E0 [14:31:12]Write to MH i2c: E2 02 01 B0 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 77 00 00 35 04 06 00 E0 00 00 88 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 B0 44 00 90 00 68 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=10 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 02 02 05 93 AA A7 C3 2A [14:31:12]Write to MH i2c: E2 0D 00 B1 44 80 0D 02 02 05 00 93 AA A7 C3 2A 00 00 4A [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 03 00 B1 44 00 90 00 69 [14:31:12]RAPDU: 90 00 [14:31:12]wFMCommunicate OK [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 0D 03 02 [14:31:12]Write to MH i2c: E2 08 00 B2 44 80 0D 03 02 00 00 00 00 71 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0B 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 0B 00 B2 44 00 BE 8D 8E AA 18 46 80 00 90 00 D3 [14:31:12]RAPDU: BE 8D 8E AA 18 46 80 00 90 00 [14:31:12]wFMCommunicate OK [14:31:12]SAM_PROTO_SignData done [14:31:12]FM_MakeSignedData done [14:31:12]CreateOFDProtocolMessage [14:31:12]wFMCommunicate request_size=4 [14:31:12]MH_SAM_APDU [14:31:12]CAPDU: 80 11 00 00 [14:31:12]Write to MH i2c: E2 08 00 B3 44 80 11 00 00 00 00 00 00 71 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:12]Read from MH i2c: E2 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: E2 17 00 B3 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [14:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:31:12]wFMCommunicate OK [14:31:12]CreateOFDProtocolMessage done [14:31:12]OFDSenderStorePacket 30633 [14:31:12]StoreOFDPacket docnum=30633 [14:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B9 0E 07 01 D5 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 77 00 00 35 04 06 00 E0 93 AA A7 C3 2A BE 8D 8E AA 18 46 80 00 [14:31:12]CheckFolder [14:31:12]dirname=/storage/ofd_packets [14:31:12]CheckFolder done [14:31:12]ProducePacketName [14:31:12]name=ofd_packets/00030633 [14:31:12]NVStorageSaveData ofd_packets/00030633 [14:31:12]File name is /storage/ofd_packets/00030633 [14:31:12]Write 301 bytes [14:31:12]NVStorageSaveData done [14:31:12]OFDSenderStorePacket done [14:31:12]KKMCreateOFDPacket done [14:31:12]NVStorageSaveData kkm_last_timestamp [14:31:12]File name is /storage/kkm_last_timestamp [14:31:12]Write 4 bytes [14:31:12]NVStorageSaveData done [14:31:12]ExternCall_PrintAddStr [14:31:12]wPrintStart [14:31:12]Write to MH i2c: 01 00 00 B4 44 F8 [14:31:12]Write i2c OK [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 07 00 [14:31:12]MH_I2C_Read... [14:31:12]Read from MH i2c: 01 07 00 B4 44 00 00 00 00 00 FF 0F 0D [14:31:12]RasterBufferAndPrint [14:31:12]line Счет N : (1)343042 [14:31:12]line ИНН: 02508201610067 [14:31:12]line Контрольно-Кассовый Чек [14:31:12]line ПРОДАЖА [14:31:12]line ТРК (МРК, ГНК) : 63 [14:31:12]line Товар: 2710124130 [14:31:12]line Аи-92-К-2 [14:31:12]line 7.480 * 66.90 [14:31:12]line = 500.41 [14:31:12]line НДС 12% НСП 1% [14:31:12]line > о реализуемом товаре [14:31:12]line ОКРУГЛЕНИЕ: -0.41 [14:31:12]line ИТОГО: 500.00 [14:31:12]line Внесено: 500.00 [14:31:12]line СДАЧА: 0.00 [14:31:12]line НСП 1% : 4.43 [14:31:12]line НДС 12% : 53.14 [14:31:12]line Наличными: 500.00 [14:31:12]line Безнал.: 0.00 [14:31:12]line Место: АЗС № 78 "Партнер Нефть" [14:31:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:31:12]line СНО: Общий режим [14:31:12]line Чек 130 21.10.2024 14:31 [14:31:12]line Смена: 115 ФФД: 1.0 [14:31:12]line ЗНМ: 0300000137 [14:31:12]line РНМ: 0000000000186857 [14:31:12]line Версия ККМ: v1.0 [14:31:12]line ФМ: 0000000002094219 [14:31:12]line ФД: 30633 [14:31:12]line ФПД: 246924827935530 [14:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143116&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30633&fm=246924827935530&tin=02508201610067®Number=0000000000186857&sum=50000 [14:31:13]OFD Sender: Processing packet 30633 [packets to send 10, broken 9] [14:31:13]ProducePacketName [14:31:13]name=ofd_packets/00030633 [14:31:13]OFD Sender: To server: pG, [14:31:13]CommunicateWithHost lk.salyk.kg:30040 [14:31:13]ConnectInit lk.salyk.kg [14:31:13]written 0, free lines is 4095 [14:31:13]Connected sock=10 [14:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B9 0E 07 01 D5 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B4 65 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 77 00 00 35 04 06 00 E0 93 AA A7 C3 2A BE 8D 8E AA 18 46 80 00 [14:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F5 8E 47 00 C4 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 A9 77 00 00 F4 03 04 00 34 10 16 67 B6 04 01 00 00 3F 2D 69 6D 45 CD 8C EE [14:31:13]CommunicateWithHost err = 0 [14:31:13]CheckOFDResponse [14:31:13]1017 (14) - 77093643461234 [14:31:13]1041 (16) - 0000000002094219 [14:31:13]1040 (4) - 30633 [14:31:13]1012 (4) - 21.10.2024 08:26 [14:31:13]1206 (1) - 0 [14:31:13]OFD Sender: Remove packet 30633 [14:31:13]ProducePacketName [14:31:13]name=ofd_packets/00030633 [14:31:13]NVStorageDeleteData [14:31:13]Write to MH i2c: 01 00 00 DF 44 23 [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: 01 07 00 DF 44 00 00 00 00 00 E1 0C 17 [14:31:13]RasterBufferAndPrint [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]line [14:31:13]written 0, free lines is 3303 [14:31:13]MH_Cut [14:31:13]Write to MH i2c: D1 01 00 E6 44 01 FC [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 01 00 [14:31:13]MH_I2C_Read... [14:31:13]Read from MH i2c: D1 01 00 E6 44 00 FB [14:31:13]Write to MH i2c: 01 00 00 E7 44 2B [14:31:13]Write i2c OK [14:31:13]MH_I2C_Read... [14:31:13]OFD Sender: No OFD packet to send [14:31:14]*** Cut start [14:31:14]*** Partial cut [14:31:14]*** CUTSNS_PIN = 1 [14:31:14]*** CUTSNS_PIN = 0 [14:31:14]*** Brake cut motor [14:31:14]Read from MH i2c: 01 [14:31:14]MH_I2C_Read... [14:31:14]*** Stop cut motor [14:31:14]*** Cut end [14:31:14]Read from MH i2c: 01 07 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: 01 07 00 E7 44 00 00 00 00 00 FF 0F 40 [14:31:14]process_action close_receipt done [14:31:14]requested_data is exist [14:31:14]produce_requested_data [14:31:14]requested_item fm.sn is exist - process it [14:31:14]wFMCommunicate request_size=4 [14:31:14]MH_SAM_APDU [14:31:14]CAPDU: 80 11 00 00 [14:31:14]Write to MH i2c: E2 08 00 E8 44 80 11 00 00 00 00 00 00 A6 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:14]Read from MH i2c: E2 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 17 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 17 00 E8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [14:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:31:14]wFMCommunicate OK [14:31:14]requested_item fd.num is exist - process it [14:31:14]SAM_PROTO_GetFieldsCounters [14:31:14]wFMCommunicate request_size=4 [14:31:14]MH_SAM_APDU [14:31:14]CAPDU: 80 13 00 00 [14:31:14]Write to MH i2c: E2 08 00 E9 44 80 13 00 00 00 00 00 00 A9 [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:14]Read from MH i2c: E2 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 62 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 62 00 E9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 77 00 00 0E 04 04 00 73 00 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 E8 [14:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 A9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:14]wFMCommunicate OK [14:31:14]SAM_PROTO_GetFieldsCounters done [14:31:14]requested_item shift.num is exist - process it [14:31:14]requested_item shift.opened is exist - process it [14:31:14]req_shift_opened [14:31:14]FM_GetShiftState [14:31:14]SAM_PROTO_GetShiftState [14:31:14]wFMCommunicate request_size=4 [14:31:14]MH_SAM_APDU [14:31:14]CAPDU: 80 13 01 00 [14:31:14]Write to MH i2c: E2 08 00 EA 44 80 13 01 00 00 00 00 00 AB [14:31:14]Write i2c OK [14:31:14]MH_I2C_Read... [14:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:14]Read from MH i2c: E2 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 0E 00 [14:31:14]MH_I2C_Read... [14:31:14]Read from MH i2c: E2 0E 00 EA 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 27 [14:31:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:31:14]wFMCommunicate OK [14:31:14]SAM_PROTO_GetShiftState done [14:31:14]FM_GetShiftState done [14:31:14]req_shift_opened done [14:31:14]requested_item shift.open_date is exist - process it [14:31:14]req_shift_open_date [14:31:14]req_shift_open_date done [14:31:14]produce_requested_data done [14:31:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30633,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:31:14]process_action_free close_receipt [14:31:14]json_value_free [14:31:14]json_value_free done [14:31:14]process_json_proto returns [14:31:14]Send response to host [14:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30633,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:31:14]free response buf [14:31:14]execute_script done [14:31:14]execute_script returns [14:31:14]free content buf [14:31:14]Sock 7.Close socket [14:31:14]Sock 7.Thread stoped [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:39]OFD Sender: No OFD packet to send [14:35:44]OFD Sender: No OFD packet to send [14:35:49]OFD Sender: No OFD packet to send [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:08]accept exits with 9 [14:39:08]New connection [14:39:08]New thread 3067346276 created [14:39:08]Thread 3067489636 joined [14:39:08]Waiting for new connection... [14:39:08] Sock 9.Parse request [14:39:08]Sock 9.Check first char [14:39:08]Sock 9.First char is OK [14:39:08]request: POST /json_proto HTTP/1.0 [14:39:08]Method: POST [14:39:08]URL: /json_proto [14:39:08]Method is POST - this is cgi request [14:39:08]url: /json_proto [14:39:08]query_string will be loaded in cgi processing [14:39:08]execute_cgi json_proto POST (null) [14:39:08]execute_cgi path=json_proto method=POST [14:39:08]POST find Content-Length [14:39:08]Host: 172.17.51.3:8080 [14:39:08]Content-Length: 677 [14:39:08]Content-Type: application/json [14:39:08] [14:39:08]POST finish read [14:39:08]Found Content-Length = 677 [14:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:08]execute_script... [14:39:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:08]POST & json_proto [14:39:08]process_json_proto [14:39:08]json parsed OK: [14:39:08]protocol is kg_v1.0 [14:39:08]action value=close_receipt [14:39:08]process_action close_receipt [14:39:08]cmd_close_receipt [14:39:08]MH_GetDate [14:39:08]Write to MH i2c: F0 00 00 EB 44 1E [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 09 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: F0 09 00 EB 44 00 91 67 16 67 04 C1 95 66 5C [14:39:08]GetLastDocTimeStamp 1729521076 [14:39:08]current date 1729521553 [14:39:08]FM_GetShiftState [14:39:08]SAM_PROTO_GetShiftState [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 13 01 00 [14:39:08]Write to MH i2c: E2 08 00 EC 44 80 13 01 00 00 00 00 00 AD [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 0E 00 EC 44 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 29 [14:39:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:39:08]wFMCommunicate OK [14:39:08]SAM_PROTO_GetShiftState done [14:39:08]FM_GetShiftState done [14:39:08]opened in 1729471058 [14:39:08]opened+sec_in_day 1729557458 [14:39:08]quantity*price = 20003 [14:39:08]sum+1 = 20004 [14:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 131 21.10.2024 14:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30634 ФПД: 50587169564985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30634&fm=50587169564985&tin=02508201610067®Number=0000000000186857&sum=20000 [14:39:09]StoreToDocumentArchive [14:39:09]shift 115 fd 30634 [14:39:09]save to /storage/0115/doc_00030634 [14:39:09]save last doc name /storage/0115/doc_00030634 to /storage/kkm_last_doc_name [14:39:09]save OK [14:39:09]Clear old archive folders... [14:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:09]tlvbuf is 01DFA670 [14:39:09]SAM_PROTO_ClearQueue [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 09 00 00 [14:39:09]Write to MH i2c: E2 08 00 F9 44 80 09 00 00 00 00 00 00 AF [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 F9 44 00 90 00 B1 [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_ClearQueue done [14:39:09]KKMCreateOFDPacket [14:39:09]OFDProtocolAddRootSTLVToBuf [14:39:09]FM_MakeSignedData [14:39:09]FM_MakeSignedData [14:39:09]SAM_PROTO_SignData [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 01 02 [14:39:09]Write to MH i2c: E2 08 00 FA 44 80 0D 01 02 00 00 00 00 B7 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=255 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 83 00 00 00 F4 03 04 00 91 67 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 77 00 00 35 04 06 00 2E [14:39:09]Write to MH i2c: E2 02 01 FB 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 83 00 00 00 F4 03 04 00 91 67 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 77 00 00 35 04 06 00 2E 00 00 C4 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=10 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 02 02 05 02 3E 45 A9 39 [14:39:09]Write to MH i2c: E2 0D 00 FC 44 80 0D 02 02 05 00 02 3E 45 A9 39 00 00 2B [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 03 02 [14:39:09]Write to MH i2c: E2 08 00 FD 44 80 0D 03 02 00 00 00 00 BC [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0B 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0B 00 FD 44 00 51 F1 46 D2 CA 6E 34 B2 90 00 35 [14:39:09]RAPDU: 51 F1 46 D2 CA 6E 34 B2 90 00 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_SignData done [14:39:09]FM_MakeSignedData done [14:39:09]CreateOFDProtocolMessage [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 11 00 00 [14:39:09]Write to MH i2c: E2 08 00 FE 44 80 11 00 00 00 00 00 00 BC [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 FE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0A [14:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:39:09]wFMCommunicate OK [14:39:09]CreateOFDProtocolMessage done [14:39:09]OFDSenderStorePacket 30634 [14:39:09]StoreOFDPacket docnum=30634 [14:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 39 FC 07 01 04 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 83 00 00 00 F4 03 04 00 91 67 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 77 00 00 35 04 06 00 2E 02 3E 45 A9 39 51 F1 46 D2 CA 6E 34 B2 [14:39:09]CheckFolder [14:39:09]dirname=/storage/ofd_packets [14:39:09]CheckFolder done [14:39:09]ProducePacketName [14:39:09]name=ofd_packets/00030634 [14:39:09]NVStorageSaveData ofd_packets/00030634 [14:39:09]File name is /storage/ofd_packets/00030634 [14:39:09]Write 301 bytes [14:39:09]NVStorageSaveData done [14:39:09]OFDSenderStorePacket done [14:39:09]KKMCreateOFDPacket done [14:39:09]NVStorageSaveData kkm_last_timestamp [14:39:09]File name is /storage/kkm_last_timestamp [14:39:09]Write 4 bytes [14:39:09]NVStorageSaveData done [14:39:09]ExternCall_PrintAddStr [14:39:09]wPrintStart [14:39:09]Write to MH i2c: 01 00 00 FF 44 43 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 07 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [14:39:09]RasterBufferAndPrint [14:39:09]line Счет N : (1)343043 [14:39:09]line ИНН: 02508201610067 [14:39:09]line Контрольно-Кассовый Чек [14:39:09]line ПРОДАЖА [14:39:09]line ТРК (МРК, ГНК) : 53 [14:39:09]line Товар: 2710124130 [14:39:09]line Аи-92-К-2 [14:39:09]line 2.990 * 66.90 [14:39:09]line = 200.03 [14:39:09]line НДС 12% НСП 1% [14:39:09]line > о реализуемом товаре [14:39:09]line ОКРУГЛЕНИЕ: -0.03 [14:39:09]line ИТОГО: 200.00 [14:39:09]line Внесено: 200.00 [14:39:09]line СДАЧА: 0.00 [14:39:09]line НСП 1% : 1.77 [14:39:09]line НДС 12% : 21.24 [14:39:09]line Наличными: 200.00 [14:39:09]line Безнал.: 0.00 [14:39:09]line Место: АЗС № 78 "Партнер Нефть" [14:39:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:39:09]line СНО: Общий режим [14:39:09]line Чек 131 21.10.2024 14:39 [14:39:09]line Смена: 115 ФФД: 1.0 [14:39:09]line ЗНМ: 0300000137 [14:39:09]line РНМ: 0000000000186857 [14:39:09]line Версия ККМ: v1.0 [14:39:09]line ФМ: 0000000002094219 [14:39:09]line ФД: 30634 [14:39:09]line ФПД: 50587169564985 [14:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30634&fm=50587169564985&tin=02508201610067®Number=0000000000186857&sum=20000 [14:39:10]OFD Sender: Processing packet 30634 [packets to send 10, broken 9] [14:39:10]ProducePacketName [14:39:10]name=ofd_packets/00030634 [14:39:10]OFD Sender: To server: pG, [14:39:10]CommunicateWithHost lk.salyk.kg:30040 [14:39:10]ConnectInit lk.salyk.kg [14:39:10]written 0, free lines is 4095 [14:39:10]Connected sock=10 [14:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 39 FC 07 01 04 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 83 00 00 00 F4 03 04 00 91 67 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 77 00 00 35 04 06 00 2E 02 3E 45 A9 39 51 F1 46 D2 CA 6E 34 B2 [14:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 90 47 00 36 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AA 77 00 00 F4 03 04 00 11 12 16 67 B6 04 01 00 00 13 9D BE 96 F1 C3 65 56 [14:39:10]CommunicateWithHost err = 0 [14:39:10]CheckOFDResponse [14:39:10]1017 (14) - 77093643461234 [14:39:10]1041 (16) - 0000000002094219 [14:39:10]1040 (4) - 30634 [14:39:10]1012 (4) - 21.10.2024 08:34 [14:39:10]1206 (1) - 0 [14:39:10]OFD Sender: Remove packet 30634 [14:39:10]ProducePacketName [14:39:10]name=ofd_packets/00030634 [14:39:10]NVStorageDeleteData [14:39:10]Write to MH i2c: 01 00 00 2A 45 6F [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 2A 45 00 00 00 00 00 01 0D 84 [14:39:10]RasterBufferAndPrint [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]written 0, free lines is 3335 [14:39:10]MH_Cut [14:39:10]Write to MH i2c: D1 01 00 31 45 01 48 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 01 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 01 00 31 45 00 47 [14:39:10]Write to MH i2c: 01 00 00 32 45 77 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:11]OFD Sender: No OFD packet to send [14:39:11]*** Cut start [14:39:11]*** Partial cut [14:39:11]*** CUTSNS_PIN = 1 [14:39:11]*** CUTSNS_PIN = 0 [14:39:11]*** Brake cut motor [14:39:12]Read from MH i2c: 01 [14:39:12]MH_I2C_Read... [14:39:12]*** Stop cut motor [14:39:12]*** Cut end [14:39:12]Read from MH i2c: 01 07 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: 01 07 00 32 45 00 00 00 00 00 FF 0F 8C [14:39:12]process_action close_receipt done [14:39:12]requested_data is exist [14:39:12]produce_requested_data [14:39:12]requested_item fm.sn is exist - process it [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 11 00 00 [14:39:12]Write to MH i2c: E2 08 00 33 45 80 11 00 00 00 00 00 00 F2 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 17 00 33 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [14:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:39:12]wFMCommunicate OK [14:39:12]requested_item fd.num is exist - process it [14:39:12]SAM_PROTO_GetFieldsCounters [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 13 00 00 [14:39:12]Write to MH i2c: E2 08 00 34 45 80 13 00 00 00 00 00 00 F5 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 34 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 77 00 00 0E 04 04 00 73 00 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 38 [14:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_GetFieldsCounters done [14:39:12]requested_item shift.num is exist - process it [14:39:12]requested_item shift.opened is exist - process it [14:39:12]req_shift_opened [14:39:12]FM_GetShiftState [14:39:12]SAM_PROTO_GetShiftState [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 13 01 00 [14:39:12]Write to MH i2c: E2 08 00 35 45 80 13 01 00 00 00 00 00 F7 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0E 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0E 00 35 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 73 [14:39:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_GetShiftState done [14:39:12]FM_GetShiftState done [14:39:12]req_shift_opened done [14:39:12]requested_item shift.open_date is exist - process it [14:39:12]req_shift_open_date [14:39:12]req_shift_open_date done [14:39:12]produce_requested_data done [14:39:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30634,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:39:12]process_action_free close_receipt [14:39:12]json_value_free [14:39:12]json_value_free done [14:39:12]process_json_proto returns [14:39:12]Send response to host [14:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30634,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:39:12]free response buf [14:39:12]execute_script done [14:39:12]execute_script returns [14:39:12]free content buf [14:39:12]Sock 9.Close socket [14:39:12]Sock 9.Thread stoped [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:03]accept exits with 7 [14:43:03]New connection [14:43:03]New thread 3067489636 created [14:43:03]Thread 3067346276 joined [14:43:03]Waiting for new connection... [14:43:03] Sock 7.Parse request [14:43:03]Sock 7.Check first char [14:43:03]Sock 7.First char is OK [14:43:03]request: POST /json_proto HTTP/1.0 [14:43:03]Method: POST [14:43:03]URL: /json_proto [14:43:03]Method is POST - this is cgi request [14:43:03]url: /json_proto [14:43:03]query_string will be loaded in cgi processing [14:43:03]execute_cgi json_proto POST (null) [14:43:03]execute_cgi path=json_proto method=POST [14:43:03]POST find Content-Length [14:43:03]Host: 172.17.51.3:8080 [14:43:03]Content-Length: 677 [14:43:03]Content-Type: application/json [14:43:03] [14:43:03]POST finish read [14:43:03]Found Content-Length = 677 [14:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:03]execute_script... [14:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:03]POST & json_proto [14:43:03]process_json_proto [14:43:03]json parsed OK: [14:43:03]protocol is kg_v1.0 [14:43:03]action value=close_receipt [14:43:03]process_action close_receipt [14:43:03]cmd_close_receipt [14:43:03]MH_GetDate [14:43:03]Write to MH i2c: F0 00 00 36 45 6A [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: F0 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: F0 09 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: F0 09 00 36 45 00 7D 68 16 67 04 C1 95 66 95 [14:43:03]GetLastDocTimeStamp 1729521553 [14:43:03]current date 1729521789 [14:43:03]FM_GetShiftState [14:43:03]SAM_PROTO_GetShiftState [14:43:03]wFMCommunicate request_size=4 [14:43:03]MH_SAM_APDU [14:43:03]CAPDU: 80 13 01 00 [14:43:03]Write to MH i2c: E2 08 00 37 45 80 13 01 00 00 00 00 00 F9 [14:43:03]Write i2c OK [14:43:03]MH_I2C_Read... [14:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:03]Read from MH i2c: E2 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0E 00 [14:43:03]MH_I2C_Read... [14:43:03]Read from MH i2c: E2 0E 00 37 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 75 [14:43:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:43:03]wFMCommunicate OK [14:43:03]SAM_PROTO_GetShiftState done [14:43:03]FM_GetShiftState done [14:43:03]opened in 1729471058 [14:43:03]opened+sec_in_day 1729557458 [14:43:03]quantity*price = 40006 [14:43:03]sum+1 = 40007 [14:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 132 21.10.2024 14:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30635 ФПД: 184889913874557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30635&fm=184889913874557&tin=02508201610067®Number=0000000000186857&sum=40000 [14:43:05]StoreToDocumentArchive [14:43:05]shift 115 fd 30635 [14:43:05]save to /storage/0115/doc_00030635 [14:43:05]save last doc name /storage/0115/doc_00030635 to /storage/kkm_last_doc_name [14:43:05]save OK [14:43:05]Clear old archive folders... [14:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:43:05]tlvbuf is 01DB8750 [14:43:05]SAM_PROTO_ClearQueue [14:43:05]wFMCommunicate request_size=4 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 09 00 00 [14:43:05]Write to MH i2c: E2 08 00 44 45 80 09 00 00 00 00 00 00 FB [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 44 45 00 90 00 FD [14:43:05]RAPDU: 90 00 [14:43:05]wFMCommunicate OK [14:43:05]SAM_PROTO_ClearQueue done [14:43:05]KKMCreateOFDPacket [14:43:05]OFDProtocolAddRootSTLVToBuf [14:43:05]FM_MakeSignedData [14:43:05]FM_MakeSignedData [14:43:05]SAM_PROTO_SignData [14:43:05]wFMCommunicate request_size=4 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 0D 01 02 [14:43:05]Write to MH i2c: E2 08 00 45 45 80 0D 01 02 00 00 00 00 03 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 45 45 00 90 00 FE [14:43:05]RAPDU: 90 00 [14:43:05]wFMCommunicate OK [14:43:05]wFMCommunicate request_size=255 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7D 68 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 77 00 00 35 04 06 00 A8 [14:43:05]Write to MH i2c: E2 02 01 46 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7D 68 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 77 00 00 35 04 06 00 A8 00 00 86 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 46 45 00 90 00 FF [14:43:05]RAPDU: 90 00 [14:43:05]wFMCommunicate OK [14:43:05]wFMCommunicate request_size=10 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 0D 02 02 05 28 09 A3 98 7D [14:43:05]Write to MH i2c: E2 0D 00 47 45 80 0D 02 02 05 00 28 09 A3 98 7D 00 00 F9 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 03 00 47 45 00 90 00 00 [14:43:05]RAPDU: 90 00 [14:43:05]wFMCommunicate OK [14:43:05]wFMCommunicate request_size=4 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 0D 03 02 [14:43:05]Write to MH i2c: E2 08 00 48 45 80 0D 03 02 00 00 00 00 08 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 0B 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 0B 00 48 45 00 1B A0 12 3E 37 D7 DB 2A 90 00 27 [14:43:05]RAPDU: 1B A0 12 3E 37 D7 DB 2A 90 00 [14:43:05]wFMCommunicate OK [14:43:05]SAM_PROTO_SignData done [14:43:05]FM_MakeSignedData done [14:43:05]CreateOFDProtocolMessage [14:43:05]wFMCommunicate request_size=4 [14:43:05]MH_SAM_APDU [14:43:05]CAPDU: 80 11 00 00 [14:43:05]Write to MH i2c: E2 08 00 49 45 80 11 00 00 00 00 00 00 08 [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:05]Read from MH i2c: E2 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 17 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: E2 17 00 49 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [14:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:43:05]wFMCommunicate OK [14:43:05]CreateOFDProtocolMessage done [14:43:05]OFDSenderStorePacket 30635 [14:43:05]StoreOFDPacket docnum=30635 [14:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6D 68 07 01 F8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7D 68 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 77 00 00 35 04 06 00 A8 28 09 A3 98 7D 1B A0 12 3E 37 D7 DB 2A [14:43:05]CheckFolder [14:43:05]dirname=/storage/ofd_packets [14:43:05]CheckFolder done [14:43:05]ProducePacketName [14:43:05]name=ofd_packets/00030635 [14:43:05]NVStorageSaveData ofd_packets/00030635 [14:43:05]File name is /storage/ofd_packets/00030635 [14:43:05]Write 301 bytes [14:43:05]NVStorageSaveData done [14:43:05]OFDSenderStorePacket done [14:43:05]KKMCreateOFDPacket done [14:43:05]NVStorageSaveData kkm_last_timestamp [14:43:05]File name is /storage/kkm_last_timestamp [14:43:05]Write 4 bytes [14:43:05]NVStorageSaveData done [14:43:05]ExternCall_PrintAddStr [14:43:05]wPrintStart [14:43:05]Write to MH i2c: 01 00 00 4A 45 8F [14:43:05]Write i2c OK [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: 01 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: 01 07 00 [14:43:05]MH_I2C_Read... [14:43:05]Read from MH i2c: 01 07 00 4A 45 00 00 00 00 00 FF 0F A4 [14:43:05]RasterBufferAndPrint [14:43:05]line Счет N : (1)343044 [14:43:05]line ИНН: 02508201610067 [14:43:05]line Контрольно-Кассовый Чек [14:43:05]line ПРОДАЖА [14:43:05]line ТРК (МРК, ГНК) : 33 [14:43:05]line Товар: 2710124130 [14:43:05]line Аи-92-К-2 [14:43:05]line 5.980 * 66.90 [14:43:05]line = 400.06 [14:43:05]line НДС 12% НСП 1% [14:43:05]line > о реализуемом товаре [14:43:05]line ОКРУГЛЕНИЕ: -0.06 [14:43:05]line ИТОГО: 400.00 [14:43:05]line Внесено: 400.00 [14:43:05]line СДАЧА: 0.00 [14:43:05]line НСП 1% : 3.54 [14:43:05]line НДС 12% : 42.48 [14:43:05]line Наличными: 400.00 [14:43:05]line Безнал.: 0.00 [14:43:05]line Место: АЗС № 78 "Партнер Нефть" [14:43:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:43:05]line СНО: Общий режим [14:43:05]line Чек 132 21.10.2024 14:43 [14:43:05]line Смена: 115 ФФД: 1.0 [14:43:05]line ЗНМ: 0300000137 [14:43:05]line РНМ: 0000000000186857 [14:43:05]line Версия ККМ: v1.0 [14:43:05]line ФМ: 0000000002094219 [14:43:05]line ФД: 30635 [14:43:05]line ФПД: 184889913874557 [14:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144309&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30635&fm=184889913874557&tin=02508201610067®Number=0000000000186857&sum=40000 [14:43:05]OFD Sender: Processing packet 30635 [packets to send 10, broken 9] [14:43:05]ProducePacketName [14:43:05]name=ofd_packets/00030635 [14:43:05]OFD Sender: To server: pG, [14:43:05]CommunicateWithHost lk.salyk.kg:30040 [14:43:05]ConnectInit lk.salyk.kg [14:43:05]written 0, free lines is 4095 [14:43:06]Connected sock=10 [14:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6D 68 07 01 F8 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7D 68 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 77 00 00 35 04 06 00 A8 28 09 A3 98 7D 1B A0 12 3E 37 D7 DB 2A [14:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8A EC 47 00 A1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AB 77 00 00 F4 03 04 00 FD 12 16 67 B6 04 01 00 00 43 EB EC 1A 3B 5F 41 7B [14:43:06]CommunicateWithHost err = 0 [14:43:06]CheckOFDResponse [14:43:06]1017 (14) - 77093643461234 [14:43:06]1041 (16) - 0000000002094219 [14:43:06]1040 (4) - 30635 [14:43:06]1012 (4) - 21.10.2024 08:38 [14:43:06]1206 (1) - 0 [14:43:06]OFD Sender: Remove packet 30635 [14:43:06]ProducePacketName [14:43:06]name=ofd_packets/00030635 [14:43:06]NVStorageDeleteData [14:43:06]Write to MH i2c: 01 00 00 75 45 BA [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: 01 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: 01 07 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: 01 07 00 75 45 00 00 00 00 00 F5 0C C2 [14:43:06]RasterBufferAndPrint [14:43:06]line [14:43:06]line [14:43:06]line [14:43:06]line [14:43:06]line [14:43:06]written 0, free lines is 3323 [14:43:06]MH_Cut [14:43:06]Write to MH i2c: D1 01 00 7C 45 01 93 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: D1 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: D1 01 00 [14:43:06]MH_I2C_Read... [14:43:06]Read from MH i2c: D1 01 00 7C 45 00 92 [14:43:06]Write to MH i2c: 01 00 00 7D 45 C2 [14:43:06]Write i2c OK [14:43:06]MH_I2C_Read... [14:43:06]OFD Sender: No OFD packet to send [14:43:07]*** Cut start [14:43:07]*** Partial cut [14:43:07]*** CUTSNS_PIN = 1 [14:43:07]*** CUTSNS_PIN = 0 [14:43:07]*** Brake cut motor [14:43:07]Read from MH i2c: 01 [14:43:07]MH_I2C_Read... [14:43:07]*** Stop cut motor [14:43:07]*** Cut end [14:43:07]Read from MH i2c: 01 07 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: 01 07 00 7D 45 00 00 00 00 00 FF 0F D7 [14:43:07]process_action close_receipt done [14:43:07]requested_data is exist [14:43:07]produce_requested_data [14:43:07]requested_item fm.sn is exist - process it [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 11 00 00 [14:43:07]Write to MH i2c: E2 08 00 7E 45 80 11 00 00 00 00 00 00 3D [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 17 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 17 00 7E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [14:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:43:07]wFMCommunicate OK [14:43:07]requested_item fd.num is exist - process it [14:43:07]SAM_PROTO_GetFieldsCounters [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 13 00 00 [14:43:07]Write to MH i2c: E2 08 00 7F 45 80 13 00 00 00 00 00 00 40 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 62 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 62 00 7F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 77 00 00 0E 04 04 00 73 00 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 87 [14:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:07]wFMCommunicate OK [14:43:07]SAM_PROTO_GetFieldsCounters done [14:43:07]requested_item shift.num is exist - process it [14:43:07]requested_item shift.opened is exist - process it [14:43:07]req_shift_opened [14:43:07]FM_GetShiftState [14:43:07]SAM_PROTO_GetShiftState [14:43:07]wFMCommunicate request_size=4 [14:43:07]MH_SAM_APDU [14:43:07]CAPDU: 80 13 01 00 [14:43:07]Write to MH i2c: E2 08 00 80 45 80 13 01 00 00 00 00 00 42 [14:43:07]Write i2c OK [14:43:07]MH_I2C_Read... [14:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:07]Read from MH i2c: E2 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 0E 00 [14:43:07]MH_I2C_Read... [14:43:07]Read from MH i2c: E2 0E 00 80 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BE [14:43:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:43:07]wFMCommunicate OK [14:43:07]SAM_PROTO_GetShiftState done [14:43:07]FM_GetShiftState done [14:43:07]req_shift_opened done [14:43:07]requested_item shift.open_date is exist - process it [14:43:07]req_shift_open_date [14:43:07]req_shift_open_date done [14:43:07]produce_requested_data done [14:43:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30635,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:43:07]process_action_free close_receipt [14:43:07]json_value_free [14:43:07]json_value_free done [14:43:07]process_json_proto returns [14:43:07]Send response to host [14:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30635,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:43:07]free response buf [14:43:07]execute_script done [14:43:07]execute_script returns [14:43:07]free content buf [14:43:07]Sock 7.Close socket [14:43:07]Sock 7.Thread stoped [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:12]accept exits with 9 [14:50:12]New connection [14:50:12]New thread 3067346276 created [14:50:12]Thread 3067489636 joined [14:50:12]Waiting for new connection... [14:50:12] Sock 9.Parse request [14:50:12]Sock 9.Check first char [14:50:12]Sock 9.First char is OK [14:50:12]request: POST /json_proto HTTP/1.0 [14:50:12]Method: POST [14:50:12]URL: /json_proto [14:50:12]Method is POST - this is cgi request [14:50:12]url: /json_proto [14:50:12]query_string will be loaded in cgi processing [14:50:12]execute_cgi json_proto POST (null) [14:50:12]execute_cgi path=json_proto method=POST [14:50:12]POST find Content-Length [14:50:12]Host: 172.17.51.3:8080 [14:50:12]Content-Length: 674 [14:50:12]Content-Type: application/json [14:50:12] [14:50:12]POST finish read [14:50:12]Found Content-Length = 674 [14:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:12]execute_script... [14:50:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:12]POST & json_proto [14:50:12]process_json_proto [14:50:12]json parsed OK: [14:50:12]protocol is kg_v1.0 [14:50:12]action value=close_receipt [14:50:12]process_action close_receipt [14:50:12]cmd_close_receipt [14:50:12]MH_GetDate [14:50:12]Write to MH i2c: F0 00 00 81 45 B5 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: F0 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: F0 09 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: F0 09 00 81 45 00 2A 6A 16 67 04 C1 95 66 8F [14:50:12]GetLastDocTimeStamp 1729521789 [14:50:12]current date 1729522218 [14:50:12]FM_GetShiftState [14:50:12]SAM_PROTO_GetShiftState [14:50:12]wFMCommunicate request_size=4 [14:50:12]MH_SAM_APDU [14:50:12]CAPDU: 80 13 01 00 [14:50:12]Write to MH i2c: E2 08 00 82 45 80 13 01 00 00 00 00 00 44 [14:50:12]Write i2c OK [14:50:12]MH_I2C_Read... [14:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:12]Read from MH i2c: E2 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 0E 00 [14:50:12]MH_I2C_Read... [14:50:12]Read from MH i2c: E2 0E 00 82 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C0 [14:50:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:50:12]wFMCommunicate OK [14:50:12]SAM_PROTO_GetShiftState done [14:50:12]FM_GetShiftState done [14:50:12]opened in 1729471058 [14:50:12]opened+sec_in_day 1729557458 [14:50:12]quantity*price = 50063 [14:50:12]sum+1 = 50064 [14:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 133 21.10.2024 14:50 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30636 ФПД: 35809270870412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30636&fm=35809270870412&tin=02508201610067®Number=0000000000186857&sum=50000 [14:50:13]StoreToDocumentArchive [14:50:13]shift 115 fd 30636 [14:50:13]save to /storage/0115/doc_00030636 [14:50:13]save last doc name /storage/0115/doc_00030636 to /storage/kkm_last_doc_name [14:50:13]save OK [14:50:13]Clear old archive folders... [14:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:50:13]tlvbuf is 01DB8830 [14:50:13]SAM_PROTO_ClearQueue [14:50:13]wFMCommunicate request_size=4 [14:50:13]MH_SAM_APDU [14:50:13]CAPDU: 80 09 00 00 [14:50:13]Write to MH i2c: E2 08 00 8F 45 80 09 00 00 00 00 00 00 46 [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:13]Read from MH i2c: E2 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 03 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 03 00 8F 45 00 90 00 48 [14:50:13]RAPDU: 90 00 [14:50:13]wFMCommunicate OK [14:50:13]SAM_PROTO_ClearQueue done [14:50:13]KKMCreateOFDPacket [14:50:13]OFDProtocolAddRootSTLVToBuf [14:50:13]FM_MakeSignedData [14:50:13]FM_MakeSignedData [14:50:13]SAM_PROTO_SignData [14:50:13]wFMCommunicate request_size=4 [14:50:13]MH_SAM_APDU [14:50:13]CAPDU: 80 0D 01 02 [14:50:13]Write to MH i2c: E2 08 00 90 45 80 0D 01 02 00 00 00 00 4E [14:50:13]Write i2c OK [14:50:13]MH_I2C_Read... [14:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:13]Read from MH i2c: E2 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 03 00 [14:50:13]MH_I2C_Read... [14:50:13]Read from MH i2c: E2 03 00 90 45 00 90 00 49 [14:50:13]RAPDU: 90 00 [14:50:13]wFMCommunicate OK [14:50:13]wFMCommunicate request_size=255 [14:50:13]MH_SAM_APDU [14:50:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2A 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 77 00 00 35 04 06 00 20 91 7E DE [14:50:13]Write to MH i2c: E2 02 01 91 45 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2A 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 77 00 00 35 04 06 00 20 91 7E DE 00 00 96 [14:50:14]Write i2c OK [14:50:14]MH_I2C_Read... [14:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:14]Read from MH i2c: E2 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 03 00 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 03 00 91 45 00 90 00 4A [14:50:14]RAPDU: 90 00 [14:50:14]wFMCommunicate OK [14:50:14]wFMCommunicate request_size=7 [14:50:14]MH_SAM_APDU [14:50:14]CAPDU: 80 0D 02 02 02 B1 8C [14:50:14]Write to MH i2c: E2 0A 00 92 45 80 0D 02 02 02 00 B1 8C 00 00 92 [14:50:14]Write i2c OK [14:50:14]MH_I2C_Read... [14:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:14]Read from MH i2c: E2 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 03 00 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 03 00 92 45 00 90 00 4B [14:50:14]RAPDU: 90 00 [14:50:14]wFMCommunicate OK [14:50:14]wFMCommunicate request_size=4 [14:50:14]MH_SAM_APDU [14:50:14]CAPDU: 80 0D 03 02 [14:50:14]Write to MH i2c: E2 08 00 93 45 80 0D 03 02 00 00 00 00 53 [14:50:14]Write i2c OK [14:50:14]MH_I2C_Read... [14:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:14]Read from MH i2c: E2 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 0B 00 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 0B 00 93 45 00 F7 6E 8B 6D D9 94 DC E0 90 00 DA [14:50:14]RAPDU: F7 6E 8B 6D D9 94 DC E0 90 00 [14:50:14]wFMCommunicate OK [14:50:14]SAM_PROTO_SignData done [14:50:14]FM_MakeSignedData done [14:50:14]CreateOFDProtocolMessage [14:50:14]wFMCommunicate request_size=4 [14:50:14]MH_SAM_APDU [14:50:14]CAPDU: 80 11 00 00 [14:50:14]Write to MH i2c: E2 08 00 94 45 80 11 00 00 00 00 00 00 53 [14:50:14]Write i2c OK [14:50:14]MH_I2C_Read... [14:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:14]Read from MH i2c: E2 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 17 00 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: E2 17 00 94 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [14:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:50:14]wFMCommunicate OK [14:50:14]CreateOFDProtocolMessage done [14:50:14]OFDSenderStorePacket 30636 [14:50:14]StoreOFDPacket docnum=30636 [14:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B6 13 04 01 0A CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2A 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 77 00 00 35 04 06 00 20 91 7E DE B1 8C F7 6E 8B 6D D9 94 DC E0 [14:50:14]CheckFolder [14:50:14]dirname=/storage/ofd_packets [14:50:14]CheckFolder done [14:50:14]ProducePacketName [14:50:14]name=ofd_packets/00030636 [14:50:14]NVStorageSaveData ofd_packets/00030636 [14:50:14]File name is /storage/ofd_packets/00030636 [14:50:14]Write 298 bytes [14:50:14]NVStorageSaveData done [14:50:14]OFDSenderStorePacket done [14:50:14]KKMCreateOFDPacket done [14:50:14]NVStorageSaveData kkm_last_timestamp [14:50:14]File name is /storage/kkm_last_timestamp [14:50:14]Write 4 bytes [14:50:14]NVStorageSaveData done [14:50:14]ExternCall_PrintAddStr [14:50:14]wPrintStart [14:50:14]Write to MH i2c: 01 00 00 95 45 DA [14:50:14]Write i2c OK [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: 01 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: 01 07 00 [14:50:14]MH_I2C_Read... [14:50:14]Read from MH i2c: 01 07 00 95 45 00 00 00 00 00 FF 0F EF [14:50:14]RasterBufferAndPrint [14:50:14]line Счет N : (1)343045 [14:50:14]line ИНН: 02508201610067 [14:50:14]line Контрольно-Кассовый Чек [14:50:14]line ПРОДАЖА [14:50:14]line ТРК (МРК, ГНК) : 34 [14:50:14]line Товар: 2710194210 [14:50:14]line ДТ-К-2 [14:50:14]line 6.570 * 76.20 [14:50:14]line = 500.63 [14:50:14]line НДС 12% НСП 1% [14:50:14]line > о реализуемом товаре [14:50:14]line ОКРУГЛЕНИЕ: -0.63 [14:50:14]line ИТОГО: 500.00 [14:50:14]line Внесено: 500.00 [14:50:14]line СДАЧА: 0.00 [14:50:14]line НСП 1% : 4.43 [14:50:14]line НДС 12% : 53.16 [14:50:14]line Наличными: 500.00 [14:50:14]line Безнал.: 0.00 [14:50:14]line Место: АЗС № 78 "Партнер Нефть" [14:50:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:50:14]line СНО: Общий режим [14:50:14]line Чек 133 21.10.2024 14:50 [14:50:14]line Смена: 115 ФФД: 1.0 [14:50:14]line ЗНМ: 0300000137 [14:50:14]line РНМ: 0000000000186857 [14:50:14]line Версия ККМ: v1.0 [14:50:14]line ФМ: 0000000002094219 [14:50:14]line ФД: 30636 [14:50:14]line ФПД: 35809270870412 [14:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30636&fm=35809270870412&tin=02508201610067®Number=0000000000186857&sum=50000 [14:50:14]OFD Sender: Processing packet 30636 [packets to send 10, broken 9] [14:50:14]ProducePacketName [14:50:14]name=ofd_packets/00030636 [14:50:14]OFD Sender: To server: pG, [14:50:14]CommunicateWithHost lk.salyk.kg:30040 [14:50:14]ConnectInit lk.salyk.kg [14:50:14]written 0, free lines is 4095 [14:50:14]Connected sock=11 [14:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B6 13 04 01 0A CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 2A 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AC 77 00 00 35 04 06 00 20 91 7E DE B1 8C F7 6E 8B 6D D9 94 DC E0 [14:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4A 97 47 00 C0 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 32 30 39 34 32 31 39 10 04 04 00 AC 77 00 00 F4 03 04 00 AA 14 16 67 B6 04 01 00 00 B4 D2 F1 EF 5F ED 68 77 [14:50:15]CommunicateWithHost err = 0 [14:50:15]CheckOFDResponse [14:50:15]1017 (14) - 77093643461234 [14:50:15]1041 (16) - 0000000002094219 [14:50:15]1040 (4) - 30636 [14:50:15]1012 (4) - 21.10.2024 08:45 [14:50:15]1206 (1) - 0 [14:50:15]OFD Sender: Remove packet 30636 [14:50:15]ProducePacketName [14:50:15]name=ofd_packets/00030636 [14:50:15]NVStorageDeleteData [14:50:15]Write to MH i2c: 01 00 00 C0 45 05 [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: 01 07 00 C0 45 00 00 00 00 00 EF 0C 07 [14:50:15]RasterBufferAndPrint [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]line [14:50:15]written 0, free lines is 3317 [14:50:15]MH_Cut [14:50:15]Write to MH i2c: D1 01 00 C7 45 01 DE [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 01 00 [14:50:15]MH_I2C_Read... [14:50:15]Read from MH i2c: D1 01 00 C7 45 00 DD [14:50:15]Write to MH i2c: 01 00 00 C8 45 0D [14:50:15]Write i2c OK [14:50:15]MH_I2C_Read... [14:50:15]OFD Sender: No OFD packet to send [14:50:15]*** Cut start [14:50:15]*** Partial cut [14:50:15]*** CUTSNS_PIN = 1 [14:50:15]*** CUTSNS_PIN = 0 [14:50:16]*** Brake cut motor [14:50:16]Read from MH i2c: 01 [14:50:16]MH_I2C_Read... [14:50:16]*** Stop cut motor [14:50:16]*** Cut end [14:50:16]Read from MH i2c: 01 07 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: 01 07 00 C8 45 00 00 00 00 00 FF 0F 22 [14:50:16]process_action close_receipt done [14:50:16]requested_data is exist [14:50:16]produce_requested_data [14:50:16]requested_item fm.sn is exist - process it [14:50:16]wFMCommunicate request_size=4 [14:50:16]MH_SAM_APDU [14:50:16]CAPDU: 80 11 00 00 [14:50:16]Write to MH i2c: E2 08 00 C9 45 80 11 00 00 00 00 00 00 88 [14:50:16]Write i2c OK [14:50:16]MH_I2C_Read... [14:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:16]Read from MH i2c: E2 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 17 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 17 00 C9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [14:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:50:16]wFMCommunicate OK [14:50:16]requested_item fd.num is exist - process it [14:50:16]SAM_PROTO_GetFieldsCounters [14:50:16]wFMCommunicate request_size=4 [14:50:16]MH_SAM_APDU [14:50:16]CAPDU: 80 13 00 00 [14:50:16]Write to MH i2c: E2 08 00 CA 45 80 13 00 00 00 00 00 00 8B [14:50:16]Write i2c OK [14:50:16]MH_I2C_Read... [14:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:16]Read from MH i2c: E2 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 62 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 62 00 CA 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 77 00 00 0E 04 04 00 73 00 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 D6 [14:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:16]wFMCommunicate OK [14:50:16]SAM_PROTO_GetFieldsCounters done [14:50:16]requested_item shift.num is exist - process it [14:50:16]requested_item shift.opened is exist - process it [14:50:16]req_shift_opened [14:50:16]FM_GetShiftState [14:50:16]SAM_PROTO_GetShiftState [14:50:16]wFMCommunicate request_size=4 [14:50:16]MH_SAM_APDU [14:50:16]CAPDU: 80 13 01 00 [14:50:16]Write to MH i2c: E2 08 00 CB 45 80 13 01 00 00 00 00 00 8D [14:50:16]Write i2c OK [14:50:16]MH_I2C_Read... [14:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:16]Read from MH i2c: E2 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 0E 00 [14:50:16]MH_I2C_Read... [14:50:16]Read from MH i2c: E2 0E 00 CB 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 09 [14:50:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:50:16]wFMCommunicate OK [14:50:16]SAM_PROTO_GetShiftState done [14:50:16]FM_GetShiftState done [14:50:16]req_shift_opened done [14:50:16]requested_item shift.open_date is exist - process it [14:50:16]req_shift_open_date [14:50:16]req_shift_open_date done [14:50:16]produce_requested_data done [14:50:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30636,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:50:16]process_action_free close_receipt [14:50:16]json_value_free [14:50:16]json_value_free done [14:50:16]process_json_proto returns [14:50:16]Send response to host [14:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30636,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:50:16]free response buf [14:50:16]execute_script done [14:50:16]execute_script returns [14:50:16]free content buf [14:50:16]Sock 9.Close socket [14:50:16]Sock 9.Thread stoped [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:53]accept exits with 7 [14:52:53]New connection [14:52:53]New thread 3067489636 created [14:52:53]Thread 3067346276 joined [14:52:53]Waiting for new connection... [14:52:53] Sock 7.Parse request [14:52:53]Sock 7.Check first char [14:52:53]Sock 7.First char is OK [14:52:53]request: POST /json_proto HTTP/1.0 [14:52:53]Method: POST [14:52:53]URL: /json_proto [14:52:53]Method is POST - this is cgi request [14:52:53]url: /json_proto [14:52:53]query_string will be loaded in cgi processing [14:52:53]execute_cgi json_proto POST (null) [14:52:53]execute_cgi path=json_proto method=POST [14:52:53]POST find Content-Length [14:52:53]Host: 172.17.51.3:8080 [14:52:53]Content-Length: 677 [14:52:53]Content-Type: application/json [14:52:53] [14:52:53]POST finish read [14:52:53]Found Content-Length = 677 [14:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:53]execute_script... [14:52:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:52:53]POST & json_proto [14:52:53]process_json_proto [14:52:53]json parsed OK: [14:52:53]protocol is kg_v1.0 [14:52:53]action value=close_receipt [14:52:53]process_action close_receipt [14:52:53]cmd_close_receipt [14:52:53]MH_GetDate [14:52:53]Write to MH i2c: F0 00 00 CC 45 00 [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: F0 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: F0 09 00 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: F0 09 00 CC 45 00 CB 6A 16 67 04 C1 95 66 7B [14:52:53]GetLastDocTimeStamp 1729522218 [14:52:53]current date 1729522379 [14:52:53]FM_GetShiftState [14:52:53]SAM_PROTO_GetShiftState [14:52:53]wFMCommunicate request_size=4 [14:52:53]MH_SAM_APDU [14:52:53]CAPDU: 80 13 01 00 [14:52:53]Write to MH i2c: E2 08 00 CD 45 80 13 01 00 00 00 00 00 8F [14:52:53]Write i2c OK [14:52:53]MH_I2C_Read... [14:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:53]Read from MH i2c: E2 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: E2 0E 00 [14:52:53]MH_I2C_Read... [14:52:53]Read from MH i2c: E2 0E 00 CD 45 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0B [14:52:53]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:52:53]wFMCommunicate OK [14:52:53]SAM_PROTO_GetShiftState done [14:52:53]FM_GetShiftState done [14:52:53]opened in 1729471058 [14:52:53]opened+sec_in_day 1729557458 [14:52:53]quantity*price = 50041 [14:52:53]sum+1 = 50042 [14:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 134 21.10.2024 14:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30637 ФПД: 184137813261177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145259&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30637&fm=184137813261177&tin=02508201610067®Number=0000000000186857&sum=50000 [14:52:54]StoreToDocumentArchive [14:52:54]shift 115 fd 30637 [14:52:54]save to /storage/0115/doc_00030637 [14:52:54]save last doc name /storage/0115/doc_00030637 to /storage/kkm_last_doc_name [14:52:54]save OK [14:52:54]Clear old archive folders... [14:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:54]tlvbuf is 01DD7470 [14:52:54]SAM_PROTO_ClearQueue [14:52:54]wFMCommunicate request_size=4 [14:52:54]MH_SAM_APDU [14:52:54]CAPDU: 80 09 00 00 [14:52:54]Write to MH i2c: E2 08 00 DA 45 80 09 00 00 00 00 00 00 91 [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:54]Read from MH i2c: E2 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 03 00 [14:52:54]MH_I2C_Read... [14:52:54]Read from MH i2c: E2 03 00 DA 45 00 90 00 93 [14:52:54]RAPDU: 90 00 [14:52:54]wFMCommunicate OK [14:52:54]SAM_PROTO_ClearQueue done [14:52:54]KKMCreateOFDPacket [14:52:54]OFDProtocolAddRootSTLVToBuf [14:52:54]FM_MakeSignedData [14:52:54]FM_MakeSignedData [14:52:54]SAM_PROTO_SignData [14:52:54]wFMCommunicate request_size=4 [14:52:54]MH_SAM_APDU [14:52:54]CAPDU: 80 0D 01 02 [14:52:54]Write to MH i2c: E2 08 00 DB 45 80 0D 01 02 00 00 00 00 99 [14:52:54]Write i2c OK [14:52:54]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 DB 45 00 90 00 94 [14:52:55]RAPDU: 90 00 [14:52:55]wFMCommunicate OK [14:52:55]wFMCommunicate request_size=255 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 77 00 00 35 04 06 00 A7 [14:52:55]Write to MH i2c: E2 02 01 DC 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 77 00 00 35 04 06 00 A7 00 00 A0 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 DC 45 00 90 00 95 [14:52:55]RAPDU: 90 00 [14:52:55]wFMCommunicate OK [14:52:55]wFMCommunicate request_size=10 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 0D 02 02 05 78 EC F2 FB 79 [14:52:55]Write to MH i2c: E2 0D 00 DD 45 80 0D 02 02 05 00 78 EC F2 FB 79 00 00 70 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 03 00 DD 45 00 90 00 96 [14:52:55]RAPDU: 90 00 [14:52:55]wFMCommunicate OK [14:52:55]wFMCommunicate request_size=4 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 0D 03 02 [14:52:55]Write to MH i2c: E2 08 00 DE 45 80 0D 03 02 00 00 00 00 9E [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0B 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 0B 00 DE 45 00 5B EF E6 3F A1 2A 93 D6 90 00 42 [14:52:55]RAPDU: 5B EF E6 3F A1 2A 93 D6 90 00 [14:52:55]wFMCommunicate OK [14:52:55]SAM_PROTO_SignData done [14:52:55]FM_MakeSignedData done [14:52:55]CreateOFDProtocolMessage [14:52:55]wFMCommunicate request_size=4 [14:52:55]MH_SAM_APDU [14:52:55]CAPDU: 80 11 00 00 [14:52:55]Write to MH i2c: E2 08 00 DF 45 80 11 00 00 00 00 00 00 9E [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:55]Read from MH i2c: E2 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 17 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: E2 17 00 DF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [14:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:52:55]wFMCommunicate OK [14:52:55]CreateOFDProtocolMessage done [14:52:55]OFDSenderStorePacket 30637 [14:52:55]StoreOFDPacket docnum=30637 [14:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 33 30 07 01 63 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 77 00 00 35 04 06 00 A7 78 EC F2 FB 79 5B EF E6 3F A1 2A 93 D6 [14:52:55]CheckFolder [14:52:55]dirname=/storage/ofd_packets [14:52:55]CheckFolder done [14:52:55]ProducePacketName [14:52:55]name=ofd_packets/00030637 [14:52:55]NVStorageSaveData ofd_packets/00030637 [14:52:55]File name is /storage/ofd_packets/00030637 [14:52:55]Write 301 bytes [14:52:55]NVStorageSaveData done [14:52:55]OFDSenderStorePacket done [14:52:55]KKMCreateOFDPacket done [14:52:55]NVStorageSaveData kkm_last_timestamp [14:52:55]File name is /storage/kkm_last_timestamp [14:52:55]Write 4 bytes [14:52:55]NVStorageSaveData done [14:52:55]ExternCall_PrintAddStr [14:52:55]wPrintStart [14:52:55]Write to MH i2c: 01 00 00 E0 45 25 [14:52:55]Write i2c OK [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: 01 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: 01 07 00 [14:52:55]MH_I2C_Read... [14:52:55]Read from MH i2c: 01 07 00 E0 45 00 00 00 00 00 FF 0F 3A [14:52:55]RasterBufferAndPrint [14:52:55]line Счет N : (1)343046 [14:52:55]line ИНН: 02508201610067 [14:52:55]line Контрольно-Кассовый Чек [14:52:55]line ПРОДАЖА [14:52:55]line ТРК (МРК, ГНК) : 53 [14:52:55]line Товар: 2710124130 [14:52:55]line Аи-92-К-2 [14:52:55]line 7.480 * 66.90 [14:52:55]line = 500.41 [14:52:55]line НДС 12% НСП 1% [14:52:55]line > о реализуемом товаре [14:52:55]line ОКРУГЛЕНИЕ: -0.41 [14:52:55]line ИТОГО: 500.00 [14:52:55]line Внесено: 500.00 [14:52:55]line СДАЧА: 0.00 [14:52:55]line НСП 1% : 4.43 [14:52:55]line НДС 12% : 53.14 [14:52:55]line Наличными: 500.00 [14:52:55]line Безнал.: 0.00 [14:52:55]line Место: АЗС № 78 "Партнер Нефть" [14:52:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:52:55]line СНО: Общий режим [14:52:55]line Чек 134 21.10.2024 14:52 [14:52:55]line Смена: 115 ФФД: 1.0 [14:52:55]line ЗНМ: 0300000137 [14:52:55]line РНМ: 0000000000186857 [14:52:55]line Версия ККМ: v1.0 [14:52:55]line ФМ: 0000000002094219 [14:52:55]line ФД: 30637 [14:52:55]line ФПД: 184137813261177 [14:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145259&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30637&fm=184137813261177&tin=02508201610067®Number=0000000000186857&sum=50000 [14:52:55]OFD Sender: Processing packet 30637 [packets to send 10, broken 9] [14:52:55]ProducePacketName [14:52:55]name=ofd_packets/00030637 [14:52:55]OFD Sender: To server: pG, [14:52:55]CommunicateWithHost lk.salyk.kg:30040 [14:52:55]ConnectInit lk.salyk.kg [14:52:55]written 0, free lines is 4095 [14:52:55]Connected sock=10 [14:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 33 30 07 01 63 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 CB 6A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AD 77 00 00 35 04 06 00 A7 78 EC F2 FB 79 5B EF E6 3F A1 2A 93 D6 [14:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 11 63 47 00 6F 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 32 30 39 34 32 31 39 10 04 04 00 AD 77 00 00 F4 03 04 00 4B 15 16 67 B6 04 01 00 00 84 EA 39 BC 9D 84 EB 33 [14:52:56]CommunicateWithHost err = 0 [14:52:56]CheckOFDResponse [14:52:56]1017 (14) - 77093643461234 [14:52:56]1041 (16) - 0000000002094219 [14:52:56]1040 (4) - 30637 [14:52:56]1012 (4) - 21.10.2024 08:48 [14:52:56]1206 (1) - 0 [14:52:56]OFD Sender: Remove packet 30637 [14:52:56]ProducePacketName [14:52:56]name=ofd_packets/00030637 [14:52:56]NVStorageDeleteData [14:52:56]Write to MH i2c: 01 00 00 0B 46 51 [14:52:56]Write i2c OK [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: 01 [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: 01 07 00 [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: 01 07 00 0B 46 00 00 00 00 00 EF 0C 53 [14:52:56]RasterBufferAndPrint [14:52:56]line [14:52:56]line [14:52:56]line [14:52:56]line [14:52:56]line [14:52:56]written 0, free lines is 3317 [14:52:56]MH_Cut [14:52:56]Write to MH i2c: D1 01 00 12 46 01 2A [14:52:56]Write i2c OK [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: D1 [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: D1 01 00 [14:52:56]MH_I2C_Read... [14:52:56]Read from MH i2c: D1 01 00 12 46 00 29 [14:52:56]Write to MH i2c: 01 00 00 13 46 59 [14:52:56]Write i2c OK [14:52:56]MH_I2C_Read... [14:52:56]OFD Sender: No OFD packet to send [14:52:56]*** Cut start [14:52:56]*** Partial cut [14:52:56]*** CUTSNS_PIN = 1 [14:52:57]*** CUTSNS_PIN = 0 [14:52:57]*** Brake cut motor [14:52:57]Read from MH i2c: 01 [14:52:57]MH_I2C_Read... [14:52:57]*** Stop cut motor [14:52:57]*** Cut end [14:52:57]Read from MH i2c: 01 07 00 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: 01 07 00 13 46 00 00 00 00 00 FF 0F 6E [14:52:57]process_action close_receipt done [14:52:57]requested_data is exist [14:52:57]produce_requested_data [14:52:57]requested_item fm.sn is exist - process it [14:52:57]wFMCommunicate request_size=4 [14:52:57]MH_SAM_APDU [14:52:57]CAPDU: 80 11 00 00 [14:52:57]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [14:52:57]Write i2c OK [14:52:57]MH_I2C_Read... [14:52:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:57]Read from MH i2c: E2 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 17 00 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [14:52:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:52:57]wFMCommunicate OK [14:52:57]requested_item fd.num is exist - process it [14:52:57]SAM_PROTO_GetFieldsCounters [14:52:57]wFMCommunicate request_size=4 [14:52:57]MH_SAM_APDU [14:52:57]CAPDU: 80 13 00 00 [14:52:57]Write to MH i2c: E2 08 00 15 46 80 13 00 00 00 00 00 00 D7 [14:52:57]Write i2c OK [14:52:57]MH_I2C_Read... [14:52:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:57]Read from MH i2c: E2 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 62 00 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 62 00 15 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 77 00 00 0E 04 04 00 73 00 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 26 [14:52:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:57]wFMCommunicate OK [14:52:57]SAM_PROTO_GetFieldsCounters done [14:52:57]requested_item shift.num is exist - process it [14:52:57]requested_item shift.opened is exist - process it [14:52:57]req_shift_opened [14:52:57]FM_GetShiftState [14:52:57]SAM_PROTO_GetShiftState [14:52:57]wFMCommunicate request_size=4 [14:52:57]MH_SAM_APDU [14:52:57]CAPDU: 80 13 01 00 [14:52:57]Write to MH i2c: E2 08 00 16 46 80 13 01 00 00 00 00 00 D9 [14:52:57]Write i2c OK [14:52:57]MH_I2C_Read... [14:52:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:57]Read from MH i2c: E2 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 0E 00 [14:52:57]MH_I2C_Read... [14:52:57]Read from MH i2c: E2 0E 00 16 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 55 [14:52:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:52:57]wFMCommunicate OK [14:52:57]SAM_PROTO_GetShiftState done [14:52:57]FM_GetShiftState done [14:52:57]req_shift_opened done [14:52:57]requested_item shift.open_date is exist - process it [14:52:57]req_shift_open_date [14:52:57]req_shift_open_date done [14:52:57]produce_requested_data done [14:52:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30637,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:52:57]process_action_free close_receipt [14:52:57]json_value_free [14:52:57]json_value_free done [14:52:57]process_json_proto returns [14:52:57]Send response to host [14:52:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30637,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:52:57]free response buf [14:52:57]execute_script done [14:52:57]execute_script returns [14:52:57]free content buf [14:52:57]Sock 7.Close socket [14:52:57]Sock 7.Thread stoped [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:51]OFD Sender: No OFD packet to send [14:53:52]accept exits with 9 [14:53:52]New connection [14:53:52]New thread 3067346276 created [14:53:52]Thread 3067489636 joined [14:53:52]Waiting for new connection... [14:53:52] Sock 9.Parse request [14:53:52]Sock 9.Check first char [14:53:52]Sock 9.First char is OK [14:53:52]request: POST /json_proto HTTP/1.0 [14:53:52]Method: POST [14:53:52]URL: /json_proto [14:53:52]Method is POST - this is cgi request [14:53:52]url: /json_proto [14:53:52]query_string will be loaded in cgi processing [14:53:52]execute_cgi json_proto POST (null) [14:53:52]execute_cgi path=json_proto method=POST [14:53:52]POST find Content-Length [14:53:52]Host: 172.17.51.3:8080 [14:53:52]Content-Length: 678 [14:53:52]Content-Type: application/json [14:53:52] [14:53:52]POST finish read [14:53:52]Found Content-Length = 678 [14:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:52]execute_script... [14:53:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:52]POST & json_proto [14:53:52]process_json_proto [14:53:52]json parsed OK: [14:53:52]protocol is kg_v1.0 [14:53:52]action value=close_receipt [14:53:52]process_action close_receipt [14:53:52]cmd_close_receipt [14:53:52]MH_GetDate [14:53:52]Write to MH i2c: F0 00 00 17 46 4C [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 09 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: F0 09 00 17 46 00 05 6B 16 67 04 C1 95 66 02 [14:53:52]GetLastDocTimeStamp 1729522379 [14:53:52]current date 1729522437 [14:53:52]FM_GetShiftState [14:53:52]SAM_PROTO_GetShiftState [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 01 00 [14:53:52]Write to MH i2c: E2 08 00 18 46 80 13 01 00 00 00 00 00 DB [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 18 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 57 [14:53:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetShiftState done [14:53:52]FM_GetShiftState done [14:53:52]opened in 1729471058 [14:53:52]opened+sec_in_day 1729557458 [14:53:52]quantity*price = 67033 [14:53:52]sum+1 = 67035 [14:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 135 21.10.2024 14:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30638 ФПД: 200011192219531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30638&fm=200011192219531&tin=02508201610067®Number=0000000000186857&sum=67000 [14:53:53]StoreToDocumentArchive [14:53:53]shift 115 fd 30638 [14:53:53]save to /storage/0115/doc_00030638 [14:53:53]save last doc name /storage/0115/doc_00030638 to /storage/kkm_last_doc_name [14:53:53]save OK [14:53:53]Clear old archive folders... [14:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:53]tlvbuf is 01F4B770 [14:53:53]SAM_PROTO_ClearQueue [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 09 00 00 [14:53:53]Write to MH i2c: E2 08 00 25 46 80 09 00 00 00 00 00 00 DD [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 25 46 00 90 00 DF [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]SAM_PROTO_ClearQueue done [14:53:53]KKMCreateOFDPacket [14:53:53]OFDProtocolAddRootSTLVToBuf [14:53:53]FM_MakeSignedData [14:53:53]FM_MakeSignedData [14:53:53]SAM_PROTO_SignData [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 01 02 [14:53:53]Write to MH i2c: E2 08 00 26 46 80 0D 01 02 00 00 00 00 E5 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 26 46 00 90 00 E0 [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]wFMCommunicate request_size=255 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 05 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 77 00 00 35 04 06 00 B5 [14:53:53]Write to MH i2c: E2 02 01 27 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 05 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 77 00 00 35 04 06 00 B5 00 00 D2 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 27 46 00 90 00 E1 [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]wFMCommunicate request_size=10 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 02 02 05 E8 BC 10 37 8B [14:53:53]Write to MH i2c: E2 0D 00 28 46 80 0D 02 02 05 00 E8 BC 10 37 8B 00 00 68 [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:53]Read from MH i2c: E2 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 [14:53:53]MH_I2C_Read... [14:53:53]Read from MH i2c: E2 03 00 28 46 00 90 00 E2 [14:53:53]RAPDU: 90 00 [14:53:53]wFMCommunicate OK [14:53:53]wFMCommunicate request_size=4 [14:53:53]MH_SAM_APDU [14:53:53]CAPDU: 80 0D 03 02 [14:53:53]Write to MH i2c: E2 08 00 29 46 80 0D 03 02 00 00 00 00 EA [14:53:53]Write i2c OK [14:53:53]MH_I2C_Read... [14:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 0B 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 0B 00 29 46 00 85 2F A3 F9 3A 95 1D 63 90 00 8A [14:53:54]RAPDU: 85 2F A3 F9 3A 95 1D 63 90 00 [14:53:54]wFMCommunicate OK [14:53:54]SAM_PROTO_SignData done [14:53:54]FM_MakeSignedData done [14:53:54]CreateOFDProtocolMessage [14:53:54]wFMCommunicate request_size=4 [14:53:54]MH_SAM_APDU [14:53:54]CAPDU: 80 11 00 00 [14:53:54]Write to MH i2c: E2 08 00 2A 46 80 11 00 00 00 00 00 00 EA [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:54]Read from MH i2c: E2 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 17 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: E2 17 00 2A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [14:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:53:54]wFMCommunicate OK [14:53:54]CreateOFDProtocolMessage done [14:53:54]OFDSenderStorePacket 30638 [14:53:54]StoreOFDPacket docnum=30638 [14:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CC 4B 07 01 8C 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 05 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 77 00 00 35 04 06 00 B5 E8 BC 10 37 8B 85 2F A3 F9 3A 95 1D 63 [14:53:54]CheckFolder [14:53:54]dirname=/storage/ofd_packets [14:53:54]CheckFolder done [14:53:54]ProducePacketName [14:53:54]name=ofd_packets/00030638 [14:53:54]NVStorageSaveData ofd_packets/00030638 [14:53:54]File name is /storage/ofd_packets/00030638 [14:53:54]Write 301 bytes [14:53:54]NVStorageSaveData done [14:53:54]OFDSenderStorePacket done [14:53:54]KKMCreateOFDPacket done [14:53:54]NVStorageSaveData kkm_last_timestamp [14:53:54]File name is /storage/kkm_last_timestamp [14:53:54]Write 4 bytes [14:53:54]NVStorageSaveData done [14:53:54]ExternCall_PrintAddStr [14:53:54]wPrintStart [14:53:54]Write to MH i2c: 01 00 00 2B 46 71 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 2B 46 00 00 00 00 00 FF 0F 86 [14:53:54]RasterBufferAndPrint [14:53:54]line Счет N : (1)343047 [14:53:54]line ИНН: 02508201610067 [14:53:54]line Контрольно-Кассовый Чек [14:53:54]line ПРОДАЖА [14:53:54]line ТРК (МРК, ГНК) : 33 [14:53:54]line Товар: 2710124130 [14:53:54]line Аи-92-К-2 [14:53:54]line 10.020 * 66.90 [14:53:54]line = 670.34 [14:53:54]line НДС 12% НСП 1% [14:53:54]line > о реализуемом товаре [14:53:54]line ОКРУГЛЕНИЕ: -0.34 [14:53:54]line ИТОГО: 670.00 [14:53:54]line Внесено: 670.00 [14:53:54]line СДАЧА: 0.00 [14:53:54]line НСП 1% : 5.93 [14:53:54]line НДС 12% : 71.19 [14:53:54]line Наличными: 670.00 [14:53:54]line Безнал.: 0.00 [14:53:54]line Место: АЗС № 78 "Партнер Нефть" [14:53:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:53:54]line СНО: Общий режим [14:53:54]line Чек 135 21.10.2024 14:53 [14:53:54]line Смена: 115 ФФД: 1.0 [14:53:54]line ЗНМ: 0300000137 [14:53:54]line РНМ: 0000000000186857 [14:53:54]line Версия ККМ: v1.0 [14:53:54]line ФМ: 0000000002094219 [14:53:54]line ФД: 30638 [14:53:54]line ФПД: 200011192219531 [14:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145357&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30638&fm=200011192219531&tin=02508201610067®Number=0000000000186857&sum=67000 [14:53:54]OFD Sender: Processing packet 30638 [packets to send 10, broken 9] [14:53:54]ProducePacketName [14:53:54]name=ofd_packets/00030638 [14:53:54]OFD Sender: To server: pG, [14:53:54]CommunicateWithHost lk.salyk.kg:30040 [14:53:54]ConnectInit lk.salyk.kg [14:53:54]written 0, free lines is 4095 [14:53:54]Connected sock=10 [14:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 CC 4B 07 01 8C 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 05 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AE 77 00 00 35 04 06 00 B5 E8 BC 10 37 8B 85 2F A3 F9 3A 95 1D 63 [14:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 13 C4 47 00 58 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 32 30 39 34 32 31 39 10 04 04 00 AE 77 00 00 F4 03 04 00 86 15 16 67 B6 04 01 00 00 7B D6 B7 53 F0 FB 33 BA [14:53:54]CommunicateWithHost err = 0 [14:53:54]CheckOFDResponse [14:53:54]1017 (14) - 77093643461234 [14:53:54]1041 (16) - 0000000002094219 [14:53:54]1040 (4) - 30638 [14:53:54]1012 (4) - 21.10.2024 08:49 [14:53:54]1206 (1) - 0 [14:53:54]OFD Sender: Remove packet 30638 [14:53:54]ProducePacketName [14:53:54]name=ofd_packets/00030638 [14:53:54]NVStorageDeleteData [14:53:54]Write to MH i2c: 01 00 00 56 46 9C [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: 01 07 00 56 46 00 00 00 00 00 F4 0C A3 [14:53:54]RasterBufferAndPrint [14:53:54]line [14:53:54]line [14:53:54]line [14:53:54]line [14:53:54]line [14:53:54]written 0, free lines is 3323 [14:53:54]MH_Cut [14:53:54]Write to MH i2c: D1 01 00 5D 46 01 75 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: D1 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: D1 01 00 [14:53:54]MH_I2C_Read... [14:53:54]Read from MH i2c: D1 01 00 5D 46 00 74 [14:53:54]Write to MH i2c: 01 00 00 5E 46 A4 [14:53:54]Write i2c OK [14:53:54]MH_I2C_Read... [14:53:55]OFD Sender: No OFD packet to send [14:53:55]*** Cut start [14:53:55]*** Partial cut [14:53:55]*** CUTSNS_PIN = 1 [14:53:55]*** CUTSNS_PIN = 0 [14:53:55]*** Brake cut motor [14:53:56]Read from MH i2c: 01 [14:53:56]MH_I2C_Read... [14:53:56]*** Stop cut motor [14:53:56]*** Cut end [14:53:56]Read from MH i2c: 01 07 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: 01 07 00 5E 46 00 00 00 00 00 FF 0F B9 [14:53:56]process_action close_receipt done [14:53:56]requested_data is exist [14:53:56]produce_requested_data [14:53:56]requested_item fm.sn is exist - process it [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 11 00 00 [14:53:56]Write to MH i2c: E2 08 00 5F 46 80 11 00 00 00 00 00 00 1F [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 17 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 17 00 5F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6D [14:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:53:56]wFMCommunicate OK [14:53:56]requested_item fd.num is exist - process it [14:53:56]SAM_PROTO_GetFieldsCounters [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 13 00 00 [14:53:56]Write to MH i2c: E2 08 00 60 46 80 13 00 00 00 00 00 00 22 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 62 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 62 00 60 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 77 00 00 0E 04 04 00 73 00 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 75 [14:53:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:53:56]wFMCommunicate OK [14:53:56]SAM_PROTO_GetFieldsCounters done [14:53:56]requested_item shift.num is exist - process it [14:53:56]requested_item shift.opened is exist - process it [14:53:56]req_shift_opened [14:53:56]FM_GetShiftState [14:53:56]SAM_PROTO_GetShiftState [14:53:56]wFMCommunicate request_size=4 [14:53:56]MH_SAM_APDU [14:53:56]CAPDU: 80 13 01 00 [14:53:56]Write to MH i2c: E2 08 00 61 46 80 13 01 00 00 00 00 00 24 [14:53:56]Write i2c OK [14:53:56]MH_I2C_Read... [14:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:56]Read from MH i2c: E2 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 [14:53:56]MH_I2C_Read... [14:53:56]Read from MH i2c: E2 0E 00 61 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A0 [14:53:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:53:56]wFMCommunicate OK [14:53:56]SAM_PROTO_GetShiftState done [14:53:56]FM_GetShiftState done [14:53:56]req_shift_opened done [14:53:56]requested_item shift.open_date is exist - process it [14:53:56]req_shift_open_date [14:53:56]req_shift_open_date done [14:53:56]produce_requested_data done [14:53:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30638,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:53:56]process_action_free close_receipt [14:53:56]json_value_free [14:53:56]json_value_free done [14:53:56]process_json_proto returns [14:53:56]Send response to host [14:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30638,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:53:56]free response buf [14:53:56]execute_script done [14:53:56]execute_script returns [14:53:56]free content buf [14:53:56]Sock 9.Close socket [14:53:56]Sock 9.Thread stoped [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:39]accept exits with 7 [14:56:39]New connection [14:56:39]New thread 3067489636 created [14:56:39]Thread 3067346276 joined [14:56:39]Waiting for new connection... [14:56:39] Sock 7.Parse request [14:56:39]Sock 7.Check first char [14:56:39]Sock 7.First char is OK [14:56:39]request: POST /json_proto HTTP/1.0 [14:56:39]Method: POST [14:56:39]URL: /json_proto [14:56:39]Method is POST - this is cgi request [14:56:39]url: /json_proto [14:56:39]query_string will be loaded in cgi processing [14:56:39]execute_cgi json_proto POST (null) [14:56:39]execute_cgi path=json_proto method=POST [14:56:39]POST find Content-Length [14:56:39]Host: 172.17.51.3:8080 [14:56:39]Content-Length: 682 [14:56:39]Content-Type: application/json [14:56:39] [14:56:39]POST finish read [14:56:39]Found Content-Length = 682 [14:56:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:39]execute_script... [14:56:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:39]POST & json_proto [14:56:39]process_json_proto [14:56:39]json parsed OK: [14:56:39]protocol is kg_v1.0 [14:56:39]action value=close_receipt [14:56:39]process_action close_receipt [14:56:39]cmd_close_receipt [14:56:39]MH_GetDate [14:56:39]Write to MH i2c: F0 00 00 62 46 97 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: F0 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: F0 09 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: F0 09 00 62 46 00 AC 6B 16 67 04 C1 95 66 F4 [14:56:39]GetLastDocTimeStamp 1729522437 [14:56:39]current date 1729522604 [14:56:39]FM_GetShiftState [14:56:39]SAM_PROTO_GetShiftState [14:56:39]wFMCommunicate request_size=4 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 13 01 00 [14:56:39]Write to MH i2c: E2 08 00 63 46 80 13 01 00 00 00 00 00 26 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 0E 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 0E 00 63 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A2 [14:56:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:56:39]wFMCommunicate OK [14:56:39]SAM_PROTO_GetShiftState done [14:56:39]FM_GetShiftState done [14:56:39]opened in 1729471058 [14:56:39]opened+sec_in_day 1729557458 [14:56:39]quantity*price = 100015 [14:56:39]sum+1 = 100017 [14:56:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 136 21.10.2024 14:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30639 ФПД: 75775809238406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30639&fm=75775809238406&tin=02508201610067®Number=0000000000186857&sum=100000 [14:56:40]StoreToDocumentArchive [14:56:40]shift 115 fd 30639 [14:56:40]save to /storage/0115/doc_00030639 [14:56:40]save last doc name /storage/0115/doc_00030639 to /storage/kkm_last_doc_name [14:56:40]save OK [14:56:40]Clear old archive folders... [14:56:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:40]tlvbuf is 01E7B200 [14:56:40]SAM_PROTO_ClearQueue [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 09 00 00 [14:56:40]Write to MH i2c: E2 08 00 70 46 80 09 00 00 00 00 00 00 28 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 70 46 00 90 00 2A [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_ClearQueue done [14:56:40]KKMCreateOFDPacket [14:56:40]OFDProtocolAddRootSTLVToBuf [14:56:40]FM_MakeSignedData [14:56:40]FM_MakeSignedData [14:56:40]SAM_PROTO_SignData [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 01 02 [14:56:40]Write to MH i2c: E2 08 00 71 46 80 0D 01 02 00 00 00 00 30 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]OFD Sender: No OFD packet to send [14:56:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 71 46 00 90 00 2B [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]wFMCommunicate request_size=255 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 77 00 00 35 04 06 00 44 [14:56:40]Write to MH i2c: E2 02 01 72 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 77 00 00 35 04 06 00 44 00 00 B4 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 72 46 00 90 00 2C [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]wFMCommunicate request_size=10 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 02 02 05 EA EE 31 35 86 [14:56:40]Write to MH i2c: E2 0D 00 73 46 80 0D 02 02 05 00 EA EE 31 35 86 00 00 01 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 03 00 73 46 00 90 00 2D [14:56:40]RAPDU: 90 00 [14:56:40]wFMCommunicate OK [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 0D 03 02 [14:56:40]Write to MH i2c: E2 08 00 74 46 80 0D 03 02 00 00 00 00 35 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0B 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0B 00 74 46 00 B6 12 E2 26 C5 DD 03 C6 90 00 71 [14:56:40]RAPDU: B6 12 E2 26 C5 DD 03 C6 90 00 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_SignData done [14:56:40]FM_MakeSignedData done [14:56:40]CreateOFDProtocolMessage [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 11 00 00 [14:56:40]Write to MH i2c: E2 08 00 75 46 80 11 00 00 00 00 00 00 35 [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 75 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [14:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:40]wFMCommunicate OK [14:56:40]CreateOFDProtocolMessage done [14:56:40]OFDSenderStorePacket 30639 [14:56:40]StoreOFDPacket docnum=30639 [14:56:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 3F 07 01 45 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 77 00 00 35 04 06 00 44 EA EE 31 35 86 B6 12 E2 26 C5 DD 03 C6 [14:56:40]CheckFolder [14:56:40]dirname=/storage/ofd_packets [14:56:40]CheckFolder done [14:56:40]ProducePacketName [14:56:40]name=ofd_packets/00030639 [14:56:40]NVStorageSaveData ofd_packets/00030639 [14:56:40]File name is /storage/ofd_packets/00030639 [14:56:40]Write 301 bytes [14:56:40]NVStorageSaveData done [14:56:40]OFDSenderStorePacket done [14:56:40]KKMCreateOFDPacket done [14:56:40]NVStorageSaveData kkm_last_timestamp [14:56:40]File name is /storage/kkm_last_timestamp [14:56:40]Write 4 bytes [14:56:40]NVStorageSaveData done [14:56:40]ExternCall_PrintAddStr [14:56:40]wPrintStart [14:56:40]Write to MH i2c: 01 00 00 76 46 BC [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 07 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: 01 07 00 76 46 00 00 00 00 00 FF 0F D1 [14:56:40]RasterBufferAndPrint [14:56:40]line Счет N : (1)343048 [14:56:40]line ИНН: 02508201610067 [14:56:40]line Контрольно-Кассовый Чек [14:56:40]line ПРОДАЖА [14:56:40]line ТРК (МРК, ГНК) : 33 [14:56:40]line Товар: 2710124130 [14:56:40]line Аи-92-К-2 [14:56:40]line 14.950 * 66.90 [14:56:40]line = 1000.16 [14:56:40]line НДС 12% НСП 1% [14:56:40]line > о реализуемом товаре [14:56:40]line ОКРУГЛЕНИЕ: -0.16 [14:56:40]line ИТОГО: 1000.00 [14:56:40]line Внесено: 1000.00 [14:56:40]line СДАЧА: 0.00 [14:56:40]line НСП 1% : 8.85 [14:56:40]line НДС 12% : 106.21 [14:56:40]line Наличными: 1000.00 [14:56:40]line Безнал.: 0.00 [14:56:40]line Место: АЗС № 78 "Партнер Нефть" [14:56:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:56:40]line СНО: Общий режим [14:56:40]line Чек 136 21.10.2024 14:56 [14:56:40]line Смена: 115 ФФД: 1.0 [14:56:40]line ЗНМ: 0300000137 [14:56:40]line РНМ: 0000000000186857 [14:56:40]line Версия ККМ: v1.0 [14:56:40]line ФМ: 0000000002094219 [14:56:40]line ФД: 30639 [14:56:40]line ФПД: 75775809238406 [14:56:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145644&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30639&fm=75775809238406&tin=02508201610067®Number=0000000000186857&sum=100000 [14:56:41]OFD Sender: Processing packet 30639 [packets to send 10, broken 9] [14:56:41]ProducePacketName [14:56:41]name=ofd_packets/00030639 [14:56:41]OFD Sender: To server: pG, [14:56:41]CommunicateWithHost lk.salyk.kg:30040 [14:56:41]ConnectInit lk.salyk.kg [14:56:41]written 0, free lines is 4095 [14:56:41]Connected sock=10 [14:56:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C5 3F 07 01 45 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 AC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 77 00 00 35 04 06 00 44 EA EE 31 35 86 B6 12 E2 26 C5 DD 03 C6 [14:56:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EB 65 47 00 1E 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 AF 77 00 00 F4 03 04 00 2C 16 16 67 B6 04 01 00 00 A7 17 2B A1 D2 A1 E0 3A [14:56:41]CommunicateWithHost err = 0 [14:56:41]CheckOFDResponse [14:56:41]1017 (14) - 77093643461234 [14:56:41]1041 (16) - 0000000002094219 [14:56:41]1040 (4) - 30639 [14:56:41]1012 (4) - 21.10.2024 08:51 [14:56:41]1206 (1) - 0 [14:56:41]OFD Sender: Remove packet 30639 [14:56:41]ProducePacketName [14:56:41]name=ofd_packets/00030639 [14:56:41]NVStorageDeleteData [14:56:41]Write to MH i2c: 01 00 00 A1 46 E7 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: 01 07 00 A1 46 00 00 00 00 00 F7 0C F1 [14:56:41]RasterBufferAndPrint [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]line [14:56:41]written 0, free lines is 3325 [14:56:41]MH_Cut [14:56:41]Write to MH i2c: D1 01 00 A8 46 01 C0 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 01 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: D1 01 00 A8 46 00 BF [14:56:41]Write to MH i2c: 01 00 00 A9 46 EF [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]OFD Sender: No OFD packet to send [14:56:42]*** Cut start [14:56:42]*** Partial cut [14:56:42]*** CUTSNS_PIN = 1 [14:56:42]*** CUTSNS_PIN = 0 [14:56:42]*** Brake cut motor [14:56:42]Read from MH i2c: 01 [14:56:42]MH_I2C_Read... [14:56:42]*** Stop cut motor [14:56:42]*** Cut end [14:56:42]Read from MH i2c: 01 07 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 A9 46 00 00 00 00 00 FF 0F 04 [14:56:42]process_action close_receipt done [14:56:42]requested_data is exist [14:56:42]produce_requested_data [14:56:42]requested_item fm.sn is exist - process it [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 11 00 00 [14:56:42]Write to MH i2c: E2 08 00 AA 46 80 11 00 00 00 00 00 00 6A [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 AA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B8 [14:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:42]wFMCommunicate OK [14:56:42]requested_item fd.num is exist - process it [14:56:42]SAM_PROTO_GetFieldsCounters [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 13 00 00 [14:56:42]Write to MH i2c: E2 08 00 AB 46 80 13 00 00 00 00 00 00 6D [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:43]Read from MH i2c: E2 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: E2 62 00 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: E2 62 00 AB 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 77 00 00 0E 04 04 00 73 00 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 C4 [14:56:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 AF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:43]wFMCommunicate OK [14:56:43]SAM_PROTO_GetFieldsCounters done [14:56:43]requested_item shift.num is exist - process it [14:56:43]requested_item shift.opened is exist - process it [14:56:43]req_shift_opened [14:56:43]FM_GetShiftState [14:56:43]SAM_PROTO_GetShiftState [14:56:43]wFMCommunicate request_size=4 [14:56:43]MH_SAM_APDU [14:56:43]CAPDU: 80 13 01 00 [14:56:43]Write to MH i2c: E2 08 00 AC 46 80 13 01 00 00 00 00 00 6F [14:56:43]Write i2c OK [14:56:43]MH_I2C_Read... [14:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:43]Read from MH i2c: E2 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: E2 0E 00 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: E2 0E 00 AC 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EB [14:56:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:56:43]wFMCommunicate OK [14:56:43]SAM_PROTO_GetShiftState done [14:56:43]FM_GetShiftState done [14:56:43]req_shift_opened done [14:56:43]requested_item shift.open_date is exist - process it [14:56:43]req_shift_open_date [14:56:43]req_shift_open_date done [14:56:43]produce_requested_data done [14:56:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30639,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:56:43]process_action_free close_receipt [14:56:43]json_value_free [14:56:43]json_value_free done [14:56:43]process_json_proto returns [14:56:43]Send response to host [14:56:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30639,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:56:43]free response buf [14:56:43]execute_script done [14:56:43]execute_script returns [14:56:43]free content buf [14:56:43]Sock 7.Close socket [14:56:43]Sock 7.Thread stoped [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:55]accept exits with 9 [14:56:55]New connection [14:56:55]New thread 3067346276 created [14:56:55]Thread 3067489636 joined [14:56:55]Waiting for new connection... [14:56:55] Sock 9.Parse request [14:56:55]Sock 9.Check first char [14:56:55]Sock 9.First char is OK [14:56:55]request: POST /json_proto HTTP/1.0 [14:56:55]Method: POST [14:56:55]URL: /json_proto [14:56:55]Method is POST - this is cgi request [14:56:55]url: /json_proto [14:56:55]query_string will be loaded in cgi processing [14:56:55]execute_cgi json_proto POST (null) [14:56:55]execute_cgi path=json_proto method=POST [14:56:55]POST find Content-Length [14:56:55]Host: 172.17.51.3:8080 [14:56:55]Content-Length: 677 [14:56:55]Content-Type: application/json [14:56:55] [14:56:55]POST finish read [14:56:55]Found Content-Length = 677 [14:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:55]execute_script... [14:56:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:55]POST & json_proto [14:56:55]process_json_proto [14:56:55]json parsed OK: [14:56:55]protocol is kg_v1.0 [14:56:55]action value=close_receipt [14:56:55]process_action close_receipt [14:56:55]cmd_close_receipt [14:56:55]MH_GetDate [14:56:55]Write to MH i2c: F0 00 00 AD 46 E2 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 09 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: F0 09 00 AD 46 00 BC 6B 16 67 04 C1 95 66 4F [14:56:55]GetLastDocTimeStamp 1729522604 [14:56:55]current date 1729522620 [14:56:55]FM_GetShiftState [14:56:55]SAM_PROTO_GetShiftState [14:56:55]wFMCommunicate request_size=4 [14:56:55]MH_SAM_APDU [14:56:55]CAPDU: 80 13 01 00 [14:56:55]Write to MH i2c: E2 08 00 AE 46 80 13 01 00 00 00 00 00 71 [14:56:55]Write i2c OK [14:56:55]MH_I2C_Read... [14:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:55]Read from MH i2c: E2 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 [14:56:55]MH_I2C_Read... [14:56:55]Read from MH i2c: E2 0E 00 AE 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 ED [14:56:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:56:55]wFMCommunicate OK [14:56:55]SAM_PROTO_GetShiftState done [14:56:55]FM_GetShiftState done [14:56:55]opened in 1729471058 [14:56:55]opened+sec_in_day 1729557458 [14:56:55]quantity*price = 30038 [14:56:55]sum+1 = 30039 [14:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 137 21.10.2024 14:57 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30640 ФПД: 102564481093357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30640&fm=102564481093357&tin=02508201610067®Number=0000000000186857&sum=30000 [14:56:56]StoreToDocumentArchive [14:56:56]shift 115 fd 30640 [14:56:56]save to /storage/0115/doc_00030640 [14:56:56]save last doc name /storage/0115/doc_00030640 to /storage/kkm_last_doc_name [14:56:56]save OK [14:56:56]Clear old archive folders... [14:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:56]tlvbuf is 01F55C20 [14:56:56]SAM_PROTO_ClearQueue [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 09 00 00 [14:56:56]Write to MH i2c: E2 08 00 BB 46 80 09 00 00 00 00 00 00 73 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 BB 46 00 90 00 75 [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_ClearQueue done [14:56:56]KKMCreateOFDPacket [14:56:56]OFDProtocolAddRootSTLVToBuf [14:56:56]FM_MakeSignedData [14:56:56]FM_MakeSignedData [14:56:56]SAM_PROTO_SignData [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 01 02 [14:56:56]Write to MH i2c: E2 08 00 BC 46 80 0D 01 02 00 00 00 00 7B [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 BC 46 00 90 00 76 [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=255 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 BC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 77 00 00 35 04 06 00 5D [14:56:56]Write to MH i2c: E2 02 01 BD 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 BC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 77 00 00 35 04 06 00 5D 00 00 24 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 BD 46 00 90 00 77 [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=10 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 02 02 05 48 27 76 4E ED [14:56:56]Write to MH i2c: E2 0D 00 BE 46 80 0D 02 02 05 00 48 27 76 4E ED 00 00 A8 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 03 00 BE 46 00 90 00 78 [14:56:56]RAPDU: 90 00 [14:56:56]wFMCommunicate OK [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 0D 03 02 [14:56:56]Write to MH i2c: E2 08 00 BF 46 80 0D 03 02 00 00 00 00 80 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0B 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 0B 00 BF 46 00 6E C4 15 47 7D AB 0B 2A 90 00 6C [14:56:56]RAPDU: 6E C4 15 47 7D AB 0B 2A 90 00 [14:56:56]wFMCommunicate OK [14:56:56]SAM_PROTO_SignData done [14:56:56]FM_MakeSignedData done [14:56:56]CreateOFDProtocolMessage [14:56:56]wFMCommunicate request_size=4 [14:56:56]MH_SAM_APDU [14:56:56]CAPDU: 80 11 00 00 [14:56:56]Write to MH i2c: E2 08 00 C0 46 80 11 00 00 00 00 00 00 80 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:56]Read from MH i2c: E2 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: E2 17 00 C0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [14:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:56]wFMCommunicate OK [14:56:56]CreateOFDProtocolMessage done [14:56:56]OFDSenderStorePacket 30640 [14:56:56]StoreOFDPacket docnum=30640 [14:56:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 97 07 01 84 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 BC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 77 00 00 35 04 06 00 5D 48 27 76 4E ED 6E C4 15 47 7D AB 0B 2A [14:56:56]CheckFolder [14:56:56]dirname=/storage/ofd_packets [14:56:56]CheckFolder done [14:56:56]ProducePacketName [14:56:56]name=ofd_packets/00030640 [14:56:56]NVStorageSaveData ofd_packets/00030640 [14:56:56]File name is /storage/ofd_packets/00030640 [14:56:56]Write 301 bytes [14:56:56]NVStorageSaveData done [14:56:56]OFDSenderStorePacket done [14:56:56]KKMCreateOFDPacket done [14:56:56]NVStorageSaveData kkm_last_timestamp [14:56:56]File name is /storage/kkm_last_timestamp [14:56:56]Write 4 bytes [14:56:56]NVStorageSaveData done [14:56:56]ExternCall_PrintAddStr [14:56:56]wPrintStart [14:56:56]Write to MH i2c: 01 00 00 C1 46 07 [14:56:56]Write i2c OK [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 [14:56:56]MH_I2C_Read... [14:56:56]Read from MH i2c: 01 07 00 C1 46 00 00 00 00 00 FF 0F 1C [14:56:56]RasterBufferAndPrint [14:56:56]line Счет N : (1)343049 [14:56:56]line ИНН: 02508201610067 [14:56:56]line Контрольно-Кассовый Чек [14:56:56]line ПРОДАЖА [14:56:56]line ТРК (МРК, ГНК) : 53 [14:56:56]line Товар: 2710124130 [14:56:56]line Аи-92-К-2 [14:56:56]line 4.490 * 66.90 [14:56:56]line = 300.38 [14:56:56]line НДС 12% НСП 1% [14:56:56]line > о реализуемом товаре [14:56:56]line ОКРУГЛЕНИЕ: -0.38 [14:56:56]line ИТОГО: 300.00 [14:56:56]line Внесено: 300.00 [14:56:56]line СДАЧА: 0.00 [14:56:56]line НСП 1% : 2.66 [14:56:56]line НДС 12% : 31.90 [14:56:56]line Наличными: 300.00 [14:56:56]line Безнал.: 0.00 [14:56:56]line Место: АЗС № 78 "Партнер Нефть" [14:56:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:56:56]line СНО: Общий режим [14:56:56]line Чек 137 21.10.2024 14:57 [14:56:56]line Смена: 115 ФФД: 1.0 [14:56:56]line ЗНМ: 0300000137 [14:56:56]line РНМ: 0000000000186857 [14:56:56]line Версия ККМ: v1.0 [14:56:56]line ФМ: 0000000002094219 [14:56:56]line ФД: 30640 [14:56:56]line ФПД: 102564481093357 [14:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145700&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30640&fm=102564481093357&tin=02508201610067®Number=0000000000186857&sum=30000 [14:56:57]OFD Sender: Processing packet 30640 [packets to send 10, broken 9] [14:56:57]ProducePacketName [14:56:57]name=ofd_packets/00030640 [14:56:57]OFD Sender: To server: pG, [14:56:57]CommunicateWithHost lk.salyk.kg:30040 [14:56:57]ConnectInit lk.salyk.kg [14:56:57]written 0, free lines is 4095 [14:56:57]Connected sock=10 [14:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D3 97 07 01 84 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 BC 6B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B0 77 00 00 35 04 06 00 5D 48 27 76 4E ED 6E C4 15 47 7D AB 0B 2A [14:56:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1A 32 47 00 32 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 32 30 39 34 32 31 39 10 04 04 00 B0 77 00 00 F4 03 04 00 3C 16 16 67 B6 04 01 00 00 0C 93 06 6F 29 F1 3C A1 [14:56:57]CommunicateWithHost err = 0 [14:56:57]CheckOFDResponse [14:56:57]1017 (14) - 77093643461234 [14:56:57]1041 (16) - 0000000002094219 [14:56:57]1040 (4) - 30640 [14:56:57]1012 (4) - 21.10.2024 08:52 [14:56:57]1206 (1) - 0 [14:56:57]OFD Sender: Remove packet 30640 [14:56:57]ProducePacketName [14:56:57]name=ofd_packets/00030640 [14:56:57]NVStorageDeleteData [14:56:57]Write to MH i2c: 01 00 00 EC 46 32 [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 07 00 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: 01 07 00 EC 46 00 00 00 00 00 F0 0C 35 [14:56:57]RasterBufferAndPrint [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]line [14:56:57]written 0, free lines is 3318 [14:56:57]MH_Cut [14:56:57]Write to MH i2c: D1 01 00 F3 46 01 0B [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 01 00 [14:56:57]MH_I2C_Read... [14:56:57]Read from MH i2c: D1 01 00 F3 46 00 0A [14:56:57]Write to MH i2c: 01 00 00 F4 46 3A [14:56:57]Write i2c OK [14:56:57]MH_I2C_Read... [14:56:57]OFD Sender: No OFD packet to send [14:56:58]*** Cut start [14:56:58]*** Partial cut [14:56:58]*** CUTSNS_PIN = 1 [14:56:58]*** CUTSNS_PIN = 0 [14:56:58]*** Brake cut motor [14:56:58]Read from MH i2c: 01 [14:56:58]MH_I2C_Read... [14:56:58]*** Stop cut motor [14:56:58]*** Cut end [14:56:58]Read from MH i2c: 01 07 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: 01 07 00 F4 46 00 00 00 00 00 FF 0F 4F [14:56:58]process_action close_receipt done [14:56:58]requested_data is exist [14:56:58]produce_requested_data [14:56:58]requested_item fm.sn is exist - process it [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 11 00 00 [14:56:58]Write to MH i2c: E2 08 00 F5 46 80 11 00 00 00 00 00 00 B5 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 17 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 17 00 F5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 03 [14:56:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:56:58]wFMCommunicate OK [14:56:58]requested_item fd.num is exist - process it [14:56:58]SAM_PROTO_GetFieldsCounters [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 13 00 00 [14:56:58]Write to MH i2c: E2 08 00 F6 46 80 13 00 00 00 00 00 00 B8 [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 62 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 62 00 F6 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 77 00 00 0E 04 04 00 73 00 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 13 [14:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_GetFieldsCounters done [14:56:59]requested_item shift.num is exist - process it [14:56:59]requested_item shift.opened is exist - process it [14:56:59]req_shift_opened [14:56:59]FM_GetShiftState [14:56:59]SAM_PROTO_GetShiftState [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 13 01 00 [14:56:59]Write to MH i2c: E2 08 00 F7 46 80 13 01 00 00 00 00 00 BA [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 0E 00 F7 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 36 [14:56:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_GetShiftState done [14:56:59]FM_GetShiftState done [14:56:59]req_shift_opened done [14:56:59]requested_item shift.open_date is exist - process it [14:56:59]req_shift_open_date [14:56:59]req_shift_open_date done [14:56:59]produce_requested_data done [14:56:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30640,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:56:59]process_action_free close_receipt [14:56:59]json_value_free [14:56:59]json_value_free done [14:56:59]process_json_proto returns [14:56:59]Send response to host [14:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30640,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:56:59]free response buf [14:56:59]execute_script done [14:56:59]execute_script returns [14:56:59]free content buf [14:56:59]Sock 9.Close socket [14:56:59]Sock 9.Thread stoped [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:36]accept exits with 7 [14:58:36]New connection [14:58:36]New thread 3067489636 created [14:58:36]Thread 3067346276 joined [14:58:36]Waiting for new connection... [14:58:36] Sock 7.Parse request [14:58:36]Sock 7.Check first char [14:58:36]Sock 7.First char is OK [14:58:36]request: POST /json_proto HTTP/1.0 [14:58:36]Method: POST [14:58:36]URL: /json_proto [14:58:36]Method is POST - this is cgi request [14:58:36]url: /json_proto [14:58:36]query_string will be loaded in cgi processing [14:58:36]execute_cgi json_proto POST (null) [14:58:36]execute_cgi path=json_proto method=POST [14:58:36]POST find Content-Length [14:58:36]Host: 172.17.51.3:8080 [14:58:36]Content-Length: 677 [14:58:36]Content-Type: application/json [14:58:36] [14:58:36]POST finish read [14:58:36]Found Content-Length = 677 [14:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:36]execute_script... [14:58:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:36]POST & json_proto [14:58:36]process_json_proto [14:58:36]json parsed OK: [14:58:36]protocol is kg_v1.0 [14:58:36]action value=close_receipt [14:58:36]process_action close_receipt [14:58:36]cmd_close_receipt [14:58:36]MH_GetDate [14:58:36]Write to MH i2c: F0 00 00 F8 46 2D [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: F0 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: F0 09 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: F0 09 00 F8 46 00 21 6C 16 67 04 C1 95 66 00 [14:58:36]GetLastDocTimeStamp 1729522620 [14:58:36]current date 1729522721 [14:58:36]FM_GetShiftState [14:58:36]SAM_PROTO_GetShiftState [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 13 01 00 [14:58:36]Write to MH i2c: E2 08 00 F9 46 80 13 01 00 00 00 00 00 BC [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0E 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0E 00 F9 46 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 38 [14:58:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_GetShiftState done [14:58:36]FM_GetShiftState done [14:58:36]opened in 1729471058 [14:58:36]opened+sec_in_day 1729557458 [14:58:36]quantity*price = 20003 [14:58:36]sum+1 = 20004 [14:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 138 21.10.2024 14:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30641 ФПД: 233195550120950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145841&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30641&fm=233195550120950&tin=02508201610067®Number=0000000000186857&sum=20000 [14:58:37]StoreToDocumentArchive [14:58:37]shift 115 fd 30641 [14:58:37]save to /storage/0115/doc_00030641 [14:58:37]save last doc name /storage/0115/doc_00030641 to /storage/kkm_last_doc_name [14:58:37]save OK [14:58:37]Clear old archive folders... [14:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:37]tlvbuf is 01DFF800 [14:58:37]SAM_PROTO_ClearQueue [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 09 00 00 [14:58:37]Write to MH i2c: E2 08 00 06 47 80 09 00 00 00 00 00 00 BF [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 06 47 00 90 00 C1 [14:58:37]RAPDU: 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_ClearQueue done [14:58:37]KKMCreateOFDPacket [14:58:37]OFDProtocolAddRootSTLVToBuf [14:58:37]FM_MakeSignedData [14:58:37]FM_MakeSignedData [14:58:37]SAM_PROTO_SignData [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 0D 01 02 [14:58:37]Write to MH i2c: E2 08 00 07 47 80 0D 01 02 00 00 00 00 C7 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 07 47 00 90 00 C2 [14:58:37]RAPDU: 90 00 [14:58:37]wFMCommunicate OK [14:58:37]wFMCommunicate request_size=255 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 8A 00 00 00 F4 03 04 00 21 6C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 77 00 00 35 04 06 00 D4 [14:58:37]Write to MH i2c: E2 02 01 08 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 8A 00 00 00 F4 03 04 00 21 6C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 77 00 00 35 04 06 00 D4 00 00 1D [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 08 47 00 90 00 C3 [14:58:37]RAPDU: 90 00 [14:58:37]wFMCommunicate OK [14:58:37]wFMCommunicate request_size=10 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 0D 02 02 05 17 11 ED 9B F6 [14:58:37]Write to MH i2c: E2 0D 00 09 47 80 0D 02 02 05 00 17 11 ED 9B F6 00 00 7A [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 03 00 09 47 00 90 00 C4 [14:58:37]RAPDU: 90 00 [14:58:37]wFMCommunicate OK [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 0D 03 02 [14:58:37]Write to MH i2c: E2 08 00 0A 47 80 0D 03 02 00 00 00 00 CC [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0B 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 0B 00 0A 47 00 F3 A0 92 9F CE 5E 7F 06 90 00 42 [14:58:37]RAPDU: F3 A0 92 9F CE 5E 7F 06 90 00 [14:58:37]wFMCommunicate OK [14:58:37]SAM_PROTO_SignData done [14:58:37]FM_MakeSignedData done [14:58:37]CreateOFDProtocolMessage [14:58:37]wFMCommunicate request_size=4 [14:58:37]MH_SAM_APDU [14:58:37]CAPDU: 80 11 00 00 [14:58:37]Write to MH i2c: E2 08 00 0B 47 80 11 00 00 00 00 00 00 CC [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:37]Read from MH i2c: E2 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 17 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: E2 17 00 0B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1A [14:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:58:37]wFMCommunicate OK [14:58:37]CreateOFDProtocolMessage done [14:58:37]OFDSenderStorePacket 30641 [14:58:37]StoreOFDPacket docnum=30641 [14:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 A8 07 01 3F B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 8A 00 00 00 F4 03 04 00 21 6C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 77 00 00 35 04 06 00 D4 17 11 ED 9B F6 F3 A0 92 9F CE 5E 7F 06 [14:58:37]CheckFolder [14:58:37]dirname=/storage/ofd_packets [14:58:37]CheckFolder done [14:58:37]ProducePacketName [14:58:37]name=ofd_packets/00030641 [14:58:37]NVStorageSaveData ofd_packets/00030641 [14:58:37]File name is /storage/ofd_packets/00030641 [14:58:37]Write 301 bytes [14:58:37]NVStorageSaveData done [14:58:37]OFDSenderStorePacket done [14:58:37]KKMCreateOFDPacket done [14:58:37]NVStorageSaveData kkm_last_timestamp [14:58:37]File name is /storage/kkm_last_timestamp [14:58:37]Write 4 bytes [14:58:37]NVStorageSaveData done [14:58:37]ExternCall_PrintAddStr [14:58:37]wPrintStart [14:58:37]Write to MH i2c: 01 00 00 0C 47 53 [14:58:37]Write i2c OK [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 [14:58:37]MH_I2C_Read... [14:58:37]Read from MH i2c: 01 07 00 0C 47 00 00 00 00 00 FF 0F 68 [14:58:37]RasterBufferAndPrint [14:58:37]line Счет N : (1)343050 [14:58:37]line ИНН: 02508201610067 [14:58:37]line Контрольно-Кассовый Чек [14:58:37]line ПРОДАЖА [14:58:37]line ТРК (МРК, ГНК) : 33 [14:58:37]line Товар: 2710124130 [14:58:37]line Аи-92-К-2 [14:58:37]line 2.990 * 66.90 [14:58:37]line = 200.03 [14:58:37]line НДС 12% НСП 1% [14:58:37]line > о реализуемом товаре [14:58:37]line ОКРУГЛЕНИЕ: -0.03 [14:58:37]line ИТОГО: 200.00 [14:58:37]line Внесено: 200.00 [14:58:37]line СДАЧА: 0.00 [14:58:37]line НСП 1% : 1.77 [14:58:37]line НДС 12% : 21.24 [14:58:37]line Наличными: 200.00 [14:58:37]line Безнал.: 0.00 [14:58:37]line Место: АЗС № 78 "Партнер Нефть" [14:58:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [14:58:37]line СНО: Общий режим [14:58:37]line Чек 138 21.10.2024 14:58 [14:58:37]line Смена: 115 ФФД: 1.0 [14:58:38]line ЗНМ: 0300000137 [14:58:38]line РНМ: 0000000000186857 [14:58:38]line Версия ККМ: v1.0 [14:58:38]line ФМ: 0000000002094219 [14:58:38]line ФД: 30641 [14:58:38]line ФПД: 233195550120950 [14:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145841&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30641&fm=233195550120950&tin=02508201610067®Number=0000000000186857&sum=20000 [14:58:38]OFD Sender: Processing packet 30641 [packets to send 10, broken 9] [14:58:38]ProducePacketName [14:58:38]name=ofd_packets/00030641 [14:58:38]OFD Sender: To server: pG, [14:58:38]CommunicateWithHost lk.salyk.kg:30040 [14:58:38]ConnectInit lk.salyk.kg [14:58:38]written 0, free lines is 4095 [14:58:38]Connected sock=10 [14:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 A8 07 01 3F B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 8A 00 00 00 F4 03 04 00 21 6C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 77 00 00 35 04 06 00 D4 17 11 ED 9B F6 F3 A0 92 9F CE 5E 7F 06 [14:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8D A0 47 00 47 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B1 77 00 00 F4 03 04 00 A1 16 16 67 B6 04 01 00 00 AD 18 D5 6B 27 9A DF 24 [14:58:38]CommunicateWithHost err = 0 [14:58:38]CheckOFDResponse [14:58:38]1017 (14) - 77093643461234 [14:58:38]1041 (16) - 0000000002094219 [14:58:38]1040 (4) - 30641 [14:58:38]1012 (4) - 21.10.2024 08:53 [14:58:38]1206 (1) - 0 [14:58:38]OFD Sender: Remove packet 30641 [14:58:38]ProducePacketName [14:58:38]name=ofd_packets/00030641 [14:58:38]NVStorageDeleteData [14:58:38]Write to MH i2c: 01 00 00 37 47 7E [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: 01 07 00 37 47 00 00 00 00 00 FC 0C 8D [14:58:38]RasterBufferAndPrint [14:58:38]line [14:58:38]line [14:58:38]line [14:58:38]line [14:58:38]line [14:58:38]written 0, free lines is 3330 [14:58:38]MH_Cut [14:58:38]Write to MH i2c: D1 01 00 3E 47 01 57 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: D1 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: D1 01 00 [14:58:38]MH_I2C_Read... [14:58:38]Read from MH i2c: D1 01 00 3E 47 00 56 [14:58:38]Write to MH i2c: 01 00 00 3F 47 86 [14:58:38]Write i2c OK [14:58:38]MH_I2C_Read... [14:58:38]OFD Sender: No OFD packet to send [14:58:39]*** Cut start [14:58:39]*** Partial cut [14:58:39]*** CUTSNS_PIN = 1 [14:58:39]*** CUTSNS_PIN = 0 [14:58:39]*** Brake cut motor [14:58:39]Read from MH i2c: 01 [14:58:39]MH_I2C_Read... [14:58:39]*** Stop cut motor [14:58:39]*** Cut end [14:58:39]Read from MH i2c: 01 07 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: 01 07 00 3F 47 00 00 00 00 00 FF 0F 9B [14:58:39]process_action close_receipt done [14:58:39]requested_data is exist [14:58:39]produce_requested_data [14:58:39]requested_item fm.sn is exist - process it [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 11 00 00 [14:58:39]Write to MH i2c: E2 08 00 40 47 80 11 00 00 00 00 00 00 01 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:39]Read from MH i2c: E2 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 [14:58:39]MH_I2C_Read... [14:58:39]Read from MH i2c: E2 17 00 40 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4F [14:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [14:58:39]wFMCommunicate OK [14:58:39]requested_item fd.num is exist - process it [14:58:39]SAM_PROTO_GetFieldsCounters [14:58:39]wFMCommunicate request_size=4 [14:58:39]MH_SAM_APDU [14:58:39]CAPDU: 80 13 00 00 [14:58:39]Write to MH i2c: E2 08 00 41 47 80 13 00 00 00 00 00 00 04 [14:58:39]Write i2c OK [14:58:39]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 62 00 41 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 77 00 00 0E 04 04 00 73 00 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 63 [14:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetFieldsCounters done [14:58:40]requested_item shift.num is exist - process it [14:58:40]requested_item shift.opened is exist - process it [14:58:40]req_shift_opened [14:58:40]FM_GetShiftState [14:58:40]SAM_PROTO_GetShiftState [14:58:40]wFMCommunicate request_size=4 [14:58:40]MH_SAM_APDU [14:58:40]CAPDU: 80 13 01 00 [14:58:40]Write to MH i2c: E2 08 00 42 47 80 13 01 00 00 00 00 00 06 [14:58:40]Write i2c OK [14:58:40]MH_I2C_Read... [14:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:40]Read from MH i2c: E2 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 [14:58:40]MH_I2C_Read... [14:58:40]Read from MH i2c: E2 0E 00 42 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 82 [14:58:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [14:58:40]wFMCommunicate OK [14:58:40]SAM_PROTO_GetShiftState done [14:58:40]FM_GetShiftState done [14:58:40]req_shift_opened done [14:58:40]requested_item shift.open_date is exist - process it [14:58:40]req_shift_open_date [14:58:40]req_shift_open_date done [14:58:40]produce_requested_data done [14:58:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30641,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [14:58:40]process_action_free close_receipt [14:58:40]json_value_free [14:58:40]json_value_free done [14:58:40]process_json_proto returns [14:58:40]Send response to host [14:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30641,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [14:58:40]free response buf [14:58:40]execute_script done [14:58:40]execute_script returns [14:58:40]free content buf [14:58:40]Sock 7.Close socket [14:58:40]Sock 7.Thread stoped [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:31]accept exits with 9 [15:03:31]New connection [15:03:31]New thread 3067346276 created [15:03:31]Thread 3067489636 joined [15:03:31]Waiting for new connection... [15:03:31] Sock 9.Parse request [15:03:31]Sock 9.Check first char [15:03:31]Sock 9.First char is OK [15:03:31]request: POST /json_proto HTTP/1.0 [15:03:31]Method: POST [15:03:31]URL: /json_proto [15:03:31]Method is POST - this is cgi request [15:03:31]url: /json_proto [15:03:31]query_string will be loaded in cgi processing [15:03:31]execute_cgi json_proto POST (null) [15:03:31]execute_cgi path=json_proto method=POST [15:03:31]POST find Content-Length [15:03:31]Host: 172.17.51.3:8080 [15:03:31]Content-Length: 849 [15:03:31]Content-Type: application/json [15:03:31] [15:03:31]POST finish read [15:03:31]Found Content-Length = 849 [15:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:31]execute_script... [15:03:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:31]POST & json_proto [15:03:31]process_json_proto [15:03:31]json parsed OK: [15:03:31]protocol is kg_v1.0 [15:03:31]action value=close_receipt [15:03:31]process_action close_receipt [15:03:31]cmd_close_receipt [15:03:31]MH_GetDate [15:03:31]Write to MH i2c: F0 00 00 43 47 79 [15:03:31]Write i2c OK [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: F0 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: F0 09 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: F0 09 00 43 47 00 49 6D 16 67 04 C1 95 66 75 [15:03:31]GetLastDocTimeStamp 1729522721 [15:03:31]current date 1729523017 [15:03:31]FM_GetShiftState [15:03:31]SAM_PROTO_GetShiftState [15:03:31]wFMCommunicate request_size=4 [15:03:31]MH_SAM_APDU [15:03:31]CAPDU: 80 13 01 00 [15:03:31]Write to MH i2c: E2 08 00 44 47 80 13 01 00 00 00 00 00 08 [15:03:31]Write i2c OK [15:03:31]MH_I2C_Read... [15:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:31]Read from MH i2c: E2 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 0E 00 [15:03:31]MH_I2C_Read... [15:03:31]Read from MH i2c: E2 0E 00 44 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 84 [15:03:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:03:31]wFMCommunicate OK [15:03:31]SAM_PROTO_GetShiftState done [15:03:31]FM_GetShiftState done [15:03:31]opened in 1729471058 [15:03:31]opened+sec_in_day 1729557458 [15:03:31]quantity*price = 100051 [15:03:31]sum+1 = 100052 [15:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 139 21.10.2024 15:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30642 ФПД: 111238505494997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30642&fm=111238505494997&tin=02508201610067®Number=0000000000186857&sum=100051 [15:03:32]StoreToDocumentArchive [15:03:32]shift 115 fd 30642 [15:03:32]save to /storage/0115/doc_00030642 [15:03:32]save last doc name /storage/0115/doc_00030642 to /storage/kkm_last_doc_name [15:03:32]save OK [15:03:32]Clear old archive folders... [15:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:03:32]tlvbuf is 01E08A70 [15:03:32]SAM_PROTO_ClearQueue [15:03:32]wFMCommunicate request_size=4 [15:03:32]MH_SAM_APDU [15:03:32]CAPDU: 80 09 00 00 [15:03:32]Write to MH i2c: E2 08 00 51 47 80 09 00 00 00 00 00 00 0A [15:03:32]Write i2c OK [15:03:32]MH_I2C_Read... [15:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:32]Read from MH i2c: E2 [15:03:32]MH_I2C_Read... [15:03:32]Read from MH i2c: E2 03 00 [15:03:32]MH_I2C_Read... [15:03:32]Read from MH i2c: E2 03 00 51 47 00 90 00 0C [15:03:32]RAPDU: 90 00 [15:03:32]wFMCommunicate OK [15:03:32]SAM_PROTO_ClearQueue done [15:03:32]KKMCreateOFDPacket [15:03:32]OFDProtocolAddRootSTLVToBuf [15:03:32]FM_MakeSignedData [15:03:32]FM_MakeSignedData [15:03:32]SAM_PROTO_SignData [15:03:32]wFMCommunicate request_size=4 [15:03:32]MH_SAM_APDU [15:03:32]CAPDU: 80 0D 01 02 [15:03:32]Write to MH i2c: E2 08 00 52 47 80 0D 01 02 00 00 00 00 12 [15:03:32]Write i2c OK [15:03:32]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 52 47 00 90 00 0D [15:03:33]RAPDU: 90 00 [15:03:33]wFMCommunicate OK [15:03:33]wFMCommunicate request_size=255 [15:03:33]MH_SAM_APDU [15:03:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 77 00 [15:03:33]Write to MH i2c: E2 02 01 53 47 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 77 00 00 00 2C [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 53 47 00 90 00 0E [15:03:33]RAPDU: 90 00 [15:03:33]wFMCommunicate OK [15:03:33]wFMCommunicate request_size=16 [15:03:33]MH_SAM_APDU [15:03:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 65 2B BB 9A F9 D5 [15:03:33]Write to MH i2c: E2 13 00 54 47 80 0D 02 02 0B 00 00 35 04 06 00 65 2B BB 9A F9 D5 00 00 1D [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 03 00 54 47 00 90 00 0F [15:03:33]RAPDU: 90 00 [15:03:33]wFMCommunicate OK [15:03:33]wFMCommunicate request_size=4 [15:03:33]MH_SAM_APDU [15:03:33]CAPDU: 80 0D 03 02 [15:03:33]Write to MH i2c: E2 08 00 55 47 80 0D 03 02 00 00 00 00 17 [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 0B 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 0B 00 55 47 00 31 33 E4 F9 1E 2A 3E D3 90 00 B2 [15:03:33]RAPDU: 31 33 E4 F9 1E 2A 3E D3 90 00 [15:03:33]wFMCommunicate OK [15:03:33]SAM_PROTO_SignData done [15:03:33]FM_MakeSignedData done [15:03:33]CreateOFDProtocolMessage [15:03:33]wFMCommunicate request_size=4 [15:03:33]MH_SAM_APDU [15:03:33]CAPDU: 80 11 00 00 [15:03:33]Write to MH i2c: E2 08 00 56 47 80 11 00 00 00 00 00 00 17 [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:33]Read from MH i2c: E2 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 17 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: E2 17 00 56 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 65 [15:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:33]wFMCommunicate OK [15:03:33]CreateOFDProtocolMessage done [15:03:33]OFDSenderStorePacket 30642 [15:03:33]StoreOFDPacket docnum=30642 [15:03:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 96 91 0D 01 1C 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 77 00 00 35 04 06 00 65 2B BB 9A F9 D5 31 33 E4 F9 1E 2A 3E D3 [15:03:33]CheckFolder [15:03:33]dirname=/storage/ofd_packets [15:03:33]CheckFolder done [15:03:33]ProducePacketName [15:03:33]name=ofd_packets/00030642 [15:03:33]NVStorageSaveData ofd_packets/00030642 [15:03:33]File name is /storage/ofd_packets/00030642 [15:03:33]Write 307 bytes [15:03:33]NVStorageSaveData done [15:03:33]OFDSenderStorePacket done [15:03:33]KKMCreateOFDPacket done [15:03:33]NVStorageSaveData kkm_last_timestamp [15:03:33]File name is /storage/kkm_last_timestamp [15:03:33]Write 4 bytes [15:03:33]NVStorageSaveData done [15:03:33]ExternCall_PrintAddStr [15:03:33]wPrintStart [15:03:33]Write to MH i2c: 01 00 00 57 47 9E [15:03:33]Write i2c OK [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: 01 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: 01 07 00 [15:03:33]MH_I2C_Read... [15:03:33]Read from MH i2c: 01 07 00 57 47 00 00 00 00 00 FF 0F B3 [15:03:33]RasterBufferAndPrint [15:03:33]line Счет N : (1)343051 [15:03:33]line ИНН: 02508201610067 [15:03:33]line Контрольно-Кассовый Чек [15:03:33]line ПРОДАЖА [15:03:33]line ТРК (МРК, ГНК) : 51 [15:03:33]line Товар: 2710194210 [15:03:33]line D-ENERGY Дт-К-2 [15:03:33]line 12.960 * 77.20 [15:03:33]line = 1000.51 [15:03:33]line НДС 12% НСП 1% [15:03:33]line > о реализуемом товаре [15:03:33]line ИТОГО: 1000.51 [15:03:33]line НСП 1% : 8.85 [15:03:33]line НДС 12% : 106.25 [15:03:33]line Наличными: 0.00 [15:03:33]line Безнал.: 1000.51 [15:03:33]line Место: АЗС № 78 "Партнер Нефть" [15:03:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:03:33]line СНО: Общий режим [15:03:33]line Чек 139 21.10.2024 15:03 [15:03:33]line Смена: 115 ФФД: 1.0 [15:03:33]line ЗНМ: 0300000137 [15:03:33]line РНМ: 0000000000186857 [15:03:33]line Версия ККМ: v1.0 [15:03:33]line Платежная система: АКБ Кыргызстан [15:03:33]line ФМ: 0000000002094219 [15:03:33]line ФД: 30642 [15:03:33]line ФПД: 111238505494997 [15:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150337&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30642&fm=111238505494997&tin=02508201610067®Number=0000000000186857&sum=100051 [15:03:33]OFD Sender: Processing packet 30642 [packets to send 10, broken 9] [15:03:33]ProducePacketName [15:03:33]name=ofd_packets/00030642 [15:03:33]OFD Sender: To server: pG, [15:03:33]CommunicateWithHost lk.salyk.kg:30040 [15:03:33]ConnectInit lk.salyk.kg [15:03:33]written 0, free lines is 4095 [15:03:33]Connected sock=10 [15:03:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 96 91 0D 01 1C 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 49 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 77 00 00 35 04 06 00 65 2B BB 9A F9 D5 31 33 E4 F9 1E 2A 3E D3 [15:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CA 74 47 00 C6 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B2 77 00 00 F4 03 04 00 C9 17 16 67 B6 04 01 00 00 A2 ED 39 7C C9 CE E0 BF [15:03:34]CommunicateWithHost err = 0 [15:03:34]CheckOFDResponse [15:03:34]1017 (14) - 77093643461234 [15:03:34]1041 (16) - 0000000002094219 [15:03:34]1040 (4) - 30642 [15:03:34]1012 (4) - 21.10.2024 08:58 [15:03:34]1206 (1) - 0 [15:03:34]OFD Sender: Remove packet 30642 [15:03:34]ProducePacketName [15:03:34]name=ofd_packets/00030642 [15:03:34]NVStorageDeleteData [15:03:34]Write to MH i2c: 01 00 00 81 47 C8 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 07 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: 01 07 00 81 47 00 00 00 00 00 0A 0D E6 [15:03:34]RasterBufferAndPrint [15:03:34]line [15:03:34]line [15:03:34]line [15:03:34]line [15:03:34]line [15:03:34]written 0, free lines is 3344 [15:03:34]MH_Cut [15:03:34]Write to MH i2c: D1 01 00 88 47 01 A1 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: D1 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: D1 01 00 [15:03:34]MH_I2C_Read... [15:03:34]Read from MH i2c: D1 01 00 88 47 00 A0 [15:03:34]Write to MH i2c: 01 00 00 89 47 D0 [15:03:34]Write i2c OK [15:03:34]MH_I2C_Read... [15:03:34]OFD Sender: No OFD packet to send [15:03:34]*** Cut start [15:03:34]*** Partial cut [15:03:34]*** CUTSNS_PIN = 1 [15:03:34]*** CUTSNS_PIN = 0 [15:03:35]*** Brake cut motor [15:03:35]Read from MH i2c: 01 [15:03:35]MH_I2C_Read... [15:03:35]*** Stop cut motor [15:03:35]*** Cut end [15:03:35]Read from MH i2c: 01 07 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: 01 07 00 89 47 00 00 00 00 00 FF 0F E5 [15:03:35]process_action close_receipt done [15:03:35]requested_data is exist [15:03:35]produce_requested_data [15:03:35]requested_item fm.sn is exist - process it [15:03:35]wFMCommunicate request_size=4 [15:03:35]MH_SAM_APDU [15:03:35]CAPDU: 80 11 00 00 [15:03:35]Write to MH i2c: E2 08 00 8A 47 80 11 00 00 00 00 00 00 4B [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:35]Read from MH i2c: E2 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 17 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 17 00 8A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [15:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:35]wFMCommunicate OK [15:03:35]requested_item fd.num is exist - process it [15:03:35]SAM_PROTO_GetFieldsCounters [15:03:35]wFMCommunicate request_size=4 [15:03:35]MH_SAM_APDU [15:03:35]CAPDU: 80 13 00 00 [15:03:35]Write to MH i2c: E2 08 00 8B 47 80 13 00 00 00 00 00 00 4E [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:35]Read from MH i2c: E2 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 62 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 62 00 8B 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 77 00 00 0E 04 04 00 73 00 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 B1 [15:03:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B2 77 00 00 0E 04 04 00 73 00 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 [15:03:35]wFMCommunicate OK [15:03:35]SAM_PROTO_GetFieldsCounters done [15:03:35]requested_item shift.num is exist - process it [15:03:35]requested_item shift.opened is exist - process it [15:03:35]req_shift_opened [15:03:35]FM_GetShiftState [15:03:35]SAM_PROTO_GetShiftState [15:03:35]wFMCommunicate request_size=4 [15:03:35]MH_SAM_APDU [15:03:35]CAPDU: 80 13 01 00 [15:03:35]Write to MH i2c: E2 08 00 8C 47 80 13 01 00 00 00 00 00 50 [15:03:35]Write i2c OK [15:03:35]MH_I2C_Read... [15:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:35]Read from MH i2c: E2 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 0E 00 [15:03:35]MH_I2C_Read... [15:03:35]Read from MH i2c: E2 0E 00 8C 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CC [15:03:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:03:35]wFMCommunicate OK [15:03:35]SAM_PROTO_GetShiftState done [15:03:35]FM_GetShiftState done [15:03:35]req_shift_opened done [15:03:35]requested_item shift.open_date is exist - process it [15:03:35]req_shift_open_date [15:03:35]req_shift_open_date done [15:03:35]produce_requested_data done [15:03:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30642,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:03:35]process_action_free close_receipt [15:03:35]json_value_free [15:03:35]json_value_free done [15:03:35]process_json_proto returns [15:03:35]Send response to host [15:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30642,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:03:35]free response buf [15:03:35]execute_script done [15:03:35]execute_script returns [15:03:35]free content buf [15:03:35]Sock 9.Close socket [15:03:35]Sock 9.Thread stoped [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:47]accept exits with 7 [15:03:47]New connection [15:03:47]New thread 3067489636 created [15:03:47]Thread 3067346276 joined [15:03:47]Waiting for new connection... [15:03:47] Sock 7.Parse request [15:03:47]Sock 7.Check first char [15:03:47]Sock 7.First char is OK [15:03:47]request: POST /json_proto HTTP/1.0 [15:03:47]Method: POST [15:03:47]URL: /json_proto [15:03:47]Method is POST - this is cgi request [15:03:47]url: /json_proto [15:03:47]query_string will be loaded in cgi processing [15:03:47]execute_cgi json_proto POST (null) [15:03:47]execute_cgi path=json_proto method=POST [15:03:47]POST find Content-Length [15:03:47]Host: 172.17.51.3:8080 [15:03:47]Content-Length: 678 [15:03:47]Content-Type: application/json [15:03:47] [15:03:47]POST finish read [15:03:47]Found Content-Length = 678 [15:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:47]execute_script... [15:03:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:47]POST & json_proto [15:03:47]process_json_proto [15:03:47]json parsed OK: [15:03:47]protocol is kg_v1.0 [15:03:47]action value=close_receipt [15:03:47]process_action close_receipt [15:03:47]cmd_close_receipt [15:03:47]MH_GetDate [15:03:47]Write to MH i2c: F0 00 00 8D 47 C3 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 09 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 09 00 8D 47 00 58 6D 16 67 04 C1 95 66 CE [15:03:47]GetLastDocTimeStamp 1729523017 [15:03:47]current date 1729523032 [15:03:47]FM_GetShiftState [15:03:47]SAM_PROTO_GetShiftState [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 13 01 00 [15:03:47]Write to MH i2c: E2 08 00 8E 47 80 13 01 00 00 00 00 00 52 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0E 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0E 00 8E 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CE [15:03:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:03:47]wFMCommunicate OK [15:03:47]SAM_PROTO_GetShiftState done [15:03:47]FM_GetShiftState done [15:03:47]opened in 1729471058 [15:03:47]opened+sec_in_day 1729557458 [15:03:47]quantity*price = 70044 [15:03:47]sum+1 = 70045 [15:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 140 21.10.2024 15:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30643 ФПД: 209678648952687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30643&fm=209678648952687&tin=02508201610067®Number=0000000000186857&sum=70000 [15:03:48]StoreToDocumentArchive [15:03:48]shift 115 fd 30643 [15:03:48]save to /storage/0115/doc_00030643 [15:03:48]save last doc name /storage/0115/doc_00030643 to /storage/kkm_last_doc_name [15:03:48]save OK [15:03:48]Clear old archive folders... [15:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:48]tlvbuf is 01E7B7C0 [15:03:48]SAM_PROTO_ClearQueue [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 09 00 00 [15:03:48]Write to MH i2c: E2 08 00 9B 47 80 09 00 00 00 00 00 00 54 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 9B 47 00 90 00 56 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_ClearQueue done [15:03:48]KKMCreateOFDPacket [15:03:48]OFDProtocolAddRootSTLVToBuf [15:03:48]FM_MakeSignedData [15:03:48]FM_MakeSignedData [15:03:48]SAM_PROTO_SignData [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 01 02 [15:03:48]Write to MH i2c: E2 08 00 9C 47 80 0D 01 02 00 00 00 00 5C [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 9C 47 00 90 00 57 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=255 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 77 00 00 35 04 06 00 BE [15:03:48]Write to MH i2c: E2 02 01 9D 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 77 00 00 35 04 06 00 BE 00 00 26 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 9D 47 00 90 00 58 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=10 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 02 02 05 B3 9D 63 47 6F [15:03:48]Write to MH i2c: E2 0D 00 9E 47 80 0D 02 02 05 00 B3 9D 63 47 6F 00 00 D2 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 9E 47 00 90 00 59 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 03 02 [15:03:48]Write to MH i2c: E2 08 00 9F 47 80 0D 03 02 00 00 00 00 61 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0B 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0B 00 9F 47 00 1E 4C B4 57 88 17 FC 4C 90 00 BE [15:03:48]RAPDU: 1E 4C B4 57 88 17 FC 4C 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_SignData done [15:03:48]FM_MakeSignedData done [15:03:48]CreateOFDProtocolMessage [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 11 00 00 [15:03:48]Write to MH i2c: E2 08 00 A0 47 80 11 00 00 00 00 00 00 61 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 A0 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [15:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:48]wFMCommunicate OK [15:03:48]CreateOFDProtocolMessage done [15:03:48]OFDSenderStorePacket 30643 [15:03:48]StoreOFDPacket docnum=30643 [15:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8F CB 07 01 7B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 77 00 00 35 04 06 00 BE B3 9D 63 47 6F 1E 4C B4 57 88 17 FC 4C [15:03:48]CheckFolder [15:03:48]dirname=/storage/ofd_packets [15:03:48]CheckFolder done [15:03:48]ProducePacketName [15:03:48]name=ofd_packets/00030643 [15:03:48]NVStorageSaveData ofd_packets/00030643 [15:03:48]File name is /storage/ofd_packets/00030643 [15:03:48]Write 301 bytes [15:03:48]NVStorageSaveData done [15:03:48]OFDSenderStorePacket done [15:03:48]KKMCreateOFDPacket done [15:03:48]NVStorageSaveData kkm_last_timestamp [15:03:48]File name is /storage/kkm_last_timestamp [15:03:48]Write 4 bytes [15:03:48]NVStorageSaveData done [15:03:48]ExternCall_PrintAddStr [15:03:48]wPrintStart [15:03:48]Write to MH i2c: 01 00 00 A1 47 E8 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 A1 47 00 00 00 00 00 FF 0F FD [15:03:48]RasterBufferAndPrint [15:03:48]line Счет N : (1)343052 [15:03:48]line ИНН: 02508201610067 [15:03:48]line Контрольно-Кассовый Чек [15:03:48]line ПРОДАЖА [15:03:48]line ТРК (МРК, ГНК) : 63 [15:03:48]line Товар: 2710124130 [15:03:48]line Аи-92-К-2 [15:03:48]line 10.470 * 66.90 [15:03:48]line = 700.44 [15:03:48]line НДС 12% НСП 1% [15:03:48]line > о реализуемом товаре [15:03:48]line ОКРУГЛЕНИЕ: -0.44 [15:03:48]line ИТОГО: 700.00 [15:03:48]line Внесено: 700.00 [15:03:48]line СДАЧА: 0.00 [15:03:48]line НСП 1% : 6.20 [15:03:48]line НДС 12% : 74.38 [15:03:48]line Наличными: 700.00 [15:03:48]line Безнал.: 0.00 [15:03:48]line Место: АЗС № 78 "Партнер Нефть" [15:03:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:03:48]line СНО: Общий режим [15:03:48]line Чек 140 21.10.2024 15:03 [15:03:48]line Смена: 115 ФФД: 1.0 [15:03:48]line ЗНМ: 0300000137 [15:03:48]line РНМ: 0000000000186857 [15:03:48]line Версия ККМ: v1.0 [15:03:48]line ФМ: 0000000002094219 [15:03:48]line ФД: 30643 [15:03:48]line ФПД: 209678648952687 [15:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150352&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30643&fm=209678648952687&tin=02508201610067®Number=0000000000186857&sum=70000 [15:03:49]OFD Sender: Processing packet 30643 [packets to send 10, broken 9] [15:03:49]ProducePacketName [15:03:49]name=ofd_packets/00030643 [15:03:49]OFD Sender: To server: pG, [15:03:49]CommunicateWithHost lk.salyk.kg:30040 [15:03:49]ConnectInit lk.salyk.kg [15:03:49]written 0, free lines is 4095 [15:03:49]Connected sock=10 [15:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8F CB 07 01 7B 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 58 6D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 77 00 00 35 04 06 00 BE B3 9D 63 47 6F 1E 4C B4 57 88 17 FC 4C [15:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 86 37 47 00 27 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B3 77 00 00 F4 03 04 00 D9 17 16 67 B6 04 01 00 00 15 FC 94 37 37 D0 E7 01 [15:03:49]CommunicateWithHost err = 0 [15:03:49]CheckOFDResponse [15:03:49]1017 (14) - 77093643461234 [15:03:49]1041 (16) - 0000000002094219 [15:03:49]1040 (4) - 30643 [15:03:49]1012 (4) - 21.10.2024 08:59 [15:03:49]1206 (1) - 0 [15:03:49]OFD Sender: Remove packet 30643 [15:03:49]ProducePacketName [15:03:49]name=ofd_packets/00030643 [15:03:49]NVStorageDeleteData [15:03:49]Write to MH i2c: 01 00 00 CC 47 13 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 07 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 07 00 CC 47 00 00 00 00 00 EC 0C 12 [15:03:49]RasterBufferAndPrint [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]written 0, free lines is 3315 [15:03:49]MH_Cut [15:03:49]Write to MH i2c: D1 01 00 D3 47 01 EC [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 01 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 01 00 D3 47 00 EB [15:03:49]Write to MH i2c: 01 00 00 D4 47 1B [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:50]OFD Sender: No OFD packet to send [15:03:50]*** Cut start [15:03:50]*** Partial cut [15:03:50]*** CUTSNS_PIN = 1 [15:03:50]*** CUTSNS_PIN = 0 [15:03:50]*** Brake cut motor [15:03:50]Read from MH i2c: 01 [15:03:51]MH_I2C_Read... [15:03:51]*** Stop cut motor [15:03:51]*** Cut end [15:03:51]Read from MH i2c: 01 07 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: 01 07 00 D4 47 00 00 00 00 00 FF 0F 30 [15:03:51]process_action close_receipt done [15:03:51]requested_data is exist [15:03:51]produce_requested_data [15:03:51]requested_item fm.sn is exist - process it [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 11 00 00 [15:03:51]Write to MH i2c: E2 08 00 D5 47 80 11 00 00 00 00 00 00 96 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 17 00 D5 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [15:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:03:51]wFMCommunicate OK [15:03:51]requested_item fd.num is exist - process it [15:03:51]SAM_PROTO_GetFieldsCounters [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 13 00 00 [15:03:51]Write to MH i2c: E2 08 00 D6 47 80 13 00 00 00 00 00 00 99 [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 62 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 62 00 D6 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 77 00 00 0E 04 04 00 73 00 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 00 [15:03:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B3 77 00 00 0E 04 04 00 73 00 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 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_GetFieldsCounters done [15:03:51]requested_item shift.num is exist - process it [15:03:51]requested_item shift.opened is exist - process it [15:03:51]req_shift_opened [15:03:51]FM_GetShiftState [15:03:51]SAM_PROTO_GetShiftState [15:03:51]wFMCommunicate request_size=4 [15:03:51]MH_SAM_APDU [15:03:51]CAPDU: 80 13 01 00 [15:03:51]Write to MH i2c: E2 08 00 D7 47 80 13 01 00 00 00 00 00 9B [15:03:51]Write i2c OK [15:03:51]MH_I2C_Read... [15:03:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:51]Read from MH i2c: E2 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0E 00 [15:03:51]MH_I2C_Read... [15:03:51]Read from MH i2c: E2 0E 00 D7 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 17 [15:03:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:03:51]wFMCommunicate OK [15:03:51]SAM_PROTO_GetShiftState done [15:03:51]FM_GetShiftState done [15:03:51]req_shift_opened done [15:03:51]requested_item shift.open_date is exist - process it [15:03:51]req_shift_open_date [15:03:51]req_shift_open_date done [15:03:51]produce_requested_data done [15:03:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30643,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:03:51]process_action_free close_receipt [15:03:51]json_value_free [15:03:51]json_value_free done [15:03:51]process_json_proto returns [15:03:51]Send response to host [15:03:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30643,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:03:51]free response buf [15:03:51]execute_script done [15:03:51]execute_script returns [15:03:51]free content buf [15:03:51]Sock 7.Close socket [15:03:51]Sock 7.Thread stoped [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:16]accept exits with 9 [15:07:16]New connection [15:07:16]New thread 3067346276 created [15:07:16]Thread 3067489636 joined [15:07:16]Waiting for new connection... [15:07:16] Sock 9.Parse request [15:07:16]Sock 9.Check first char [15:07:16]Sock 9.First char is OK [15:07:16]request: POST /json_proto HTTP/1.0 [15:07:16]Method: POST [15:07:16]URL: /json_proto [15:07:16]Method is POST - this is cgi request [15:07:16]url: /json_proto [15:07:16]query_string will be loaded in cgi processing [15:07:16]execute_cgi json_proto POST (null) [15:07:16]execute_cgi path=json_proto method=POST [15:07:16]POST find Content-Length [15:07:16]Host: 172.17.51.3:8080 [15:07:16]Content-Length: 677 [15:07:16]Content-Type: application/json [15:07:16] [15:07:16]POST finish read [15:07:16]Found Content-Length = 677 [15:07:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]execute_script... [15:07:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:16]POST & json_proto [15:07:16]process_json_proto [15:07:16]json parsed OK: [15:07:16]protocol is kg_v1.0 [15:07:16]action value=close_receipt [15:07:16]process_action close_receipt [15:07:16]cmd_close_receipt [15:07:16]MH_GetDate [15:07:16]Write to MH i2c: F0 00 00 D8 47 0E [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: F0 09 00 D8 47 00 29 6E 16 67 04 C1 95 66 EB [15:07:16]GetLastDocTimeStamp 1729523032 [15:07:16]current date 1729523241 [15:07:16]FM_GetShiftState [15:07:16]SAM_PROTO_GetShiftState [15:07:16]wFMCommunicate request_size=4 [15:07:16]MH_SAM_APDU [15:07:16]CAPDU: 80 13 01 00 [15:07:16]Write to MH i2c: E2 08 00 D9 47 80 13 01 00 00 00 00 00 9D [15:07:16]Write i2c OK [15:07:16]MH_I2C_Read... [15:07:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:16]Read from MH i2c: E2 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 [15:07:16]MH_I2C_Read... [15:07:16]Read from MH i2c: E2 0E 00 D9 47 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 19 [15:07:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:07:16]wFMCommunicate OK [15:07:16]SAM_PROTO_GetShiftState done [15:07:16]FM_GetShiftState done [15:07:16]opened in 1729471058 [15:07:16]opened+sec_in_day 1729557458 [15:07:16]quantity*price = 50041 [15:07:16]sum+1 = 50042 [15:07:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 141 21.10.2024 15:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30644 ФПД: 211099524894050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30644&fm=211099524894050&tin=02508201610067®Number=0000000000186857&sum=50000 [15:07:17]StoreToDocumentArchive [15:07:17]shift 115 fd 30644 [15:07:17]save to /storage/0115/doc_00030644 [15:07:17]save last doc name /storage/0115/doc_00030644 to /storage/kkm_last_doc_name [15:07:17]save OK [15:07:17]Clear old archive folders... [15:07:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:17]tlvbuf is 01E563D0 [15:07:17]SAM_PROTO_ClearQueue [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 09 00 00 [15:07:17]Write to MH i2c: E2 08 00 E6 47 80 09 00 00 00 00 00 00 9F [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 E6 47 00 90 00 A1 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]SAM_PROTO_ClearQueue done [15:07:17]KKMCreateOFDPacket [15:07:17]OFDProtocolAddRootSTLVToBuf [15:07:17]FM_MakeSignedData [15:07:17]FM_MakeSignedData [15:07:17]SAM_PROTO_SignData [15:07:17]wFMCommunicate request_size=4 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 01 02 [15:07:17]Write to MH i2c: E2 08 00 E7 47 80 0D 01 02 00 00 00 00 A7 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 E7 47 00 90 00 A2 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=255 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 29 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 77 00 00 35 04 06 00 BF [15:07:17]Write to MH i2c: E2 02 01 E8 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 29 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 77 00 00 35 04 06 00 BF 00 00 36 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:17]Read from MH i2c: E2 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 [15:07:17]MH_I2C_Read... [15:07:17]Read from MH i2c: E2 03 00 E8 47 00 90 00 A3 [15:07:17]RAPDU: 90 00 [15:07:17]wFMCommunicate OK [15:07:17]wFMCommunicate request_size=10 [15:07:17]MH_SAM_APDU [15:07:17]CAPDU: 80 0D 02 02 05 FE 70 31 8D 62 [15:07:17]Write to MH i2c: E2 0D 00 E9 47 80 0D 02 02 05 00 FE 70 31 8D 62 00 00 42 [15:07:17]Write i2c OK [15:07:17]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 03 00 E9 47 00 90 00 A4 [15:07:18]RAPDU: 90 00 [15:07:18]wFMCommunicate OK [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 0D 03 02 [15:07:18]Write to MH i2c: E2 08 00 EA 47 80 0D 03 02 00 00 00 00 AC [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0B 00 EA 47 00 A6 4C 86 13 29 79 CB 1C 90 00 C1 [15:07:18]RAPDU: A6 4C 86 13 29 79 CB 1C 90 00 [15:07:18]wFMCommunicate OK [15:07:18]SAM_PROTO_SignData done [15:07:18]FM_MakeSignedData done [15:07:18]CreateOFDProtocolMessage [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 11 00 00 [15:07:18]Write to MH i2c: E2 08 00 EB 47 80 11 00 00 00 00 00 00 AC [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 EB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [15:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:07:18]wFMCommunicate OK [15:07:18]CreateOFDProtocolMessage done [15:07:18]OFDSenderStorePacket 30644 [15:07:18]StoreOFDPacket docnum=30644 [15:07:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 6E 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 29 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 77 00 00 35 04 06 00 BF FE 70 31 8D 62 A6 4C 86 13 29 79 CB 1C [15:07:18]CheckFolder [15:07:18]dirname=/storage/ofd_packets [15:07:18]CheckFolder done [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00030644 [15:07:18]NVStorageSaveData ofd_packets/00030644 [15:07:18]File name is /storage/ofd_packets/00030644 [15:07:18]Write 301 bytes [15:07:18]NVStorageSaveData done [15:07:18]OFDSenderStorePacket done [15:07:18]KKMCreateOFDPacket done [15:07:18]NVStorageSaveData kkm_last_timestamp [15:07:18]File name is /storage/kkm_last_timestamp [15:07:18]Write 4 bytes [15:07:18]NVStorageSaveData done [15:07:18]ExternCall_PrintAddStr [15:07:18]wPrintStart [15:07:18]Write to MH i2c: 01 00 00 EC 47 33 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 EC 47 00 00 00 00 00 FF 0F 48 [15:07:18]RasterBufferAndPrint [15:07:18]line Счет N : (1)343053 [15:07:18]line ИНН: 02508201610067 [15:07:18]line Контрольно-Кассовый Чек [15:07:18]line ПРОДАЖА [15:07:18]line ТРК (МРК, ГНК) : 63 [15:07:18]line Товар: 2710124130 [15:07:18]line Аи-92-К-2 [15:07:18]line 7.480 * 66.90 [15:07:18]line = 500.41 [15:07:18]line НДС 12% НСП 1% [15:07:18]line > о реализуемом товаре [15:07:18]line ОКРУГЛЕНИЕ: -0.41 [15:07:18]line ИТОГО: 500.00 [15:07:18]line Внесено: 500.00 [15:07:18]line СДАЧА: 0.00 [15:07:18]line НСП 1% : 4.43 [15:07:18]line НДС 12% : 53.14 [15:07:18]line Наличными: 500.00 [15:07:18]line Безнал.: 0.00 [15:07:18]line Место: АЗС № 78 "Партнер Нефть" [15:07:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:07:18]line СНО: Общий режим [15:07:18]line Чек 141 21.10.2024 15:07 [15:07:18]line Смена: 115 ФФД: 1.0 [15:07:18]line ЗНМ: 0300000137 [15:07:18]line РНМ: 0000000000186857 [15:07:18]line Версия ККМ: v1.0 [15:07:18]line ФМ: 0000000002094219 [15:07:18]line ФД: 30644 [15:07:18]line ФПД: 211099524894050 [15:07:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150721&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30644&fm=211099524894050&tin=02508201610067®Number=0000000000186857&sum=50000 [15:07:18]OFD Sender: Processing packet 30644 [packets to send 10, broken 9] [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00030644 [15:07:18]OFD Sender: To server: pG, [15:07:18]CommunicateWithHost lk.salyk.kg:30040 [15:07:18]ConnectInit lk.salyk.kg [15:07:18]written 0, free lines is 4095 [15:07:18]Connected sock=10 [15:07:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 73 6E 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 29 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B4 77 00 00 35 04 06 00 BF FE 70 31 8D 62 A6 4C 86 13 29 79 CB 1C [15:07:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D1 8D 47 00 50 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 32 30 39 34 32 31 39 10 04 04 00 B4 77 00 00 F4 03 04 00 AA 18 16 67 B6 04 01 00 00 EE 5A 7F 5A 86 8E DF A8 [15:07:18]CommunicateWithHost err = 0 [15:07:18]CheckOFDResponse [15:07:18]1017 (14) - 77093643461234 [15:07:18]1041 (16) - 0000000002094219 [15:07:18]1040 (4) - 30644 [15:07:18]1012 (4) - 21.10.2024 09:02 [15:07:18]1206 (1) - 0 [15:07:18]OFD Sender: Remove packet 30644 [15:07:18]ProducePacketName [15:07:18]name=ofd_packets/00030644 [15:07:18]NVStorageDeleteData [15:07:18]Write to MH i2c: 01 00 00 17 48 5F [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 17 48 00 00 00 00 00 EC 0C 5E [15:07:18]RasterBufferAndPrint [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]line [15:07:18]written 0, free lines is 3317 [15:07:18]MH_Cut [15:07:18]Write to MH i2c: D1 01 00 1E 48 01 38 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: D1 01 00 1E 48 00 37 [15:07:18]Write to MH i2c: 01 00 00 1F 48 67 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:19]OFD Sender: No OFD packet to send [15:07:19]*** Cut start [15:07:19]*** Partial cut [15:07:19]*** CUTSNS_PIN = 1 [15:07:19]*** CUTSNS_PIN = 0 [15:07:19]*** Brake cut motor [15:07:20]Read from MH i2c: 01 [15:07:20]MH_I2C_Read... [15:07:20]*** Stop cut motor [15:07:20]*** Cut end [15:07:20]Read from MH i2c: 01 07 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 FF 0F 7C [15:07:20]process_action close_receipt done [15:07:20]requested_data is exist [15:07:20]produce_requested_data [15:07:20]requested_item fm.sn is exist - process it [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 11 00 00 [15:07:20]Write to MH i2c: E2 08 00 20 48 80 11 00 00 00 00 00 00 E2 [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 17 00 20 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [15:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:07:20]wFMCommunicate OK [15:07:20]requested_item fd.num is exist - process it [15:07:20]SAM_PROTO_GetFieldsCounters [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 00 00 [15:07:20]Write to MH i2c: E2 08 00 21 48 80 13 00 00 00 00 00 00 E5 [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 62 00 21 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 77 00 00 0E 04 04 00 73 00 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 50 [15:07:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B4 77 00 00 0E 04 04 00 73 00 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 [15:07:20]wFMCommunicate OK [15:07:20]SAM_PROTO_GetFieldsCounters done [15:07:20]requested_item shift.num is exist - process it [15:07:20]requested_item shift.opened is exist - process it [15:07:20]req_shift_opened [15:07:20]FM_GetShiftState [15:07:20]SAM_PROTO_GetShiftState [15:07:20]wFMCommunicate request_size=4 [15:07:20]MH_SAM_APDU [15:07:20]CAPDU: 80 13 01 00 [15:07:20]Write to MH i2c: E2 08 00 22 48 80 13 01 00 00 00 00 00 E7 [15:07:20]Write i2c OK [15:07:20]MH_I2C_Read... [15:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:20]Read from MH i2c: E2 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 0E 00 [15:07:20]MH_I2C_Read... [15:07:20]Read from MH i2c: E2 0E 00 22 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 63 [15:07:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:07:20]wFMCommunicate OK [15:07:20]SAM_PROTO_GetShiftState done [15:07:20]FM_GetShiftState done [15:07:20]req_shift_opened done [15:07:20]requested_item shift.open_date is exist - process it [15:07:20]req_shift_open_date [15:07:20]req_shift_open_date done [15:07:20]produce_requested_data done [15:07:20]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30644,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:07:20]process_action_free close_receipt [15:07:20]json_value_free [15:07:20]json_value_free done [15:07:20]process_json_proto returns [15:07:20]Send response to host [15:07:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30644,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:07:20]free response buf [15:07:20]execute_script done [15:07:20]execute_script returns [15:07:20]free content buf [15:07:20]Sock 9.Close socket [15:07:20]Sock 9.Thread stoped [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:09]accept exits with 7 [15:08:09]New connection [15:08:09]New thread 3067489636 created [15:08:09]Thread 3067346276 joined [15:08:09]Waiting for new connection... [15:08:09] Sock 7.Parse request [15:08:09]Sock 7.Check first char [15:08:09]Sock 7.First char is OK [15:08:09]request: POST /json_proto HTTP/1.0 [15:08:09]Method: POST [15:08:09]URL: /json_proto [15:08:09]Method is POST - this is cgi request [15:08:09]url: /json_proto [15:08:09]query_string will be loaded in cgi processing [15:08:09]execute_cgi json_proto POST (null) [15:08:09]execute_cgi path=json_proto method=POST [15:08:09]POST find Content-Length [15:08:09]Host: 172.17.51.3:8080 [15:08:09]Content-Length: 677 [15:08:09]Content-Type: application/json [15:08:09] [15:08:09]POST finish read [15:08:09]Found Content-Length = 677 [15:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 334.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]execute_script... [15:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 334.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]POST & json_proto [15:08:09]process_json_proto [15:08:09]json parsed OK: [15:08:09]protocol is kg_v1.0 [15:08:09]action value=close_receipt [15:08:09]process_action close_receipt [15:08:09]cmd_close_receipt [15:08:09]MH_GetDate [15:08:09]Write to MH i2c: F0 00 00 23 48 5A [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 23 48 00 5F 6E 16 67 04 C1 95 66 6D [15:08:09]GetLastDocTimeStamp 1729523241 [15:08:09]current date 1729523295 [15:08:09]FM_GetShiftState [15:08:09]SAM_PROTO_GetShiftState [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 13 01 00 [15:08:09]Write to MH i2c: E2 08 00 24 48 80 13 01 00 00 00 00 00 E9 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 24 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 65 [15:08:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:08:09]wFMCommunicate OK [15:08:09]SAM_PROTO_GetShiftState done [15:08:09]FM_GetShiftState done [15:08:09]opened in 1729471058 [15:08:09]opened+sec_in_day 1729557458 [15:08:09]quantity*price = 33450 [15:08:09]sum+1 = 33451 [15:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 334.00 Внесено: 334.00 СДАЧА: 0.00 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 142 21.10.2024 15:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30645 ФПД: 149303808675518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150815&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30645&fm=149303808675518&tin=02508201610067®Number=0000000000186857&sum=33400 [15:08:10]StoreToDocumentArchive [15:08:10]shift 115 fd 30645 [15:08:10]save to /storage/0115/doc_00030645 [15:08:10]save last doc name /storage/0115/doc_00030645 to /storage/kkm_last_doc_name [15:08:10]save OK [15:08:10]Clear old archive folders... [15:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:10]tlvbuf is 01E85AC0 [15:08:10]SAM_PROTO_ClearQueue [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 09 00 00 [15:08:10]Write to MH i2c: E2 08 00 31 48 80 09 00 00 00 00 00 00 EB [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 31 48 00 90 00 ED [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]SAM_PROTO_ClearQueue done [15:08:10]KKMCreateOFDPacket [15:08:10]OFDProtocolAddRootSTLVToBuf [15:08:10]FM_MakeSignedData [15:08:10]FM_MakeSignedData [15:08:10]SAM_PROTO_SignData [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 01 02 [15:08:10]Write to MH i2c: E2 08 00 32 48 80 0D 01 02 00 00 00 00 F3 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 32 48 00 90 00 EE [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=255 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 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 5F 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 77 00 00 35 04 06 00 87 [15:08:11]Write to MH i2c: E2 02 01 33 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 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 5F 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 77 00 00 35 04 06 00 87 00 00 0A [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 33 48 00 90 00 EF [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=10 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 02 02 05 CA 80 7A CE BE [15:08:11]Write to MH i2c: E2 0D 00 34 48 80 0D 02 02 05 00 CA 80 7A CE BE 00 00 50 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 34 48 00 90 00 F0 [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 03 02 [15:08:11]Write to MH i2c: E2 08 00 35 48 80 0D 03 02 00 00 00 00 F8 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 35 48 00 68 04 3D 8F EA 68 37 94 90 00 4E [15:08:11]RAPDU: 68 04 3D 8F EA 68 37 94 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_SignData done [15:08:11]FM_MakeSignedData done [15:08:11]CreateOFDProtocolMessage [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 11 00 00 [15:08:11]Write to MH i2c: E2 08 00 36 48 80 11 00 00 00 00 00 00 F8 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 36 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 46 [15:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:08:11]wFMCommunicate OK [15:08:11]CreateOFDProtocolMessage done [15:08:11]OFDSenderStorePacket 30645 [15:08:11]StoreOFDPacket docnum=30645 [15:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D2 17 07 01 68 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 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 5F 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 77 00 00 35 04 06 00 87 CA 80 7A CE BE 68 04 3D 8F EA 68 37 94 [15:08:11]CheckFolder [15:08:11]dirname=/storage/ofd_packets [15:08:11]CheckFolder done [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00030645 [15:08:11]NVStorageSaveData ofd_packets/00030645 [15:08:11]File name is /storage/ofd_packets/00030645 [15:08:11]Write 301 bytes [15:08:11]NVStorageSaveData done [15:08:11]OFDSenderStorePacket done [15:08:11]KKMCreateOFDPacket done [15:08:11]NVStorageSaveData kkm_last_timestamp [15:08:11]File name is /storage/kkm_last_timestamp [15:08:11]Write 4 bytes [15:08:11]NVStorageSaveData done [15:08:11]ExternCall_PrintAddStr [15:08:11]wPrintStart [15:08:11]Write to MH i2c: 01 00 00 37 48 7F [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 37 48 00 00 00 00 00 FF 0F 94 [15:08:11]RasterBufferAndPrint [15:08:11]line Счет N : (1)343054 [15:08:11]line ИНН: 02508201610067 [15:08:11]line Контрольно-Кассовый Чек [15:08:11]line ПРОДАЖА [15:08:11]line ТРК (МРК, ГНК) : 63 [15:08:11]line Товар: 2710124130 [15:08:11]line Аи-92-К-2 [15:08:11]line 5.000 * 66.90 [15:08:11]line = 334.50 [15:08:11]line НДС 12% НСП 1% [15:08:11]line > о реализуемом товаре [15:08:11]line ОКРУГЛЕНИЕ: -0.50 [15:08:11]line ИТОГО: 334.00 [15:08:11]line Внесено: 334.00 [15:08:11]line СДАЧА: 0.00 [15:08:11]line НСП 1% : 2.96 [15:08:11]line НДС 12% : 35.52 [15:08:11]line Наличными: 334.00 [15:08:11]line Безнал.: 0.00 [15:08:11]line Место: АЗС № 78 "Партнер Нефть" [15:08:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:08:11]line СНО: Общий режим [15:08:11]line Чек 142 21.10.2024 15:08 [15:08:11]line Смена: 115 ФФД: 1.0 [15:08:11]line ЗНМ: 0300000137 [15:08:11]line РНМ: 0000000000186857 [15:08:11]line Версия ККМ: v1.0 [15:08:11]line ФМ: 0000000002094219 [15:08:11]line ФД: 30645 [15:08:11]line ФПД: 149303808675518 [15:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150815&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30645&fm=149303808675518&tin=02508201610067®Number=0000000000186857&sum=33400 [15:08:11]OFD Sender: Processing packet 30645 [packets to send 10, broken 9] [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00030645 [15:08:11]OFD Sender: To server: pG, [15:08:11]CommunicateWithHost lk.salyk.kg:30040 [15:08:11]ConnectInit lk.salyk.kg [15:08:11]written 0, free lines is 4095 [15:08:11]Connected sock=10 [15:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D2 17 07 01 68 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 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 5F 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 77 00 00 35 04 06 00 87 CA 80 7A CE BE 68 04 3D 8F EA 68 37 94 [15:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 12 14 47 00 E9 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B5 77 00 00 F4 03 04 00 DF 18 16 67 B6 04 01 00 00 16 A5 45 FD 3A D2 FE 23 [15:08:12]CommunicateWithHost err = 0 [15:08:12]CheckOFDResponse [15:08:12]1017 (14) - 77093643461234 [15:08:12]1041 (16) - 0000000002094219 [15:08:12]1040 (4) - 30645 [15:08:12]1012 (4) - 21.10.2024 09:03 [15:08:12]1206 (1) - 0 [15:08:12]OFD Sender: Remove packet 30645 [15:08:12]ProducePacketName [15:08:12]name=ofd_packets/00030645 [15:08:12]NVStorageDeleteData [15:08:12]Write to MH i2c: 01 00 00 62 48 AA [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 07 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: 01 07 00 62 48 00 00 00 00 00 F2 0C AF [15:08:12]RasterBufferAndPrint [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]line [15:08:12]written 0, free lines is 3320 [15:08:12]MH_Cut [15:08:12]Write to MH i2c: D1 01 00 69 48 01 83 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 01 00 [15:08:12]MH_I2C_Read... [15:08:12]Read from MH i2c: D1 01 00 69 48 00 82 [15:08:12]Write to MH i2c: 01 00 00 6A 48 B2 [15:08:12]Write i2c OK [15:08:12]MH_I2C_Read... [15:08:12]OFD Sender: No OFD packet to send [15:08:12]*** Cut start [15:08:12]*** Partial cut [15:08:12]*** CUTSNS_PIN = 1 [15:08:12]*** CUTSNS_PIN = 0 [15:08:13]*** Brake cut motor [15:08:13]Read from MH i2c: 01 [15:08:13]MH_I2C_Read... [15:08:13]*** Stop cut motor [15:08:13]*** Cut end [15:08:13]Read from MH i2c: 01 07 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 6A 48 00 00 00 00 00 FF 0F C7 [15:08:13]process_action close_receipt done [15:08:13]requested_data is exist [15:08:13]produce_requested_data [15:08:13]requested_item fm.sn is exist - process it [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 11 00 00 [15:08:13]Write to MH i2c: E2 08 00 6B 48 80 11 00 00 00 00 00 00 2D [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 6B 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7B [15:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:08:13]wFMCommunicate OK [15:08:13]requested_item fd.num is exist - process it [15:08:13]SAM_PROTO_GetFieldsCounters [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 00 00 [15:08:13]Write to MH i2c: E2 08 00 6C 48 80 13 00 00 00 00 00 00 30 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 6C 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 77 00 00 0E 04 04 00 73 00 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 9F [15:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B5 77 00 00 0E 04 04 00 73 00 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 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetFieldsCounters done [15:08:13]requested_item shift.num is exist - process it [15:08:13]requested_item shift.opened is exist - process it [15:08:13]req_shift_opened [15:08:13]FM_GetShiftState [15:08:13]SAM_PROTO_GetShiftState [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 01 00 [15:08:13]Write to MH i2c: E2 08 00 6D 48 80 13 01 00 00 00 00 00 32 [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 6D 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AE [15:08:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetShiftState done [15:08:13]FM_GetShiftState done [15:08:13]req_shift_opened done [15:08:13]requested_item shift.open_date is exist - process it [15:08:13]req_shift_open_date [15:08:13]req_shift_open_date done [15:08:13]produce_requested_data done [15:08:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30645,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:08:13]process_action_free close_receipt [15:08:13]json_value_free [15:08:13]json_value_free done [15:08:13]process_json_proto returns [15:08:13]Send response to host [15:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30645,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:08:13]free response buf [15:08:13]execute_script done [15:08:13]execute_script returns [15:08:13]free content buf [15:08:13]Sock 7.Close socket [15:08:13]Sock 7.Thread stoped [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:37]accept exits with 9 [15:10:37]New connection [15:10:37]New thread 3067346276 created [15:10:37]Thread 3067489636 joined [15:10:37]Waiting for new connection... [15:10:37] Sock 9.Parse request [15:10:37]Sock 9.Check first char [15:10:37]Sock 9.First char is OK [15:10:37]request: POST /json_proto HTTP/1.0 [15:10:37]Method: POST [15:10:37]URL: /json_proto [15:10:37]Method is POST - this is cgi request [15:10:37]url: /json_proto [15:10:37]query_string will be loaded in cgi processing [15:10:37]execute_cgi json_proto POST (null) [15:10:37]execute_cgi path=json_proto method=POST [15:10:37]POST find Content-Length [15:10:37]Host: 172.17.51.3:8080 [15:10:37]Content-Length: 677 [15:10:37]Content-Type: application/json [15:10:37] [15:10:37]POST finish read [15:10:37]Found Content-Length = 677 [15:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:37]execute_script... [15:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:37]POST & json_proto [15:10:37]process_json_proto [15:10:37]json parsed OK: [15:10:37]protocol is kg_v1.0 [15:10:37]action value=close_receipt [15:10:37]process_action close_receipt [15:10:37]cmd_close_receipt [15:10:37]MH_GetDate [15:10:37]Write to MH i2c: F0 00 00 6E 48 A5 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: F0 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: F0 09 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: F0 09 00 6E 48 00 F3 6E 16 67 04 C1 95 66 4C [15:10:37]GetLastDocTimeStamp 1729523295 [15:10:37]current date 1729523443 [15:10:37]FM_GetShiftState [15:10:37]SAM_PROTO_GetShiftState [15:10:37]wFMCommunicate request_size=4 [15:10:37]MH_SAM_APDU [15:10:37]CAPDU: 80 13 01 00 [15:10:37]Write to MH i2c: E2 08 00 6F 48 80 13 01 00 00 00 00 00 34 [15:10:37]Write i2c OK [15:10:37]MH_I2C_Read... [15:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:37]Read from MH i2c: E2 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 0E 00 [15:10:37]MH_I2C_Read... [15:10:37]Read from MH i2c: E2 0E 00 6F 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B0 [15:10:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:10:37]wFMCommunicate OK [15:10:37]SAM_PROTO_GetShiftState done [15:10:37]FM_GetShiftState done [15:10:37]opened in 1729471058 [15:10:37]opened+sec_in_day 1729557458 [15:10:37]quantity*price = 50041 [15:10:37]sum+1 = 50042 [15:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 143 21.10.2024 15:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30646 ФПД: 5058861932007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151043&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30646&fm=5058861932007&tin=02508201610067®Number=0000000000186857&sum=50000 [15:10:38]StoreToDocumentArchive [15:10:38]shift 115 fd 30646 [15:10:38]save to /storage/0115/doc_00030646 [15:10:38]save last doc name /storage/0115/doc_00030646 to /storage/kkm_last_doc_name [15:10:38]save OK [15:10:38]Clear old archive folders... [15:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:38]tlvbuf is 01E490C0 [15:10:38]SAM_PROTO_ClearQueue [15:10:38]wFMCommunicate request_size=4 [15:10:38]MH_SAM_APDU [15:10:38]CAPDU: 80 09 00 00 [15:10:38]Write to MH i2c: E2 08 00 7C 48 80 09 00 00 00 00 00 00 36 [15:10:38]Write i2c OK [15:10:38]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 7C 48 00 90 00 38 [15:10:39]RAPDU: 90 00 [15:10:39]wFMCommunicate OK [15:10:39]SAM_PROTO_ClearQueue done [15:10:39]KKMCreateOFDPacket [15:10:39]OFDProtocolAddRootSTLVToBuf [15:10:39]FM_MakeSignedData [15:10:39]FM_MakeSignedData [15:10:39]SAM_PROTO_SignData [15:10:39]wFMCommunicate request_size=4 [15:10:39]MH_SAM_APDU [15:10:39]CAPDU: 80 0D 01 02 [15:10:39]Write to MH i2c: E2 08 00 7D 48 80 0D 01 02 00 00 00 00 3E [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 7D 48 00 90 00 39 [15:10:39]RAPDU: 90 00 [15:10:39]wFMCommunicate OK [15:10:39]wFMCommunicate request_size=255 [15:10:39]MH_SAM_APDU [15:10:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 77 00 00 35 04 06 00 04 [15:10:39]Write to MH i2c: E2 02 01 7E 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 77 00 00 35 04 06 00 04 00 00 E0 [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 7E 48 00 90 00 3A [15:10:39]RAPDU: 90 00 [15:10:39]wFMCommunicate OK [15:10:39]wFMCommunicate request_size=10 [15:10:39]MH_SAM_APDU [15:10:39]CAPDU: 80 0D 02 02 05 99 DB AB 1D E7 [15:10:39]Write to MH i2c: E2 0D 00 7F 48 80 0D 02 02 05 00 99 DB AB 1D E7 00 00 6E [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 03 00 7F 48 00 90 00 3B [15:10:39]RAPDU: 90 00 [15:10:39]wFMCommunicate OK [15:10:39]wFMCommunicate request_size=4 [15:10:39]MH_SAM_APDU [15:10:39]CAPDU: 80 0D 03 02 [15:10:39]Write to MH i2c: E2 08 00 80 48 80 0D 03 02 00 00 00 00 43 [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 0B 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 0B 00 80 48 00 7D 23 9D 13 99 EA 3C 20 90 00 73 [15:10:39]RAPDU: 7D 23 9D 13 99 EA 3C 20 90 00 [15:10:39]wFMCommunicate OK [15:10:39]SAM_PROTO_SignData done [15:10:39]FM_MakeSignedData done [15:10:39]CreateOFDProtocolMessage [15:10:39]wFMCommunicate request_size=4 [15:10:39]MH_SAM_APDU [15:10:39]CAPDU: 80 11 00 00 [15:10:39]Write to MH i2c: E2 08 00 81 48 80 11 00 00 00 00 00 00 43 [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:39]Read from MH i2c: E2 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 17 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: E2 17 00 81 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 91 [15:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:10:39]wFMCommunicate OK [15:10:39]CreateOFDProtocolMessage done [15:10:39]OFDSenderStorePacket 30646 [15:10:39]StoreOFDPacket docnum=30646 [15:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C E7 07 01 1F 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 77 00 00 35 04 06 00 04 99 DB AB 1D E7 7D 23 9D 13 99 EA 3C 20 [15:10:39]CheckFolder [15:10:39]dirname=/storage/ofd_packets [15:10:39]CheckFolder done [15:10:39]ProducePacketName [15:10:39]name=ofd_packets/00030646 [15:10:39]NVStorageSaveData ofd_packets/00030646 [15:10:39]File name is /storage/ofd_packets/00030646 [15:10:39]Write 301 bytes [15:10:39]NVStorageSaveData done [15:10:39]OFDSenderStorePacket done [15:10:39]KKMCreateOFDPacket done [15:10:39]NVStorageSaveData kkm_last_timestamp [15:10:39]File name is /storage/kkm_last_timestamp [15:10:39]Write 4 bytes [15:10:39]NVStorageSaveData done [15:10:39]ExternCall_PrintAddStr [15:10:39]wPrintStart [15:10:39]Write to MH i2c: 01 00 00 82 48 CA [15:10:39]Write i2c OK [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: 01 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: 01 07 00 [15:10:39]MH_I2C_Read... [15:10:39]Read from MH i2c: 01 07 00 82 48 00 00 00 00 00 FF 0F DF [15:10:39]RasterBufferAndPrint [15:10:39]line Счет N : (1)343055 [15:10:39]line ИНН: 02508201610067 [15:10:39]line Контрольно-Кассовый Чек [15:10:39]line ПРОДАЖА [15:10:39]line ТРК (МРК, ГНК) : 53 [15:10:39]line Товар: 2710124130 [15:10:39]line Аи-92-К-2 [15:10:39]line 7.480 * 66.90 [15:10:39]line = 500.41 [15:10:39]line НДС 12% НСП 1% [15:10:39]line > о реализуемом товаре [15:10:39]line ОКРУГЛЕНИЕ: -0.41 [15:10:39]line ИТОГО: 500.00 [15:10:39]line Внесено: 500.00 [15:10:39]line СДАЧА: 0.00 [15:10:39]line НСП 1% : 4.43 [15:10:39]line НДС 12% : 53.14 [15:10:39]line Наличными: 500.00 [15:10:39]line Безнал.: 0.00 [15:10:39]line Место: АЗС № 78 "Партнер Нефть" [15:10:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:10:39]line СНО: Общий режим [15:10:39]line Чек 143 21.10.2024 15:10 [15:10:39]line Смена: 115 ФФД: 1.0 [15:10:39]line ЗНМ: 0300000137 [15:10:39]line РНМ: 0000000000186857 [15:10:39]line Версия ККМ: v1.0 [15:10:39]line ФМ: 0000000002094219 [15:10:39]line ФД: 30646 [15:10:39]line ФПД: 5058861932007 [15:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151043&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30646&fm=5058861932007&tin=02508201610067®Number=0000000000186857&sum=50000 [15:10:39]OFD Sender: Processing packet 30646 [packets to send 10, broken 9] [15:10:39]ProducePacketName [15:10:39]name=ofd_packets/00030646 [15:10:39]OFD Sender: To server: pG, [15:10:39]CommunicateWithHost lk.salyk.kg:30040 [15:10:39]ConnectInit lk.salyk.kg [15:10:39]written 0, free lines is 4095 [15:10:39]Connected sock=10 [15:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C E7 07 01 1F 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 F3 6E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B6 77 00 00 35 04 06 00 04 99 DB AB 1D E7 7D 23 9D 13 99 EA 3C 20 [15:10:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 67 0D 47 00 2A 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 32 30 39 34 32 31 39 10 04 04 00 B6 77 00 00 F4 03 04 00 73 19 16 67 B6 04 01 00 00 18 04 15 93 84 F5 CE 96 [15:10:40]CommunicateWithHost err = 0 [15:10:40]CheckOFDResponse [15:10:40]1017 (14) - 77093643461234 [15:10:40]1041 (16) - 0000000002094219 [15:10:40]1040 (4) - 30646 [15:10:40]1012 (4) - 21.10.2024 09:05 [15:10:40]1206 (1) - 0 [15:10:40]OFD Sender: Remove packet 30646 [15:10:40]ProducePacketName [15:10:40]name=ofd_packets/00030646 [15:10:40]NVStorageDeleteData [15:10:40]Write to MH i2c: 01 00 00 AD 48 F5 [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: 01 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: 01 07 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: 01 07 00 AD 48 00 00 00 00 00 F8 0C 00 [15:10:40]RasterBufferAndPrint [15:10:40]line [15:10:40]line [15:10:40]line [15:10:40]line [15:10:40]line [15:10:40]written 0, free lines is 3331 [15:10:40]MH_Cut [15:10:40]Write to MH i2c: D1 01 00 B4 48 01 CE [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: D1 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: D1 01 00 [15:10:40]MH_I2C_Read... [15:10:40]Read from MH i2c: D1 01 00 B4 48 00 CD [15:10:40]Write to MH i2c: 01 00 00 B5 48 FD [15:10:40]Write i2c OK [15:10:40]MH_I2C_Read... [15:10:40]OFD Sender: No OFD packet to send [15:10:40]*** Cut start [15:10:40]*** Partial cut [15:10:40]*** CUTSNS_PIN = 1 [15:10:41]*** CUTSNS_PIN = 0 [15:10:41]*** Brake cut motor [15:10:41]Read from MH i2c: 01 [15:10:41]MH_I2C_Read... [15:10:41]*** Stop cut motor [15:10:41]*** Cut end [15:10:41]Read from MH i2c: 01 07 00 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: 01 07 00 B5 48 00 00 00 00 00 FF 0F 12 [15:10:41]process_action close_receipt done [15:10:41]requested_data is exist [15:10:41]produce_requested_data [15:10:41]requested_item fm.sn is exist - process it [15:10:41]wFMCommunicate request_size=4 [15:10:41]MH_SAM_APDU [15:10:41]CAPDU: 80 11 00 00 [15:10:41]Write to MH i2c: E2 08 00 B6 48 80 11 00 00 00 00 00 00 78 [15:10:41]Write i2c OK [15:10:41]MH_I2C_Read... [15:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:41]Read from MH i2c: E2 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 17 00 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 17 00 B6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C6 [15:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:10:41]wFMCommunicate OK [15:10:41]requested_item fd.num is exist - process it [15:10:41]SAM_PROTO_GetFieldsCounters [15:10:41]wFMCommunicate request_size=4 [15:10:41]MH_SAM_APDU [15:10:41]CAPDU: 80 13 00 00 [15:10:41]Write to MH i2c: E2 08 00 B7 48 80 13 00 00 00 00 00 00 7B [15:10:41]Write i2c OK [15:10:41]MH_I2C_Read... [15:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:41]Read from MH i2c: E2 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 62 00 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 62 00 B7 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 77 00 00 0E 04 04 00 73 00 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 EE [15:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:41]wFMCommunicate OK [15:10:41]SAM_PROTO_GetFieldsCounters done [15:10:41]requested_item shift.num is exist - process it [15:10:41]requested_item shift.opened is exist - process it [15:10:41]req_shift_opened [15:10:41]FM_GetShiftState [15:10:41]SAM_PROTO_GetShiftState [15:10:41]wFMCommunicate request_size=4 [15:10:41]MH_SAM_APDU [15:10:41]CAPDU: 80 13 01 00 [15:10:41]Write to MH i2c: E2 08 00 B8 48 80 13 01 00 00 00 00 00 7D [15:10:41]Write i2c OK [15:10:41]MH_I2C_Read... [15:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:41]Read from MH i2c: E2 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 0E 00 [15:10:41]MH_I2C_Read... [15:10:41]Read from MH i2c: E2 0E 00 B8 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F9 [15:10:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:10:41]wFMCommunicate OK [15:10:41]SAM_PROTO_GetShiftState done [15:10:41]FM_GetShiftState done [15:10:41]req_shift_opened done [15:10:41]requested_item shift.open_date is exist - process it [15:10:41]req_shift_open_date [15:10:41]req_shift_open_date done [15:10:41]produce_requested_data done [15:10:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30646,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:10:41]process_action_free close_receipt [15:10:41]json_value_free [15:10:41]json_value_free done [15:10:41]process_json_proto returns [15:10:41]Send response to host [15:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30646,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:10:41]free response buf [15:10:41]execute_script done [15:10:41]execute_script returns [15:10:41]free content buf [15:10:41]Sock 9.Close socket [15:10:41]Sock 9.Thread stoped [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:52]accept exits with 7 [15:10:52]New connection [15:10:52]New thread 3067489636 created [15:10:52]Thread 3067346276 joined [15:10:52]Waiting for new connection... [15:10:52] Sock 7.Parse request [15:10:52]Sock 7.Check first char [15:10:52]Sock 7.First char is OK [15:10:52]request: POST /json_proto HTTP/1.0 [15:10:52]Method: POST [15:10:52]URL: /json_proto [15:10:52]Method is POST - this is cgi request [15:10:52]url: /json_proto [15:10:52]query_string will be loaded in cgi processing [15:10:52]execute_cgi json_proto POST (null) [15:10:52]execute_cgi path=json_proto method=POST [15:10:52]POST find Content-Length [15:10:52]Host: 172.17.51.3:8080 [15:10:52]Content-Length: 677 [15:10:52]Content-Type: application/json [15:10:52] [15:10:52]POST finish read [15:10:52]Found Content-Length = 677 [15:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:52]execute_script... [15:10:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:52]POST & json_proto [15:10:52]process_json_proto [15:10:52]json parsed OK: [15:10:52]protocol is kg_v1.0 [15:10:52]action value=close_receipt [15:10:52]process_action close_receipt [15:10:52]cmd_close_receipt [15:10:52]MH_GetDate [15:10:52]Write to MH i2c: F0 00 00 B9 48 F0 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: F0 09 00 B9 48 00 02 6F 16 67 04 C1 95 66 A7 [15:10:52]GetLastDocTimeStamp 1729523443 [15:10:52]current date 1729523458 [15:10:52]FM_GetShiftState [15:10:52]SAM_PROTO_GetShiftState [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 13 01 00 [15:10:52]Write to MH i2c: E2 08 00 BA 48 80 13 01 00 00 00 00 00 7F [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 BA 48 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FB [15:10:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_GetShiftState done [15:10:52]FM_GetShiftState done [15:10:52]opened in 1729471058 [15:10:52]opened+sec_in_day 1729557458 [15:10:52]quantity*price = 30038 [15:10:52]sum+1 = 30039 [15:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 144 21.10.2024 15:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30647 ФПД: 78388621091660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30647&fm=78388621091660&tin=02508201610067®Number=0000000000186857&sum=30000 [15:10:54]StoreToDocumentArchive [15:10:54]shift 115 fd 30647 [15:10:54]save to /storage/0115/doc_00030647 [15:10:54]save last doc name /storage/0115/doc_00030647 to /storage/kkm_last_doc_name [15:10:54]save OK [15:10:54]Clear old archive folders... [15:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:54]tlvbuf is 01DEAA40 [15:10:54]SAM_PROTO_ClearQueue [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 09 00 00 [15:10:54]Write to MH i2c: E2 08 00 C7 48 80 09 00 00 00 00 00 00 81 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 C7 48 00 90 00 83 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]SAM_PROTO_ClearQueue done [15:10:54]KKMCreateOFDPacket [15:10:54]OFDProtocolAddRootSTLVToBuf [15:10:54]FM_MakeSignedData [15:10:54]FM_MakeSignedData [15:10:54]SAM_PROTO_SignData [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 01 02 [15:10:54]Write to MH i2c: E2 08 00 C8 48 80 0D 01 02 00 00 00 00 89 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 C8 48 00 90 00 84 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=255 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 02 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 77 00 00 35 04 06 00 47 [15:10:54]Write to MH i2c: E2 02 01 C9 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 02 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 77 00 00 35 04 06 00 47 00 00 74 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 C9 48 00 90 00 85 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=10 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 02 02 05 4B 45 EA 23 4C [15:10:54]Write to MH i2c: E2 0D 00 CA 48 80 0D 02 02 05 00 4B 45 EA 23 4C 00 00 7F [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 03 00 CA 48 00 90 00 86 [15:10:54]RAPDU: 90 00 [15:10:54]wFMCommunicate OK [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 0D 03 02 [15:10:54]Write to MH i2c: E2 08 00 CB 48 80 0D 03 02 00 00 00 00 8E [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 0B 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 0B 00 CB 48 00 39 8D E8 2F 78 EA 7D 11 90 00 5C [15:10:54]RAPDU: 39 8D E8 2F 78 EA 7D 11 90 00 [15:10:54]wFMCommunicate OK [15:10:54]SAM_PROTO_SignData done [15:10:54]FM_MakeSignedData done [15:10:54]CreateOFDProtocolMessage [15:10:54]wFMCommunicate request_size=4 [15:10:54]MH_SAM_APDU [15:10:54]CAPDU: 80 11 00 00 [15:10:54]Write to MH i2c: E2 08 00 CC 48 80 11 00 00 00 00 00 00 8E [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:54]Read from MH i2c: E2 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 17 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: E2 17 00 CC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DC [15:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:10:54]wFMCommunicate OK [15:10:54]CreateOFDProtocolMessage done [15:10:54]OFDSenderStorePacket 30647 [15:10:54]StoreOFDPacket docnum=30647 [15:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 10 CB 07 01 C3 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 02 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 77 00 00 35 04 06 00 47 4B 45 EA 23 4C 39 8D E8 2F 78 EA 7D 11 [15:10:54]CheckFolder [15:10:54]dirname=/storage/ofd_packets [15:10:54]CheckFolder done [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00030647 [15:10:54]NVStorageSaveData ofd_packets/00030647 [15:10:54]File name is /storage/ofd_packets/00030647 [15:10:54]Write 301 bytes [15:10:54]NVStorageSaveData done [15:10:54]OFDSenderStorePacket done [15:10:54]KKMCreateOFDPacket done [15:10:54]NVStorageSaveData kkm_last_timestamp [15:10:54]File name is /storage/kkm_last_timestamp [15:10:54]Write 4 bytes [15:10:54]NVStorageSaveData done [15:10:54]ExternCall_PrintAddStr [15:10:54]wPrintStart [15:10:54]Write to MH i2c: 01 00 00 CD 48 15 [15:10:54]Write i2c OK [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 [15:10:54]MH_I2C_Read... [15:10:54]Read from MH i2c: 01 07 00 CD 48 00 00 00 00 00 FF 0F 2A [15:10:54]RasterBufferAndPrint [15:10:54]line Счет N : (1)343056 [15:10:54]line ИНН: 02508201610067 [15:10:54]line Контрольно-Кассовый Чек [15:10:54]line ПРОДАЖА [15:10:54]line ТРК (МРК, ГНК) : 63 [15:10:54]line Товар: 2710124130 [15:10:54]line Аи-92-К-2 [15:10:54]line 4.490 * 66.90 [15:10:54]line = 300.38 [15:10:54]line НДС 12% НСП 1% [15:10:54]line > о реализуемом товаре [15:10:54]line ОКРУГЛЕНИЕ: -0.38 [15:10:54]line ИТОГО: 300.00 [15:10:54]line Внесено: 300.00 [15:10:54]line СДАЧА: 0.00 [15:10:54]line НСП 1% : 2.66 [15:10:54]line НДС 12% : 31.90 [15:10:54]line Наличными: 300.00 [15:10:54]line Безнал.: 0.00 [15:10:54]line Место: АЗС № 78 "Партнер Нефть" [15:10:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:10:54]line СНО: Общий режим [15:10:54]line Чек 144 21.10.2024 15:10 [15:10:54]line Смена: 115 ФФД: 1.0 [15:10:54]line ЗНМ: 0300000137 [15:10:54]line РНМ: 0000000000186857 [15:10:54]line Версия ККМ: v1.0 [15:10:54]line ФМ: 0000000002094219 [15:10:54]line ФД: 30647 [15:10:54]line ФПД: 78388621091660 [15:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151058&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30647&fm=78388621091660&tin=02508201610067®Number=0000000000186857&sum=30000 [15:10:54]OFD Sender: Processing packet 30647 [packets to send 10, broken 9] [15:10:54]ProducePacketName [15:10:54]name=ofd_packets/00030647 [15:10:54]OFD Sender: To server: pG, [15:10:54]CommunicateWithHost lk.salyk.kg:30040 [15:10:54]ConnectInit lk.salyk.kg [15:10:54]written 0, free lines is 4095 [15:10:55]Connected sock=10 [15:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 10 CB 07 01 C3 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 02 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 77 00 00 35 04 06 00 47 4B 45 EA 23 4C 39 8D E8 2F 78 EA 7D 11 [15:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 F2 47 00 A5 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B7 77 00 00 F4 03 04 00 82 19 16 67 B6 04 01 00 00 9E 9A 48 30 1C EC F7 4F [15:10:55]CommunicateWithHost err = 0 [15:10:55]CheckOFDResponse [15:10:55]1017 (14) - 77093643461234 [15:10:55]1041 (16) - 0000000002094219 [15:10:55]1040 (4) - 30647 [15:10:55]1012 (4) - 21.10.2024 09:06 [15:10:55]1206 (1) - 0 [15:10:55]OFD Sender: Remove packet 30647 [15:10:55]ProducePacketName [15:10:55]name=ofd_packets/00030647 [15:10:55]NVStorageDeleteData [15:10:55]Write to MH i2c: 01 00 00 F8 48 40 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: 01 07 00 F8 48 00 00 00 00 00 F9 0C 4C [15:10:55]RasterBufferAndPrint [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]line [15:10:55]written 0, free lines is 3330 [15:10:55]MH_Cut [15:10:55]Write to MH i2c: D1 01 00 FF 48 01 19 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: D1 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: D1 01 00 [15:10:55]MH_I2C_Read... [15:10:55]Read from MH i2c: D1 01 00 FF 48 00 18 [15:10:55]Write to MH i2c: 01 00 00 00 49 49 [15:10:55]Write i2c OK [15:10:55]MH_I2C_Read... [15:10:55]OFD Sender: No OFD packet to send [15:10:56]*** Cut start [15:10:56]*** Partial cut [15:10:56]*** CUTSNS_PIN = 1 [15:10:56]*** CUTSNS_PIN = 0 [15:10:56]*** Brake cut motor [15:10:56]Read from MH i2c: 01 [15:10:56]MH_I2C_Read... [15:10:56]*** Stop cut motor [15:10:56]*** Cut end [15:10:56]Read from MH i2c: 01 07 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: 01 07 00 00 49 00 00 00 00 00 FF 0F 5E [15:10:56]process_action close_receipt done [15:10:56]requested_data is exist [15:10:56]produce_requested_data [15:10:56]requested_item fm.sn is exist - process it [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 11 00 00 [15:10:56]Write to MH i2c: E2 08 00 01 49 80 11 00 00 00 00 00 00 C4 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 17 00 01 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [15:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:10:56]wFMCommunicate OK [15:10:56]requested_item fd.num is exist - process it [15:10:56]SAM_PROTO_GetFieldsCounters [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 00 00 [15:10:56]Write to MH i2c: E2 08 00 02 49 80 13 00 00 00 00 00 00 C7 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 62 00 02 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 77 00 00 0E 04 04 00 73 00 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 3E [15:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetFieldsCounters done [15:10:56]requested_item shift.num is exist - process it [15:10:56]requested_item shift.opened is exist - process it [15:10:56]req_shift_opened [15:10:56]FM_GetShiftState [15:10:56]SAM_PROTO_GetShiftState [15:10:56]wFMCommunicate request_size=4 [15:10:56]MH_SAM_APDU [15:10:56]CAPDU: 80 13 01 00 [15:10:56]Write to MH i2c: E2 08 00 03 49 80 13 01 00 00 00 00 00 C9 [15:10:56]Write i2c OK [15:10:56]MH_I2C_Read... [15:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:56]Read from MH i2c: E2 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 [15:10:56]MH_I2C_Read... [15:10:56]Read from MH i2c: E2 0E 00 03 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 45 [15:10:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:10:56]wFMCommunicate OK [15:10:56]SAM_PROTO_GetShiftState done [15:10:56]FM_GetShiftState done [15:10:56]req_shift_opened done [15:10:56]requested_item shift.open_date is exist - process it [15:10:56]req_shift_open_date [15:10:56]req_shift_open_date done [15:10:56]produce_requested_data done [15:10:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30647,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:10:56]process_action_free close_receipt [15:10:56]json_value_free [15:10:56]json_value_free done [15:10:56]process_json_proto returns [15:10:56]Send response to host [15:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30647,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:10:56]free response buf [15:10:56]execute_script done [15:10:56]execute_script returns [15:10:56]free content buf [15:10:56]Sock 7.Close socket [15:10:56]Sock 7.Thread stoped [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]accept exits with 9 [15:11:40]New connection [15:11:40]New thread 3067346276 created [15:11:40]Thread 3067489636 joined [15:11:40]Waiting for new connection... [15:11:40] Sock 9.Parse request [15:11:40]Sock 9.Check first char [15:11:40]Sock 9.First char is OK [15:11:40]request: POST /json_proto HTTP/1.0 [15:11:40]Method: POST [15:11:40]URL: /json_proto [15:11:40]Method is POST - this is cgi request [15:11:40]url: /json_proto [15:11:40]query_string will be loaded in cgi processing [15:11:40]execute_cgi json_proto POST (null) [15:11:40]execute_cgi path=json_proto method=POST [15:11:40]POST find Content-Length [15:11:40]Host: 172.17.51.3:8080 [15:11:40]Content-Length: 840 [15:11:40]Content-Type: application/json [15:11:40] [15:11:40]POST finish read [15:11:40]Found Content-Length = 840 [15:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:40]execute_script... [15:11:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:40]POST & json_proto [15:11:40]process_json_proto [15:11:40]json parsed OK: [15:11:40]protocol is kg_v1.0 [15:11:40]action value=close_receipt [15:11:40]process_action close_receipt [15:11:40]cmd_close_receipt [15:11:40]MH_GetDate [15:11:40]Write to MH i2c: F0 00 00 04 49 3C [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: F0 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: F0 09 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: F0 09 00 04 49 00 32 6F 16 67 04 C1 95 66 23 [15:11:40]GetLastDocTimeStamp 1729523458 [15:11:40]current date 1729523506 [15:11:40]FM_GetShiftState [15:11:40]SAM_PROTO_GetShiftState [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 01 00 [15:11:40]Write to MH i2c: E2 08 00 05 49 80 13 01 00 00 00 00 00 CB [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]OFD Sender: No OFD packet to send [15:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 05 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 47 [15:11:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetShiftState done [15:11:40]FM_GetShiftState done [15:11:40]opened in 1729471058 [15:11:40]opened+sec_in_day 1729557458 [15:11:40]quantity*price = 25020 [15:11:40]sum+1 = 25022 [15:11:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 145 21.10.2024 15:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30648 ФПД: 54264239214024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151146&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30648&fm=54264239214024&tin=02508201610067®Number=0000000000186857&sum=25021 [15:11:41]StoreToDocumentArchive [15:11:41]shift 115 fd 30648 [15:11:41]save to /storage/0115/doc_00030648 [15:11:41]save last doc name /storage/0115/doc_00030648 to /storage/kkm_last_doc_name [15:11:41]save OK [15:11:41]Clear old archive folders... [15:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:41]tlvbuf is 01DD74B0 [15:11:41]SAM_PROTO_ClearQueue [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 09 00 00 [15:11:41]Write to MH i2c: E2 08 00 12 49 80 09 00 00 00 00 00 00 CD [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 12 49 00 90 00 CF [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]SAM_PROTO_ClearQueue done [15:11:42]KKMCreateOFDPacket [15:11:42]OFDProtocolAddRootSTLVToBuf [15:11:42]FM_MakeSignedData [15:11:42]FM_MakeSignedData [15:11:42]SAM_PROTO_SignData [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 01 02 [15:11:42]Write to MH i2c: E2 08 00 13 49 80 0D 01 02 00 00 00 00 D5 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 13 49 00 90 00 D0 [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]wFMCommunicate request_size=255 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 32 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 77 00 00 35 04 06 00 31 [15:11:42]Write to MH i2c: E2 02 01 14 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 32 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 77 00 00 35 04 06 00 31 00 00 EB [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 14 49 00 90 00 D1 [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]wFMCommunicate request_size=10 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 02 02 05 5A 60 B3 CD C8 [15:11:42]Write to MH i2c: E2 0D 00 15 49 80 0D 02 02 05 00 5A 60 B3 CD C8 00 00 E4 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 03 00 15 49 00 90 00 D2 [15:11:42]RAPDU: 90 00 [15:11:42]wFMCommunicate OK [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 0D 03 02 [15:11:42]Write to MH i2c: E2 08 00 16 49 80 0D 03 02 00 00 00 00 DA [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 0B 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 0B 00 16 49 00 DC 9D 36 34 E3 FA B7 E9 90 00 3B [15:11:42]RAPDU: DC 9D 36 34 E3 FA B7 E9 90 00 [15:11:42]wFMCommunicate OK [15:11:42]SAM_PROTO_SignData done [15:11:42]FM_MakeSignedData done [15:11:42]CreateOFDProtocolMessage [15:11:42]wFMCommunicate request_size=4 [15:11:42]MH_SAM_APDU [15:11:42]CAPDU: 80 11 00 00 [15:11:42]Write to MH i2c: E2 08 00 17 49 80 11 00 00 00 00 00 00 DA [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:42]Read from MH i2c: E2 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 17 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: E2 17 00 17 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 28 [15:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:11:42]wFMCommunicate OK [15:11:42]CreateOFDProtocolMessage done [15:11:42]OFDSenderStorePacket 30648 [15:11:42]StoreOFDPacket docnum=30648 [15:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F3 8E 07 01 58 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 32 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 77 00 00 35 04 06 00 31 5A 60 B3 CD C8 DC 9D 36 34 E3 FA B7 E9 [15:11:42]CheckFolder [15:11:42]dirname=/storage/ofd_packets [15:11:42]CheckFolder done [15:11:42]ProducePacketName [15:11:42]name=ofd_packets/00030648 [15:11:42]NVStorageSaveData ofd_packets/00030648 [15:11:42]File name is /storage/ofd_packets/00030648 [15:11:42]Write 301 bytes [15:11:42]NVStorageSaveData done [15:11:42]OFDSenderStorePacket done [15:11:42]KKMCreateOFDPacket done [15:11:42]NVStorageSaveData kkm_last_timestamp [15:11:42]File name is /storage/kkm_last_timestamp [15:11:42]Write 4 bytes [15:11:42]NVStorageSaveData done [15:11:42]ExternCall_PrintAddStr [15:11:42]wPrintStart [15:11:42]Write to MH i2c: 01 00 00 18 49 61 [15:11:42]Write i2c OK [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 [15:11:42]MH_I2C_Read... [15:11:42]Read from MH i2c: 01 07 00 18 49 00 00 00 00 00 FF 0F 76 [15:11:42]RasterBufferAndPrint [15:11:42]line Счет N : (1)343057 [15:11:42]line ИНН: 02508201610067 [15:11:42]line Контрольно-Кассовый Чек [15:11:42]line ПРОДАЖА [15:11:42]line ТРК (МРК, ГНК) : 43 [15:11:42]line Товар: 2710124130 [15:11:42]line Аи-92-К-2 [15:11:42]line 3.740 * 66.90 [15:11:42]line = 250.21 [15:11:42]line НДС 12% НСП 1% [15:11:42]line > о реализуемом товаре [15:11:42]line ИТОГО: 250.21 [15:11:42]line НСП 1% : 2.21 [15:11:42]line НДС 12% : 26.57 [15:11:42]line Наличными: 0.00 [15:11:42]line Безнал.: 250.21 [15:11:42]line Место: АЗС № 78 "Партнер Нефть" [15:11:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:11:42]line СНО: Общий режим [15:11:42]line Чек 145 21.10.2024 15:11 [15:11:42]line Смена: 115 ФФД: 1.0 [15:11:42]line ЗНМ: 0300000137 [15:11:42]line РНМ: 0000000000186857 [15:11:42]line Версия ККМ: v1.0 [15:11:42]line Платежная система: АКБ Кыргызстан [15:11:42]line ФМ: 0000000002094219 [15:11:42]line ФД: 30648 [15:11:42]line ФПД: 54264239214024 [15:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151146&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30648&fm=54264239214024&tin=02508201610067®Number=0000000000186857&sum=25021 [15:11:42]OFD Sender: Processing packet 30648 [packets to send 10, broken 9] [15:11:42]ProducePacketName [15:11:42]name=ofd_packets/00030648 [15:11:42]OFD Sender: To server: pG, [15:11:42]CommunicateWithHost lk.salyk.kg:30040 [15:11:42]ConnectInit lk.salyk.kg [15:11:42]written 0, free lines is 4095 [15:11:42]Connected sock=10 [15:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F3 8E 07 01 58 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 32 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B8 77 00 00 35 04 06 00 31 5A 60 B3 CD C8 DC 9D 36 34 E3 FA B7 E9 [15:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 03 48 47 00 D2 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 32 30 39 34 32 31 39 10 04 04 00 B8 77 00 00 F4 03 04 00 B2 19 16 67 B6 04 01 00 00 FF BA B9 8E E3 9C 86 C8 [15:11:43]CommunicateWithHost err = 0 [15:11:43]CheckOFDResponse [15:11:43]1017 (14) - 77093643461234 [15:11:43]1041 (16) - 0000000002094219 [15:11:43]1040 (4) - 30648 [15:11:43]1012 (4) - 21.10.2024 09:06 [15:11:43]1206 (1) - 0 [15:11:43]OFD Sender: Remove packet 30648 [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00030648 [15:11:43]NVStorageDeleteData [15:11:43]Write to MH i2c: 01 00 00 42 49 8B [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 42 49 00 00 00 00 00 02 0D A1 [15:11:43]RasterBufferAndPrint [15:11:43]line [15:11:43]line [15:11:43]line [15:11:43]line [15:11:43]line [15:11:43]written 0, free lines is 3336 [15:11:43]MH_Cut [15:11:43]Write to MH i2c: D1 01 00 49 49 01 64 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: D1 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: D1 01 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: D1 01 00 49 49 00 63 [15:11:43]Write to MH i2c: 01 00 00 4A 49 93 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]OFD Sender: No OFD packet to send [15:11:43]*** Cut start [15:11:43]*** Partial cut [15:11:43]*** CUTSNS_PIN = 1 [15:11:43]*** CUTSNS_PIN = 0 [15:11:44]*** Brake cut motor [15:11:44]Read from MH i2c: 01 [15:11:44]MH_I2C_Read... [15:11:44]*** Stop cut motor [15:11:44]*** Cut end [15:11:44]Read from MH i2c: 01 07 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 07 00 4A 49 00 00 00 00 00 FF 0F A8 [15:11:44]process_action close_receipt done [15:11:44]requested_data is exist [15:11:44]produce_requested_data [15:11:44]requested_item fm.sn is exist - process it [15:11:44]wFMCommunicate request_size=4 [15:11:44]MH_SAM_APDU [15:11:44]CAPDU: 80 11 00 00 [15:11:44]Write to MH i2c: E2 08 00 4B 49 80 11 00 00 00 00 00 00 0E [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:44]Read from MH i2c: E2 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 17 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 17 00 4B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5C [15:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:11:44]wFMCommunicate OK [15:11:44]requested_item fd.num is exist - process it [15:11:44]SAM_PROTO_GetFieldsCounters [15:11:44]wFMCommunicate request_size=4 [15:11:44]MH_SAM_APDU [15:11:44]CAPDU: 80 13 00 00 [15:11:44]Write to MH i2c: E2 08 00 4C 49 80 13 00 00 00 00 00 00 11 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:44]Read from MH i2c: E2 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 62 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 62 00 4C 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B8 77 00 00 0E 04 04 00 73 00 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 8C [15:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:44]wFMCommunicate OK [15:11:44]SAM_PROTO_GetFieldsCounters done [15:11:44]requested_item shift.num is exist - process it [15:11:44]requested_item shift.opened is exist - process it [15:11:44]req_shift_opened [15:11:44]FM_GetShiftState [15:11:44]SAM_PROTO_GetShiftState [15:11:44]wFMCommunicate request_size=4 [15:11:44]MH_SAM_APDU [15:11:44]CAPDU: 80 13 01 00 [15:11:44]Write to MH i2c: E2 08 00 4D 49 80 13 01 00 00 00 00 00 13 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:44]Read from MH i2c: E2 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: E2 0E 00 4D 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8F [15:11:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:11:44]wFMCommunicate OK [15:11:44]SAM_PROTO_GetShiftState done [15:11:44]FM_GetShiftState done [15:11:44]req_shift_opened done [15:11:44]requested_item shift.open_date is exist - process it [15:11:44]req_shift_open_date [15:11:44]req_shift_open_date done [15:11:44]produce_requested_data done [15:11:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30648,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:11:44]process_action_free close_receipt [15:11:44]json_value_free [15:11:44]json_value_free done [15:11:44]process_json_proto returns [15:11:44]Send response to host [15:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30648,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:11:44]free response buf [15:11:44]execute_script done [15:11:44]execute_script returns [15:11:44]free content buf [15:11:44]Sock 9.Close socket [15:11:44]Sock 9.Thread stoped [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:29]accept exits with 7 [15:14:29]New connection [15:14:29]New thread 3067489636 created [15:14:29]Thread 3067346276 joined [15:14:29]Waiting for new connection... [15:14:29] Sock 7.Parse request [15:14:29]Sock 7.Check first char [15:14:29]Sock 7.First char is OK [15:14:29]request: POST /json_proto HTTP/1.0 [15:14:29]Method: POST [15:14:29]URL: /json_proto [15:14:29]Method is POST - this is cgi request [15:14:29]url: /json_proto [15:14:29]query_string will be loaded in cgi processing [15:14:29]execute_cgi json_proto POST (null) [15:14:29]execute_cgi path=json_proto method=POST [15:14:29]POST find Content-Length [15:14:29]Host: 172.17.51.3:8080 [15:14:29]Content-Length: 677 [15:14:29]Content-Type: application/json [15:14:29] [15:14:29]POST finish read [15:14:29]Found Content-Length = 677 [15:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:29]execute_script... [15:14:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:29]POST & json_proto [15:14:29]process_json_proto [15:14:29]json parsed OK: [15:14:29]protocol is kg_v1.0 [15:14:29]action value=close_receipt [15:14:29]process_action close_receipt [15:14:29]cmd_close_receipt [15:14:29]MH_GetDate [15:14:29]Write to MH i2c: F0 00 00 4E 49 86 [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 09 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: F0 09 00 4E 49 00 DA 6F 16 67 04 C1 95 66 15 [15:14:29]GetLastDocTimeStamp 1729523506 [15:14:29]current date 1729523674 [15:14:29]FM_GetShiftState [15:14:29]SAM_PROTO_GetShiftState [15:14:29]wFMCommunicate request_size=4 [15:14:29]MH_SAM_APDU [15:14:29]CAPDU: 80 13 01 00 [15:14:29]Write to MH i2c: E2 08 00 4F 49 80 13 01 00 00 00 00 00 15 [15:14:29]Write i2c OK [15:14:29]MH_I2C_Read... [15:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:29]Read from MH i2c: E2 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 0E 00 [15:14:29]MH_I2C_Read... [15:14:29]Read from MH i2c: E2 0E 00 4F 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 91 [15:14:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:14:29]wFMCommunicate OK [15:14:29]SAM_PROTO_GetShiftState done [15:14:29]FM_GetShiftState done [15:14:29]opened in 1729471058 [15:14:29]opened+sec_in_day 1729557458 [15:14:29]quantity*price = 50041 [15:14:29]sum+1 = 50042 [15:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 146 21.10.2024 15:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30649 ФПД: 169834500102454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151434&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30649&fm=169834500102454&tin=02508201610067®Number=0000000000186857&sum=50000 [15:14:30]StoreToDocumentArchive [15:14:30]shift 115 fd 30649 [15:14:30]save to /storage/0115/doc_00030649 [15:14:30]save last doc name /storage/0115/doc_00030649 to /storage/kkm_last_doc_name [15:14:30]save OK [15:14:30]Clear old archive folders... [15:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:30]tlvbuf is 01E06830 [15:14:30]SAM_PROTO_ClearQueue [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 09 00 00 [15:14:30]Write to MH i2c: E2 08 00 5C 49 80 09 00 00 00 00 00 00 17 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 5C 49 00 90 00 19 [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]SAM_PROTO_ClearQueue done [15:14:30]KKMCreateOFDPacket [15:14:30]OFDProtocolAddRootSTLVToBuf [15:14:30]FM_MakeSignedData [15:14:30]FM_MakeSignedData [15:14:30]SAM_PROTO_SignData [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 01 02 [15:14:30]Write to MH i2c: E2 08 00 5D 49 80 0D 01 02 00 00 00 00 1F [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 5D 49 00 90 00 1A [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=255 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DA 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 77 00 00 35 04 06 00 9A [15:14:30]Write to MH i2c: E2 02 01 5E 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DA 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 77 00 00 35 04 06 00 9A 00 00 45 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 5E 49 00 90 00 1B [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=10 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 02 02 05 76 AD 0C 99 36 [15:14:30]Write to MH i2c: E2 0D 00 5F 49 80 0D 02 02 05 00 76 AD 0C 99 36 00 00 2A [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 03 00 5F 49 00 90 00 1C [15:14:30]RAPDU: 90 00 [15:14:30]wFMCommunicate OK [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 0D 03 02 [15:14:30]Write to MH i2c: E2 08 00 60 49 80 0D 03 02 00 00 00 00 24 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0B 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 0B 00 60 49 00 DF 53 81 06 0B 6C CF 49 90 00 6D [15:14:30]RAPDU: DF 53 81 06 0B 6C CF 49 90 00 [15:14:30]wFMCommunicate OK [15:14:30]SAM_PROTO_SignData done [15:14:30]FM_MakeSignedData done [15:14:30]CreateOFDProtocolMessage [15:14:30]wFMCommunicate request_size=4 [15:14:30]MH_SAM_APDU [15:14:30]CAPDU: 80 11 00 00 [15:14:30]Write to MH i2c: E2 08 00 61 49 80 11 00 00 00 00 00 00 24 [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:30]Read from MH i2c: E2 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 17 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: E2 17 00 61 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [15:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:30]wFMCommunicate OK [15:14:30]CreateOFDProtocolMessage done [15:14:30]OFDSenderStorePacket 30649 [15:14:30]StoreOFDPacket docnum=30649 [15:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A 7C 07 01 E0 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DA 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 77 00 00 35 04 06 00 9A 76 AD 0C 99 36 DF 53 81 06 0B 6C CF 49 [15:14:30]CheckFolder [15:14:30]dirname=/storage/ofd_packets [15:14:30]CheckFolder done [15:14:30]ProducePacketName [15:14:30]name=ofd_packets/00030649 [15:14:30]NVStorageSaveData ofd_packets/00030649 [15:14:30]File name is /storage/ofd_packets/00030649 [15:14:30]Write 301 bytes [15:14:30]NVStorageSaveData done [15:14:30]OFDSenderStorePacket done [15:14:30]KKMCreateOFDPacket done [15:14:30]NVStorageSaveData kkm_last_timestamp [15:14:30]File name is /storage/kkm_last_timestamp [15:14:30]Write 4 bytes [15:14:30]NVStorageSaveData done [15:14:30]ExternCall_PrintAddStr [15:14:30]wPrintStart [15:14:30]Write to MH i2c: 01 00 00 62 49 AB [15:14:30]Write i2c OK [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 07 00 [15:14:30]MH_I2C_Read... [15:14:30]Read from MH i2c: 01 07 00 62 49 00 00 00 00 00 FF 0F C0 [15:14:30]RasterBufferAndPrint [15:14:30]line Счет N : (1)343058 [15:14:30]line ИНН: 02508201610067 [15:14:30]line Контрольно-Кассовый Чек [15:14:30]line ПРОДАЖА [15:14:30]line ТРК (МРК, ГНК) : 63 [15:14:30]line Товар: 2710124130 [15:14:30]line Аи-92-К-2 [15:14:30]line 7.480 * 66.90 [15:14:30]line = 500.41 [15:14:30]line НДС 12% НСП 1% [15:14:30]line > о реализуемом товаре [15:14:30]line ОКРУГЛЕНИЕ: -0.41 [15:14:30]line ИТОГО: 500.00 [15:14:30]line Внесено: 500.00 [15:14:30]line СДАЧА: 0.00 [15:14:30]line НСП 1% : 4.43 [15:14:30]line НДС 12% : 53.14 [15:14:30]line Наличными: 500.00 [15:14:30]line Безнал.: 0.00 [15:14:30]line Место: АЗС № 78 "Партнер Нефть" [15:14:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:14:30]line СНО: Общий режим [15:14:30]line Чек 146 21.10.2024 15:14 [15:14:30]line Смена: 115 ФФД: 1.0 [15:14:30]line ЗНМ: 0300000137 [15:14:30]line РНМ: 0000000000186857 [15:14:30]line Версия ККМ: v1.0 [15:14:30]line ФМ: 0000000002094219 [15:14:30]line ФД: 30649 [15:14:30]line ФПД: 169834500102454 [15:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151434&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30649&fm=169834500102454&tin=02508201610067®Number=0000000000186857&sum=50000 [15:14:31]OFD Sender: Processing packet 30649 [packets to send 10, broken 9] [15:14:31]ProducePacketName [15:14:31]name=ofd_packets/00030649 [15:14:31]OFD Sender: To server: pG, [15:14:31]CommunicateWithHost lk.salyk.kg:30040 [15:14:31]ConnectInit lk.salyk.kg [15:14:31]written 0, free lines is 4095 [15:14:31]Connected sock=10 [15:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A 7C 07 01 E0 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 DA 6F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 77 00 00 35 04 06 00 9A 76 AD 0C 99 36 DF 53 81 06 0B 6C CF 49 [15:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 59 D2 47 00 59 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 B9 77 00 00 F4 03 04 00 5B 1A 16 67 B6 04 01 00 00 68 8A E3 AF 0A E8 6A FC [15:14:31]CommunicateWithHost err = 0 [15:14:31]CheckOFDResponse [15:14:31]1017 (14) - 77093643461234 [15:14:31]1041 (16) - 0000000002094219 [15:14:31]1040 (4) - 30649 [15:14:31]1012 (4) - 21.10.2024 09:09 [15:14:31]1206 (1) - 0 [15:14:31]OFD Sender: Remove packet 30649 [15:14:31]ProducePacketName [15:14:31]name=ofd_packets/00030649 [15:14:31]NVStorageDeleteData [15:14:31]Write to MH i2c: 01 00 00 8D 49 D6 [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: 01 07 00 8D 49 00 00 00 00 00 E4 0C CD [15:14:31]RasterBufferAndPrint [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]line [15:14:31]written 0, free lines is 3306 [15:14:31]MH_Cut [15:14:31]Write to MH i2c: D1 01 00 94 49 01 AF [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 01 00 [15:14:31]MH_I2C_Read... [15:14:31]Read from MH i2c: D1 01 00 94 49 00 AE [15:14:31]Write to MH i2c: 01 00 00 95 49 DE [15:14:31]Write i2c OK [15:14:31]MH_I2C_Read... [15:14:32]OFD Sender: No OFD packet to send [15:14:32]*** Cut start [15:14:32]*** Partial cut [15:14:32]*** CUTSNS_PIN = 1 [15:14:32]*** CUTSNS_PIN = 0 [15:14:32]*** Brake cut motor [15:14:32]Read from MH i2c: 01 [15:14:32]MH_I2C_Read... [15:14:32]*** Stop cut motor [15:14:32]*** Cut end [15:14:32]Read from MH i2c: 01 07 00 [15:14:32]MH_I2C_Read... [15:14:32]Read from MH i2c: 01 07 00 95 49 00 00 00 00 00 FF 0F F3 [15:14:32]process_action close_receipt done [15:14:32]requested_data is exist [15:14:32]produce_requested_data [15:14:32]requested_item fm.sn is exist - process it [15:14:32]wFMCommunicate request_size=4 [15:14:32]MH_SAM_APDU [15:14:32]CAPDU: 80 11 00 00 [15:14:32]Write to MH i2c: E2 08 00 96 49 80 11 00 00 00 00 00 00 59 [15:14:32]Write i2c OK [15:14:32]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 17 00 96 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A7 [15:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:14:33]wFMCommunicate OK [15:14:33]requested_item fd.num is exist - process it [15:14:33]SAM_PROTO_GetFieldsCounters [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 13 00 00 [15:14:33]Write to MH i2c: E2 08 00 97 49 80 13 00 00 00 00 00 00 5C [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 62 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 62 00 97 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 77 00 00 0E 04 04 00 73 00 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 DB [15:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 B9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:33]wFMCommunicate OK [15:14:33]SAM_PROTO_GetFieldsCounters done [15:14:33]requested_item shift.num is exist - process it [15:14:33]requested_item shift.opened is exist - process it [15:14:33]req_shift_opened [15:14:33]FM_GetShiftState [15:14:33]SAM_PROTO_GetShiftState [15:14:33]wFMCommunicate request_size=4 [15:14:33]MH_SAM_APDU [15:14:33]CAPDU: 80 13 01 00 [15:14:33]Write to MH i2c: E2 08 00 98 49 80 13 01 00 00 00 00 00 5E [15:14:33]Write i2c OK [15:14:33]MH_I2C_Read... [15:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:33]Read from MH i2c: E2 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 [15:14:33]MH_I2C_Read... [15:14:33]Read from MH i2c: E2 0E 00 98 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DA [15:14:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:14:33]wFMCommunicate OK [15:14:33]SAM_PROTO_GetShiftState done [15:14:33]FM_GetShiftState done [15:14:33]req_shift_opened done [15:14:33]requested_item shift.open_date is exist - process it [15:14:33]req_shift_open_date [15:14:33]req_shift_open_date done [15:14:33]produce_requested_data done [15:14:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30649,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:14:33]process_action_free close_receipt [15:14:33]json_value_free [15:14:33]json_value_free done [15:14:33]process_json_proto returns [15:14:33]Send response to host [15:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30649,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:14:33]free response buf [15:14:33]execute_script done [15:14:33]execute_script returns [15:14:33]free content buf [15:14:33]Sock 7.Close socket [15:14:33]Sock 7.Thread stoped [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:48]accept exits with 9 [15:15:48]New connection [15:15:48]New thread 3067346276 created [15:15:48]Thread 3067489636 joined [15:15:48]Waiting for new connection... [15:15:48] Sock 9.Parse request [15:15:48]Sock 9.Check first char [15:15:48]Sock 9.First char is OK [15:15:48]request: POST /json_proto HTTP/1.0 [15:15:48]Method: POST [15:15:48]URL: /json_proto [15:15:48]Method is POST - this is cgi request [15:15:48]url: /json_proto [15:15:48]query_string will be loaded in cgi processing [15:15:48]execute_cgi json_proto POST (null) [15:15:48]execute_cgi path=json_proto method=POST [15:15:48]POST find Content-Length [15:15:48]Host: 172.17.51.3:8080 [15:15:48]Content-Length: 677 [15:15:48]Content-Type: application/json [15:15:48] [15:15:48]POST finish read [15:15:48]Found Content-Length = 677 [15:15:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:48]execute_script... [15:15:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:48]POST & json_proto [15:15:48]process_json_proto [15:15:48]json parsed OK: [15:15:48]protocol is kg_v1.0 [15:15:48]action value=close_receipt [15:15:48]process_action close_receipt [15:15:48]cmd_close_receipt [15:15:48]MH_GetDate [15:15:48]Write to MH i2c: F0 00 00 99 49 D1 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: F0 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: F0 09 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: F0 09 00 99 49 00 29 70 16 67 04 C1 95 66 B0 [15:15:48]GetLastDocTimeStamp 1729523674 [15:15:48]current date 1729523753 [15:15:48]FM_GetShiftState [15:15:48]SAM_PROTO_GetShiftState [15:15:48]wFMCommunicate request_size=4 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 13 01 00 [15:15:48]Write to MH i2c: E2 08 00 9A 49 80 13 01 00 00 00 00 00 60 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0E 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0E 00 9A 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DC [15:15:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:15:48]wFMCommunicate OK [15:15:48]SAM_PROTO_GetShiftState done [15:15:48]FM_GetShiftState done [15:15:48]opened in 1729471058 [15:15:48]opened+sec_in_day 1729557458 [15:15:48]quantity*price = 40006 [15:15:48]sum+1 = 40007 [15:15:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 147 21.10.2024 15:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30650 ФПД: 161545192675810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30650&fm=161545192675810&tin=02508201610067®Number=0000000000186857&sum=40000 [15:15:49]StoreToDocumentArchive [15:15:49]shift 115 fd 30650 [15:15:49]save to /storage/0115/doc_00030650 [15:15:49]save last doc name /storage/0115/doc_00030650 to /storage/kkm_last_doc_name [15:15:49]save OK [15:15:49]Clear old archive folders... [15:15:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:49]tlvbuf is 01E0C390 [15:15:49]SAM_PROTO_ClearQueue [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 09 00 00 [15:15:49]Write to MH i2c: E2 08 00 A7 49 80 09 00 00 00 00 00 00 62 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_ClearQueue done [15:15:49]KKMCreateOFDPacket [15:15:49]OFDProtocolAddRootSTLVToBuf [15:15:49]FM_MakeSignedData [15:15:49]FM_MakeSignedData [15:15:49]SAM_PROTO_SignData [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 01 02 [15:15:49]Write to MH i2c: E2 08 00 A8 49 80 0D 01 02 00 00 00 00 6A [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 A8 49 00 90 00 65 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=255 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 29 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 77 00 00 35 04 06 00 92 [15:15:49]Write to MH i2c: E2 02 01 A9 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 29 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 77 00 00 35 04 06 00 92 00 00 A9 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 A9 49 00 90 00 66 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=10 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 02 02 05 EC AB D3 19 E2 [15:15:49]Write to MH i2c: E2 0D 00 AA 49 80 0D 02 02 05 00 EC AB D3 19 E2 00 00 DC [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 03 00 AA 49 00 90 00 67 [15:15:49]RAPDU: 90 00 [15:15:49]wFMCommunicate OK [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 0D 03 02 [15:15:49]Write to MH i2c: E2 08 00 AB 49 80 0D 03 02 00 00 00 00 6F [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:50]Read from MH i2c: E2 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 0B 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 0B 00 AB 49 00 97 EB C8 D1 09 67 02 E9 90 00 E6 [15:15:50]RAPDU: 97 EB C8 D1 09 67 02 E9 90 00 [15:15:50]wFMCommunicate OK [15:15:50]SAM_PROTO_SignData done [15:15:50]FM_MakeSignedData done [15:15:50]CreateOFDProtocolMessage [15:15:50]wFMCommunicate request_size=4 [15:15:50]MH_SAM_APDU [15:15:50]CAPDU: 80 11 00 00 [15:15:50]Write to MH i2c: E2 08 00 AC 49 80 11 00 00 00 00 00 00 6F [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:50]Read from MH i2c: E2 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 17 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: E2 17 00 AC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BD [15:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:15:50]wFMCommunicate OK [15:15:50]CreateOFDProtocolMessage done [15:15:50]OFDSenderStorePacket 30650 [15:15:50]StoreOFDPacket docnum=30650 [15:15:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A 1C 07 01 7A EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 29 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 77 00 00 35 04 06 00 92 EC AB D3 19 E2 97 EB C8 D1 09 67 02 E9 [15:15:50]CheckFolder [15:15:50]dirname=/storage/ofd_packets [15:15:50]CheckFolder done [15:15:50]ProducePacketName [15:15:50]name=ofd_packets/00030650 [15:15:50]NVStorageSaveData ofd_packets/00030650 [15:15:50]File name is /storage/ofd_packets/00030650 [15:15:50]Write 301 bytes [15:15:50]NVStorageSaveData done [15:15:50]OFDSenderStorePacket done [15:15:50]KKMCreateOFDPacket done [15:15:50]NVStorageSaveData kkm_last_timestamp [15:15:50]File name is /storage/kkm_last_timestamp [15:15:50]Write 4 bytes [15:15:50]NVStorageSaveData done [15:15:50]ExternCall_PrintAddStr [15:15:50]wPrintStart [15:15:50]Write to MH i2c: 01 00 00 AD 49 F6 [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 AD 49 00 00 00 00 00 FF 0F 0B [15:15:50]RasterBufferAndPrint [15:15:50]line Счет N : (1)343060 [15:15:50]line ИНН: 02508201610067 [15:15:50]line Контрольно-Кассовый Чек [15:15:50]line ПРОДАЖА [15:15:50]line ТРК (МРК, ГНК) : 33 [15:15:50]line Товар: 2710124130 [15:15:50]line Аи-92-К-2 [15:15:50]line 5.980 * 66.90 [15:15:50]line = 400.06 [15:15:50]line НДС 12% НСП 1% [15:15:50]line > о реализуемом товаре [15:15:50]line ОКРУГЛЕНИЕ: -0.06 [15:15:50]line ИТОГО: 400.00 [15:15:50]line Внесено: 400.00 [15:15:50]line СДАЧА: 0.00 [15:15:50]line НСП 1% : 3.54 [15:15:50]line НДС 12% : 42.48 [15:15:50]line Наличными: 400.00 [15:15:50]line Безнал.: 0.00 [15:15:50]line Место: АЗС № 78 "Партнер Нефть" [15:15:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:15:50]line СНО: Общий режим [15:15:50]line Чек 147 21.10.2024 15:15 [15:15:50]line Смена: 115 ФФД: 1.0 [15:15:50]line ЗНМ: 0300000137 [15:15:50]line РНМ: 0000000000186857 [15:15:50]line Версия ККМ: v1.0 [15:15:50]line ФМ: 0000000002094219 [15:15:50]line ФД: 30650 [15:15:50]line ФПД: 161545192675810 [15:15:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151553&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30650&fm=161545192675810&tin=02508201610067®Number=0000000000186857&sum=40000 [15:15:50]OFD Sender: Processing packet 30650 [packets to send 10, broken 9] [15:15:50]ProducePacketName [15:15:50]name=ofd_packets/00030650 [15:15:50]OFD Sender: To server: pG, [15:15:50]CommunicateWithHost lk.salyk.kg:30040 [15:15:50]ConnectInit lk.salyk.kg [15:15:50]written 0, free lines is 4095 [15:15:50]Connected sock=10 [15:15:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4A 1C 07 01 7A EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 29 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BA 77 00 00 35 04 06 00 92 EC AB D3 19 E2 97 EB C8 D1 09 67 02 E9 [15:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A2 10 47 00 97 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 32 30 39 34 32 31 39 10 04 04 00 BA 77 00 00 F4 03 04 00 AA 1A 16 67 B6 04 01 00 00 AF C2 0F 75 7A 79 2E 61 [15:15:50]CommunicateWithHost err = 0 [15:15:50]CheckOFDResponse [15:15:50]1017 (14) - 77093643461234 [15:15:50]1041 (16) - 0000000002094219 [15:15:50]1040 (4) - 30650 [15:15:50]1012 (4) - 21.10.2024 09:11 [15:15:50]1206 (1) - 0 [15:15:50]OFD Sender: Remove packet 30650 [15:15:50]ProducePacketName [15:15:50]name=ofd_packets/00030650 [15:15:50]NVStorageDeleteData [15:15:50]Write to MH i2c: 01 00 00 D8 49 21 [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: 01 07 00 D8 49 00 00 00 00 00 F3 0C 27 [15:15:50]RasterBufferAndPrint [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]line [15:15:50]written 0, free lines is 3321 [15:15:50]MH_Cut [15:15:50]Write to MH i2c: D1 01 00 DF 49 01 FA [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 01 00 [15:15:50]MH_I2C_Read... [15:15:50]Read from MH i2c: D1 01 00 DF 49 00 F9 [15:15:50]Write to MH i2c: 01 00 00 E0 49 29 [15:15:50]Write i2c OK [15:15:50]MH_I2C_Read... [15:15:51]OFD Sender: No OFD packet to send [15:15:51]*** Cut start [15:15:51]*** Partial cut [15:15:51]*** CUTSNS_PIN = 1 [15:15:51]*** CUTSNS_PIN = 0 [15:15:51]*** Brake cut motor [15:15:52]Read from MH i2c: 01 [15:15:52]MH_I2C_Read... [15:15:52]*** Stop cut motor [15:15:52]*** Cut end [15:15:52]Read from MH i2c: 01 07 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: 01 07 00 E0 49 00 00 00 00 00 FF 0F 3E [15:15:52]process_action close_receipt done [15:15:52]requested_data is exist [15:15:52]produce_requested_data [15:15:52]requested_item fm.sn is exist - process it [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 11 00 00 [15:15:52]Write to MH i2c: E2 08 00 E1 49 80 11 00 00 00 00 00 00 A4 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 17 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 17 00 E1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F2 [15:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:15:52]wFMCommunicate OK [15:15:52]requested_item fd.num is exist - process it [15:15:52]SAM_PROTO_GetFieldsCounters [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 13 00 00 [15:15:52]Write to MH i2c: E2 08 00 E2 49 80 13 00 00 00 00 00 00 A7 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 62 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 62 00 E2 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 77 00 00 0E 04 04 00 73 00 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 2A [15:15:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:52]wFMCommunicate OK [15:15:52]SAM_PROTO_GetFieldsCounters done [15:15:52]requested_item shift.num is exist - process it [15:15:52]requested_item shift.opened is exist - process it [15:15:52]req_shift_opened [15:15:52]FM_GetShiftState [15:15:52]SAM_PROTO_GetShiftState [15:15:52]wFMCommunicate request_size=4 [15:15:52]MH_SAM_APDU [15:15:52]CAPDU: 80 13 01 00 [15:15:52]Write to MH i2c: E2 08 00 E3 49 80 13 01 00 00 00 00 00 A9 [15:15:52]Write i2c OK [15:15:52]MH_I2C_Read... [15:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:52]Read from MH i2c: E2 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 0E 00 [15:15:52]MH_I2C_Read... [15:15:52]Read from MH i2c: E2 0E 00 E3 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 25 [15:15:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:15:52]wFMCommunicate OK [15:15:52]SAM_PROTO_GetShiftState done [15:15:52]FM_GetShiftState done [15:15:52]req_shift_opened done [15:15:52]requested_item shift.open_date is exist - process it [15:15:52]req_shift_open_date [15:15:52]req_shift_open_date done [15:15:52]produce_requested_data done [15:15:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30650,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:15:52]process_action_free close_receipt [15:15:52]json_value_free [15:15:52]json_value_free done [15:15:52]process_json_proto returns [15:15:52]Send response to host [15:15:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30650,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:15:52]free response buf [15:15:52]execute_script done [15:15:52]execute_script returns [15:15:52]free content buf [15:15:52]Sock 9.Close socket [15:15:52]Sock 9.Thread stoped [15:15:56]OFD Sender: No OFD packet to send [15:16:00]accept exits with 7 [15:16:00]New connection [15:16:00]New thread 3067489636 created [15:16:00]Thread 3067346276 joined [15:16:00]Waiting for new connection... [15:16:00] Sock 7.Parse request [15:16:00]Sock 7.Check first char [15:16:00]Sock 7.First char is OK [15:16:00]request: POST /json_proto HTTP/1.0 [15:16:00]Method: POST [15:16:00]URL: /json_proto [15:16:00]Method is POST - this is cgi request [15:16:00]url: /json_proto [15:16:00]query_string will be loaded in cgi processing [15:16:00]execute_cgi json_proto POST (null) [15:16:00]execute_cgi path=json_proto method=POST [15:16:00]POST find Content-Length [15:16:00]Host: 172.17.51.3:8080 [15:16:00]Content-Length: 679 [15:16:00]Content-Type: application/json [15:16:00] [15:16:00]POST finish read [15:16:00]Found Content-Length = 679 [15:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:00]execute_script... [15:16:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:00]POST & json_proto [15:16:00]process_json_proto [15:16:00]json parsed OK: [15:16:00]protocol is kg_v1.0 [15:16:00]action value=close_receipt [15:16:00]process_action close_receipt [15:16:00]cmd_close_receipt [15:16:00]MH_GetDate [15:16:00]Write to MH i2c: F0 00 00 E4 49 1C [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 09 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: F0 09 00 E4 49 00 35 70 16 67 04 C1 95 66 07 [15:16:00]GetLastDocTimeStamp 1729523753 [15:16:00]current date 1729523765 [15:16:00]FM_GetShiftState [15:16:00]SAM_PROTO_GetShiftState [15:16:00]wFMCommunicate request_size=4 [15:16:00]MH_SAM_APDU [15:16:00]CAPDU: 80 13 01 00 [15:16:00]Write to MH i2c: E2 08 00 E5 49 80 13 01 00 00 00 00 00 AB [15:16:00]Write i2c OK [15:16:00]MH_I2C_Read... [15:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:00]Read from MH i2c: E2 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 0E 00 [15:16:00]MH_I2C_Read... [15:16:00]Read from MH i2c: E2 0E 00 E5 49 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 27 [15:16:00]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:16:00]wFMCommunicate OK [15:16:00]SAM_PROTO_GetShiftState done [15:16:00]FM_GetShiftState done [15:16:00]opened in 1729471058 [15:16:00]opened+sec_in_day 1729557458 [15:16:00]quantity*price = 150037 [15:16:00]sum+1 = 150039 [15:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 148 21.10.2024 15:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30651 ФПД: 143368066878988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151605&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30651&fm=143368066878988&tin=02508201610067®Number=0000000000186857&sum=150000 [15:16:01]StoreToDocumentArchive [15:16:01]shift 115 fd 30651 [15:16:01]save to /storage/0115/doc_00030651 [15:16:01]save last doc name /storage/0115/doc_00030651 to /storage/kkm_last_doc_name [15:16:01]save OK [15:16:01]Clear old archive folders... [15:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:16:01]tlvbuf is 01E31D60 [15:16:01]SAM_PROTO_ClearQueue [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 09 00 00 [15:16:01]Write to MH i2c: E2 08 00 F2 49 80 09 00 00 00 00 00 00 AD [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 F2 49 00 90 00 AF [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]SAM_PROTO_ClearQueue done [15:16:01]KKMCreateOFDPacket [15:16:01]OFDProtocolAddRootSTLVToBuf [15:16:01]FM_MakeSignedData [15:16:01]FM_MakeSignedData [15:16:01]SAM_PROTO_SignData [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 01 02 [15:16:01]Write to MH i2c: E2 08 00 F3 49 80 0D 01 02 00 00 00 00 B5 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 F3 49 00 90 00 B0 [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]wFMCommunicate request_size=255 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 35 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 77 00 00 35 04 06 00 82 64 7A B2 [15:16:01]Write to MH i2c: E2 02 01 F4 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 35 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 77 00 00 35 04 06 00 82 64 7A B2 00 00 20 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 F4 49 00 90 00 B1 [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]wFMCommunicate request_size=7 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 02 02 02 CE 0C [15:16:01]Write to MH i2c: E2 0A 00 F5 49 80 0D 02 02 02 00 CE 0C 00 00 96 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 03 00 F5 49 00 90 00 B2 [15:16:01]RAPDU: 90 00 [15:16:01]wFMCommunicate OK [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 0D 03 02 [15:16:01]Write to MH i2c: E2 08 00 F6 49 80 0D 03 02 00 00 00 00 BA [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 0B 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 0B 00 F6 49 00 C3 99 4C EF E3 05 1B BA 90 00 0F [15:16:01]RAPDU: C3 99 4C EF E3 05 1B BA 90 00 [15:16:01]wFMCommunicate OK [15:16:01]SAM_PROTO_SignData done [15:16:01]FM_MakeSignedData done [15:16:01]CreateOFDProtocolMessage [15:16:01]wFMCommunicate request_size=4 [15:16:01]MH_SAM_APDU [15:16:01]CAPDU: 80 11 00 00 [15:16:01]Write to MH i2c: E2 08 00 F7 49 80 11 00 00 00 00 00 00 BA [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:01]Read from MH i2c: E2 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 17 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: E2 17 00 F7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [15:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:16:01]wFMCommunicate OK [15:16:01]CreateOFDProtocolMessage done [15:16:01]OFDSenderStorePacket 30651 [15:16:01]StoreOFDPacket docnum=30651 [15:16:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 5C 8E 04 01 21 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 35 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 77 00 00 35 04 06 00 82 64 7A B2 CE 0C C3 99 4C EF E3 05 1B BA [15:16:01]CheckFolder [15:16:01]dirname=/storage/ofd_packets [15:16:01]CheckFolder done [15:16:01]ProducePacketName [15:16:01]name=ofd_packets/00030651 [15:16:01]NVStorageSaveData ofd_packets/00030651 [15:16:01]File name is /storage/ofd_packets/00030651 [15:16:01]Write 298 bytes [15:16:01]NVStorageSaveData done [15:16:01]OFDSenderStorePacket done [15:16:01]KKMCreateOFDPacket done [15:16:01]NVStorageSaveData kkm_last_timestamp [15:16:01]File name is /storage/kkm_last_timestamp [15:16:01]Write 4 bytes [15:16:01]NVStorageSaveData done [15:16:01]ExternCall_PrintAddStr [15:16:01]wPrintStart [15:16:01]Write to MH i2c: 01 00 00 F8 49 41 [15:16:01]Write i2c OK [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: 01 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: 01 07 00 [15:16:01]MH_I2C_Read... [15:16:01]Read from MH i2c: 01 07 00 F8 49 00 00 00 00 00 FF 0F 56 [15:16:01]RasterBufferAndPrint [15:16:01]line Счет N : (1)343059 [15:16:01]line ИНН: 02508201610067 [15:16:01]line Контрольно-Кассовый Чек [15:16:01]line ПРОДАЖА [15:16:01]line ТРК (МРК, ГНК) : 44 [15:16:01]line Товар: 2710194210 [15:16:01]line ДТ-К-2 [15:16:01]line 19.690 * 76.20 [15:16:01]line = 1500.38 [15:16:01]line НДС 12% НСП 1% [15:16:01]line > о реализуемом товаре [15:16:01]line ОКРУГЛЕНИЕ: -0.38 [15:16:01]line ИТОГО: 1500.00 [15:16:01]line Внесено: 1500.00 [15:16:01]line СДАЧА: 0.00 [15:16:01]line НСП 1% : 13.28 [15:16:01]line НДС 12% : 159.33 [15:16:01]line Наличными: 1500.00 [15:16:01]line Безнал.: 0.00 [15:16:01]line Место: АЗС № 78 "Партнер Нефть" [15:16:01]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:16:01]line СНО: Общий режим [15:16:01]line Чек 148 21.10.2024 15:16 [15:16:01]line Смена: 115 ФФД: 1.0 [15:16:01]line ЗНМ: 0300000137 [15:16:01]line РНМ: 0000000000186857 [15:16:01]line Версия ККМ: v1.0 [15:16:01]line ФМ: 0000000002094219 [15:16:01]line ФД: 30651 [15:16:01]line ФПД: 143368066878988 [15:16:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151605&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30651&fm=143368066878988&tin=02508201610067®Number=0000000000186857&sum=150000 [15:16:01]written 0, free lines is 4095 [15:16:01]OFD Sender: Processing packet 30651 [packets to send 10, broken 9] [15:16:01]ProducePacketName [15:16:01]name=ofd_packets/00030651 [15:16:01]OFD Sender: To server: pG, [15:16:01]CommunicateWithHost lk.salyk.kg:30040 [15:16:01]ConnectInit lk.salyk.kg [15:16:01]Connected sock=10 [15:16:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 5C 8E 04 01 21 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 35 70 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 77 00 00 35 04 06 00 82 64 7A B2 CE 0C C3 99 4C EF E3 05 1B BA [15:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8E 22 47 00 01 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BB 77 00 00 F4 03 04 00 B5 1A 16 67 B6 04 01 00 00 84 8E D1 9B BC 25 29 6A [15:16:02]CommunicateWithHost err = 0 [15:16:02]CheckOFDResponse [15:16:02]1017 (14) - 77093643461234 [15:16:02]1041 (16) - 0000000002094219 [15:16:02]1040 (4) - 30651 [15:16:02]1012 (4) - 21.10.2024 09:11 [15:16:02]1206 (1) - 0 [15:16:02]OFD Sender: Remove packet 30651 [15:16:02]ProducePacketName [15:16:02]name=ofd_packets/00030651 [15:16:02]NVStorageDeleteData [15:16:02]Write to MH i2c: 01 00 00 23 4A 6D [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: 01 07 00 23 4A 00 00 00 00 00 F4 0C 74 [15:16:02]RasterBufferAndPrint [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]line [15:16:02]written 0, free lines is 3328 [15:16:02]MH_Cut [15:16:02]Write to MH i2c: D1 01 00 2A 4A 01 46 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 01 00 [15:16:02]MH_I2C_Read... [15:16:02]Read from MH i2c: D1 01 00 2A 4A 00 45 [15:16:02]Write to MH i2c: 01 00 00 2B 4A 75 [15:16:02]Write i2c OK [15:16:02]MH_I2C_Read... [15:16:02]OFD Sender: No OFD packet to send [15:16:02]*** Cut start [15:16:02]*** Partial cut [15:16:02]*** CUTSNS_PIN = 1 [15:16:03]*** CUTSNS_PIN = 0 [15:16:03]*** Brake cut motor [15:16:03]Read from MH i2c: 01 [15:16:03]MH_I2C_Read... [15:16:03]*** Stop cut motor [15:16:03]*** Cut end [15:16:03]Read from MH i2c: 01 07 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: 01 07 00 2B 4A 00 00 00 00 00 FF 0F 8A [15:16:03]process_action close_receipt done [15:16:03]requested_data is exist [15:16:03]produce_requested_data [15:16:03]requested_item fm.sn is exist - process it [15:16:03]wFMCommunicate request_size=4 [15:16:03]MH_SAM_APDU [15:16:03]CAPDU: 80 11 00 00 [15:16:03]Write to MH i2c: E2 08 00 2C 4A 80 11 00 00 00 00 00 00 F0 [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:03]Read from MH i2c: E2 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 17 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 17 00 2C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [15:16:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:16:03]wFMCommunicate OK [15:16:03]requested_item fd.num is exist - process it [15:16:03]SAM_PROTO_GetFieldsCounters [15:16:03]wFMCommunicate request_size=4 [15:16:03]MH_SAM_APDU [15:16:03]CAPDU: 80 13 00 00 [15:16:03]Write to MH i2c: E2 08 00 2D 4A 80 13 00 00 00 00 00 00 F3 [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:03]Read from MH i2c: E2 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 62 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 62 00 2D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 77 00 00 0E 04 04 00 73 00 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 7A [15:16:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:03]wFMCommunicate OK [15:16:03]SAM_PROTO_GetFieldsCounters done [15:16:03]requested_item shift.num is exist - process it [15:16:03]requested_item shift.opened is exist - process it [15:16:03]req_shift_opened [15:16:03]FM_GetShiftState [15:16:03]SAM_PROTO_GetShiftState [15:16:03]wFMCommunicate request_size=4 [15:16:03]MH_SAM_APDU [15:16:03]CAPDU: 80 13 01 00 [15:16:03]Write to MH i2c: E2 08 00 2E 4A 80 13 01 00 00 00 00 00 F5 [15:16:03]Write i2c OK [15:16:03]MH_I2C_Read... [15:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:03]Read from MH i2c: E2 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 [15:16:03]MH_I2C_Read... [15:16:03]Read from MH i2c: E2 0E 00 2E 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 71 [15:16:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:16:03]wFMCommunicate OK [15:16:03]SAM_PROTO_GetShiftState done [15:16:03]FM_GetShiftState done [15:16:03]req_shift_opened done [15:16:03]requested_item shift.open_date is exist - process it [15:16:03]req_shift_open_date [15:16:03]req_shift_open_date done [15:16:03]produce_requested_data done [15:16:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30651,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:16:03]process_action_free close_receipt [15:16:03]json_value_free [15:16:03]json_value_free done [15:16:03]process_json_proto returns [15:16:03]Send response to host [15:16:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30651,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:16:03]free response buf [15:16:03]execute_script done [15:16:03]execute_script returns [15:16:03]free content buf [15:16:03]Sock 7.Close socket [15:16:03]Sock 7.Thread stoped [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:52]OFD Sender: No OFD packet to send [15:18:57]OFD Sender: No OFD packet to send [15:19:02]OFD Sender: No OFD packet to send [15:19:07]OFD Sender: No OFD packet to send [15:19:12]OFD Sender: No OFD packet to send [15:19:17]OFD Sender: No OFD packet to send [15:19:22]OFD Sender: No OFD packet to send [15:19:27]OFD Sender: No OFD packet to send [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:48]OFD Sender: No OFD packet to send [15:21:53]OFD Sender: No OFD packet to send [15:21:58]OFD Sender: No OFD packet to send [15:22:03]OFD Sender: No OFD packet to send [15:22:08]OFD Sender: No OFD packet to send [15:22:13]OFD Sender: No OFD packet to send [15:22:18]OFD Sender: No OFD packet to send [15:22:23]OFD Sender: No OFD packet to send [15:22:28]OFD Sender: No OFD packet to send [15:22:33]OFD Sender: No OFD packet to send [15:22:38]OFD Sender: No OFD packet to send [15:22:43]OFD Sender: No OFD packet to send [15:22:48]OFD Sender: No OFD packet to send [15:22:53]OFD Sender: No OFD packet to send [15:22:58]OFD Sender: No OFD packet to send [15:23:03]OFD Sender: No OFD packet to send [15:23:08]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:18]OFD Sender: No OFD packet to send [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:32]accept exits with 9 [15:26:32]New connection [15:26:32]New thread 3067346276 created [15:26:32]Thread 3067489636 joined [15:26:32]Waiting for new connection... [15:26:32] Sock 9.Parse request [15:26:32]Sock 9.Check first char [15:26:32]Sock 9.First char is OK [15:26:32]request: POST /json_proto HTTP/1.0 [15:26:32]Method: POST [15:26:32]URL: /json_proto [15:26:32]Method is POST - this is cgi request [15:26:32]url: /json_proto [15:26:32]query_string will be loaded in cgi processing [15:26:32]execute_cgi json_proto POST (null) [15:26:32]execute_cgi path=json_proto method=POST [15:26:32]POST find Content-Length [15:26:32]Host: 172.17.51.3:8080 [15:26:32]Content-Length: 682 [15:26:32]Content-Type: application/json [15:26:32] [15:26:32]POST finish read [15:26:32]Found Content-Length = 682 [15:26:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]execute_script... [15:26:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:32]POST & json_proto [15:26:32]process_json_proto [15:26:32]json parsed OK: [15:26:32]protocol is kg_v1.0 [15:26:32]action value=close_receipt [15:26:32]process_action close_receipt [15:26:32]cmd_close_receipt [15:26:32]MH_GetDate [15:26:32]Write to MH i2c: F0 00 00 2F 4A 68 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: F0 09 00 2F 4A 00 AD 72 16 67 04 C1 95 66 CD [15:26:32]GetLastDocTimeStamp 1729523765 [15:26:32]current date 1729524397 [15:26:32]FM_GetShiftState [15:26:32]SAM_PROTO_GetShiftState [15:26:32]wFMCommunicate request_size=4 [15:26:32]MH_SAM_APDU [15:26:32]CAPDU: 80 13 01 00 [15:26:32]Write to MH i2c: E2 08 00 30 4A 80 13 01 00 00 00 00 00 F7 [15:26:32]Write i2c OK [15:26:32]MH_I2C_Read... [15:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:32]Read from MH i2c: E2 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 [15:26:32]MH_I2C_Read... [15:26:32]Read from MH i2c: E2 0E 00 30 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 73 [15:26:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:26:32]wFMCommunicate OK [15:26:32]SAM_PROTO_GetShiftState done [15:26:32]FM_GetShiftState done [15:26:32]opened in 1729471058 [15:26:32]opened+sec_in_day 1729557458 [15:26:32]quantity*price = 200043 [15:26:32]sum+1 = 200044 [15:26:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 149 21.10.2024 15:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30652 ФПД: 107546809631579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30652&fm=107546809631579&tin=02508201610067®Number=0000000000186857&sum=200000 [15:26:33]StoreToDocumentArchive [15:26:33]shift 115 fd 30652 [15:26:33]save to /storage/0115/doc_00030652 [15:26:33]save last doc name /storage/0115/doc_00030652 to /storage/kkm_last_doc_name [15:26:33]save OK [15:26:33]Clear old archive folders... [15:26:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:33]tlvbuf is B6E2B260 [15:26:33]SAM_PROTO_ClearQueue [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 09 00 00 [15:26:33]Write to MH i2c: E2 08 00 3D 4A 80 09 00 00 00 00 00 00 F9 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 3D 4A 00 90 00 FB [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_ClearQueue done [15:26:33]KKMCreateOFDPacket [15:26:33]OFDProtocolAddRootSTLVToBuf [15:26:33]FM_MakeSignedData [15:26:33]FM_MakeSignedData [15:26:33]SAM_PROTO_SignData [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 01 02 [15:26:33]Write to MH i2c: E2 08 00 3E 4A 80 0D 01 02 00 00 00 00 01 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 3E 4A 00 90 00 FC [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=255 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 72 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 77 00 00 35 04 06 00 61 [15:26:33]Write to MH i2c: E2 02 01 3F 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 72 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 77 00 00 35 04 06 00 61 00 00 73 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 3F 4A 00 90 00 FD [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=10 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 02 02 05 D0 31 62 83 5B [15:26:33]Write to MH i2c: E2 0D 00 40 4A 80 0D 02 02 05 00 D0 31 62 83 5B 00 00 4F [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 03 00 40 4A 00 90 00 FE [15:26:33]RAPDU: 90 00 [15:26:33]wFMCommunicate OK [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 0D 03 02 [15:26:33]Write to MH i2c: E2 08 00 41 4A 80 0D 03 02 00 00 00 00 06 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0B 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0B 00 41 4A 00 0A 65 E1 6A EF 8B E1 94 90 00 B0 [15:26:33]RAPDU: 0A 65 E1 6A EF 8B E1 94 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_SignData done [15:26:33]FM_MakeSignedData done [15:26:33]CreateOFDProtocolMessage [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 11 00 00 [15:26:33]Write to MH i2c: E2 08 00 42 4A 80 11 00 00 00 00 00 00 06 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 17 00 42 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 54 [15:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:33]wFMCommunicate OK [15:26:33]CreateOFDProtocolMessage done [15:26:33]OFDSenderStorePacket 30652 [15:26:33]StoreOFDPacket docnum=30652 [15:26:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 7A 07 01 96 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 72 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 77 00 00 35 04 06 00 61 D0 31 62 83 5B 0A 65 E1 6A EF 8B E1 94 [15:26:33]CheckFolder [15:26:33]dirname=/storage/ofd_packets [15:26:33]CheckFolder done [15:26:33]ProducePacketName [15:26:33]name=ofd_packets/00030652 [15:26:33]NVStorageSaveData ofd_packets/00030652 [15:26:33]File name is /storage/ofd_packets/00030652 [15:26:33]Write 301 bytes [15:26:33]NVStorageSaveData done [15:26:33]OFDSenderStorePacket done [15:26:33]KKMCreateOFDPacket done [15:26:33]NVStorageSaveData kkm_last_timestamp [15:26:33]File name is /storage/kkm_last_timestamp [15:26:33]Write 4 bytes [15:26:33]NVStorageSaveData done [15:26:33]ExternCall_PrintAddStr [15:26:33]wPrintStart [15:26:33]Write to MH i2c: 01 00 00 43 4A 8D [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: 01 07 00 43 4A 00 00 00 00 00 FF 0F A2 [15:26:33]RasterBufferAndPrint [15:26:33]line Счет N : (1)343061 [15:26:33]line ИНН: 02508201610067 [15:26:33]line Контрольно-Кассовый Чек [15:26:33]line ПРОДАЖА [15:26:33]line ТРК (МРК, ГНК) : 62 [15:26:33]line Товар: 2710124500 [15:26:33]line Аи-95-К-3 [15:26:33]line 26.960 * 74.20 [15:26:33]line = 2000.43 [15:26:33]line НДС 12% НСП 1% [15:26:33]line > о реализуемом товаре [15:26:33]line ОКРУГЛЕНИЕ: -0.43 [15:26:33]line ИТОГО: 2000.00 [15:26:33]line Внесено: 2000.00 [15:26:33]line СДАЧА: 0.00 [15:26:33]line НСП 1% : 17.70 [15:26:33]line НДС 12% : 212.43 [15:26:33]line Наличными: 2000.00 [15:26:33]line Безнал.: 0.00 [15:26:33]line Место: АЗС № 78 "Партнер Нефть" [15:26:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:26:33]line СНО: Общий режим [15:26:33]line Чек 149 21.10.2024 15:26 [15:26:33]line Смена: 115 ФФД: 1.0 [15:26:33]line ЗНМ: 0300000137 [15:26:33]line РНМ: 0000000000186857 [15:26:33]line Версия ККМ: v1.0 [15:26:33]line ФМ: 0000000002094219 [15:26:33]line ФД: 30652 [15:26:33]line ФПД: 107546809631579 [15:26:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152637&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30652&fm=107546809631579&tin=02508201610067®Number=0000000000186857&sum=200000 [15:26:34]OFD Sender: Processing packet 30652 [packets to send 10, broken 9] [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00030652 [15:26:34]OFD Sender: To server: pG, [15:26:34]CommunicateWithHost lk.salyk.kg:30040 [15:26:34]ConnectInit lk.salyk.kg [15:26:34]written 0, free lines is 4095 [15:26:34]Connected sock=10 [15:26:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D 7A 07 01 96 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 AD 72 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BC 77 00 00 35 04 06 00 61 D0 31 62 83 5B 0A 65 E1 6A EF 8B E1 94 [15:26:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BC 31 47 00 0E 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 32 30 39 34 32 31 39 10 04 04 00 BC 77 00 00 F4 03 04 00 2E 1D 16 67 B6 04 01 00 00 52 AF AA EF 01 8E 45 9D [15:26:34]CommunicateWithHost err = 0 [15:26:34]CheckOFDResponse [15:26:34]1017 (14) - 77093643461234 [15:26:34]1041 (16) - 0000000002094219 [15:26:34]1040 (4) - 30652 [15:26:34]1012 (4) - 21.10.2024 09:21 [15:26:34]1206 (1) - 0 [15:26:34]OFD Sender: Remove packet 30652 [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00030652 [15:26:34]NVStorageDeleteData [15:26:34]Write to MH i2c: 01 00 00 6E 4A B8 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 6E 4A 00 00 00 00 00 FA 0C C5 [15:26:34]RasterBufferAndPrint [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]line [15:26:34]written 0, free lines is 3330 [15:26:34]MH_Cut [15:26:34]Write to MH i2c: D1 01 00 75 4A 01 91 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 01 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: D1 01 00 75 4A 00 90 [15:26:34]Write to MH i2c: 01 00 00 76 4A C0 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:35]OFD Sender: No OFD packet to send [15:26:35]*** Cut start [15:26:35]*** Partial cut [15:26:35]*** CUTSNS_PIN = 1 [15:26:35]*** CUTSNS_PIN = 0 [15:26:35]*** Brake cut motor [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:35]*** Stop cut motor [15:26:35]*** Cut end [15:26:35]Read from MH i2c: 01 07 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 76 4A 00 00 00 00 00 FF 0F D5 [15:26:35]process_action close_receipt done [15:26:35]requested_data is exist [15:26:35]produce_requested_data [15:26:35]requested_item fm.sn is exist - process it [15:26:35]wFMCommunicate request_size=4 [15:26:35]MH_SAM_APDU [15:26:35]CAPDU: 80 11 00 00 [15:26:35]Write to MH i2c: E2 08 00 77 4A 80 11 00 00 00 00 00 00 3B [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 17 00 77 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [15:26:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:26:36]wFMCommunicate OK [15:26:36]requested_item fd.num is exist - process it [15:26:36]SAM_PROTO_GetFieldsCounters [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 00 00 [15:26:36]Write to MH i2c: E2 08 00 78 4A 80 13 00 00 00 00 00 00 3E [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 62 00 78 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 77 00 00 0E 04 04 00 73 00 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 C9 [15:26:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetFieldsCounters done [15:26:36]requested_item shift.num is exist - process it [15:26:36]requested_item shift.opened is exist - process it [15:26:36]req_shift_opened [15:26:36]FM_GetShiftState [15:26:36]SAM_PROTO_GetShiftState [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 13 01 00 [15:26:36]Write to MH i2c: E2 08 00 79 4A 80 13 01 00 00 00 00 00 40 [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 [15:26:36]MH_I2C_Read... [15:26:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:36]Read from MH i2c: E2 0E 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: E2 0E 00 79 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BC [15:26:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:26:36]wFMCommunicate OK [15:26:36]SAM_PROTO_GetShiftState done [15:26:36]FM_GetShiftState done [15:26:36]req_shift_opened done [15:26:36]requested_item shift.open_date is exist - process it [15:26:36]req_shift_open_date [15:26:36]req_shift_open_date done [15:26:36]produce_requested_data done [15:26:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30652,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:26:36]process_action_free close_receipt [15:26:36]json_value_free [15:26:36]json_value_free done [15:26:36]process_json_proto returns [15:26:36]Send response to host [15:26:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30652,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:26:36]free response buf [15:26:36]execute_script done [15:26:36]execute_script returns [15:26:36]free content buf [15:26:36]Sock 9.Close socket [15:26:36]Sock 9.Thread stoped [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:10]accept exits with 7 [15:30:10]New connection [15:30:10]New thread 3067489636 created [15:30:10]Thread 3067346276 joined [15:30:10]Waiting for new connection... [15:30:10] Sock 7.Parse request [15:30:10]Sock 7.Check first char [15:30:10]Sock 7.First char is OK [15:30:10]request: POST /json_proto HTTP/1.0 [15:30:10]Method: POST [15:30:10]URL: /json_proto [15:30:10]Method is POST - this is cgi request [15:30:10]url: /json_proto [15:30:10]query_string will be loaded in cgi processing [15:30:10]execute_cgi json_proto POST (null) [15:30:10]execute_cgi path=json_proto method=POST [15:30:10]POST find Content-Length [15:30:10]Host: 172.17.51.3:8080 [15:30:10]Content-Length: 674 [15:30:10]Content-Type: application/json [15:30:10] [15:30:10]POST finish read [15:30:10]Found Content-Length = 674 [15:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:10]execute_script... [15:30:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:10]POST & json_proto [15:30:10]process_json_proto [15:30:10]json parsed OK: [15:30:10]protocol is kg_v1.0 [15:30:10]action value=close_receipt [15:30:10]process_action close_receipt [15:30:10]cmd_close_receipt [15:30:10]MH_GetDate [15:30:10]Write to MH i2c: F0 00 00 7A 4A B3 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: F0 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: F0 09 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: F0 09 00 7A 4A 00 88 73 16 67 04 C1 95 66 F4 [15:30:10]GetLastDocTimeStamp 1729524397 [15:30:10]current date 1729524616 [15:30:10]FM_GetShiftState [15:30:10]SAM_PROTO_GetShiftState [15:30:10]wFMCommunicate request_size=4 [15:30:10]MH_SAM_APDU [15:30:10]CAPDU: 80 13 01 00 [15:30:10]Write to MH i2c: E2 08 00 7B 4A 80 13 01 00 00 00 00 00 42 [15:30:10]Write i2c OK [15:30:10]MH_I2C_Read... [15:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:10]Read from MH i2c: E2 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 0E 00 [15:30:10]MH_I2C_Read... [15:30:10]Read from MH i2c: E2 0E 00 7B 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BE [15:30:10]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:30:10]wFMCommunicate OK [15:30:10]SAM_PROTO_GetShiftState done [15:30:10]FM_GetShiftState done [15:30:10]opened in 1729471058 [15:30:10]opened+sec_in_day 1729557458 [15:30:10]quantity*price = 70027 [15:30:10]sum+1 = 70029 [15:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 150 21.10.2024 15:30 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30653 ФПД: 225161142575064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153016&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30653&fm=225161142575064&tin=02508201610067®Number=0000000000186857&sum=70000 [15:30:11]StoreToDocumentArchive [15:30:11]shift 115 fd 30653 [15:30:11]save to /storage/0115/doc_00030653 [15:30:11]save last doc name /storage/0115/doc_00030653 to /storage/kkm_last_doc_name [15:30:11]save OK [15:30:11]Clear old archive folders... [15:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:30:11]tlvbuf is 01DD6CB0 [15:30:11]SAM_PROTO_ClearQueue [15:30:11]wFMCommunicate request_size=4 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 09 00 00 [15:30:11]Write to MH i2c: E2 08 00 88 4A 80 09 00 00 00 00 00 00 44 [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 88 4A 00 90 00 46 [15:30:11]RAPDU: 90 00 [15:30:11]wFMCommunicate OK [15:30:11]SAM_PROTO_ClearQueue done [15:30:11]KKMCreateOFDPacket [15:30:11]OFDProtocolAddRootSTLVToBuf [15:30:11]FM_MakeSignedData [15:30:11]FM_MakeSignedData [15:30:11]SAM_PROTO_SignData [15:30:11]wFMCommunicate request_size=4 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 0D 01 02 [15:30:11]Write to MH i2c: E2 08 00 89 4A 80 0D 01 02 00 00 00 00 4C [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:11]Read from MH i2c: E2 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 [15:30:11]MH_I2C_Read... [15:30:11]Read from MH i2c: E2 03 00 89 4A 00 90 00 47 [15:30:11]RAPDU: 90 00 [15:30:11]wFMCommunicate OK [15:30:11]wFMCommunicate request_size=255 [15:30:11]MH_SAM_APDU [15:30:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 73 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 77 00 00 35 04 06 00 CC C8 69 EB [15:30:11]Write to MH i2c: E2 02 01 8A 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 73 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 77 00 00 35 04 06 00 CC C8 69 EB 00 00 6C [15:30:11]Write i2c OK [15:30:11]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 03 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 03 00 8A 4A 00 90 00 48 [15:30:12]RAPDU: 90 00 [15:30:12]wFMCommunicate OK [15:30:12]wFMCommunicate request_size=7 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 0D 02 02 02 9F D8 [15:30:12]Write to MH i2c: E2 0A 00 8B 4A 80 0D 02 02 02 00 9F D8 00 00 CA [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 03 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 03 00 8B 4A 00 90 00 49 [15:30:12]RAPDU: 90 00 [15:30:12]wFMCommunicate OK [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 0D 03 02 [15:30:12]Write to MH i2c: E2 08 00 8C 4A 80 0D 03 02 00 00 00 00 51 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 0B 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 0B 00 8C 4A 00 D7 1E D7 E1 E6 9D 03 A0 90 00 25 [15:30:12]RAPDU: D7 1E D7 E1 E6 9D 03 A0 90 00 [15:30:12]wFMCommunicate OK [15:30:12]SAM_PROTO_SignData done [15:30:12]FM_MakeSignedData done [15:30:12]CreateOFDProtocolMessage [15:30:12]wFMCommunicate request_size=4 [15:30:12]MH_SAM_APDU [15:30:12]CAPDU: 80 11 00 00 [15:30:12]Write to MH i2c: E2 08 00 8D 4A 80 11 00 00 00 00 00 00 51 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:12]Read from MH i2c: E2 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: E2 17 00 8D 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [15:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:30:12]wFMCommunicate OK [15:30:12]CreateOFDProtocolMessage done [15:30:12]OFDSenderStorePacket 30653 [15:30:12]StoreOFDPacket docnum=30653 [15:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 DD 36 04 01 2F 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 73 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 77 00 00 35 04 06 00 CC C8 69 EB 9F D8 D7 1E D7 E1 E6 9D 03 A0 [15:30:12]CheckFolder [15:30:12]dirname=/storage/ofd_packets [15:30:12]CheckFolder done [15:30:12]ProducePacketName [15:30:12]name=ofd_packets/00030653 [15:30:12]NVStorageSaveData ofd_packets/00030653 [15:30:12]File name is /storage/ofd_packets/00030653 [15:30:12]Write 298 bytes [15:30:12]NVStorageSaveData done [15:30:12]OFDSenderStorePacket done [15:30:12]KKMCreateOFDPacket done [15:30:12]NVStorageSaveData kkm_last_timestamp [15:30:12]File name is /storage/kkm_last_timestamp [15:30:12]Write 4 bytes [15:30:12]NVStorageSaveData done [15:30:12]ExternCall_PrintAddStr [15:30:12]wPrintStart [15:30:12]Write to MH i2c: 01 00 00 8E 4A D8 [15:30:12]Write i2c OK [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: 01 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: 01 07 00 [15:30:12]MH_I2C_Read... [15:30:12]Read from MH i2c: 01 07 00 8E 4A 00 00 00 00 00 FF 0F ED [15:30:12]RasterBufferAndPrint [15:30:12]line Счет N : (1)343062 [15:30:12]line ИНН: 02508201610067 [15:30:12]line Контрольно-Кассовый Чек [15:30:12]line ПРОДАЖА [15:30:12]line ТРК (МРК, ГНК) : 44 [15:30:12]line Товар: 2710194210 [15:30:12]line ДТ-К-2 [15:30:12]line 9.190 * 76.20 [15:30:12]line = 700.28 [15:30:12]line НДС 12% НСП 1% [15:30:12]line > о реализуемом товаре [15:30:12]line ОКРУГЛЕНИЕ: -0.28 [15:30:12]line ИТОГО: 700.00 [15:30:12]line Внесено: 700.00 [15:30:12]line СДАЧА: 0.00 [15:30:12]line НСП 1% : 6.20 [15:30:12]line НДС 12% : 74.37 [15:30:12]line Наличными: 700.00 [15:30:12]line Безнал.: 0.00 [15:30:12]line Место: АЗС № 78 "Партнер Нефть" [15:30:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:30:12]line СНО: Общий режим [15:30:12]line Чек 150 21.10.2024 15:30 [15:30:12]line Смена: 115 ФФД: 1.0 [15:30:12]line ЗНМ: 0300000137 [15:30:12]line РНМ: 0000000000186857 [15:30:12]line Версия ККМ: v1.0 [15:30:12]line ФМ: 0000000002094219 [15:30:12]line ФД: 30653 [15:30:12]line ФПД: 225161142575064 [15:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153016&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30653&fm=225161142575064&tin=02508201610067®Number=0000000000186857&sum=70000 [15:30:12]OFD Sender: Processing packet 30653 [packets to send 10, broken 9] [15:30:12]ProducePacketName [15:30:12]name=ofd_packets/00030653 [15:30:12]OFD Sender: To server: pG, [15:30:12]CommunicateWithHost lk.salyk.kg:30040 [15:30:12]ConnectInit lk.salyk.kg [15:30:12]written 0, free lines is 4095 [15:30:12]Connected sock=10 [15:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 DD 36 04 01 2F 7D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 88 73 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 77 00 00 35 04 06 00 CC C8 69 EB 9F D8 D7 1E D7 E1 E6 9D 03 A0 [15:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4E 1E 47 00 2E BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BD 77 00 00 F4 03 04 00 08 1E 16 67 B6 04 01 00 00 AE DC A9 6A 9F AB 06 76 [15:30:12]CommunicateWithHost err = 0 [15:30:12]CheckOFDResponse [15:30:12]1017 (14) - 77093643461234 [15:30:12]1041 (16) - 0000000002094219 [15:30:12]1040 (4) - 30653 [15:30:12]1012 (4) - 21.10.2024 09:25 [15:30:12]1206 (1) - 0 [15:30:12]OFD Sender: Remove packet 30653 [15:30:12]ProducePacketName [15:30:12]name=ofd_packets/00030653 [15:30:12]NVStorageDeleteData [15:30:13]Write to MH i2c: 01 00 00 B9 4A 03 [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: 01 07 00 B9 4A 00 00 00 00 00 EA 0C 00 [15:30:13]RasterBufferAndPrint [15:30:13]line [15:30:13]line [15:30:13]line [15:30:13]line [15:30:13]line [15:30:13]written 0, free lines is 3313 [15:30:13]MH_Cut [15:30:13]Write to MH i2c: D1 01 00 C0 4A 01 DC [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D1 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D1 01 00 [15:30:13]MH_I2C_Read... [15:30:13]Read from MH i2c: D1 01 00 C0 4A 00 DB [15:30:13]Write to MH i2c: 01 00 00 C1 4A 0B [15:30:13]Write i2c OK [15:30:13]MH_I2C_Read... [15:30:13]OFD Sender: No OFD packet to send [15:30:13]*** Cut start [15:30:13]*** Partial cut [15:30:13]*** CUTSNS_PIN = 1 [15:30:13]*** CUTSNS_PIN = 0 [15:30:13]*** Brake cut motor [15:30:14]Read from MH i2c: 01 [15:30:14]MH_I2C_Read... [15:30:14]*** Stop cut motor [15:30:14]*** Cut end [15:30:14]Read from MH i2c: 01 07 00 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: 01 07 00 C1 4A 00 00 00 00 00 FF 0F 20 [15:30:14]process_action close_receipt done [15:30:14]requested_data is exist [15:30:14]produce_requested_data [15:30:14]requested_item fm.sn is exist - process it [15:30:14]wFMCommunicate request_size=4 [15:30:14]MH_SAM_APDU [15:30:14]CAPDU: 80 11 00 00 [15:30:14]Write to MH i2c: E2 08 00 C2 4A 80 11 00 00 00 00 00 00 86 [15:30:14]Write i2c OK [15:30:14]MH_I2C_Read... [15:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:14]Read from MH i2c: E2 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 17 00 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 17 00 C2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [15:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:30:14]wFMCommunicate OK [15:30:14]requested_item fd.num is exist - process it [15:30:14]SAM_PROTO_GetFieldsCounters [15:30:14]wFMCommunicate request_size=4 [15:30:14]MH_SAM_APDU [15:30:14]CAPDU: 80 13 00 00 [15:30:14]Write to MH i2c: E2 08 00 C3 4A 80 13 00 00 00 00 00 00 89 [15:30:14]Write i2c OK [15:30:14]MH_I2C_Read... [15:30:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:14]Read from MH i2c: E2 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 62 00 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 62 00 C3 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 77 00 00 0E 04 04 00 73 00 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 18 [15:30:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:14]wFMCommunicate OK [15:30:14]SAM_PROTO_GetFieldsCounters done [15:30:14]requested_item shift.num is exist - process it [15:30:14]requested_item shift.opened is exist - process it [15:30:14]req_shift_opened [15:30:14]FM_GetShiftState [15:30:14]SAM_PROTO_GetShiftState [15:30:14]wFMCommunicate request_size=4 [15:30:14]MH_SAM_APDU [15:30:14]CAPDU: 80 13 01 00 [15:30:14]Write to MH i2c: E2 08 00 C4 4A 80 13 01 00 00 00 00 00 8B [15:30:14]Write i2c OK [15:30:14]MH_I2C_Read... [15:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:14]Read from MH i2c: E2 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 0E 00 [15:30:14]MH_I2C_Read... [15:30:14]Read from MH i2c: E2 0E 00 C4 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 07 [15:30:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:30:14]wFMCommunicate OK [15:30:14]SAM_PROTO_GetShiftState done [15:30:14]FM_GetShiftState done [15:30:14]req_shift_opened done [15:30:14]requested_item shift.open_date is exist - process it [15:30:14]req_shift_open_date [15:30:14]req_shift_open_date done [15:30:14]produce_requested_data done [15:30:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30653,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:30:14]process_action_free close_receipt [15:30:14]json_value_free [15:30:14]json_value_free done [15:30:14]process_json_proto returns [15:30:14]Send response to host [15:30:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30653,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:30:14]free response buf [15:30:14]execute_script done [15:30:14]execute_script returns [15:30:14]free content buf [15:30:14]Sock 7.Close socket [15:30:14]Sock 7.Thread stoped [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:43]accept exits with 9 [15:33:43]New connection [15:33:43]New thread 3067346276 created [15:33:43]Thread 3067489636 joined [15:33:43]Waiting for new connection... [15:33:43] Sock 9.Parse request [15:33:43]Sock 9.Check first char [15:33:43]Sock 9.First char is OK [15:33:43]request: POST /json_proto HTTP/1.0 [15:33:43]Method: POST [15:33:43]URL: /json_proto [15:33:43]Method is POST - this is cgi request [15:33:43]url: /json_proto [15:33:43]query_string will be loaded in cgi processing [15:33:43]execute_cgi json_proto POST (null) [15:33:43]execute_cgi path=json_proto method=POST [15:33:43]POST find Content-Length [15:33:43]Host: 172.17.51.3:8080 [15:33:43]Content-Length: 677 [15:33:43]Content-Type: application/json [15:33:43] [15:33:43]POST finish read [15:33:43]Found Content-Length = 677 [15:33:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:43]execute_script... [15:33:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:43]POST & json_proto [15:33:43]process_json_proto [15:33:43]json parsed OK: [15:33:43]protocol is kg_v1.0 [15:33:43]action value=close_receipt [15:33:43]process_action close_receipt [15:33:43]cmd_close_receipt [15:33:43]MH_GetDate [15:33:43]Write to MH i2c: F0 00 00 C5 4A FE [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: F0 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: F0 09 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: F0 09 00 C5 4A 00 5D 74 16 67 04 C1 95 66 15 [15:33:43]GetLastDocTimeStamp 1729524616 [15:33:43]current date 1729524829 [15:33:43]FM_GetShiftState [15:33:43]SAM_PROTO_GetShiftState [15:33:43]wFMCommunicate request_size=4 [15:33:43]MH_SAM_APDU [15:33:43]CAPDU: 80 13 01 00 [15:33:43]Write to MH i2c: E2 08 00 C6 4A 80 13 01 00 00 00 00 00 8D [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 0E 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 0E 00 C6 4A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 09 [15:33:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:33:43]wFMCommunicate OK [15:33:43]SAM_PROTO_GetShiftState done [15:33:43]FM_GetShiftState done [15:33:43]opened in 1729471058 [15:33:43]opened+sec_in_day 1729557458 [15:33:43]quantity*price = 20003 [15:33:43]sum+1 = 20004 [15:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 151 21.10.2024 15:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30654 ФПД: 228498932938797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30654&fm=228498932938797&tin=02508201610067®Number=0000000000186857&sum=20000 [15:33:45]StoreToDocumentArchive [15:33:45]shift 115 fd 30654 [15:33:45]save to /storage/0115/doc_00030654 [15:33:45]save last doc name /storage/0115/doc_00030654 to /storage/kkm_last_doc_name [15:33:45]save OK [15:33:45]Clear old archive folders... [15:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:45]tlvbuf is 01DD6DD0 [15:33:45]SAM_PROTO_ClearQueue [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 09 00 00 [15:33:45]Write to MH i2c: E2 08 00 D3 4A 80 09 00 00 00 00 00 00 8F [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 D3 4A 00 90 00 91 [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]SAM_PROTO_ClearQueue done [15:33:45]KKMCreateOFDPacket [15:33:45]OFDProtocolAddRootSTLVToBuf [15:33:45]FM_MakeSignedData [15:33:45]FM_MakeSignedData [15:33:45]SAM_PROTO_SignData [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 01 02 [15:33:45]Write to MH i2c: E2 08 00 D4 4A 80 0D 01 02 00 00 00 00 97 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 D4 4A 00 90 00 92 [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]wFMCommunicate request_size=255 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 97 00 00 00 F4 03 04 00 5D 74 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 77 00 00 35 04 06 00 CF [15:33:45]Write to MH i2c: E2 02 01 D5 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 97 00 00 00 F4 03 04 00 5D 74 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 77 00 00 35 04 06 00 CF 00 00 46 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 D5 4A 00 90 00 93 [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]wFMCommunicate request_size=10 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 02 02 05 D1 8D BA B8 2D [15:33:45]Write to MH i2c: E2 0D 00 D6 4A 80 0D 02 02 05 00 D1 8D BA B8 2D 00 00 A1 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 03 00 D6 4A 00 90 00 94 [15:33:45]RAPDU: 90 00 [15:33:45]wFMCommunicate OK [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 0D 03 02 [15:33:45]Write to MH i2c: E2 08 00 D7 4A 80 0D 03 02 00 00 00 00 9C [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 0B 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 0B 00 D7 4A 00 33 FA 5E A4 1F E1 70 BB 90 00 F7 [15:33:45]RAPDU: 33 FA 5E A4 1F E1 70 BB 90 00 [15:33:45]wFMCommunicate OK [15:33:45]SAM_PROTO_SignData done [15:33:45]FM_MakeSignedData done [15:33:45]CreateOFDProtocolMessage [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 11 00 00 [15:33:45]Write to MH i2c: E2 08 00 D8 4A 80 11 00 00 00 00 00 00 9C [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 17 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 17 00 D8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [15:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:33:45]wFMCommunicate OK [15:33:45]CreateOFDProtocolMessage done [15:33:45]OFDSenderStorePacket 30654 [15:33:45]StoreOFDPacket docnum=30654 [15:33:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 75 07 01 42 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 97 00 00 00 F4 03 04 00 5D 74 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 77 00 00 35 04 06 00 CF D1 8D BA B8 2D 33 FA 5E A4 1F E1 70 BB [15:33:45]CheckFolder [15:33:45]dirname=/storage/ofd_packets [15:33:45]CheckFolder done [15:33:45]ProducePacketName [15:33:45]name=ofd_packets/00030654 [15:33:45]NVStorageSaveData ofd_packets/00030654 [15:33:45]File name is /storage/ofd_packets/00030654 [15:33:45]Write 301 bytes [15:33:45]NVStorageSaveData done [15:33:45]OFDSenderStorePacket done [15:33:45]KKMCreateOFDPacket done [15:33:45]NVStorageSaveData kkm_last_timestamp [15:33:45]File name is /storage/kkm_last_timestamp [15:33:45]Write 4 bytes [15:33:45]NVStorageSaveData done [15:33:45]ExternCall_PrintAddStr [15:33:45]wPrintStart [15:33:45]Write to MH i2c: 01 00 00 D9 4A 23 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 07 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 07 00 D9 4A 00 00 00 00 00 FF 0F 38 [15:33:45]RasterBufferAndPrint [15:33:45]line Счет N : (1)343063 [15:33:45]line ИНН: 02508201610067 [15:33:45]line Контрольно-Кассовый Чек [15:33:45]line ПРОДАЖА [15:33:45]line ТРК (МРК, ГНК) : 53 [15:33:45]line Товар: 2710124130 [15:33:45]line Аи-92-К-2 [15:33:45]line 2.990 * 66.90 [15:33:45]line = 200.03 [15:33:45]line НДС 12% НСП 1% [15:33:45]line > о реализуемом товаре [15:33:45]line ОКРУГЛЕНИЕ: -0.03 [15:33:45]line ИТОГО: 200.00 [15:33:45]line Внесено: 200.00 [15:33:45]line СДАЧА: 0.00 [15:33:45]line НСП 1% : 1.77 [15:33:45]line НДС 12% : 21.24 [15:33:45]line Наличными: 200.00 [15:33:45]line Безнал.: 0.00 [15:33:45]line Место: АЗС № 78 "Партнер Нефть" [15:33:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:33:45]line СНО: Общий режим [15:33:45]line Чек 151 21.10.2024 15:33 [15:33:45]line Смена: 115 ФФД: 1.0 [15:33:45]line ЗНМ: 0300000137 [15:33:45]line РНМ: 0000000000186857 [15:33:45]line Версия ККМ: v1.0 [15:33:45]line ФМ: 0000000002094219 [15:33:45]line ФД: 30654 [15:33:45]line ФПД: 228498932938797 [15:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153349&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30654&fm=228498932938797&tin=02508201610067®Number=0000000000186857&sum=20000 [15:33:45]OFD Sender: Processing packet 30654 [packets to send 10, broken 9] [15:33:45]ProducePacketName [15:33:45]name=ofd_packets/00030654 [15:33:45]OFD Sender: To server: pG, [15:33:45]CommunicateWithHost lk.salyk.kg:30040 [15:33:45]ConnectInit lk.salyk.kg [15:33:45]written 0, free lines is 4095 [15:33:46]Connected sock=10 [15:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 75 07 01 42 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 97 00 00 00 F4 03 04 00 5D 74 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 77 00 00 35 04 06 00 CF D1 8D BA B8 2D 33 FA 5E A4 1F E1 70 BB [15:33:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DE 72 47 00 10 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BE 77 00 00 F4 03 04 00 DD 1E 16 67 B6 04 01 00 00 F2 45 0C 78 5C EC D1 C0 [15:33:46]CommunicateWithHost err = 0 [15:33:46]CheckOFDResponse [15:33:46]1017 (14) - 77093643461234 [15:33:46]1041 (16) - 0000000002094219 [15:33:46]1040 (4) - 30654 [15:33:46]1012 (4) - 21.10.2024 09:29 [15:33:46]1206 (1) - 0 [15:33:46]OFD Sender: Remove packet 30654 [15:33:46]ProducePacketName [15:33:46]name=ofd_packets/00030654 [15:33:46]NVStorageDeleteData [15:33:46]Write to MH i2c: 01 00 00 04 4B 4F [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: 01 07 00 04 4B 00 00 00 00 00 F6 0C 58 [15:33:46]RasterBufferAndPrint [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]line [15:33:46]written 0, free lines is 3324 [15:33:46]MH_Cut [15:33:46]Write to MH i2c: D1 01 00 0B 4B 01 28 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: D1 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: D1 01 00 [15:33:46]MH_I2C_Read... [15:33:46]Read from MH i2c: D1 01 00 0B 4B 00 27 [15:33:46]Write to MH i2c: 01 00 00 0C 4B 57 [15:33:46]Write i2c OK [15:33:46]MH_I2C_Read... [15:33:46]OFD Sender: No OFD packet to send [15:33:47]*** Cut start [15:33:47]*** Partial cut [15:33:47]*** CUTSNS_PIN = 1 [15:33:47]*** CUTSNS_PIN = 0 [15:33:47]*** Brake cut motor [15:33:47]Read from MH i2c: 01 [15:33:47]MH_I2C_Read... [15:33:47]*** Stop cut motor [15:33:47]*** Cut end [15:33:47]Read from MH i2c: 01 07 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: 01 07 00 0C 4B 00 00 00 00 00 FF 0F 6C [15:33:47]process_action close_receipt done [15:33:47]requested_data is exist [15:33:47]produce_requested_data [15:33:47]requested_item fm.sn is exist - process it [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 11 00 00 [15:33:47]Write to MH i2c: E2 08 00 0D 4B 80 11 00 00 00 00 00 00 D2 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 17 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 17 00 0D 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 20 [15:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:33:47]wFMCommunicate OK [15:33:47]requested_item fd.num is exist - process it [15:33:47]SAM_PROTO_GetFieldsCounters [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 00 00 [15:33:47]Write to MH i2c: E2 08 00 0E 4B 80 13 00 00 00 00 00 00 D5 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 62 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 62 00 0E 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 77 00 00 0E 04 04 00 73 00 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 68 [15:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetFieldsCounters done [15:33:47]requested_item shift.num is exist - process it [15:33:47]requested_item shift.opened is exist - process it [15:33:47]req_shift_opened [15:33:47]FM_GetShiftState [15:33:47]SAM_PROTO_GetShiftState [15:33:47]wFMCommunicate request_size=4 [15:33:47]MH_SAM_APDU [15:33:47]CAPDU: 80 13 01 00 [15:33:47]Write to MH i2c: E2 08 00 0F 4B 80 13 01 00 00 00 00 00 D7 [15:33:47]Write i2c OK [15:33:47]MH_I2C_Read... [15:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:47]Read from MH i2c: E2 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 [15:33:47]MH_I2C_Read... [15:33:47]Read from MH i2c: E2 0E 00 0F 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 53 [15:33:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:33:47]wFMCommunicate OK [15:33:47]SAM_PROTO_GetShiftState done [15:33:47]FM_GetShiftState done [15:33:47]req_shift_opened done [15:33:47]requested_item shift.open_date is exist - process it [15:33:47]req_shift_open_date [15:33:47]req_shift_open_date done [15:33:47]produce_requested_data done [15:33:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30654,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:33:47]process_action_free close_receipt [15:33:47]json_value_free [15:33:47]json_value_free done [15:33:47]process_json_proto returns [15:33:47]Send response to host [15:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30654,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:33:47]free response buf [15:33:47]execute_script done [15:33:47]execute_script returns [15:33:47]free content buf [15:33:47]Sock 9.Close socket [15:33:47]Sock 9.Thread stoped [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:27]accept exits with 7 [15:37:27]New connection [15:37:27]New thread 3067489636 created [15:37:27]Thread 3067346276 joined [15:37:27]Waiting for new connection... [15:37:27] Sock 7.Parse request [15:37:27]Sock 7.Check first char [15:37:27]Sock 7.First char is OK [15:37:27]request: POST /json_proto HTTP/1.0 [15:37:27]Method: POST [15:37:27]URL: /json_proto [15:37:27]Method is POST - this is cgi request [15:37:27]url: /json_proto [15:37:27]query_string will be loaded in cgi processing [15:37:27]execute_cgi json_proto POST (null) [15:37:27]execute_cgi path=json_proto method=POST [15:37:27]POST find Content-Length [15:37:27]Host: 172.17.51.3:8080 [15:37:27]Content-Length: 677 [15:37:27]Content-Type: application/json [15:37:27] [15:37:27]POST finish read [15:37:27]Found Content-Length = 677 [15:37:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:27]execute_script... [15:37:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:27]POST & json_proto [15:37:27]process_json_proto [15:37:27]json parsed OK: [15:37:27]protocol is kg_v1.0 [15:37:27]action value=close_receipt [15:37:27]process_action close_receipt [15:37:27]cmd_close_receipt [15:37:27]MH_GetDate [15:37:27]Write to MH i2c: F0 00 00 10 4B 4A [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 09 00 [15:37:27]MH_I2C_Read... [15:37:27]Read from MH i2c: F0 09 00 10 4B 00 3D 75 16 67 04 C1 95 66 42 [15:37:27]GetLastDocTimeStamp 1729524829 [15:37:27]current date 1729525053 [15:37:27]FM_GetShiftState [15:37:27]SAM_PROTO_GetShiftState [15:37:27]wFMCommunicate request_size=4 [15:37:27]MH_SAM_APDU [15:37:27]CAPDU: 80 13 01 00 [15:37:27]Write to MH i2c: E2 08 00 11 4B 80 13 01 00 00 00 00 00 D9 [15:37:27]Write i2c OK [15:37:27]MH_I2C_Read... [15:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:28]Read from MH i2c: E2 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0E 00 [15:37:28]MH_I2C_Read... [15:37:28]Read from MH i2c: E2 0E 00 11 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 55 [15:37:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:37:28]wFMCommunicate OK [15:37:28]SAM_PROTO_GetShiftState done [15:37:28]FM_GetShiftState done [15:37:28]opened in 1729471058 [15:37:28]opened+sec_in_day 1729557458 [15:37:28]quantity*price = 20003 [15:37:28]sum+1 = 20004 [15:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 152 21.10.2024 15:37 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30655 ФПД: 81124401896902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30655&fm=81124401896902&tin=02508201610067®Number=0000000000186857&sum=20000 [15:37:29]StoreToDocumentArchive [15:37:29]shift 115 fd 30655 [15:37:29]save to /storage/0115/doc_00030655 [15:37:29]save last doc name /storage/0115/doc_00030655 to /storage/kkm_last_doc_name [15:37:29]save OK [15:37:29]Clear old archive folders... [15:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:29]tlvbuf is 01E11160 [15:37:29]SAM_PROTO_ClearQueue [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 09 00 00 [15:37:29]Write to MH i2c: E2 08 00 1E 4B 80 09 00 00 00 00 00 00 DB [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 1E 4B 00 90 00 DD [15:37:29]RAPDU: 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_ClearQueue done [15:37:29]KKMCreateOFDPacket [15:37:29]OFDProtocolAddRootSTLVToBuf [15:37:29]FM_MakeSignedData [15:37:29]FM_MakeSignedData [15:37:29]SAM_PROTO_SignData [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 0D 01 02 [15:37:29]Write to MH i2c: E2 08 00 1F 4B 80 0D 01 02 00 00 00 00 E3 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 1F 4B 00 90 00 DE [15:37:29]RAPDU: 90 00 [15:37:29]wFMCommunicate OK [15:37:29]wFMCommunicate request_size=255 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 98 00 00 00 F4 03 04 00 3D 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 77 00 00 35 04 06 00 49 [15:37:29]Write to MH i2c: E2 02 01 20 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 98 00 00 00 F4 03 04 00 3D 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 77 00 00 35 04 06 00 49 00 00 EF [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 20 4B 00 90 00 DF [15:37:29]RAPDU: 90 00 [15:37:29]wFMCommunicate OK [15:37:29]wFMCommunicate request_size=10 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 0D 02 02 05 C8 3F 28 5D C6 [15:37:29]Write to MH i2c: E2 0D 00 21 4B 80 0D 02 02 05 00 C8 3F 28 5D C6 00 00 42 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 03 00 21 4B 00 90 00 E0 [15:37:29]RAPDU: 90 00 [15:37:29]wFMCommunicate OK [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 0D 03 02 [15:37:29]Write to MH i2c: E2 08 00 22 4B 80 0D 03 02 00 00 00 00 E8 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0B 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 0B 00 22 4B 00 2A 57 B4 E0 E1 66 7F 3D 90 00 01 [15:37:29]RAPDU: 2A 57 B4 E0 E1 66 7F 3D 90 00 [15:37:29]wFMCommunicate OK [15:37:29]SAM_PROTO_SignData done [15:37:29]FM_MakeSignedData done [15:37:29]CreateOFDProtocolMessage [15:37:29]wFMCommunicate request_size=4 [15:37:29]MH_SAM_APDU [15:37:29]CAPDU: 80 11 00 00 [15:37:29]Write to MH i2c: E2 08 00 23 4B 80 11 00 00 00 00 00 00 E8 [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:29]Read from MH i2c: E2 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: E2 17 00 23 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [15:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:37:29]wFMCommunicate OK [15:37:29]CreateOFDProtocolMessage done [15:37:29]OFDSenderStorePacket 30655 [15:37:29]StoreOFDPacket docnum=30655 [15:37:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 99 17 07 01 09 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 98 00 00 00 F4 03 04 00 3D 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 77 00 00 35 04 06 00 49 C8 3F 28 5D C6 2A 57 B4 E0 E1 66 7F 3D [15:37:29]CheckFolder [15:37:29]dirname=/storage/ofd_packets [15:37:29]CheckFolder done [15:37:29]ProducePacketName [15:37:29]name=ofd_packets/00030655 [15:37:29]NVStorageSaveData ofd_packets/00030655 [15:37:29]File name is /storage/ofd_packets/00030655 [15:37:29]Write 301 bytes [15:37:29]NVStorageSaveData done [15:37:29]OFDSenderStorePacket done [15:37:29]KKMCreateOFDPacket done [15:37:29]NVStorageSaveData kkm_last_timestamp [15:37:29]File name is /storage/kkm_last_timestamp [15:37:29]Write 4 bytes [15:37:29]NVStorageSaveData done [15:37:29]ExternCall_PrintAddStr [15:37:29]wPrintStart [15:37:29]Write to MH i2c: 01 00 00 24 4B 6F [15:37:29]Write i2c OK [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 [15:37:29]MH_I2C_Read... [15:37:29]Read from MH i2c: 01 07 00 24 4B 00 00 00 00 00 FF 0F 84 [15:37:29]RasterBufferAndPrint [15:37:29]line Счет N : (1)343064 [15:37:29]line ИНН: 02508201610067 [15:37:29]line Контрольно-Кассовый Чек [15:37:29]line ПРОДАЖА [15:37:29]line ТРК (МРК, ГНК) : 63 [15:37:29]line Товар: 2710124130 [15:37:29]line Аи-92-К-2 [15:37:29]line 2.990 * 66.90 [15:37:29]line = 200.03 [15:37:29]line НДС 12% НСП 1% [15:37:29]line > о реализуемом товаре [15:37:29]line ОКРУГЛЕНИЕ: -0.03 [15:37:29]line ИТОГО: 200.00 [15:37:29]line Внесено: 200.00 [15:37:29]line СДАЧА: 0.00 [15:37:29]line НСП 1% : 1.77 [15:37:29]line НДС 12% : 21.24 [15:37:29]line Наличными: 200.00 [15:37:29]line Безнал.: 0.00 [15:37:29]line Место: АЗС № 78 "Партнер Нефть" [15:37:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:37:29]line СНО: Общий режим [15:37:29]line Чек 152 21.10.2024 15:37 [15:37:29]line Смена: 115 ФФД: 1.0 [15:37:29]line ЗНМ: 0300000137 [15:37:29]line РНМ: 0000000000186857 [15:37:29]line Версия ККМ: v1.0 [15:37:29]line ФМ: 0000000002094219 [15:37:29]line ФД: 30655 [15:37:29]line ФПД: 81124401896902 [15:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30655&fm=81124401896902&tin=02508201610067®Number=0000000000186857&sum=20000 [15:37:30]OFD Sender: Processing packet 30655 [packets to send 10, broken 9] [15:37:30]ProducePacketName [15:37:30]name=ofd_packets/00030655 [15:37:30]OFD Sender: To server: pG, [15:37:30]CommunicateWithHost lk.salyk.kg:30040 [15:37:30]ConnectInit lk.salyk.kg [15:37:30]written 0, free lines is 4095 [15:37:30]Connected sock=10 [15:37:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 99 17 07 01 09 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 98 00 00 00 F4 03 04 00 3D 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 77 00 00 35 04 06 00 49 C8 3F 28 5D C6 2A 57 B4 E0 E1 66 7F 3D [15:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A8 A2 47 00 86 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 BF 77 00 00 F4 03 04 00 BD 1F 16 67 B6 04 01 00 00 D4 9C B1 49 D2 A7 B7 4B [15:37:30]CommunicateWithHost err = 0 [15:37:30]CheckOFDResponse [15:37:30]1017 (14) - 77093643461234 [15:37:30]1041 (16) - 0000000002094219 [15:37:30]1040 (4) - 30655 [15:37:30]1012 (4) - 21.10.2024 09:32 [15:37:30]1206 (1) - 0 [15:37:30]OFD Sender: Remove packet 30655 [15:37:30]ProducePacketName [15:37:30]name=ofd_packets/00030655 [15:37:30]NVStorageDeleteData [15:37:30]Write to MH i2c: 01 00 00 4F 4B 9A [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: 01 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: 01 07 00 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: 01 07 00 4F 4B 00 00 00 00 00 F2 0C 9F [15:37:30]RasterBufferAndPrint [15:37:30]line [15:37:30]line [15:37:30]line [15:37:30]line [15:37:30]line [15:37:30]written 0, free lines is 3320 [15:37:30]MH_Cut [15:37:30]Write to MH i2c: D1 01 00 56 4B 01 73 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: D1 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: D1 01 00 [15:37:30]MH_I2C_Read... [15:37:30]Read from MH i2c: D1 01 00 56 4B 00 72 [15:37:30]Write to MH i2c: 01 00 00 57 4B A2 [15:37:30]Write i2c OK [15:37:30]MH_I2C_Read... [15:37:30]OFD Sender: No OFD packet to send [15:37:31]*** Cut start [15:37:31]*** Partial cut [15:37:31]*** CUTSNS_PIN = 1 [15:37:31]*** CUTSNS_PIN = 0 [15:37:31]*** Brake cut motor [15:37:31]Read from MH i2c: 01 [15:37:31]MH_I2C_Read... [15:37:31]*** Stop cut motor [15:37:31]*** Cut end [15:37:31]Read from MH i2c: 01 07 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: 01 07 00 57 4B 00 00 00 00 00 FF 0F B7 [15:37:31]process_action close_receipt done [15:37:31]requested_data is exist [15:37:31]produce_requested_data [15:37:31]requested_item fm.sn is exist - process it [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 11 00 00 [15:37:31]Write to MH i2c: E2 08 00 58 4B 80 11 00 00 00 00 00 00 1D [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 17 00 58 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6B [15:37:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:37:31]wFMCommunicate OK [15:37:31]requested_item fd.num is exist - process it [15:37:31]SAM_PROTO_GetFieldsCounters [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 13 00 00 [15:37:31]Write to MH i2c: E2 08 00 59 4B 80 13 00 00 00 00 00 00 20 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:31]Read from MH i2c: E2 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 62 00 [15:37:31]MH_I2C_Read... [15:37:31]Read from MH i2c: E2 62 00 59 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 77 00 00 0E 04 04 00 73 00 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 B7 [15:37:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 BF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:31]wFMCommunicate OK [15:37:31]SAM_PROTO_GetFieldsCounters done [15:37:31]requested_item shift.num is exist - process it [15:37:31]requested_item shift.opened is exist - process it [15:37:31]req_shift_opened [15:37:31]FM_GetShiftState [15:37:31]SAM_PROTO_GetShiftState [15:37:31]wFMCommunicate request_size=4 [15:37:31]MH_SAM_APDU [15:37:31]CAPDU: 80 13 01 00 [15:37:31]Write to MH i2c: E2 08 00 5A 4B 80 13 01 00 00 00 00 00 22 [15:37:31]Write i2c OK [15:37:31]MH_I2C_Read... [15:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:32]Read from MH i2c: E2 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 0E 00 [15:37:32]MH_I2C_Read... [15:37:32]Read from MH i2c: E2 0E 00 5A 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9E [15:37:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:37:32]wFMCommunicate OK [15:37:32]SAM_PROTO_GetShiftState done [15:37:32]FM_GetShiftState done [15:37:32]req_shift_opened done [15:37:32]requested_item shift.open_date is exist - process it [15:37:32]req_shift_open_date [15:37:32]req_shift_open_date done [15:37:32]produce_requested_data done [15:37:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30655,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:37:32]process_action_free close_receipt [15:37:32]json_value_free [15:37:32]json_value_free done [15:37:32]process_json_proto returns [15:37:32]Send response to host [15:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30655,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:37:32]free response buf [15:37:32]execute_script done [15:37:32]execute_script returns [15:37:32]free content buf [15:37:32]Sock 7.Close socket [15:37:32]Sock 7.Thread stoped [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:50]OFD Sender: No OFD packet to send [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:37]accept exits with 9 [15:38:37]New connection [15:38:37]New thread 3067346276 created [15:38:37]Thread 3067489636 joined [15:38:37]Waiting for new connection... [15:38:37] Sock 9.Parse request [15:38:37]Sock 9.Check first char [15:38:37]Sock 9.First char is OK [15:38:37]request: POST /json_proto HTTP/1.0 [15:38:37]Method: POST [15:38:37]URL: /json_proto [15:38:37]Method is POST - this is cgi request [15:38:37]url: /json_proto [15:38:37]query_string will be loaded in cgi processing [15:38:37]execute_cgi json_proto POST (null) [15:38:37]execute_cgi path=json_proto method=POST [15:38:37]POST find Content-Length [15:38:37]Host: 172.17.51.3:8080 [15:38:37]Content-Length: 688 [15:38:37]Content-Type: application/json [15:38:37] [15:38:37]POST finish read [15:38:37]Found Content-Length = 688 [15:38:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:37]execute_script... [15:38:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:37]POST & json_proto [15:38:37]process_json_proto [15:38:37]json parsed OK: [15:38:37]protocol is kg_v1.0 [15:38:37]action value=close_receipt [15:38:37]process_action close_receipt [15:38:37]cmd_close_receipt [15:38:37]MH_GetDate [15:38:37]Write to MH i2c: F0 00 00 5B 4B 95 [15:38:37]Write i2c OK [15:38:37]MH_I2C_Read... [15:38:37]Read from MH i2c: F0 [15:38:37]MH_I2C_Read... [15:38:37]Read from MH i2c: F0 09 00 [15:38:37]MH_I2C_Read... [15:38:37]Read from MH i2c: F0 09 00 5B 4B 00 83 75 16 67 04 C1 95 66 D3 [15:38:37]GetLastDocTimeStamp 1729525053 [15:38:37]current date 1729525123 [15:38:37]FM_GetShiftState [15:38:37]SAM_PROTO_GetShiftState [15:38:37]wFMCommunicate request_size=4 [15:38:37]MH_SAM_APDU [15:38:37]CAPDU: 80 13 01 00 [15:38:37]Write to MH i2c: E2 08 00 5C 4B 80 13 01 00 00 00 00 00 24 [15:38:37]Write i2c OK [15:38:37]MH_I2C_Read... [15:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:37]Read from MH i2c: E2 [15:38:37]MH_I2C_Read... [15:38:37]Read from MH i2c: E2 0E 00 [15:38:37]MH_I2C_Read... [15:38:37]Read from MH i2c: E2 0E 00 5C 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A0 [15:38:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:38:37]wFMCommunicate OK [15:38:37]SAM_PROTO_GetShiftState done [15:38:37]FM_GetShiftState done [15:38:37]opened in 1729471058 [15:38:37]opened+sec_in_day 1729557458 [15:38:37]quantity*price = 100051 [15:38:37]sum+1 = 100052 [15:38:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 153 21.10.2024 15:38 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30656 ФПД: 97707482872737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30656&fm=97707482872737&tin=02508201610067®Number=0000000000186857&sum=100000 [15:38:38]StoreToDocumentArchive [15:38:38]shift 115 fd 30656 [15:38:38]save to /storage/0115/doc_00030656 [15:38:38]save last doc name /storage/0115/doc_00030656 to /storage/kkm_last_doc_name [15:38:38]save OK [15:38:38]Clear old archive folders... [15:38:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:38:38]tlvbuf is 01E55D80 [15:38:38]SAM_PROTO_ClearQueue [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 09 00 00 [15:38:38]Write to MH i2c: E2 08 00 69 4B 80 09 00 00 00 00 00 00 26 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 69 4B 00 90 00 28 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]SAM_PROTO_ClearQueue done [15:38:38]KKMCreateOFDPacket [15:38:38]OFDProtocolAddRootSTLVToBuf [15:38:38]FM_MakeSignedData [15:38:38]FM_MakeSignedData [15:38:38]SAM_PROTO_SignData [15:38:38]wFMCommunicate request_size=4 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 0D 01 02 [15:38:38]Write to MH i2c: E2 08 00 6A 4B 80 0D 01 02 00 00 00 00 2E [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:38]Read from MH i2c: E2 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 [15:38:38]MH_I2C_Read... [15:38:38]Read from MH i2c: E2 03 00 6A 4B 00 90 00 29 [15:38:38]RAPDU: 90 00 [15:38:38]wFMCommunicate OK [15:38:38]wFMCommunicate request_size=255 [15:38:38]MH_SAM_APDU [15:38:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 77 00 [15:38:38]Write to MH i2c: E2 02 01 6B 4B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 77 00 00 00 40 [15:38:38]Write i2c OK [15:38:38]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 6B 4B 00 90 00 2A [15:38:39]RAPDU: 90 00 [15:38:39]wFMCommunicate OK [15:38:39]wFMCommunicate request_size=16 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 58 DD 4B CE FB A1 [15:38:39]Write to MH i2c: E2 13 00 6C 4B 80 0D 02 02 0B 00 00 35 04 06 00 58 DD 4B CE FB A1 00 00 70 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 03 00 6C 4B 00 90 00 2B [15:38:39]RAPDU: 90 00 [15:38:39]wFMCommunicate OK [15:38:39]wFMCommunicate request_size=4 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 0D 03 02 [15:38:39]Write to MH i2c: E2 08 00 6D 4B 80 0D 03 02 00 00 00 00 33 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 0B 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 0B 00 6D 4B 00 6B 70 68 34 95 42 B4 08 90 00 3E [15:38:39]RAPDU: 6B 70 68 34 95 42 B4 08 90 00 [15:38:39]wFMCommunicate OK [15:38:39]SAM_PROTO_SignData done [15:38:39]FM_MakeSignedData done [15:38:39]CreateOFDProtocolMessage [15:38:39]wFMCommunicate request_size=4 [15:38:39]MH_SAM_APDU [15:38:39]CAPDU: 80 11 00 00 [15:38:39]Write to MH i2c: E2 08 00 6E 4B 80 11 00 00 00 00 00 00 33 [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:39]Read from MH i2c: E2 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 17 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: E2 17 00 6E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 81 [15:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:38:39]wFMCommunicate OK [15:38:39]CreateOFDProtocolMessage done [15:38:39]OFDSenderStorePacket 30656 [15:38:39]StoreOFDPacket docnum=30656 [15:38:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C6 97 0D 01 3B 81 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 77 00 00 35 04 06 00 58 DD 4B CE FB A1 6B 70 68 34 95 42 B4 08 [15:38:39]CheckFolder [15:38:39]dirname=/storage/ofd_packets [15:38:39]CheckFolder done [15:38:39]ProducePacketName [15:38:39]name=ofd_packets/00030656 [15:38:39]NVStorageSaveData ofd_packets/00030656 [15:38:39]File name is /storage/ofd_packets/00030656 [15:38:39]Write 307 bytes [15:38:39]NVStorageSaveData done [15:38:39]OFDSenderStorePacket done [15:38:39]KKMCreateOFDPacket done [15:38:39]NVStorageSaveData kkm_last_timestamp [15:38:39]File name is /storage/kkm_last_timestamp [15:38:39]Write 4 bytes [15:38:39]NVStorageSaveData done [15:38:39]ExternCall_PrintAddStr [15:38:39]wPrintStart [15:38:39]Write to MH i2c: 01 00 00 6F 4B BA [15:38:39]Write i2c OK [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 07 00 [15:38:39]MH_I2C_Read... [15:38:39]Read from MH i2c: 01 07 00 6F 4B 00 00 00 00 00 FF 0F CF [15:38:39]RasterBufferAndPrint [15:38:39]line Счет N : (1)343065 [15:38:39]line ИНН: 02508201610067 [15:38:39]line Контрольно-Кассовый Чек [15:38:39]line ПРОДАЖА [15:38:39]line ТРК (МРК, ГНК) : 51 [15:38:39]line Товар: 2710194210 [15:38:39]line D-ENERGY Дт-К-2 [15:38:39]line 12.960 * 77.20 [15:38:39]line = 1000.51 [15:38:39]line НДС 12% НСП 1% [15:38:39]line > о реализуемом товаре [15:38:39]line ОКРУГЛЕНИЕ: -0.51 [15:38:39]line ИТОГО: 1000.00 [15:38:39]line Внесено: 1000.00 [15:38:39]line СДАЧА: 0.00 [15:38:39]line НСП 1% : 8.85 [15:38:39]line НДС 12% : 106.25 [15:38:39]line Наличными: 1000.00 [15:38:39]line Безнал.: 0.00 [15:38:39]line Место: АЗС № 78 "Партнер Нефть" [15:38:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:38:39]line СНО: Общий режим [15:38:39]line Чек 153 21.10.2024 15:38 [15:38:39]line Смена: 115 ФФД: 1.0 [15:38:39]line ЗНМ: 0300000137 [15:38:39]line РНМ: 0000000000186857 [15:38:39]line Версия ККМ: v1.0 [15:38:39]line ФМ: 0000000002094219 [15:38:39]line ФД: 30656 [15:38:39]line ФПД: 97707482872737 [15:38:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30656&fm=97707482872737&tin=02508201610067®Number=0000000000186857&sum=100000 [15:38:39]OFD Sender: Processing packet 30656 [packets to send 10, broken 9] [15:38:39]ProducePacketName [15:38:39]name=ofd_packets/00030656 [15:38:39]OFD Sender: To server: pG, [15:38:39]CommunicateWithHost lk.salyk.kg:30040 [15:38:39]ConnectInit lk.salyk.kg [15:38:39]written 0, free lines is 4095 [15:38:39]Connected sock=10 [15:38:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 C6 97 0D 01 3B 81 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 83 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 77 00 00 35 04 06 00 58 DD 4B CE FB A1 6B 70 68 34 95 42 B4 08 [15:38:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 10 45 47 00 8F 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C0 77 00 00 F4 03 04 00 03 20 16 67 B6 04 01 00 00 53 80 4B 0A 71 B5 C2 2C [15:38:40]CommunicateWithHost err = 0 [15:38:40]CheckOFDResponse [15:38:40]1017 (14) - 77093643461234 [15:38:40]1041 (16) - 0000000002094219 [15:38:40]1040 (4) - 30656 [15:38:40]1012 (4) - 21.10.2024 09:33 [15:38:40]1206 (1) - 0 [15:38:40]OFD Sender: Remove packet 30656 [15:38:40]ProducePacketName [15:38:40]name=ofd_packets/00030656 [15:38:40]NVStorageDeleteData [15:38:40]Write to MH i2c: 01 00 00 9A 4B E5 [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 07 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: 01 07 00 9A 4B 00 00 00 00 00 01 0D FA [15:38:40]RasterBufferAndPrint [15:38:40]line [15:38:40]line [15:38:40]line [15:38:40]line [15:38:40]line [15:38:40]written 0, free lines is 3335 [15:38:40]MH_Cut [15:38:40]Write to MH i2c: D1 01 00 A1 4B 01 BE [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: D1 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: D1 01 00 [15:38:40]MH_I2C_Read... [15:38:40]Read from MH i2c: D1 01 00 A1 4B 00 BD [15:38:40]Write to MH i2c: 01 00 00 A2 4B ED [15:38:40]Write i2c OK [15:38:40]MH_I2C_Read... [15:38:40]OFD Sender: No OFD packet to send [15:38:40]*** Cut start [15:38:40]*** Partial cut [15:38:40]*** CUTSNS_PIN = 1 [15:38:40]*** CUTSNS_PIN = 0 [15:38:41]*** Brake cut motor [15:38:41]Read from MH i2c: 01 [15:38:41]MH_I2C_Read... [15:38:41]*** Stop cut motor [15:38:41]*** Cut end [15:38:41]Read from MH i2c: 01 07 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: 01 07 00 A2 4B 00 00 00 00 00 FF 0F 02 [15:38:41]process_action close_receipt done [15:38:41]requested_data is exist [15:38:41]produce_requested_data [15:38:41]requested_item fm.sn is exist - process it [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 11 00 00 [15:38:41]Write to MH i2c: E2 08 00 A3 4B 80 11 00 00 00 00 00 00 68 [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 17 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 17 00 A3 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B6 [15:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:38:41]wFMCommunicate OK [15:38:41]requested_item fd.num is exist - process it [15:38:41]SAM_PROTO_GetFieldsCounters [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 13 00 00 [15:38:41]Write to MH i2c: E2 08 00 A4 4B 80 13 00 00 00 00 00 00 6B [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 62 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 62 00 A4 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [15:38:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_GetFieldsCounters done [15:38:41]requested_item shift.num is exist - process it [15:38:41]requested_item shift.opened is exist - process it [15:38:41]req_shift_opened [15:38:41]FM_GetShiftState [15:38:41]SAM_PROTO_GetShiftState [15:38:41]wFMCommunicate request_size=4 [15:38:41]MH_SAM_APDU [15:38:41]CAPDU: 80 13 01 00 [15:38:41]Write to MH i2c: E2 08 00 A5 4B 80 13 01 00 00 00 00 00 6D [15:38:41]Write i2c OK [15:38:41]MH_I2C_Read... [15:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:41]Read from MH i2c: E2 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0E 00 [15:38:41]MH_I2C_Read... [15:38:41]Read from MH i2c: E2 0E 00 A5 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E9 [15:38:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:38:41]wFMCommunicate OK [15:38:41]SAM_PROTO_GetShiftState done [15:38:41]FM_GetShiftState done [15:38:41]req_shift_opened done [15:38:41]requested_item shift.open_date is exist - process it [15:38:41]req_shift_open_date [15:38:41]req_shift_open_date done [15:38:41]produce_requested_data done [15:38:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30656,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:38:41]process_action_free close_receipt [15:38:41]json_value_free [15:38:41]json_value_free done [15:38:41]process_json_proto returns [15:38:41]Send response to host [15:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30656,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:38:41]free response buf [15:38:41]execute_script done [15:38:41]execute_script returns [15:38:41]free content buf [15:38:41]Sock 9.Close socket [15:38:41]Sock 9.Thread stoped [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:32]accept exits with 7 [15:40:32]New connection [15:40:32]New thread 3067489636 created [15:40:32]Thread 3067346276 joined [15:40:32]Waiting for new connection... [15:40:32] Sock 7.Parse request [15:40:32]Sock 7.Check first char [15:40:32]Sock 7.First char is OK [15:40:32]request: POST /json_proto HTTP/1.0 [15:40:32]Method: POST [15:40:32]URL: /json_proto [15:40:32]Method is POST - this is cgi request [15:40:32]url: /json_proto [15:40:32]query_string will be loaded in cgi processing [15:40:32]execute_cgi json_proto POST (null) [15:40:32]execute_cgi path=json_proto method=POST [15:40:32]POST find Content-Length [15:40:32]Host: 172.17.51.3:8080 [15:40:32]Content-Length: 677 [15:40:32]Content-Type: application/json [15:40:32] [15:40:32]POST finish read [15:40:32]Found Content-Length = 677 [15:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:32]execute_script... [15:40:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:32]POST & json_proto [15:40:32]process_json_proto [15:40:32]json parsed OK: [15:40:32]protocol is kg_v1.0 [15:40:32]action value=close_receipt [15:40:32]process_action close_receipt [15:40:32]cmd_close_receipt [15:40:32]MH_GetDate [15:40:32]Write to MH i2c: F0 00 00 A6 4B E0 [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: F0 09 00 A6 4B 00 F5 75 16 67 04 C1 95 66 90 [15:40:32]GetLastDocTimeStamp 1729525123 [15:40:32]current date 1729525237 [15:40:32]FM_GetShiftState [15:40:32]SAM_PROTO_GetShiftState [15:40:32]wFMCommunicate request_size=4 [15:40:32]MH_SAM_APDU [15:40:32]CAPDU: 80 13 01 00 [15:40:32]Write to MH i2c: E2 08 00 A7 4B 80 13 01 00 00 00 00 00 6F [15:40:32]Write i2c OK [15:40:32]MH_I2C_Read... [15:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:32]Read from MH i2c: E2 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 [15:40:32]MH_I2C_Read... [15:40:32]Read from MH i2c: E2 0E 00 A7 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EB [15:40:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:40:32]wFMCommunicate OK [15:40:32]SAM_PROTO_GetShiftState done [15:40:32]FM_GetShiftState done [15:40:32]opened in 1729471058 [15:40:32]opened+sec_in_day 1729557458 [15:40:32]quantity*price = 50010 [15:40:32]sum+1 = 50012 [15:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 154 21.10.2024 15:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30657 ФПД: 262933906306502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30657&fm=262933906306502&tin=02508201610067®Number=0000000000186857&sum=50000 [15:40:33]StoreToDocumentArchive [15:40:33]shift 115 fd 30657 [15:40:33]save to /storage/0115/doc_00030657 [15:40:33]save last doc name /storage/0115/doc_00030657 to /storage/kkm_last_doc_name [15:40:33]save OK [15:40:33]Clear old archive folders... [15:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:40:33]tlvbuf is 01E1ACA0 [15:40:33]SAM_PROTO_ClearQueue [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 09 00 00 [15:40:33]Write to MH i2c: E2 08 00 B4 4B 80 09 00 00 00 00 00 00 71 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 B4 4B 00 90 00 73 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_ClearQueue done [15:40:33]KKMCreateOFDPacket [15:40:33]OFDProtocolAddRootSTLVToBuf [15:40:33]FM_MakeSignedData [15:40:33]FM_MakeSignedData [15:40:33]SAM_PROTO_SignData [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 01 02 [15:40:33]Write to MH i2c: E2 08 00 B5 4B 80 0D 01 02 00 00 00 00 79 [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 B5 4B 00 90 00 74 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=255 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 77 00 00 35 04 06 00 EF [15:40:33]Write to MH i2c: E2 02 01 B6 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 77 00 00 35 04 06 00 EF 00 00 FE [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 B6 4B 00 90 00 75 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=10 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 02 02 05 23 12 15 B5 C6 [15:40:33]Write to MH i2c: E2 0D 00 B7 4B 80 0D 02 02 05 00 23 12 15 B5 C6 00 00 4B [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 03 00 B7 4B 00 90 00 76 [15:40:33]RAPDU: 90 00 [15:40:33]wFMCommunicate OK [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 0D 03 02 [15:40:33]Write to MH i2c: E2 08 00 B8 4B 80 0D 03 02 00 00 00 00 7E [15:40:33]Write i2c OK [15:40:33]MH_I2C_Read... [15:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:33]Read from MH i2c: E2 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0B 00 [15:40:33]MH_I2C_Read... [15:40:33]Read from MH i2c: E2 0B 00 B8 4B 00 CA 7A A0 0C A0 75 E9 92 90 00 FF [15:40:33]RAPDU: CA 7A A0 0C A0 75 E9 92 90 00 [15:40:33]wFMCommunicate OK [15:40:33]SAM_PROTO_SignData done [15:40:33]FM_MakeSignedData done [15:40:33]CreateOFDProtocolMessage [15:40:33]wFMCommunicate request_size=4 [15:40:33]MH_SAM_APDU [15:40:33]CAPDU: 80 11 00 00 [15:40:33]Write to MH i2c: E2 08 00 B9 4B 80 11 00 00 00 00 00 00 7E [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:34]Read from MH i2c: E2 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: E2 17 00 B9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CC [15:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:40:34]wFMCommunicate OK [15:40:34]CreateOFDProtocolMessage done [15:40:34]OFDSenderStorePacket 30657 [15:40:34]StoreOFDPacket docnum=30657 [15:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 4D 07 01 D6 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 77 00 00 35 04 06 00 EF 23 12 15 B5 C6 CA 7A A0 0C A0 75 E9 92 [15:40:34]CheckFolder [15:40:34]dirname=/storage/ofd_packets [15:40:34]CheckFolder done [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00030657 [15:40:34]NVStorageSaveData ofd_packets/00030657 [15:40:34]File name is /storage/ofd_packets/00030657 [15:40:34]Write 301 bytes [15:40:34]NVStorageSaveData done [15:40:34]OFDSenderStorePacket done [15:40:34]KKMCreateOFDPacket done [15:40:34]NVStorageSaveData kkm_last_timestamp [15:40:34]File name is /storage/kkm_last_timestamp [15:40:34]Write 4 bytes [15:40:34]NVStorageSaveData done [15:40:34]ExternCall_PrintAddStr [15:40:34]wPrintStart [15:40:34]Write to MH i2c: 01 00 00 BA 4B 05 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 BA 4B 00 00 00 00 00 FF 0F 1A [15:40:34]RasterBufferAndPrint [15:40:34]line Счет N : (1)343067 [15:40:34]line ИНН: 02508201610067 [15:40:34]line Контрольно-Кассовый Чек [15:40:34]line ПРОДАЖА [15:40:34]line ТРК (МРК, ГНК) : 62 [15:40:34]line Товар: 2710124500 [15:40:34]line Аи-95-К-3 [15:40:34]line 6.740 * 74.20 [15:40:34]line = 500.11 [15:40:34]line НДС 12% НСП 1% [15:40:34]line > о реализуемом товаре [15:40:34]line ОКРУГЛЕНИЕ: -0.11 [15:40:34]line ИТОГО: 500.00 [15:40:34]line Внесено: 500.00 [15:40:34]line СДАЧА: 0.00 [15:40:34]line НСП 1% : 4.43 [15:40:34]line НДС 12% : 53.11 [15:40:34]line Наличными: 500.00 [15:40:34]line Безнал.: 0.00 [15:40:34]line Место: АЗС № 78 "Партнер Нефть" [15:40:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:40:34]line СНО: Общий режим [15:40:34]line Чек 154 21.10.2024 15:40 [15:40:34]line Смена: 115 ФФД: 1.0 [15:40:34]line ЗНМ: 0300000137 [15:40:34]line РНМ: 0000000000186857 [15:40:34]line Версия ККМ: v1.0 [15:40:34]line ФМ: 0000000002094219 [15:40:34]line ФД: 30657 [15:40:34]line ФПД: 262933906306502 [15:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154037&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30657&fm=262933906306502&tin=02508201610067®Number=0000000000186857&sum=50000 [15:40:34]OFD Sender: Processing packet 30657 [packets to send 10, broken 9] [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00030657 [15:40:34]OFD Sender: To server: pG, [15:40:34]CommunicateWithHost lk.salyk.kg:30040 [15:40:34]ConnectInit lk.salyk.kg [15:40:34]written 0, free lines is 4095 [15:40:34]Connected sock=10 [15:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 24 4D 07 01 D6 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 F5 75 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 77 00 00 35 04 06 00 EF 23 12 15 B5 C6 CA 7A A0 0C A0 75 E9 92 [15:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FB D9 47 00 BE 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C1 77 00 00 F4 03 04 00 76 20 16 67 B6 04 01 00 00 F0 03 54 A5 57 05 C5 C8 [15:40:34]CommunicateWithHost err = 0 [15:40:34]CheckOFDResponse [15:40:34]1017 (14) - 77093643461234 [15:40:34]1041 (16) - 0000000002094219 [15:40:34]1040 (4) - 30657 [15:40:34]1012 (4) - 21.10.2024 09:35 [15:40:34]1206 (1) - 0 [15:40:34]OFD Sender: Remove packet 30657 [15:40:34]ProducePacketName [15:40:34]name=ofd_packets/00030657 [15:40:34]NVStorageDeleteData [15:40:34]Write to MH i2c: 01 00 00 E5 4B 30 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: 01 07 00 E5 4B 00 00 00 00 00 EE 0C 31 [15:40:34]RasterBufferAndPrint [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]line [15:40:34]written 0, free lines is 3316 [15:40:34]MH_Cut [15:40:34]Write to MH i2c: D1 01 00 EC 4B 01 09 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 01 00 [15:40:34]MH_I2C_Read... [15:40:34]Read from MH i2c: D1 01 00 EC 4B 00 08 [15:40:34]Write to MH i2c: 01 00 00 ED 4B 38 [15:40:34]Write i2c OK [15:40:34]MH_I2C_Read... [15:40:35]OFD Sender: No OFD packet to send [15:40:35]*** Cut start [15:40:35]*** Partial cut [15:40:35]*** CUTSNS_PIN = 1 [15:40:35]*** CUTSNS_PIN = 0 [15:40:35]*** Brake cut motor [15:40:36]Read from MH i2c: 01 [15:40:36]MH_I2C_Read... [15:40:36]*** Stop cut motor [15:40:36]*** Cut end [15:40:36]Read from MH i2c: 01 07 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: 01 07 00 ED 4B 00 00 00 00 00 FF 0F 4D [15:40:36]process_action close_receipt done [15:40:36]requested_data is exist [15:40:36]produce_requested_data [15:40:36]requested_item fm.sn is exist - process it [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 11 00 00 [15:40:36]Write to MH i2c: E2 08 00 EE 4B 80 11 00 00 00 00 00 00 B3 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 17 00 EE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 01 [15:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:40:36]wFMCommunicate OK [15:40:36]requested_item fd.num is exist - process it [15:40:36]SAM_PROTO_GetFieldsCounters [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 00 00 [15:40:36]Write to MH i2c: E2 08 00 EF 4B 80 13 00 00 00 00 00 00 B6 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 62 00 EF 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 77 00 00 0E 04 04 00 73 00 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 55 [15:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetFieldsCounters done [15:40:36]requested_item shift.num is exist - process it [15:40:36]requested_item shift.opened is exist - process it [15:40:36]req_shift_opened [15:40:36]FM_GetShiftState [15:40:36]SAM_PROTO_GetShiftState [15:40:36]wFMCommunicate request_size=4 [15:40:36]MH_SAM_APDU [15:40:36]CAPDU: 80 13 01 00 [15:40:36]Write to MH i2c: E2 08 00 F0 4B 80 13 01 00 00 00 00 00 B8 [15:40:36]Write i2c OK [15:40:36]MH_I2C_Read... [15:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:36]Read from MH i2c: E2 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 [15:40:36]MH_I2C_Read... [15:40:36]Read from MH i2c: E2 0E 00 F0 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 34 [15:40:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:40:36]wFMCommunicate OK [15:40:36]SAM_PROTO_GetShiftState done [15:40:36]FM_GetShiftState done [15:40:36]req_shift_opened done [15:40:36]requested_item shift.open_date is exist - process it [15:40:36]req_shift_open_date [15:40:36]req_shift_open_date done [15:40:36]produce_requested_data done [15:40:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30657,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:40:36]process_action_free close_receipt [15:40:36]json_value_free [15:40:36]json_value_free done [15:40:36]process_json_proto returns [15:40:36]Send response to host [15:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30657,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:40:36]free response buf [15:40:36]execute_script done [15:40:36]execute_script returns [15:40:36]free content buf [15:40:36]Sock 7.Close socket [15:40:36]Sock 7.Thread stoped [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:17]accept exits with 9 [15:42:17]New connection [15:42:17]New thread 3067346276 created [15:42:17]Thread 3067489636 joined [15:42:17]Waiting for new connection... [15:42:17] Sock 9.Parse request [15:42:17]Sock 9.Check first char [15:42:17]Sock 9.First char is OK [15:42:17]request: POST /json_proto HTTP/1.0 [15:42:17]Method: POST [15:42:17]URL: /json_proto [15:42:17]Method is POST - this is cgi request [15:42:17]url: /json_proto [15:42:17]query_string will be loaded in cgi processing [15:42:17]execute_cgi json_proto POST (null) [15:42:17]execute_cgi path=json_proto method=POST [15:42:17]POST find Content-Length [15:42:17]Host: 172.17.51.3:8080 [15:42:17]Content-Length: 677 [15:42:17]Content-Type: application/json [15:42:17] [15:42:17]POST finish read [15:42:17]Found Content-Length = 677 [15:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:17]execute_script... [15:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:17]POST & json_proto [15:42:17]process_json_proto [15:42:17]json parsed OK: [15:42:17]protocol is kg_v1.0 [15:42:17]action value=close_receipt [15:42:17]process_action close_receipt [15:42:17]cmd_close_receipt [15:42:17]MH_GetDate [15:42:17]Write to MH i2c: F0 00 00 F1 4B 2B [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 09 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: F0 09 00 F1 4B 00 5E 76 16 67 04 C1 95 66 45 [15:42:17]GetLastDocTimeStamp 1729525237 [15:42:17]current date 1729525342 [15:42:17]FM_GetShiftState [15:42:17]SAM_PROTO_GetShiftState [15:42:17]wFMCommunicate request_size=4 [15:42:17]MH_SAM_APDU [15:42:17]CAPDU: 80 13 01 00 [15:42:17]Write to MH i2c: E2 08 00 F2 4B 80 13 01 00 00 00 00 00 BA [15:42:17]Write i2c OK [15:42:17]MH_I2C_Read... [15:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:17]Read from MH i2c: E2 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 [15:42:17]MH_I2C_Read... [15:42:17]Read from MH i2c: E2 0E 00 F2 4B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 36 [15:42:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:42:17]wFMCommunicate OK [15:42:17]SAM_PROTO_GetShiftState done [15:42:17]FM_GetShiftState done [15:42:17]opened in 1729471058 [15:42:17]opened+sec_in_day 1729557458 [15:42:17]quantity*price = 40006 [15:42:17]sum+1 = 40007 [15:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 155 21.10.2024 15:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30658 ФПД: 153428700579092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154222&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30658&fm=153428700579092&tin=02508201610067®Number=0000000000186857&sum=40000 [15:42:18]StoreToDocumentArchive [15:42:18]shift 115 fd 30658 [15:42:18]save to /storage/0115/doc_00030658 [15:42:18]save last doc name /storage/0115/doc_00030658 to /storage/kkm_last_doc_name [15:42:18]save OK [15:42:18]Clear old archive folders... [15:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:18]tlvbuf is 01E7B2E0 [15:42:18]SAM_PROTO_ClearQueue [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 09 00 00 [15:42:18]Write to MH i2c: E2 08 00 FF 4B 80 09 00 00 00 00 00 00 BC [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 FF 4B 00 90 00 BE [15:42:18]RAPDU: 90 00 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_ClearQueue done [15:42:18]KKMCreateOFDPacket [15:42:18]OFDProtocolAddRootSTLVToBuf [15:42:18]FM_MakeSignedData [15:42:18]FM_MakeSignedData [15:42:18]SAM_PROTO_SignData [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 0D 01 02 [15:42:18]Write to MH i2c: E2 08 00 00 4C 80 0D 01 02 00 00 00 00 C5 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 00 4C 00 90 00 C0 [15:42:18]RAPDU: 90 00 [15:42:18]wFMCommunicate OK [15:42:18]wFMCommunicate request_size=255 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 5E 76 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 77 00 00 35 04 06 00 8B [15:42:18]Write to MH i2c: E2 02 01 01 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 5E 76 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 77 00 00 35 04 06 00 8B 00 00 48 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 01 4C 00 90 00 C1 [15:42:18]RAPDU: 90 00 [15:42:18]wFMCommunicate OK [15:42:18]wFMCommunicate request_size=10 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 0D 02 02 05 8A E7 32 45 14 [15:42:18]Write to MH i2c: E2 0D 00 02 4C 80 0D 02 02 05 00 8A E7 32 45 14 00 00 CE [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 03 00 02 4C 00 90 00 C2 [15:42:18]RAPDU: 90 00 [15:42:18]wFMCommunicate OK [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 0D 03 02 [15:42:18]Write to MH i2c: E2 08 00 03 4C 80 0D 03 02 00 00 00 00 CA [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0B 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 0B 00 03 4C 00 90 BB 5E 42 C4 35 3C 04 90 00 EF [15:42:18]RAPDU: 90 BB 5E 42 C4 35 3C 04 90 00 [15:42:18]wFMCommunicate OK [15:42:18]SAM_PROTO_SignData done [15:42:18]FM_MakeSignedData done [15:42:18]CreateOFDProtocolMessage [15:42:18]wFMCommunicate request_size=4 [15:42:18]MH_SAM_APDU [15:42:18]CAPDU: 80 11 00 00 [15:42:18]Write to MH i2c: E2 08 00 04 4C 80 11 00 00 00 00 00 00 CA [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:18]Read from MH i2c: E2 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 17 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: E2 17 00 04 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 18 [15:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:42:18]wFMCommunicate OK [15:42:18]CreateOFDProtocolMessage done [15:42:18]OFDSenderStorePacket 30658 [15:42:18]StoreOFDPacket docnum=30658 [15:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD 9D 07 01 A7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 5E 76 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 77 00 00 35 04 06 00 8B 8A E7 32 45 14 90 BB 5E 42 C4 35 3C 04 [15:42:18]CheckFolder [15:42:18]dirname=/storage/ofd_packets [15:42:18]CheckFolder done [15:42:18]ProducePacketName [15:42:18]name=ofd_packets/00030658 [15:42:18]NVStorageSaveData ofd_packets/00030658 [15:42:18]File name is /storage/ofd_packets/00030658 [15:42:18]Write 301 bytes [15:42:18]NVStorageSaveData done [15:42:18]OFDSenderStorePacket done [15:42:18]KKMCreateOFDPacket done [15:42:18]NVStorageSaveData kkm_last_timestamp [15:42:18]File name is /storage/kkm_last_timestamp [15:42:18]Write 4 bytes [15:42:18]NVStorageSaveData done [15:42:18]ExternCall_PrintAddStr [15:42:18]wPrintStart [15:42:18]Write to MH i2c: 01 00 00 05 4C 51 [15:42:18]Write i2c OK [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 07 00 [15:42:18]MH_I2C_Read... [15:42:18]Read from MH i2c: 01 07 00 05 4C 00 00 00 00 00 FF 0F 66 [15:42:18]RasterBufferAndPrint [15:42:18]line Счет N : (1)343068 [15:42:18]line ИНН: 02508201610067 [15:42:18]line Контрольно-Кассовый Чек [15:42:18]line ПРОДАЖА [15:42:18]line ТРК (МРК, ГНК) : 43 [15:42:18]line Товар: 2710124130 [15:42:18]line Аи-92-К-2 [15:42:18]line 5.980 * 66.90 [15:42:18]line = 400.06 [15:42:18]line НДС 12% НСП 1% [15:42:18]line > о реализуемом товаре [15:42:18]line ОКРУГЛЕНИЕ: -0.06 [15:42:18]line ИТОГО: 400.00 [15:42:18]line Внесено: 400.00 [15:42:18]line СДАЧА: 0.00 [15:42:18]line НСП 1% : 3.54 [15:42:18]line НДС 12% : 42.48 [15:42:18]line Наличными: 400.00 [15:42:18]line Безнал.: 0.00 [15:42:18]line Место: АЗС № 78 "Партнер Нефть" [15:42:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:42:18]line СНО: Общий режим [15:42:18]line Чек 155 21.10.2024 15:42 [15:42:18]line Смена: 115 ФФД: 1.0 [15:42:18]line ЗНМ: 0300000137 [15:42:18]line РНМ: 0000000000186857 [15:42:18]line Версия ККМ: v1.0 [15:42:18]line ФМ: 0000000002094219 [15:42:18]line ФД: 30658 [15:42:18]line ФПД: 153428700579092 [15:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154222&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30658&fm=153428700579092&tin=02508201610067®Number=0000000000186857&sum=40000 [15:42:19]OFD Sender: Processing packet 30658 [packets to send 10, broken 9] [15:42:19]ProducePacketName [15:42:19]name=ofd_packets/00030658 [15:42:19]OFD Sender: To server: pG, [15:42:19]CommunicateWithHost lk.salyk.kg:30040 [15:42:19]ConnectInit lk.salyk.kg [15:42:19]written 0, free lines is 4095 [15:42:19]Connected sock=11 [15:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 FD 9D 07 01 A7 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 5E 76 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 77 00 00 35 04 06 00 8B 8A E7 32 45 14 90 BB 5E 42 C4 35 3C 04 [15:42:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2A 68 47 00 4E CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C2 77 00 00 F4 03 04 00 DE 20 16 67 B6 04 01 00 00 AA D4 3F 4B 64 D6 78 3D [15:42:19]CommunicateWithHost err = 0 [15:42:19]CheckOFDResponse [15:42:19]1017 (14) - 77093643461234 [15:42:19]1041 (16) - 0000000002094219 [15:42:19]1040 (4) - 30658 [15:42:19]1012 (4) - 21.10.2024 09:37 [15:42:19]1206 (1) - 0 [15:42:19]OFD Sender: Remove packet 30658 [15:42:19]ProducePacketName [15:42:19]name=ofd_packets/00030658 [15:42:19]NVStorageDeleteData [15:42:19]Write to MH i2c: 01 00 00 30 4C 7C [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: 01 07 00 30 4C 00 00 00 00 00 E9 0C 78 [15:42:19]RasterBufferAndPrint [15:42:19]line [15:42:19]line [15:42:19]line [15:42:19]line [15:42:19]line [15:42:19]written 0, free lines is 3311 [15:42:19]MH_Cut [15:42:19]Write to MH i2c: D1 01 00 37 4C 01 55 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: D1 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: D1 01 00 [15:42:19]MH_I2C_Read... [15:42:19]Read from MH i2c: D1 01 00 37 4C 00 54 [15:42:19]Write to MH i2c: 01 00 00 38 4C 84 [15:42:19]Write i2c OK [15:42:19]MH_I2C_Read... [15:42:19]OFD Sender: No OFD packet to send [15:42:20]*** Cut start [15:42:20]*** Partial cut [15:42:20]*** CUTSNS_PIN = 1 [15:42:20]*** CUTSNS_PIN = 0 [15:42:20]*** Brake cut motor [15:42:20]Read from MH i2c: 01 [15:42:20]*** Stop cut motor [15:42:20]*** Cut end [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: 01 07 00 38 4C 00 00 00 00 00 FF 0F 99 [15:42:20]process_action close_receipt done [15:42:20]requested_data is exist [15:42:20]produce_requested_data [15:42:20]requested_item fm.sn is exist - process it [15:42:20]wFMCommunicate request_size=4 [15:42:20]MH_SAM_APDU [15:42:20]CAPDU: 80 11 00 00 [15:42:20]Write to MH i2c: E2 08 00 39 4C 80 11 00 00 00 00 00 00 FF [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:20]Read from MH i2c: E2 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: E2 17 00 [15:42:20]MH_I2C_Read... [15:42:20]Read from MH i2c: E2 17 00 39 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4D [15:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:42:20]wFMCommunicate OK [15:42:20]requested_item fd.num is exist - process it [15:42:20]SAM_PROTO_GetFieldsCounters [15:42:20]wFMCommunicate request_size=4 [15:42:20]MH_SAM_APDU [15:42:20]CAPDU: 80 13 00 00 [15:42:20]Write to MH i2c: E2 08 00 3A 4C 80 13 00 00 00 00 00 00 02 [15:42:20]Write i2c OK [15:42:20]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 62 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 62 00 3A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 77 00 00 0E 04 04 00 73 00 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 A5 [15:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_GetFieldsCounters done [15:42:21]requested_item shift.num is exist - process it [15:42:21]requested_item shift.opened is exist - process it [15:42:21]req_shift_opened [15:42:21]FM_GetShiftState [15:42:21]SAM_PROTO_GetShiftState [15:42:21]wFMCommunicate request_size=4 [15:42:21]MH_SAM_APDU [15:42:21]CAPDU: 80 13 01 00 [15:42:21]Write to MH i2c: E2 08 00 3B 4C 80 13 01 00 00 00 00 00 04 [15:42:21]Write i2c OK [15:42:21]MH_I2C_Read... [15:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:21]Read from MH i2c: E2 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 [15:42:21]MH_I2C_Read... [15:42:21]Read from MH i2c: E2 0E 00 3B 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 80 [15:42:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:42:21]wFMCommunicate OK [15:42:21]SAM_PROTO_GetShiftState done [15:42:21]FM_GetShiftState done [15:42:21]req_shift_opened done [15:42:21]requested_item shift.open_date is exist - process it [15:42:21]req_shift_open_date [15:42:21]req_shift_open_date done [15:42:21]produce_requested_data done [15:42:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30658,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:42:21]process_action_free close_receipt [15:42:21]json_value_free [15:42:21]json_value_free done [15:42:21]process_json_proto returns [15:42:21]Send response to host [15:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30658,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:42:21]free response buf [15:42:21]execute_script done [15:42:21]execute_script returns [15:42:21]free content buf [15:42:21]Sock 9.Close socket [15:42:21]Sock 9.Thread stoped [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:27]accept exits with 7 [15:45:27]New connection [15:45:27]New thread 3067489636 created [15:45:27]Thread 3067346276 joined [15:45:27]Waiting for new connection... [15:45:27] Sock 7.Parse request [15:45:27]Sock 7.Check first char [15:45:27]Sock 7.First char is OK [15:45:27]request: POST /json_proto HTTP/1.0 [15:45:27]Method: POST [15:45:27]URL: /json_proto [15:45:27]Method is POST - this is cgi request [15:45:27]url: /json_proto [15:45:27]query_string will be loaded in cgi processing [15:45:27]execute_cgi json_proto POST (null) [15:45:27]execute_cgi path=json_proto method=POST [15:45:27]POST find Content-Length [15:45:27]Host: 172.17.51.3:8080 [15:45:27]Content-Length: 677 [15:45:27]Content-Type: application/json [15:45:27] [15:45:27]POST finish read [15:45:27]Found Content-Length = 677 [15:45:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:27]execute_script... [15:45:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:27]POST & json_proto [15:45:27]process_json_proto [15:45:27]json parsed OK: [15:45:27]protocol is kg_v1.0 [15:45:27]action value=close_receipt [15:45:27]process_action close_receipt [15:45:27]cmd_close_receipt [15:45:27]MH_GetDate [15:45:27]Write to MH i2c: F0 00 00 3C 4C 77 [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: F0 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: F0 09 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: F0 09 00 3C 4C 00 1D 77 16 67 04 C1 95 66 51 [15:45:27]GetLastDocTimeStamp 1729525342 [15:45:27]current date 1729525533 [15:45:27]FM_GetShiftState [15:45:27]SAM_PROTO_GetShiftState [15:45:27]wFMCommunicate request_size=4 [15:45:27]MH_SAM_APDU [15:45:27]CAPDU: 80 13 01 00 [15:45:27]Write to MH i2c: E2 08 00 3D 4C 80 13 01 00 00 00 00 00 06 [15:45:27]Write i2c OK [15:45:27]MH_I2C_Read... [15:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:27]Read from MH i2c: E2 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: E2 0E 00 [15:45:27]MH_I2C_Read... [15:45:27]Read from MH i2c: E2 0E 00 3D 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 82 [15:45:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:45:27]wFMCommunicate OK [15:45:27]SAM_PROTO_GetShiftState done [15:45:27]FM_GetShiftState done [15:45:27]opened in 1729471058 [15:45:27]opened+sec_in_day 1729557458 [15:45:27]quantity*price = 30038 [15:45:27]sum+1 = 30039 [15:45:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 156 21.10.2024 15:45 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30659 ФПД: 40789450653872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154533&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30659&fm=40789450653872&tin=02508201610067®Number=0000000000186857&sum=30000 [15:45:28]StoreToDocumentArchive [15:45:28]shift 115 fd 30659 [15:45:28]save to /storage/0115/doc_00030659 [15:45:28]save last doc name /storage/0115/doc_00030659 to /storage/kkm_last_doc_name [15:45:28]save OK [15:45:28]Clear old archive folders... [15:45:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:28]tlvbuf is 01F55CA0 [15:45:28]SAM_PROTO_ClearQueue [15:45:28]wFMCommunicate request_size=4 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 09 00 00 [15:45:28]Write to MH i2c: E2 08 00 4A 4C 80 09 00 00 00 00 00 00 08 [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:28]Read from MH i2c: E2 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 03 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 03 00 4A 4C 00 90 00 0A [15:45:28]RAPDU: 90 00 [15:45:28]wFMCommunicate OK [15:45:28]SAM_PROTO_ClearQueue done [15:45:28]KKMCreateOFDPacket [15:45:28]OFDProtocolAddRootSTLVToBuf [15:45:28]FM_MakeSignedData [15:45:28]FM_MakeSignedData [15:45:28]SAM_PROTO_SignData [15:45:28]wFMCommunicate request_size=4 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 0D 01 02 [15:45:28]Write to MH i2c: E2 08 00 4B 4C 80 0D 01 02 00 00 00 00 10 [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:28]Read from MH i2c: E2 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 03 00 [15:45:28]MH_I2C_Read... [15:45:28]Read from MH i2c: E2 03 00 4B 4C 00 90 00 0B [15:45:28]RAPDU: 90 00 [15:45:28]wFMCommunicate OK [15:45:28]wFMCommunicate request_size=255 [15:45:28]MH_SAM_APDU [15:45:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1D 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 77 00 00 35 04 06 00 25 [15:45:28]Write to MH i2c: E2 02 01 4C 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1D 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 77 00 00 35 04 06 00 25 00 00 14 [15:45:28]Write i2c OK [15:45:28]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 03 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 03 00 4C 4C 00 90 00 0C [15:45:29]RAPDU: 90 00 [15:45:29]wFMCommunicate OK [15:45:29]wFMCommunicate request_size=10 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 0D 02 02 05 19 08 B7 80 B0 [15:45:29]Write to MH i2c: E2 0D 00 4D 4C 80 0D 02 02 05 00 19 08 B7 80 B0 00 00 25 [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 03 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 03 00 4D 4C 00 90 00 0D [15:45:29]RAPDU: 90 00 [15:45:29]wFMCommunicate OK [15:45:29]wFMCommunicate request_size=4 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 0D 03 02 [15:45:29]Write to MH i2c: E2 08 00 4E 4C 80 0D 03 02 00 00 00 00 15 [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 0B 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 0B 00 4E 4C 00 1D B9 06 8B E4 51 D0 9F 90 00 21 [15:45:29]RAPDU: 1D B9 06 8B E4 51 D0 9F 90 00 [15:45:29]wFMCommunicate OK [15:45:29]SAM_PROTO_SignData done [15:45:29]FM_MakeSignedData done [15:45:29]CreateOFDProtocolMessage [15:45:29]wFMCommunicate request_size=4 [15:45:29]MH_SAM_APDU [15:45:29]CAPDU: 80 11 00 00 [15:45:29]Write to MH i2c: E2 08 00 4F 4C 80 11 00 00 00 00 00 00 15 [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:29]Read from MH i2c: E2 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 17 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: E2 17 00 4F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 63 [15:45:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:45:29]wFMCommunicate OK [15:45:29]CreateOFDProtocolMessage done [15:45:29]OFDSenderStorePacket 30659 [15:45:29]StoreOFDPacket docnum=30659 [15:45:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6A A5 07 01 5B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1D 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 77 00 00 35 04 06 00 25 19 08 B7 80 B0 1D B9 06 8B E4 51 D0 9F [15:45:29]CheckFolder [15:45:29]dirname=/storage/ofd_packets [15:45:29]CheckFolder done [15:45:29]ProducePacketName [15:45:29]name=ofd_packets/00030659 [15:45:29]NVStorageSaveData ofd_packets/00030659 [15:45:29]File name is /storage/ofd_packets/00030659 [15:45:29]Write 301 bytes [15:45:29]NVStorageSaveData done [15:45:29]OFDSenderStorePacket done [15:45:29]KKMCreateOFDPacket done [15:45:29]NVStorageSaveData kkm_last_timestamp [15:45:29]File name is /storage/kkm_last_timestamp [15:45:29]Write 4 bytes [15:45:29]NVStorageSaveData done [15:45:29]ExternCall_PrintAddStr [15:45:29]wPrintStart [15:45:29]Write to MH i2c: 01 00 00 50 4C 9C [15:45:29]Write i2c OK [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: 01 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: 01 07 00 [15:45:29]MH_I2C_Read... [15:45:29]Read from MH i2c: 01 07 00 50 4C 00 00 00 00 00 FF 0F B1 [15:45:29]RasterBufferAndPrint [15:45:29]line Счет N : (1)343069 [15:45:29]line ИНН: 02508201610067 [15:45:29]line Контрольно-Кассовый Чек [15:45:29]line ПРОДАЖА [15:45:29]line ТРК (МРК, ГНК) : 33 [15:45:29]line Товар: 2710124130 [15:45:29]line Аи-92-К-2 [15:45:29]line 4.490 * 66.90 [15:45:29]line = 300.38 [15:45:29]line НДС 12% НСП 1% [15:45:29]line > о реализуемом товаре [15:45:29]line ОКРУГЛЕНИЕ: -0.38 [15:45:29]line ИТОГО: 300.00 [15:45:29]line Внесено: 300.00 [15:45:29]line СДАЧА: 0.00 [15:45:29]line НСП 1% : 2.66 [15:45:29]line НДС 12% : 31.90 [15:45:29]line Наличными: 300.00 [15:45:29]line Безнал.: 0.00 [15:45:29]line Место: АЗС № 78 "Партнер Нефть" [15:45:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:45:29]line СНО: Общий режим [15:45:29]line Чек 156 21.10.2024 15:45 [15:45:29]line Смена: 115 ФФД: 1.0 [15:45:29]line ЗНМ: 0300000137 [15:45:29]line РНМ: 0000000000186857 [15:45:29]line Версия ККМ: v1.0 [15:45:29]line ФМ: 0000000002094219 [15:45:29]line ФД: 30659 [15:45:29]line ФПД: 40789450653872 [15:45:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154533&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30659&fm=40789450653872&tin=02508201610067®Number=0000000000186857&sum=30000 [15:45:29]OFD Sender: Processing packet 30659 [packets to send 10, broken 9] [15:45:29]ProducePacketName [15:45:29]name=ofd_packets/00030659 [15:45:29]OFD Sender: To server: pG, [15:45:29]CommunicateWithHost lk.salyk.kg:30040 [15:45:29]ConnectInit lk.salyk.kg [15:45:29]written 0, free lines is 4095 [15:45:29]Connected sock=10 [15:45:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6A A5 07 01 5B E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 1D 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 77 00 00 35 04 06 00 25 19 08 B7 80 B0 1D B9 06 8B E4 51 D0 9F [15:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4C 37 47 00 A6 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C3 77 00 00 F4 03 04 00 9D 21 16 67 B6 04 01 00 00 04 48 D6 DF 9D E7 1A 8C [15:45:29]CommunicateWithHost err = 0 [15:45:29]CheckOFDResponse [15:45:29]1017 (14) - 77093643461234 [15:45:29]1041 (16) - 0000000002094219 [15:45:29]1040 (4) - 30659 [15:45:29]1012 (4) - 21.10.2024 09:40 [15:45:29]1206 (1) - 0 [15:45:29]OFD Sender: Remove packet 30659 [15:45:29]ProducePacketName [15:45:29]name=ofd_packets/00030659 [15:45:29]NVStorageDeleteData [15:45:30]Write to MH i2c: 01 00 00 7B 4C C7 [15:45:30]Write i2c OK [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: 01 [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: 01 07 00 [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: 01 07 00 7B 4C 00 00 00 00 00 FF 0C D9 [15:45:30]RasterBufferAndPrint [15:45:30]line [15:45:30]line [15:45:30]line [15:45:30]line [15:45:30]line [15:45:30]written 0, free lines is 3333 [15:45:30]MH_Cut [15:45:30]Write to MH i2c: D1 01 00 82 4C 01 A0 [15:45:30]Write i2c OK [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: D1 [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: D1 01 00 [15:45:30]MH_I2C_Read... [15:45:30]Read from MH i2c: D1 01 00 82 4C 00 9F [15:45:30]Write to MH i2c: 01 00 00 83 4C CF [15:45:30]Write i2c OK [15:45:30]MH_I2C_Read... [15:45:30]OFD Sender: No OFD packet to send [15:45:30]*** Cut start [15:45:30]*** Partial cut [15:45:30]*** CUTSNS_PIN = 1 [15:45:30]*** CUTSNS_PIN = 0 [15:45:31]*** Brake cut motor [15:45:31]Read from MH i2c: 01 [15:45:31]MH_I2C_Read... [15:45:31]*** Stop cut motor [15:45:31]*** Cut end [15:45:31]Read from MH i2c: 01 07 00 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: 01 07 00 83 4C 00 00 00 00 00 FF 0F E4 [15:45:31]process_action close_receipt done [15:45:31]requested_data is exist [15:45:31]produce_requested_data [15:45:31]requested_item fm.sn is exist - process it [15:45:31]wFMCommunicate request_size=4 [15:45:31]MH_SAM_APDU [15:45:31]CAPDU: 80 11 00 00 [15:45:31]Write to MH i2c: E2 08 00 84 4C 80 11 00 00 00 00 00 00 4A [15:45:31]Write i2c OK [15:45:31]MH_I2C_Read... [15:45:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:31]Read from MH i2c: E2 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 17 00 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 17 00 84 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 98 [15:45:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:45:31]wFMCommunicate OK [15:45:31]requested_item fd.num is exist - process it [15:45:31]SAM_PROTO_GetFieldsCounters [15:45:31]wFMCommunicate request_size=4 [15:45:31]MH_SAM_APDU [15:45:31]CAPDU: 80 13 00 00 [15:45:31]Write to MH i2c: E2 08 00 85 4C 80 13 00 00 00 00 00 00 4D [15:45:31]Write i2c OK [15:45:31]MH_I2C_Read... [15:45:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:31]Read from MH i2c: E2 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 62 00 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 62 00 85 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 77 00 00 0E 04 04 00 73 00 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 F4 [15:45:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:31]wFMCommunicate OK [15:45:31]SAM_PROTO_GetFieldsCounters done [15:45:31]requested_item shift.num is exist - process it [15:45:31]requested_item shift.opened is exist - process it [15:45:31]req_shift_opened [15:45:31]FM_GetShiftState [15:45:31]SAM_PROTO_GetShiftState [15:45:31]wFMCommunicate request_size=4 [15:45:31]MH_SAM_APDU [15:45:31]CAPDU: 80 13 01 00 [15:45:31]Write to MH i2c: E2 08 00 86 4C 80 13 01 00 00 00 00 00 4F [15:45:31]Write i2c OK [15:45:31]MH_I2C_Read... [15:45:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:31]Read from MH i2c: E2 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 0E 00 [15:45:31]MH_I2C_Read... [15:45:31]Read from MH i2c: E2 0E 00 86 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CB [15:45:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:45:31]wFMCommunicate OK [15:45:31]SAM_PROTO_GetShiftState done [15:45:31]FM_GetShiftState done [15:45:31]req_shift_opened done [15:45:31]requested_item shift.open_date is exist - process it [15:45:31]req_shift_open_date [15:45:31]req_shift_open_date done [15:45:31]produce_requested_data done [15:45:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30659,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:45:31]process_action_free close_receipt [15:45:31]json_value_free [15:45:31]json_value_free done [15:45:31]process_json_proto returns [15:45:31]Send response to host [15:45:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30659,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:45:31]free response buf [15:45:31]execute_script done [15:45:31]execute_script returns [15:45:31]free content buf [15:45:31]Sock 7.Close socket [15:45:31]Sock 7.Thread stoped [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:52]accept exits with 9 [15:48:52]New connection [15:48:52]New thread 3067346276 created [15:48:52]Thread 3067489636 joined [15:48:52]Waiting for new connection... [15:48:52] Sock 9.Parse request [15:48:52]Sock 9.Check first char [15:48:52]Sock 9.First char is OK [15:48:52]request: POST /json_proto HTTP/1.0 [15:48:52]Method: POST [15:48:52]URL: /json_proto [15:48:52]Method is POST - this is cgi request [15:48:52]url: /json_proto [15:48:52]query_string will be loaded in cgi processing [15:48:52]execute_cgi json_proto POST (null) [15:48:52]execute_cgi path=json_proto method=POST [15:48:52]POST find Content-Length [15:48:52]Host: 172.17.51.3:8080 [15:48:52]Content-Length: 677 [15:48:52]Content-Type: application/json [15:48:52] [15:48:52]POST finish read [15:48:52]Found Content-Length = 677 [15:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]execute_script... [15: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 : (1)343070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:52]POST & json_proto [15:48:52]process_json_proto [15:48:52]json parsed OK: [15:48:52]protocol is kg_v1.0 [15:48:52]action value=close_receipt [15:48:52]process_action close_receipt [15:48:52]cmd_close_receipt [15:48:52]MH_GetDate [15:48:52]Write to MH i2c: F0 00 00 87 4C C2 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: F0 09 00 87 4C 00 E9 77 16 67 04 C1 95 66 68 [15:48:52]GetLastDocTimeStamp 1729525533 [15:48:52]current date 1729525737 [15:48:52]FM_GetShiftState [15:48:52]SAM_PROTO_GetShiftState [15:48:52]wFMCommunicate request_size=4 [15:48:52]MH_SAM_APDU [15:48:52]CAPDU: 80 13 01 00 [15:48:52]Write to MH i2c: E2 08 00 88 4C 80 13 01 00 00 00 00 00 51 [15:48:52]Write i2c OK [15:48:52]MH_I2C_Read... [15:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:52]Read from MH i2c: E2 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 [15:48:52]MH_I2C_Read... [15:48:52]Read from MH i2c: E2 0E 00 88 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CD [15:48:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:48:52]wFMCommunicate OK [15:48:52]SAM_PROTO_GetShiftState done [15:48:52]FM_GetShiftState done [15:48:52]opened in 1729471058 [15:48:52]opened+sec_in_day 1729557458 [15:48:52]quantity*price = 40006 [15:48:52]sum+1 = 40007 [15:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 157 21.10.2024 15:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30660 ФПД: 57226681486835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30660&fm=57226681486835&tin=02508201610067®Number=0000000000186857&sum=40000 [15:48:53]StoreToDocumentArchive [15:48:53]shift 115 fd 30660 [15:48:53]save to /storage/0115/doc_00030660 [15:48:53]save last doc name /storage/0115/doc_00030660 to /storage/kkm_last_doc_name [15:48:53]save OK [15:48:53]Clear old archive folders... [15:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:53]tlvbuf is 01E49230 [15:48:53]SAM_PROTO_ClearQueue [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 09 00 00 [15:48:53]Write to MH i2c: E2 08 00 95 4C 80 09 00 00 00 00 00 00 53 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 95 4C 00 90 00 55 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]SAM_PROTO_ClearQueue done [15:48:53]KKMCreateOFDPacket [15:48:53]OFDProtocolAddRootSTLVToBuf [15:48:53]FM_MakeSignedData [15:48:53]FM_MakeSignedData [15:48:53]SAM_PROTO_SignData [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 01 02 [15:48:53]Write to MH i2c: E2 08 00 96 4C 80 0D 01 02 00 00 00 00 5B [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 96 4C 00 90 00 56 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]wFMCommunicate request_size=255 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 77 00 00 35 04 06 00 34 [15:48:53]Write to MH i2c: E2 02 01 97 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 77 00 00 35 04 06 00 34 00 00 17 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 97 4C 00 90 00 57 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]wFMCommunicate request_size=10 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 02 02 05 0C 20 05 8D F3 [15:48:53]Write to MH i2c: E2 0D 00 98 4C 80 0D 02 02 05 00 0C 20 05 8D F3 00 00 19 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 03 00 98 4C 00 90 00 58 [15:48:53]RAPDU: 90 00 [15:48:53]wFMCommunicate OK [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 0D 03 02 [15:48:53]Write to MH i2c: E2 08 00 99 4C 80 0D 03 02 00 00 00 00 60 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 0B 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 0B 00 99 4C 00 3B 36 CB F5 BC BD A0 28 90 00 D3 [15:48:53]RAPDU: 3B 36 CB F5 BC BD A0 28 90 00 [15:48:53]wFMCommunicate OK [15:48:53]SAM_PROTO_SignData done [15:48:53]FM_MakeSignedData done [15:48:53]CreateOFDProtocolMessage [15:48:53]wFMCommunicate request_size=4 [15:48:53]MH_SAM_APDU [15:48:53]CAPDU: 80 11 00 00 [15:48:53]Write to MH i2c: E2 08 00 9A 4C 80 11 00 00 00 00 00 00 60 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:53]Read from MH i2c: E2 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 17 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: E2 17 00 9A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AE [15:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:48:53]wFMCommunicate OK [15:48:53]CreateOFDProtocolMessage done [15:48:53]OFDSenderStorePacket 30660 [15:48:53]StoreOFDPacket docnum=30660 [15:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 C6 07 01 AA 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 77 00 00 35 04 06 00 34 0C 20 05 8D F3 3B 36 CB F5 BC BD A0 28 [15:48:53]CheckFolder [15:48:53]dirname=/storage/ofd_packets [15:48:53]CheckFolder done [15:48:53]ProducePacketName [15:48:53]name=ofd_packets/00030660 [15:48:53]NVStorageSaveData ofd_packets/00030660 [15:48:53]File name is /storage/ofd_packets/00030660 [15:48:53]Write 301 bytes [15:48:53]NVStorageSaveData done [15:48:53]OFDSenderStorePacket done [15:48:53]KKMCreateOFDPacket done [15:48:53]NVStorageSaveData kkm_last_timestamp [15:48:53]File name is /storage/kkm_last_timestamp [15:48:53]Write 4 bytes [15:48:53]NVStorageSaveData done [15:48:53]ExternCall_PrintAddStr [15:48:53]wPrintStart [15:48:53]Write to MH i2c: 01 00 00 9B 4C E7 [15:48:53]Write i2c OK [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: 01 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: 01 07 00 [15:48:53]MH_I2C_Read... [15:48:53]Read from MH i2c: 01 07 00 9B 4C 00 00 00 00 00 FF 0F FC [15:48:53]RasterBufferAndPrint [15:48:53]line Счет N : (1)343070 [15:48:53]line ИНН: 02508201610067 [15:48:53]line Контрольно-Кассовый Чек [15:48:53]line ПРОДАЖА [15:48:53]line ТРК (МРК, ГНК) : 63 [15:48:53]line Товар: 2710124130 [15:48:53]line Аи-92-К-2 [15:48:53]line 5.980 * 66.90 [15:48:53]line = 400.06 [15:48:53]line НДС 12% НСП 1% [15:48:53]line > о реализуемом товаре [15:48:53]line ОКРУГЛЕНИЕ: -0.06 [15:48:53]line ИТОГО: 400.00 [15:48:53]line Внесено: 400.00 [15:48:53]line СДАЧА: 0.00 [15:48:53]line НСП 1% : 3.54 [15:48:53]line НДС 12% : 42.48 [15:48:53]line Наличными: 400.00 [15:48:53]line Безнал.: 0.00 [15:48:53]line Место: АЗС № 78 "Партнер Нефть" [15:48:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [15:48:53]line СНО: Общий режим [15:48:53]line Чек 157 21.10.2024 15:48 [15:48:53]line Смена: 115 ФФД: 1.0 [15:48:53]line ЗНМ: 0300000137 [15:48:53]line РНМ: 0000000000186857 [15:48:53]line Версия ККМ: v1.0 [15:48:53]line ФМ: 0000000002094219 [15:48:53]line ФД: 30660 [15:48:53]line ФПД: 57226681486835 [15:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154857&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30660&fm=57226681486835&tin=02508201610067®Number=0000000000186857&sum=40000 [15:48:54]OFD Sender: Processing packet 30660 [packets to send 10, broken 9] [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00030660 [15:48:54]OFD Sender: To server: pG, [15:48:54]CommunicateWithHost lk.salyk.kg:30040 [15:48:54]ConnectInit lk.salyk.kg [15:48:54]written 0, free lines is 4095 [15:48:54]Connected sock=10 [15:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B2 C6 07 01 AA 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 E9 77 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 77 00 00 35 04 06 00 34 0C 20 05 8D F3 3B 36 CB F5 BC BD A0 28 [15:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 83 3D 47 00 5D 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C4 77 00 00 F4 03 04 00 6A 22 16 67 B6 04 01 00 00 BD A9 AC 5E AA 93 98 23 [15:48:54]CommunicateWithHost err = 0 [15:48:54]CheckOFDResponse [15:48:54]1017 (14) - 77093643461234 [15:48:54]1041 (16) - 0000000002094219 [15:48:54]1040 (4) - 30660 [15:48:54]1012 (4) - 21.10.2024 09:44 [15:48:54]1206 (1) - 0 [15:48:54]OFD Sender: Remove packet 30660 [15:48:54]ProducePacketName [15:48:54]name=ofd_packets/00030660 [15:48:54]NVStorageDeleteData [15:48:54]Write to MH i2c: 01 00 00 C6 4C 12 [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: 01 07 00 C6 4C 00 00 00 00 00 F1 0C 16 [15:48:54]RasterBufferAndPrint [15:48:54]line [15:48:54]line [15:48:54]line [15:48:54]line [15:48:54]line [15:48:54]written 0, free lines is 3322 [15:48:54]MH_Cut [15:48:54]Write to MH i2c: D1 01 00 CD 4C 01 EB [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: D1 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: D1 01 00 [15:48:54]MH_I2C_Read... [15:48:54]Read from MH i2c: D1 01 00 CD 4C 00 EA [15:48:54]Write to MH i2c: 01 00 00 CE 4C 1A [15:48:54]Write i2c OK [15:48:54]MH_I2C_Read... [15:48:55]OFD Sender: No OFD packet to send [15:48:55]*** Cut start [15:48:55]*** Partial cut [15:48:55]*** CUTSNS_PIN = 1 [15:48:55]*** CUTSNS_PIN = 0 [15:48:55]*** Brake cut motor [15:48:55]Read from MH i2c: 01 [15:48:55]MH_I2C_Read... [15:48:55]*** Stop cut motor [15:48:55]*** Cut end [15:48:55]Read from MH i2c: 01 07 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: 01 07 00 CE 4C 00 00 00 00 00 FF 0F 2F [15:48:55]process_action close_receipt done [15:48:55]requested_data is exist [15:48:55]produce_requested_data [15:48:55]requested_item fm.sn is exist - process it [15:48:55]wFMCommunicate request_size=4 [15:48:55]MH_SAM_APDU [15:48:55]CAPDU: 80 11 00 00 [15:48:55]Write to MH i2c: E2 08 00 CF 4C 80 11 00 00 00 00 00 00 95 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:55]Read from MH i2c: E2 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: E2 17 00 [15:48:55]MH_I2C_Read... [15:48:55]Read from MH i2c: E2 17 00 CF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E3 [15:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [15:48:55]wFMCommunicate OK [15:48:55]requested_item fd.num is exist - process it [15:48:55]SAM_PROTO_GetFieldsCounters [15:48:55]wFMCommunicate request_size=4 [15:48:55]MH_SAM_APDU [15:48:55]CAPDU: 80 13 00 00 [15:48:55]Write to MH i2c: E2 08 00 D0 4C 80 13 00 00 00 00 00 00 98 [15:48:55]Write i2c OK [15:48:55]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 62 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 62 00 D0 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 77 00 00 0E 04 04 00 73 00 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 43 [15:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:56]wFMCommunicate OK [15:48:56]SAM_PROTO_GetFieldsCounters done [15:48:56]requested_item shift.num is exist - process it [15:48:56]requested_item shift.opened is exist - process it [15:48:56]req_shift_opened [15:48:56]FM_GetShiftState [15:48:56]SAM_PROTO_GetShiftState [15:48:56]wFMCommunicate request_size=4 [15:48:56]MH_SAM_APDU [15:48:56]CAPDU: 80 13 01 00 [15:48:56]Write to MH i2c: E2 08 00 D1 4C 80 13 01 00 00 00 00 00 9A [15:48:56]Write i2c OK [15:48:56]MH_I2C_Read... [15:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:56]Read from MH i2c: E2 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 [15:48:56]MH_I2C_Read... [15:48:56]Read from MH i2c: E2 0E 00 D1 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 16 [15:48:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [15:48:56]wFMCommunicate OK [15:48:56]SAM_PROTO_GetShiftState done [15:48:56]FM_GetShiftState done [15:48:56]req_shift_opened done [15:48:56]requested_item shift.open_date is exist - process it [15:48:56]req_shift_open_date [15:48:56]req_shift_open_date done [15:48:56]produce_requested_data done [15:48:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30660,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [15:48:56]process_action_free close_receipt [15:48:56]json_value_free [15:48:56]json_value_free done [15:48:56]process_json_proto returns [15:48:56]Send response to host [15:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30660,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [15:48:56]free response buf [15:48:56]execute_script done [15:48:56]execute_script returns [15:48:56]free content buf [15:48:56]Sock 9.Close socket [15:48:56]Sock 9.Thread stoped [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:25]OFD Sender: No OFD packet to send [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:50]OFD Sender: No OFD packet to send [16:01:54]accept exits with 7 [16:01:54]New connection [16:01:54]New thread 3067489636 created [16:01:54]Thread 3067346276 joined [16:01:54]Waiting for new connection... [16:01:54] Sock 7.Parse request [16:01:54]Sock 7.Check first char [16:01:54]Sock 7.First char is OK [16:01:54]request: POST /json_proto HTTP/1.0 [16:01:54]Method: POST [16:01:54]URL: /json_proto [16:01:54]Method is POST - this is cgi request [16:01:54]url: /json_proto [16:01:54]query_string will be loaded in cgi processing [16:01:54]execute_cgi json_proto POST (null) [16:01:54]execute_cgi path=json_proto method=POST [16:01:54]POST find Content-Length [16:01:54]Host: 172.17.51.3:8080 [16:01:54]Content-Length: 840 [16:01:54]Content-Type: application/json [16:01:54] [16:01:54]POST finish read [16:01:54]Found Content-Length = 840 [16:01:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:54]execute_script... [16:01:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:54]POST & json_proto [16:01:54]process_json_proto [16:01:54]json parsed OK: [16:01:54]protocol is kg_v1.0 [16:01:54]action value=close_receipt [16:01:54]process_action close_receipt [16:01:54]cmd_close_receipt [16:01:54]MH_GetDate [16:01:54]Write to MH i2c: F0 00 00 D2 4C 0D [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: F0 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: F0 09 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: F0 09 00 D2 4C 00 F7 7A 16 67 04 C1 95 66 C4 [16:01:54]GetLastDocTimeStamp 1729525737 [16:01:54]current date 1729526519 [16:01:54]FM_GetShiftState [16:01:54]SAM_PROTO_GetShiftState [16:01:54]wFMCommunicate request_size=4 [16:01:54]MH_SAM_APDU [16:01:54]CAPDU: 80 13 01 00 [16:01:54]Write to MH i2c: E2 08 00 D3 4C 80 13 01 00 00 00 00 00 9C [16:01:54]Write i2c OK [16:01:54]MH_I2C_Read... [16:01:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:54]Read from MH i2c: E2 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 [16:01:54]MH_I2C_Read... [16:01:54]Read from MH i2c: E2 0E 00 D3 4C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 18 [16:01:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:01:54]wFMCommunicate OK [16:01:54]SAM_PROTO_GetShiftState done [16:01:54]FM_GetShiftState done [16:01:54]opened in 1729471058 [16:01:54]opened+sec_in_day 1729557458 [16:01:54]quantity*price = 150037 [16:01:54]sum+1 = 150039 [16:01:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 158 21.10.2024 16:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30661 ФПД: 66727658043913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160159&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30661&fm=66727658043913&tin=02508201610067®Number=0000000000186857&sum=150038 [16:01:55]StoreToDocumentArchive [16:01:55]shift 115 fd 30661 [16:01:55]save to /storage/0115/doc_00030661 [16:01:55]save last doc name /storage/0115/doc_00030661 to /storage/kkm_last_doc_name [16:01:55]save OK [16:01:55]Clear old archive folders... [16:01:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:01:55]tlvbuf is 01DFCB80 [16:01:55]SAM_PROTO_ClearQueue [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 09 00 00 [16:01:55]Write to MH i2c: E2 08 00 E0 4C 80 09 00 00 00 00 00 00 9E [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E0 4C 00 90 00 A0 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_ClearQueue done [16:01:55]KKMCreateOFDPacket [16:01:55]OFDProtocolAddRootSTLVToBuf [16:01:55]FM_MakeSignedData [16:01:55]FM_MakeSignedData [16:01:55]SAM_PROTO_SignData [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 01 02 [16:01:55]Write to MH i2c: E2 08 00 E1 4C 80 0D 01 02 00 00 00 00 A6 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E1 4C 00 90 00 A1 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=255 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 7A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 77 00 00 35 04 06 00 3C B0 3E 5A [16:01:55]Write to MH i2c: E2 02 01 E2 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 7A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 77 00 00 35 04 06 00 3C B0 3E 5A 00 00 B1 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]OFD Sender: No OFD packet to send [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E2 4C 00 90 00 A2 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=7 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 02 02 02 BA 09 [16:01:55]Write to MH i2c: E2 0A 00 E3 4C 80 0D 02 02 02 00 BA 09 00 00 70 [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 03 00 E3 4C 00 90 00 A3 [16:01:55]RAPDU: 90 00 [16:01:55]wFMCommunicate OK [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 0D 03 02 [16:01:55]Write to MH i2c: E2 08 00 E4 4C 80 0D 03 02 00 00 00 00 AB [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:55]Read from MH i2c: E2 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 [16:01:55]MH_I2C_Read... [16:01:55]Read from MH i2c: E2 0B 00 E4 4C 00 DF 3B A8 E0 9B 94 4C 95 90 00 5E [16:01:55]RAPDU: DF 3B A8 E0 9B 94 4C 95 90 00 [16:01:55]wFMCommunicate OK [16:01:55]SAM_PROTO_SignData done [16:01:55]FM_MakeSignedData done [16:01:55]CreateOFDProtocolMessage [16:01:55]wFMCommunicate request_size=4 [16:01:55]MH_SAM_APDU [16:01:55]CAPDU: 80 11 00 00 [16:01:55]Write to MH i2c: E2 08 00 E5 4C 80 11 00 00 00 00 00 00 AB [16:01:55]Write i2c OK [16:01:55]MH_I2C_Read... [16:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:56]Read from MH i2c: E2 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 17 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: E2 17 00 E5 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [16:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:01:56]wFMCommunicate OK [16:01:56]CreateOFDProtocolMessage done [16:01:56]OFDSenderStorePacket 30661 [16:01:56]StoreOFDPacket docnum=30661 [16:01:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 E2 04 01 F7 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 7A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 77 00 00 35 04 06 00 3C B0 3E 5A BA 09 DF 3B A8 E0 9B 94 4C 95 [16:01:56]CheckFolder [16:01:56]dirname=/storage/ofd_packets [16:01:56]CheckFolder done [16:01:56]ProducePacketName [16:01:56]name=ofd_packets/00030661 [16:01:56]NVStorageSaveData ofd_packets/00030661 [16:01:56]File name is /storage/ofd_packets/00030661 [16:01:56]Write 298 bytes [16:01:56]NVStorageSaveData done [16:01:56]OFDSenderStorePacket done [16:01:56]KKMCreateOFDPacket done [16:01:56]NVStorageSaveData kkm_last_timestamp [16:01:56]File name is /storage/kkm_last_timestamp [16:01:56]Write 4 bytes [16:01:56]NVStorageSaveData done [16:01:56]ExternCall_PrintAddStr [16:01:56]wPrintStart [16:01:56]Write to MH i2c: 01 00 00 E6 4C 32 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 E6 4C 00 00 00 00 00 FF 0F 47 [16:01:56]RasterBufferAndPrint [16:01:56]line Счет N : (1)343071 [16:01:56]line ИНН: 02508201610067 [16:01:56]line Контрольно-Кассовый Чек [16:01:56]line ПРОДАЖА [16:01:56]line ТРК (МРК, ГНК) : 54 [16:01:56]line Товар: 2710194210 [16:01:56]line ДТ-К-2 [16:01:56]line 19.690 * 76.20 [16:01:56]line = 1500.38 [16:01:56]line НДС 12% НСП 1% [16:01:56]line > о реализуемом товаре [16:01:56]line ИТОГО: 1500.38 [16:01:56]line НСП 1% : 13.28 [16:01:56]line НДС 12% : 159.33 [16:01:56]line Наличными: 0.00 [16:01:56]line Безнал.: 1500.38 [16:01:56]line Место: АЗС № 78 "Партнер Нефть" [16:01:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:01:56]line СНО: Общий режим [16:01:56]line Чек 158 21.10.2024 16:01 [16:01:56]line Смена: 115 ФФД: 1.0 [16:01:56]line ЗНМ: 0300000137 [16:01:56]line РНМ: 0000000000186857 [16:01:56]line Версия ККМ: v1.0 [16:01:56]line Платежная система: АКБ Кыргызстан [16:01:56]line ФМ: 0000000002094219 [16:01:56]line ФД: 30661 [16:01:56]line ФПД: 66727658043913 [16:01:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160159&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30661&fm=66727658043913&tin=02508201610067®Number=0000000000186857&sum=150038 [16:01:56]OFD Sender: Processing packet 30661 [packets to send 10, broken 9] [16:01:56]ProducePacketName [16:01:56]name=ofd_packets/00030661 [16:01:56]OFD Sender: To server: pG, [16:01:56]CommunicateWithHost lk.salyk.kg:30040 [16:01:56]ConnectInit lk.salyk.kg [16:01:56]written 0, free lines is 4095 [16:01:56]Connected sock=10 [16:01:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 50 E2 04 01 F7 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 7A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C5 77 00 00 35 04 06 00 3C B0 3E 5A BA 09 DF 3B A8 E0 9B 94 4C 95 [16:01:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 95 1D 47 00 89 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 32 30 39 34 32 31 39 10 04 04 00 C5 77 00 00 F4 03 04 00 78 25 16 67 B6 04 01 00 00 A3 16 C0 15 7A C6 7E 8E [16:01:56]CommunicateWithHost err = 0 [16:01:56]CheckOFDResponse [16:01:56]1017 (14) - 77093643461234 [16:01:56]1041 (16) - 0000000002094219 [16:01:56]1040 (4) - 30661 [16:01:56]1012 (4) - 21.10.2024 09:57 [16:01:56]1206 (1) - 0 [16:01:56]OFD Sender: Remove packet 30661 [16:01:56]ProducePacketName [16:01:56]name=ofd_packets/00030661 [16:01:56]NVStorageDeleteData [16:01:56]Write to MH i2c: 01 00 00 10 4D 5D [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: 01 07 00 10 4D 00 00 00 00 00 0C 0D 7D [16:01:56]RasterBufferAndPrint [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]line [16:01:56]written 0, free lines is 3347 [16:01:56]MH_Cut [16:01:56]Write to MH i2c: D1 01 00 17 4D 01 36 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 [16:01:56]MH_I2C_Read... [16:01:56]Read from MH i2c: D1 01 00 17 4D 00 35 [16:01:56]Write to MH i2c: 01 00 00 18 4D 65 [16:01:56]Write i2c OK [16:01:56]MH_I2C_Read... [16:01:57]OFD Sender: No OFD packet to send [16:01:57]*** Cut start [16:01:57]*** Partial cut [16:01:57]*** CUTSNS_PIN = 1 [16:01:57]*** CUTSNS_PIN = 0 [16:01:57]*** Brake cut motor [16:01:58]Read from MH i2c: 01 [16:01:58]MH_I2C_Read... [16:01:58]*** Stop cut motor [16:01:58]*** Cut end [16:01:58]Read from MH i2c: 01 07 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: 01 07 00 18 4D 00 00 00 00 00 FF 0F 7A [16:01:58]process_action close_receipt done [16:01:58]requested_data is exist [16:01:58]produce_requested_data [16:01:58]requested_item fm.sn is exist - process it [16:01:58]wFMCommunicate request_size=4 [16:01:58]MH_SAM_APDU [16:01:58]CAPDU: 80 11 00 00 [16:01:58]Write to MH i2c: E2 08 00 19 4D 80 11 00 00 00 00 00 00 E0 [16:01:58]Write i2c OK [16:01:58]MH_I2C_Read... [16:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:58]Read from MH i2c: E2 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 17 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 17 00 19 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [16:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:01:58]wFMCommunicate OK [16:01:58]requested_item fd.num is exist - process it [16:01:58]SAM_PROTO_GetFieldsCounters [16:01:58]wFMCommunicate request_size=4 [16:01:58]MH_SAM_APDU [16:01:58]CAPDU: 80 13 00 00 [16:01:58]Write to MH i2c: E2 08 00 1A 4D 80 13 00 00 00 00 00 00 E3 [16:01:58]Write i2c OK [16:01:58]MH_I2C_Read... [16:01:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:58]Read from MH i2c: E2 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 62 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 62 00 1A 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [16:01:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:58]wFMCommunicate OK [16:01:58]SAM_PROTO_GetFieldsCounters done [16:01:58]requested_item shift.num is exist - process it [16:01:58]requested_item shift.opened is exist - process it [16:01:58]req_shift_opened [16:01:58]FM_GetShiftState [16:01:58]SAM_PROTO_GetShiftState [16:01:58]wFMCommunicate request_size=4 [16:01:58]MH_SAM_APDU [16:01:58]CAPDU: 80 13 01 00 [16:01:58]Write to MH i2c: E2 08 00 1B 4D 80 13 01 00 00 00 00 00 E5 [16:01:58]Write i2c OK [16:01:58]MH_I2C_Read... [16:01:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:58]Read from MH i2c: E2 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 0E 00 [16:01:58]MH_I2C_Read... [16:01:58]Read from MH i2c: E2 0E 00 1B 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 61 [16:01:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:01:58]wFMCommunicate OK [16:01:58]SAM_PROTO_GetShiftState done [16:01:58]FM_GetShiftState done [16:01:58]req_shift_opened done [16:01:58]requested_item shift.open_date is exist - process it [16:01:58]req_shift_open_date [16:01:58]req_shift_open_date done [16:01:58]produce_requested_data done [16:01:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30661,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:01:58]process_action_free close_receipt [16:01:58]json_value_free [16:01:58]json_value_free done [16:01:58]process_json_proto returns [16:01:58]Send response to host [16:01:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30661,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:01:58]free response buf [16:01:58]execute_script done [16:01:58]execute_script returns [16:01:58]free content buf [16:01:58]Sock 7.Close socket [16:01:58]Sock 7.Thread stoped [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:14]accept exits with 9 [16:07:14]New connection [16:07:14]New thread 3067346276 created [16:07:14]Thread 3067489636 joined [16:07:14]Waiting for new connection... [16:07:14] Sock 9.Parse request [16:07:14]Sock 9.Check first char [16:07:14]Sock 9.First char is OK [16:07:14]request: POST /json_proto HTTP/1.0 [16:07:14]Method: POST [16:07:14]URL: /json_proto [16:07:14]Method is POST - this is cgi request [16:07:14]url: /json_proto [16:07:14]query_string will be loaded in cgi processing [16:07:14]execute_cgi json_proto POST (null) [16:07:14]execute_cgi path=json_proto method=POST [16:07:14]POST find Content-Length [16:07:14]Host: 172.17.51.3:8080 [16:07:14]Content-Length: 682 [16:07:14]Content-Type: application/json [16:07:14] [16:07:14]POST finish read [16:07:14]Found Content-Length = 682 [16:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:14]execute_script... [16:07:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:14]POST & json_proto [16:07:14]process_json_proto [16:07:14]json parsed OK: [16:07:14]protocol is kg_v1.0 [16:07:14]action value=close_receipt [16:07:14]process_action close_receipt [16:07:14]cmd_close_receipt [16:07:14]MH_GetDate [16:07:14]Write to MH i2c: F0 00 00 1C 4D 58 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: F0 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: F0 09 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: F0 09 00 1C 4D 00 37 7C 16 67 04 C1 95 66 51 [16:07:14]GetLastDocTimeStamp 1729526519 [16:07:14]current date 1729526839 [16:07:14]FM_GetShiftState [16:07:14]SAM_PROTO_GetShiftState [16:07:14]wFMCommunicate request_size=4 [16:07:14]MH_SAM_APDU [16:07:14]CAPDU: 80 13 01 00 [16:07:14]Write to MH i2c: E2 08 00 1D 4D 80 13 01 00 00 00 00 00 E7 [16:07:14]Write i2c OK [16:07:14]MH_I2C_Read... [16:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:14]Read from MH i2c: E2 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0E 00 [16:07:14]MH_I2C_Read... [16:07:14]Read from MH i2c: E2 0E 00 1D 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 63 [16:07:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:07:14]wFMCommunicate OK [16:07:14]SAM_PROTO_GetShiftState done [16:07:14]FM_GetShiftState done [16:07:14]opened in 1729471058 [16:07:14]opened+sec_in_day 1729557458 [16:07:14]quantity*price = 100015 [16:07:14]sum+1 = 100017 [16:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 159 21.10.2024 16:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30662 ФПД: 66015751160721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30662&fm=66015751160721&tin=02508201610067®Number=0000000000186857&sum=100000 [16:07:15]StoreToDocumentArchive [16:07:15]shift 115 fd 30662 [16:07:15]save to /storage/0115/doc_00030662 [16:07:15]save last doc name /storage/0115/doc_00030662 to /storage/kkm_last_doc_name [16:07:15]save OK [16:07:15]Clear old archive folders... [16:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:15]tlvbuf is 01F8AFD0 [16:07:15]SAM_PROTO_ClearQueue [16:07:15]wFMCommunicate request_size=4 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 09 00 00 [16:07:15]Write to MH i2c: E2 08 00 2A 4D 80 09 00 00 00 00 00 00 E9 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 2A 4D 00 90 00 EB [16:07:15]RAPDU: 90 00 [16:07:15]wFMCommunicate OK [16:07:15]SAM_PROTO_ClearQueue done [16:07:15]KKMCreateOFDPacket [16:07:15]OFDProtocolAddRootSTLVToBuf [16:07:15]FM_MakeSignedData [16:07:15]FM_MakeSignedData [16:07:15]SAM_PROTO_SignData [16:07:15]wFMCommunicate request_size=4 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 0D 01 02 [16:07:15]Write to MH i2c: E2 08 00 2B 4D 80 0D 01 02 00 00 00 00 F1 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 2B 4D 00 90 00 EC [16:07:15]RAPDU: 90 00 [16:07:15]wFMCommunicate OK [16:07:15]wFMCommunicate request_size=255 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 37 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 77 00 00 35 04 06 00 3C [16:07:15]Write to MH i2c: E2 02 01 2C 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 37 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 77 00 00 35 04 06 00 3C 00 00 37 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 2C 4D 00 90 00 ED [16:07:15]RAPDU: 90 00 [16:07:15]wFMCommunicate OK [16:07:15]wFMCommunicate request_size=10 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 0D 02 02 05 0A 7D 65 C3 91 [16:07:15]Write to MH i2c: E2 0D 00 2D 4D 80 0D 02 02 05 00 0A 7D 65 C3 91 00 00 3E [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 03 00 2D 4D 00 90 00 EE [16:07:15]RAPDU: 90 00 [16:07:15]wFMCommunicate OK [16:07:15]wFMCommunicate request_size=4 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 0D 03 02 [16:07:15]Write to MH i2c: E2 08 00 2E 4D 80 0D 03 02 00 00 00 00 F6 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 0B 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 0B 00 2E 4D 00 B8 3B A3 6F 7E DF 67 E2 90 00 A2 [16:07:15]RAPDU: B8 3B A3 6F 7E DF 67 E2 90 00 [16:07:15]wFMCommunicate OK [16:07:15]SAM_PROTO_SignData done [16:07:15]FM_MakeSignedData done [16:07:15]CreateOFDProtocolMessage [16:07:15]wFMCommunicate request_size=4 [16:07:15]MH_SAM_APDU [16:07:15]CAPDU: 80 11 00 00 [16:07:15]Write to MH i2c: E2 08 00 2F 4D 80 11 00 00 00 00 00 00 F6 [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:15]Read from MH i2c: E2 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 17 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: E2 17 00 2F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 44 [16:07:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:07:15]wFMCommunicate OK [16:07:15]CreateOFDProtocolMessage done [16:07:15]OFDSenderStorePacket 30662 [16:07:15]StoreOFDPacket docnum=30662 [16:07:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3D CE 07 01 D6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 37 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 77 00 00 35 04 06 00 3C 0A 7D 65 C3 91 B8 3B A3 6F 7E DF 67 E2 [16:07:15]CheckFolder [16:07:15]dirname=/storage/ofd_packets [16:07:15]CheckFolder done [16:07:15]ProducePacketName [16:07:15]name=ofd_packets/00030662 [16:07:15]NVStorageSaveData ofd_packets/00030662 [16:07:15]File name is /storage/ofd_packets/00030662 [16:07:15]Write 301 bytes [16:07:15]NVStorageSaveData done [16:07:15]OFDSenderStorePacket done [16:07:15]KKMCreateOFDPacket done [16:07:15]NVStorageSaveData kkm_last_timestamp [16:07:15]File name is /storage/kkm_last_timestamp [16:07:15]Write 4 bytes [16:07:15]NVStorageSaveData done [16:07:15]ExternCall_PrintAddStr [16:07:15]wPrintStart [16:07:15]Write to MH i2c: 01 00 00 30 4D 7D [16:07:15]Write i2c OK [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 [16:07:15]MH_I2C_Read... [16:07:15]Read from MH i2c: 01 07 00 30 4D 00 00 00 00 00 FF 0F 92 [16:07:15]RasterBufferAndPrint [16:07:15]line Счет N : (1)343072 [16:07:15]line ИНН: 02508201610067 [16:07:15]line Контрольно-Кассовый Чек [16:07:15]line ПРОДАЖА [16:07:15]line ТРК (МРК, ГНК) : 63 [16:07:15]line Товар: 2710124130 [16:07:15]line Аи-92-К-2 [16:07:15]line 14.950 * 66.90 [16:07:15]line = 1000.16 [16:07:15]line НДС 12% НСП 1% [16:07:15]line > о реализуемом товаре [16:07:15]line ОКРУГЛЕНИЕ: -0.16 [16:07:15]line ИТОГО: 1000.00 [16:07:15]line Внесено: 1000.00 [16:07:15]line СДАЧА: 0.00 [16:07:15]line НСП 1% : 8.85 [16:07:15]line НДС 12% : 106.21 [16:07:15]line Наличными: 1000.00 [16:07:15]line Безнал.: 0.00 [16:07:15]line Место: АЗС № 78 "Партнер Нефть" [16:07:15]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:07:15]line СНО: Общий режим [16:07:15]line Чек 159 21.10.2024 16:07 [16:07:15]line Смена: 115 ФФД: 1.0 [16:07:15]line ЗНМ: 0300000137 [16:07:15]line РНМ: 0000000000186857 [16:07:15]line Версия ККМ: v1.0 [16:07:15]line ФМ: 0000000002094219 [16:07:15]line ФД: 30662 [16:07:15]line ФПД: 66015751160721 [16:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160719&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30662&fm=66015751160721&tin=02508201610067®Number=0000000000186857&sum=100000 [16:07:16]OFD Sender: Processing packet 30662 [packets to send 10, broken 9] [16:07:16]ProducePacketName [16:07:16]name=ofd_packets/00030662 [16:07:16]OFD Sender: To server: pG, [16:07:16]CommunicateWithHost lk.salyk.kg:30040 [16:07:16]ConnectInit lk.salyk.kg [16:07:16]written 0, free lines is 4095 [16:07:16]Connected sock=10 [16:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 3D CE 07 01 D6 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 37 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C6 77 00 00 35 04 06 00 3C 0A 7D 65 C3 91 B8 3B A3 6F 7E DF 67 E2 [16:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 79 B5 47 00 93 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 32 30 39 34 32 31 39 10 04 04 00 C6 77 00 00 F4 03 04 00 B8 26 16 67 B6 04 01 00 00 07 F2 47 19 4C 64 D0 34 [16:07:16]CommunicateWithHost err = 0 [16:07:16]CheckOFDResponse [16:07:16]1017 (14) - 77093643461234 [16:07:16]1041 (16) - 0000000002094219 [16:07:16]1040 (4) - 30662 [16:07:16]1012 (4) - 21.10.2024 10:02 [16:07:16]1206 (1) - 0 [16:07:16]OFD Sender: Remove packet 30662 [16:07:16]ProducePacketName [16:07:16]name=ofd_packets/00030662 [16:07:16]NVStorageDeleteData [16:07:16]Write to MH i2c: 01 00 00 5B 4D A8 [16:07:16]Write i2c OK [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: 01 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: 01 07 00 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: 01 07 00 5B 4D 00 00 00 00 00 F5 0C B0 [16:07:16]RasterBufferAndPrint [16:07:16]line [16:07:16]line [16:07:16]line [16:07:16]line [16:07:16]line [16:07:16]written 0, free lines is 3323 [16:07:16]MH_Cut [16:07:16]Write to MH i2c: D1 01 00 62 4D 01 81 [16:07:16]Write i2c OK [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: D1 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: D1 01 00 [16:07:16]MH_I2C_Read... [16:07:16]Read from MH i2c: D1 01 00 62 4D 00 80 [16:07:16]Write to MH i2c: 01 00 00 63 4D B0 [16:07:16]Write i2c OK [16:07:16]MH_I2C_Read... [16:07:17]OFD Sender: No OFD packet to send [16:07:17]*** Cut start [16:07:17]*** Partial cut [16:07:17]*** CUTSNS_PIN = 1 [16:07:17]*** CUTSNS_PIN = 0 [16:07:17]*** Brake cut motor [16:07:17]Read from MH i2c: 01 [16:07:17]MH_I2C_Read... [16:07:17]*** Stop cut motor [16:07:17]*** Cut end [16:07:17]Read from MH i2c: 01 07 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: 01 07 00 63 4D 00 00 00 00 00 FF 0F C5 [16:07:17]process_action close_receipt done [16:07:17]requested_data is exist [16:07:17]produce_requested_data [16:07:17]requested_item fm.sn is exist - process it [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 11 00 00 [16:07:17]Write to MH i2c: E2 08 00 64 4D 80 11 00 00 00 00 00 00 2B [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:17]Read from MH i2c: E2 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 17 00 [16:07:17]MH_I2C_Read... [16:07:17]Read from MH i2c: E2 17 00 64 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 79 [16:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:07:17]wFMCommunicate OK [16:07:17]requested_item fd.num is exist - process it [16:07:17]SAM_PROTO_GetFieldsCounters [16:07:17]wFMCommunicate request_size=4 [16:07:17]MH_SAM_APDU [16:07:17]CAPDU: 80 13 00 00 [16:07:17]Write to MH i2c: E2 08 00 65 4D 80 13 00 00 00 00 00 00 2E [16:07:17]Write i2c OK [16:07:17]MH_I2C_Read... [16:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:18]Read from MH i2c: E2 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 62 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 62 00 65 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 77 00 00 0E 04 04 00 73 00 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 E1 [16:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C6 77 00 00 0E 04 04 00 73 00 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 [16:07:18]wFMCommunicate OK [16:07:18]SAM_PROTO_GetFieldsCounters done [16:07:18]requested_item shift.num is exist - process it [16:07:18]requested_item shift.opened is exist - process it [16:07:18]req_shift_opened [16:07:18]FM_GetShiftState [16:07:18]SAM_PROTO_GetShiftState [16:07:18]wFMCommunicate request_size=4 [16:07:18]MH_SAM_APDU [16:07:18]CAPDU: 80 13 01 00 [16:07:18]Write to MH i2c: E2 08 00 66 4D 80 13 01 00 00 00 00 00 30 [16:07:18]Write i2c OK [16:07:18]MH_I2C_Read... [16:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:18]Read from MH i2c: E2 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 66 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AC [16:07:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:07:18]wFMCommunicate OK [16:07:18]SAM_PROTO_GetShiftState done [16:07:18]FM_GetShiftState done [16:07:18]req_shift_opened done [16:07:18]requested_item shift.open_date is exist - process it [16:07:18]req_shift_open_date [16:07:18]req_shift_open_date done [16:07:18]produce_requested_data done [16:07:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30662,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:07:18]process_action_free close_receipt [16:07:18]json_value_free [16:07:18]json_value_free done [16:07:18]process_json_proto returns [16:07:18]Send response to host [16:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30662,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:07:18]free response buf [16:07:18]execute_script done [16:07:18]execute_script returns [16:07:18]free content buf [16:07:18]Sock 9.Close socket [16:07:18]Sock 9.Thread stoped [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:27]accept exits with 7 [16:07:27]New connection [16:07:27]New thread 3067489636 created [16:07:27]Thread 3067346276 joined [16:07:27]Waiting for new connection... [16:07:27] Sock 7.Parse request [16:07:27]Sock 7.Check first char [16:07:27]Sock 7.First char is OK [16:07:27]request: POST /json_proto HTTP/1.0 [16:07:27]Method: POST [16:07:27]URL: /json_proto [16:07:27]Method is POST - this is cgi request [16:07:27]url: /json_proto [16:07:27]query_string will be loaded in cgi processing [16:07:27]execute_cgi json_proto POST (null) [16:07:27]execute_cgi path=json_proto method=POST [16:07:27]POST find Content-Length [16:07:27]Host: 172.17.51.3:8080 [16:07:27]Content-Length: 677 [16:07:27]Content-Type: application/json [16:07:27] [16:07:27]POST finish read [16:07:27]Found Content-Length = 677 [16:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:27]execute_script... [16:07:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:27]POST & json_proto [16:07:27]process_json_proto [16:07:27]json parsed OK: [16:07:27]protocol is kg_v1.0 [16:07:27]action value=close_receipt [16:07:27]process_action close_receipt [16:07:27]cmd_close_receipt [16:07:27]MH_GetDate [16:07:27]Write to MH i2c: F0 00 00 67 4D A3 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: F0 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: F0 09 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: F0 09 00 67 4D 00 45 7C 16 67 04 C1 95 66 AA [16:07:27]GetLastDocTimeStamp 1729526839 [16:07:27]current date 1729526853 [16:07:27]FM_GetShiftState [16:07:27]SAM_PROTO_GetShiftState [16:07:27]wFMCommunicate request_size=4 [16:07:27]MH_SAM_APDU [16:07:27]CAPDU: 80 13 01 00 [16:07:27]Write to MH i2c: E2 08 00 68 4D 80 13 01 00 00 00 00 00 32 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0E 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 0E 00 68 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AE [16:07:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:07:27]wFMCommunicate OK [16:07:27]SAM_PROTO_GetShiftState done [16:07:27]FM_GetShiftState done [16:07:27]opened in 1729471058 [16:07:27]opened+sec_in_day 1729557458 [16:07:27]quantity*price = 30038 [16:07:27]sum+1 = 30039 [16:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 160 21.10.2024 16:07 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30663 ФПД: 177456837292166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30663&fm=177456837292166&tin=02508201610067®Number=0000000000186857&sum=30000 [16:07:28]StoreToDocumentArchive [16:07:28]shift 115 fd 30663 [16:07:28]save to /storage/0115/doc_00030663 [16:07:28]save last doc name /storage/0115/doc_00030663 to /storage/kkm_last_doc_name [16:07:28]save OK [16:07:28]Clear old archive folders... [16:07:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:28]tlvbuf is 01E85E10 [16:07:28]SAM_PROTO_ClearQueue [16:07:28]wFMCommunicate request_size=4 [16:07:28]MH_SAM_APDU [16:07:28]CAPDU: 80 09 00 00 [16:07:28]Write to MH i2c: E2 08 00 75 4D 80 09 00 00 00 00 00 00 34 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:28]Read from MH i2c: E2 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 03 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 03 00 75 4D 00 90 00 36 [16:07:28]RAPDU: 90 00 [16:07:28]wFMCommunicate OK [16:07:28]SAM_PROTO_ClearQueue done [16:07:28]KKMCreateOFDPacket [16:07:28]OFDProtocolAddRootSTLVToBuf [16:07:28]FM_MakeSignedData [16:07:28]FM_MakeSignedData [16:07:28]SAM_PROTO_SignData [16:07:28]wFMCommunicate request_size=4 [16:07:28]MH_SAM_APDU [16:07:28]CAPDU: 80 0D 01 02 [16:07:28]Write to MH i2c: E2 08 00 76 4D 80 0D 01 02 00 00 00 00 3C [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:28]Read from MH i2c: E2 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 03 00 [16:07:28]MH_I2C_Read... [16:07:28]Read from MH i2c: E2 03 00 76 4D 00 90 00 37 [16:07:28]RAPDU: 90 00 [16:07:28]wFMCommunicate OK [16:07:28]wFMCommunicate request_size=255 [16:07:28]MH_SAM_APDU [16:07:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 45 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 77 00 00 35 04 06 00 A1 [16:07:28]Write to MH i2c: E2 02 01 77 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 45 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 77 00 00 35 04 06 00 A1 00 00 F1 [16:07:28]Write i2c OK [16:07:28]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 77 4D 00 90 00 38 [16:07:29]RAPDU: 90 00 [16:07:29]wFMCommunicate OK [16:07:29]wFMCommunicate request_size=10 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 0D 02 02 05 65 63 BF F0 86 [16:07:29]Write to MH i2c: E2 0D 00 78 4D 80 0D 02 02 05 00 65 63 BF F0 86 00 00 46 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 03 00 78 4D 00 90 00 39 [16:07:29]RAPDU: 90 00 [16:07:29]wFMCommunicate OK [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 0D 03 02 [16:07:29]Write to MH i2c: E2 08 00 79 4D 80 0D 03 02 00 00 00 00 41 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0B 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 0B 00 79 4D 00 C5 FE 7D 16 DF 3A EF 29 90 00 C9 [16:07:29]RAPDU: C5 FE 7D 16 DF 3A EF 29 90 00 [16:07:29]wFMCommunicate OK [16:07:29]SAM_PROTO_SignData done [16:07:29]FM_MakeSignedData done [16:07:29]CreateOFDProtocolMessage [16:07:29]wFMCommunicate request_size=4 [16:07:29]MH_SAM_APDU [16:07:29]CAPDU: 80 11 00 00 [16:07:29]Write to MH i2c: E2 08 00 7A 4D 80 11 00 00 00 00 00 00 41 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:29]Read from MH i2c: E2 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 17 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: E2 17 00 7A 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8F [16:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:07:29]wFMCommunicate OK [16:07:29]CreateOFDProtocolMessage done [16:07:29]OFDSenderStorePacket 30663 [16:07:29]StoreOFDPacket docnum=30663 [16:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 04 07 01 29 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 45 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 77 00 00 35 04 06 00 A1 65 63 BF F0 86 C5 FE 7D 16 DF 3A EF 29 [16:07:29]CheckFolder [16:07:29]dirname=/storage/ofd_packets [16:07:29]CheckFolder done [16:07:29]ProducePacketName [16:07:29]name=ofd_packets/00030663 [16:07:29]NVStorageSaveData ofd_packets/00030663 [16:07:29]File name is /storage/ofd_packets/00030663 [16:07:29]Write 301 bytes [16:07:29]NVStorageSaveData done [16:07:29]OFDSenderStorePacket done [16:07:29]KKMCreateOFDPacket done [16:07:29]NVStorageSaveData kkm_last_timestamp [16:07:29]File name is /storage/kkm_last_timestamp [16:07:29]Write 4 bytes [16:07:29]NVStorageSaveData done [16:07:29]ExternCall_PrintAddStr [16:07:29]wPrintStart [16:07:29]Write to MH i2c: 01 00 00 7B 4D C8 [16:07:29]Write i2c OK [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: 01 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: 01 07 00 [16:07:29]MH_I2C_Read... [16:07:29]Read from MH i2c: 01 07 00 7B 4D 00 00 00 00 00 FF 0F DD [16:07:29]RasterBufferAndPrint [16:07:29]line Счет N : (1)343073 [16:07:29]line ИНН: 02508201610067 [16:07:29]line Контрольно-Кассовый Чек [16:07:29]line ПРОДАЖА [16:07:29]line ТРК (МРК, ГНК) : 53 [16:07:29]line Товар: 2710124130 [16:07:29]line Аи-92-К-2 [16:07:29]line 4.490 * 66.90 [16:07:29]line = 300.38 [16:07:29]line НДС 12% НСП 1% [16:07:29]line > о реализуемом товаре [16:07:29]line ОКРУГЛЕНИЕ: -0.38 [16:07:29]line ИТОГО: 300.00 [16:07:29]line Внесено: 300.00 [16:07:29]line СДАЧА: 0.00 [16:07:29]line НСП 1% : 2.66 [16:07:29]line НДС 12% : 31.90 [16:07:29]line Наличными: 300.00 [16:07:29]line Безнал.: 0.00 [16:07:29]line Место: АЗС № 78 "Партнер Нефть" [16:07:29]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:07:29]line СНО: Общий режим [16:07:29]line Чек 160 21.10.2024 16:07 [16:07:29]line Смена: 115 ФФД: 1.0 [16:07:29]line ЗНМ: 0300000137 [16:07:29]line РНМ: 0000000000186857 [16:07:29]line Версия ККМ: v1.0 [16:07:29]line ФМ: 0000000002094219 [16:07:29]line ФД: 30663 [16:07:29]line ФПД: 177456837292166 [16:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160733&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30663&fm=177456837292166&tin=02508201610067®Number=0000000000186857&sum=30000 [16:07:29]OFD Sender: Processing packet 30663 [packets to send 10, broken 9] [16:07:29]ProducePacketName [16:07:29]name=ofd_packets/00030663 [16:07:29]OFD Sender: To server: pG, [16:07:29]CommunicateWithHost lk.salyk.kg:30040 [16:07:29]ConnectInit lk.salyk.kg [16:07:29]written 0, free lines is 4095 [16:07:29]Connected sock=10 [16:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 49 04 07 01 29 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 45 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 77 00 00 35 04 06 00 A1 65 63 BF F0 86 C5 FE 7D 16 DF 3A EF 29 [16:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 08 01 47 00 9A 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C7 77 00 00 F4 03 04 00 C5 26 16 67 B6 04 01 00 00 26 96 5A 84 C2 FC B1 60 [16:07:30]CommunicateWithHost err = 0 [16:07:30]CheckOFDResponse [16:07:30]1017 (14) - 77093643461234 [16:07:30]1041 (16) - 0000000002094219 [16:07:30]1040 (4) - 30663 [16:07:30]1012 (4) - 21.10.2024 10:02 [16:07:30]1206 (1) - 0 [16:07:30]OFD Sender: Remove packet 30663 [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00030663 [16:07:30]NVStorageDeleteData [16:07:30]Write to MH i2c: 01 00 00 A6 4D F3 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 A6 4D 00 00 00 00 00 F9 0C FF [16:07:30]RasterBufferAndPrint [16:07:30]line [16:07:30]line [16:07:30]line [16:07:30]line [16:07:30]line [16:07:30]written 0, free lines is 3329 [16:07:30]MH_Cut [16:07:30]Write to MH i2c: D1 01 00 AD 4D 01 CC [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: D1 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: D1 01 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: D1 01 00 AD 4D 00 CB [16:07:30]Write to MH i2c: 01 00 00 AE 4D FB [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]OFD Sender: No OFD packet to send [16:07:30]*** Cut start [16:07:30]*** Partial cut [16:07:30]*** CUTSNS_PIN = 1 [16:07:30]*** CUTSNS_PIN = 0 [16:07:30]*** Brake cut motor [16:07:31]Read from MH i2c: 01 [16:07:31]MH_I2C_Read... [16:07:31]*** Stop cut motor [16:07:31]*** Cut end [16:07:31]Read from MH i2c: 01 07 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: 01 07 00 AE 4D 00 00 00 00 00 FF 0F 10 [16:07:31]process_action close_receipt done [16:07:31]requested_data is exist [16:07:31]produce_requested_data [16:07:31]requested_item fm.sn is exist - process it [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 11 00 00 [16:07:31]Write to MH i2c: E2 08 00 AF 4D 80 11 00 00 00 00 00 00 76 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 17 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 17 00 AF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [16:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:07:31]wFMCommunicate OK [16:07:31]requested_item fd.num is exist - process it [16:07:31]SAM_PROTO_GetFieldsCounters [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 13 00 00 [16:07:31]Write to MH i2c: E2 08 00 B0 4D 80 13 00 00 00 00 00 00 79 [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 62 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 62 00 B0 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 77 00 00 0E 04 04 00 73 00 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 30 [16:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C7 77 00 00 0E 04 04 00 73 00 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 [16:07:31]wFMCommunicate OK [16:07:31]SAM_PROTO_GetFieldsCounters done [16:07:31]requested_item shift.num is exist - process it [16:07:31]requested_item shift.opened is exist - process it [16:07:31]req_shift_opened [16:07:31]FM_GetShiftState [16:07:31]SAM_PROTO_GetShiftState [16:07:31]wFMCommunicate request_size=4 [16:07:31]MH_SAM_APDU [16:07:31]CAPDU: 80 13 01 00 [16:07:31]Write to MH i2c: E2 08 00 B1 4D 80 13 01 00 00 00 00 00 7B [16:07:31]Write i2c OK [16:07:31]MH_I2C_Read... [16:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:31]Read from MH i2c: E2 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 0E 00 [16:07:31]MH_I2C_Read... [16:07:31]Read from MH i2c: E2 0E 00 B1 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F7 [16:07:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:07:31]wFMCommunicate OK [16:07:31]SAM_PROTO_GetShiftState done [16:07:31]FM_GetShiftState done [16:07:31]req_shift_opened done [16:07:31]requested_item shift.open_date is exist - process it [16:07:31]req_shift_open_date [16:07:31]req_shift_open_date done [16:07:31]produce_requested_data done [16:07:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30663,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:07:31]process_action_free close_receipt [16:07:31]json_value_free [16:07:31]json_value_free done [16:07:31]process_json_proto returns [16:07:31]Send response to host [16:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30663,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:07:31]free response buf [16:07:31]execute_script done [16:07:31]execute_script returns [16:07:31]free content buf [16:07:31]Sock 7.Close socket [16:07:31]Sock 7.Thread stoped [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:50]accept exits with 9 [16:08:50]New connection [16:08:50]New thread 3067346276 created [16:08:50]Thread 3067489636 joined [16:08:50]Waiting for new connection... [16:08:50] Sock 9.Parse request [16:08:50]Sock 9.Check first char [16:08:50]Sock 9.First char is OK [16:08:50]request: POST /json_proto HTTP/1.0 [16:08:50]Method: POST [16:08:50]URL: /json_proto [16:08:50]Method is POST - this is cgi request [16:08:50]url: /json_proto [16:08:50]query_string will be loaded in cgi processing [16:08:50]execute_cgi json_proto POST (null) [16:08:50]execute_cgi path=json_proto method=POST [16:08:50]POST find Content-Length [16:08:50]Host: 172.17.51.3:8080 [16:08:50]Content-Length: 677 [16:08:50]Content-Type: application/json [16:08:50] [16:08:50]POST finish read [16:08:50]Found Content-Length = 677 [16:08:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:50]execute_script... [16:08:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:50]POST & json_proto [16:08:50]process_json_proto [16:08:50]json parsed OK: [16:08:50]protocol is kg_v1.0 [16:08:50]action value=close_receipt [16:08:50]process_action close_receipt [16:08:50]cmd_close_receipt [16:08:50]MH_GetDate [16:08:50]Write to MH i2c: F0 00 00 B2 4D EE [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 09 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: F0 09 00 B2 4D 00 98 7C 16 67 04 C1 95 66 48 [16:08:50]GetLastDocTimeStamp 1729526853 [16:08:50]current date 1729526936 [16:08:50]FM_GetShiftState [16:08:50]SAM_PROTO_GetShiftState [16:08:50]wFMCommunicate request_size=4 [16:08:50]MH_SAM_APDU [16:08:50]CAPDU: 80 13 01 00 [16:08:50]Write to MH i2c: E2 08 00 B3 4D 80 13 01 00 00 00 00 00 7D [16:08:50]Write i2c OK [16:08:50]MH_I2C_Read... [16:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:50]Read from MH i2c: E2 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 0E 00 [16:08:50]MH_I2C_Read... [16:08:50]Read from MH i2c: E2 0E 00 B3 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F9 [16:08:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:08:50]wFMCommunicate OK [16:08:50]SAM_PROTO_GetShiftState done [16:08:50]FM_GetShiftState done [16:08:50]opened in 1729471058 [16:08:50]opened+sec_in_day 1729557458 [16:08:50]quantity*price = 50041 [16:08:50]sum+1 = 50042 [16:08:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 161 21.10.2024 16:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30664 ФПД: 31046396112472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160856&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30664&fm=31046396112472&tin=02508201610067®Number=0000000000186857&sum=50000 [16:08:51]StoreToDocumentArchive [16:08:51]shift 115 fd 30664 [16:08:51]save to /storage/0115/doc_00030664 [16:08:51]save last doc name /storage/0115/doc_00030664 to /storage/kkm_last_doc_name [16:08:51]save OK [16:08:51]Clear old archive folders... [16:08:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:51]tlvbuf is 01E0C920 [16:08:51]SAM_PROTO_ClearQueue [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 09 00 00 [16:08:51]Write to MH i2c: E2 08 00 C0 4D 80 09 00 00 00 00 00 00 7F [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 C0 4D 00 90 00 81 [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]SAM_PROTO_ClearQueue done [16:08:51]KKMCreateOFDPacket [16:08:51]OFDProtocolAddRootSTLVToBuf [16:08:51]FM_MakeSignedData [16:08:51]FM_MakeSignedData [16:08:51]SAM_PROTO_SignData [16:08:51]wFMCommunicate request_size=4 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 01 02 [16:08:51]Write to MH i2c: E2 08 00 C1 4D 80 0D 01 02 00 00 00 00 87 [16:08:51]Write i2c OK [16:08:51]MH_I2C_Read... [16:08:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:51]Read from MH i2c: E2 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 [16:08:51]MH_I2C_Read... [16:08:51]Read from MH i2c: E2 03 00 C1 4D 00 90 00 82 [16:08:51]RAPDU: 90 00 [16:08:51]wFMCommunicate OK [16:08:51]wFMCommunicate request_size=255 [16:08:51]MH_SAM_APDU [16:08:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 98 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 77 00 00 35 04 06 00 1C [16:08:52]Write to MH i2c: E2 02 01 C2 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 98 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 77 00 00 35 04 06 00 1C 00 00 18 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 C2 4D 00 90 00 83 [16:08:52]RAPDU: 90 00 [16:08:52]wFMCommunicate OK [16:08:52]wFMCommunicate request_size=10 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 0D 02 02 05 3C 8D 69 6E 58 [16:08:52]Write to MH i2c: E2 0D 00 C3 4D 80 0D 02 02 05 00 3C 8D 69 6E 58 00 00 8C [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 03 00 C3 4D 00 90 00 84 [16:08:52]RAPDU: 90 00 [16:08:52]wFMCommunicate OK [16:08:52]wFMCommunicate request_size=4 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 0D 03 02 [16:08:52]Write to MH i2c: E2 08 00 C4 4D 80 0D 03 02 00 00 00 00 8C [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 0B 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 0B 00 C4 4D 00 07 64 7F B1 F7 B4 10 C4 90 00 A7 [16:08:52]RAPDU: 07 64 7F B1 F7 B4 10 C4 90 00 [16:08:52]wFMCommunicate OK [16:08:52]SAM_PROTO_SignData done [16:08:52]FM_MakeSignedData done [16:08:52]CreateOFDProtocolMessage [16:08:52]wFMCommunicate request_size=4 [16:08:52]MH_SAM_APDU [16:08:52]CAPDU: 80 11 00 00 [16:08:52]Write to MH i2c: E2 08 00 C5 4D 80 11 00 00 00 00 00 00 8C [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:52]Read from MH i2c: E2 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 17 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: E2 17 00 C5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [16:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:08:52]wFMCommunicate OK [16:08:52]CreateOFDProtocolMessage done [16:08:52]OFDSenderStorePacket 30664 [16:08:52]StoreOFDPacket docnum=30664 [16:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B 35 07 01 75 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 98 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 77 00 00 35 04 06 00 1C 3C 8D 69 6E 58 07 64 7F B1 F7 B4 10 C4 [16:08:52]CheckFolder [16:08:52]dirname=/storage/ofd_packets [16:08:52]CheckFolder done [16:08:52]ProducePacketName [16:08:52]name=ofd_packets/00030664 [16:08:52]NVStorageSaveData ofd_packets/00030664 [16:08:52]File name is /storage/ofd_packets/00030664 [16:08:52]Write 301 bytes [16:08:52]NVStorageSaveData done [16:08:52]OFDSenderStorePacket done [16:08:52]KKMCreateOFDPacket done [16:08:52]NVStorageSaveData kkm_last_timestamp [16:08:52]File name is /storage/kkm_last_timestamp [16:08:52]Write 4 bytes [16:08:52]NVStorageSaveData done [16:08:52]ExternCall_PrintAddStr [16:08:52]wPrintStart [16:08:52]Write to MH i2c: 01 00 00 C6 4D 13 [16:08:52]Write i2c OK [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 [16:08:52]MH_I2C_Read... [16:08:52]Read from MH i2c: 01 07 00 C6 4D 00 00 00 00 00 FF 0F 28 [16:08:52]RasterBufferAndPrint [16:08:52]line Счет N : (1)343074 [16:08:52]line ИНН: 02508201610067 [16:08:52]line Контрольно-Кассовый Чек [16:08:52]line ПРОДАЖА [16:08:52]line ТРК (МРК, ГНК) : 33 [16:08:52]line Товар: 2710124130 [16:08:52]line Аи-92-К-2 [16:08:52]line 7.480 * 66.90 [16:08:52]line = 500.41 [16:08:52]line НДС 12% НСП 1% [16:08:52]line > о реализуемом товаре [16:08:52]line ОКРУГЛЕНИЕ: -0.41 [16:08:52]line ИТОГО: 500.00 [16:08:52]line Внесено: 500.00 [16:08:52]line СДАЧА: 0.00 [16:08:52]line НСП 1% : 4.43 [16:08:52]line НДС 12% : 53.14 [16:08:52]line Наличными: 500.00 [16:08:52]line Безнал.: 0.00 [16:08:52]line Место: АЗС № 78 "Партнер Нефть" [16:08:52]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:08:52]line СНО: Общий режим [16:08:52]line Чек 161 21.10.2024 16:08 [16:08:52]line Смена: 115 ФФД: 1.0 [16:08:52]line ЗНМ: 0300000137 [16:08:52]line РНМ: 0000000000186857 [16:08:52]line Версия ККМ: v1.0 [16:08:52]line ФМ: 0000000002094219 [16:08:52]line ФД: 30664 [16:08:52]line ФПД: 31046396112472 [16:08:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160856&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30664&fm=31046396112472&tin=02508201610067®Number=0000000000186857&sum=50000 [16:08:52]OFD Sender: Processing packet 30664 [packets to send 10, broken 9] [16:08:52]ProducePacketName [16:08:52]name=ofd_packets/00030664 [16:08:52]OFD Sender: To server: pG, [16:08:52]CommunicateWithHost lk.salyk.kg:30040 [16:08:52]ConnectInit lk.salyk.kg [16:08:52]written 0, free lines is 4095 [16:08:52]Connected sock=7 [16:08:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B 35 07 01 75 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 98 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C8 77 00 00 35 04 06 00 1C 3C 8D 69 6E 58 07 64 7F B1 F7 B4 10 C4 [16:08:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 5C 11 47 00 B7 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 32 30 39 34 32 31 39 10 04 04 00 C8 77 00 00 F4 03 04 00 18 27 16 67 B6 04 01 00 00 5F 3A 40 9A 87 9C 95 DF [16:08:53]CommunicateWithHost err = 0 [16:08:53]CheckOFDResponse [16:08:53]1017 (14) - 77093643461234 [16:08:53]1041 (16) - 0000000002094219 [16:08:53]1040 (4) - 30664 [16:08:53]1012 (4) - 21.10.2024 10:04 [16:08:53]1206 (1) - 0 [16:08:53]OFD Sender: Remove packet 30664 [16:08:53]ProducePacketName [16:08:53]name=ofd_packets/00030664 [16:08:53]NVStorageDeleteData [16:08:53]Write to MH i2c: 01 00 00 F1 4D 3E [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 07 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: 01 07 00 F1 4D 00 00 00 00 00 EF 0C 40 [16:08:53]RasterBufferAndPrint [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]line [16:08:53]written 0, free lines is 3320 [16:08:53]MH_Cut [16:08:53]Write to MH i2c: D1 01 00 F8 4D 01 17 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 01 00 [16:08:53]MH_I2C_Read... [16:08:53]Read from MH i2c: D1 01 00 F8 4D 00 16 [16:08:53]Write to MH i2c: 01 00 00 F9 4D 46 [16:08:53]Write i2c OK [16:08:53]MH_I2C_Read... [16:08:53]OFD Sender: No OFD packet to send [16:08:53]*** Cut start [16:08:53]*** Partial cut [16:08:53]*** CUTSNS_PIN = 1 [16:08:53]*** CUTSNS_PIN = 0 [16:08:54]*** Brake cut motor [16:08:54]Read from MH i2c: 01 [16:08:54]MH_I2C_Read... [16:08:54]*** Stop cut motor [16:08:54]*** Cut end [16:08:54]Read from MH i2c: 01 07 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: 01 07 00 F9 4D 00 00 00 00 00 FF 0F 5B [16:08:54]process_action close_receipt done [16:08:54]requested_data is exist [16:08:54]produce_requested_data [16:08:54]requested_item fm.sn is exist - process it [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 11 00 00 [16:08:54]Write to MH i2c: E2 08 00 FA 4D 80 11 00 00 00 00 00 00 C1 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 17 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 17 00 FA 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [16:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:08:54]wFMCommunicate OK [16:08:54]requested_item fd.num is exist - process it [16:08:54]SAM_PROTO_GetFieldsCounters [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 00 00 [16:08:54]Write to MH i2c: E2 08 00 FB 4D 80 13 00 00 00 00 00 00 C4 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 62 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 62 00 FB 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [16:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetFieldsCounters done [16:08:54]requested_item shift.num is exist - process it [16:08:54]requested_item shift.opened is exist - process it [16:08:54]req_shift_opened [16:08:54]FM_GetShiftState [16:08:54]SAM_PROTO_GetShiftState [16:08:54]wFMCommunicate request_size=4 [16:08:54]MH_SAM_APDU [16:08:54]CAPDU: 80 13 01 00 [16:08:54]Write to MH i2c: E2 08 00 FC 4D 80 13 01 00 00 00 00 00 C6 [16:08:54]Write i2c OK [16:08:54]MH_I2C_Read... [16:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:54]Read from MH i2c: E2 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 [16:08:54]MH_I2C_Read... [16:08:54]Read from MH i2c: E2 0E 00 FC 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 42 [16:08:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:08:54]wFMCommunicate OK [16:08:54]SAM_PROTO_GetShiftState done [16:08:54]FM_GetShiftState done [16:08:54]req_shift_opened done [16:08:54]requested_item shift.open_date is exist - process it [16:08:54]req_shift_open_date [16:08:54]req_shift_open_date done [16:08:54]produce_requested_data done [16:08:54]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30664,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:08:54]process_action_free close_receipt [16:08:54]json_value_free [16:08:54]json_value_free done [16:08:54]process_json_proto returns [16:08:54]Send response to host [16:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30664,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:08:54]free response buf [16:08:54]execute_script done [16:08:54]execute_script returns [16:08:54]free content buf [16:08:54]Sock 9.Close socket [16:08:54]Sock 9.Thread stoped [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:25]accept exits with 10 [16:10:25]New connection [16:10:25]New thread 3067489636 created [16:10:25]Thread 3067346276 joined [16:10:25]Waiting for new connection... [16:10:25] Sock 10.Parse request [16:10:25]Sock 10.Check first char [16:10:25]Sock 10.First char is OK [16:10:25]request: POST /json_proto HTTP/1.0 [16:10:25]Method: POST [16:10:25]URL: /json_proto [16:10:25]Method is POST - this is cgi request [16:10:25]url: /json_proto [16:10:25]query_string will be loaded in cgi processing [16:10:25]execute_cgi json_proto POST (null) [16:10:25]execute_cgi path=json_proto method=POST [16:10:25]POST find Content-Length [16:10:25]Host: 172.17.51.3:8080 [16:10:25]Content-Length: 677 [16:10:25]Content-Type: application/json [16:10:25] [16:10:25]POST finish read [16:10:25]Found Content-Length = 677 [16:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:25]execute_script... [16:10:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:25]POST & json_proto [16:10:25]process_json_proto [16:10:25]json parsed OK: [16:10:25]protocol is kg_v1.0 [16:10:25]action value=close_receipt [16:10:25]process_action close_receipt [16:10:25]cmd_close_receipt [16:10:25]MH_GetDate [16:10:25]Write to MH i2c: F0 00 00 FD 4D 39 [16:10:25]Write i2c OK [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: F0 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: F0 09 00 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: F0 09 00 FD 4D 00 F7 7C 16 67 04 C1 95 66 F2 [16:10:25]GetLastDocTimeStamp 1729526936 [16:10:25]current date 1729527031 [16:10:25]FM_GetShiftState [16:10:25]SAM_PROTO_GetShiftState [16:10:25]wFMCommunicate request_size=4 [16:10:25]MH_SAM_APDU [16:10:25]CAPDU: 80 13 01 00 [16:10:25]Write to MH i2c: E2 08 00 FE 4D 80 13 01 00 00 00 00 00 C8 [16:10:25]Write i2c OK [16:10:25]MH_I2C_Read... [16:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:25]Read from MH i2c: E2 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 0E 00 [16:10:25]MH_I2C_Read... [16:10:25]Read from MH i2c: E2 0E 00 FE 4D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 44 [16:10:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:10:25]wFMCommunicate OK [16:10:25]SAM_PROTO_GetShiftState done [16:10:25]FM_GetShiftState done [16:10:25]opened in 1729471058 [16:10:25]opened+sec_in_day 1729557458 [16:10:25]quantity*price = 20003 [16:10:25]sum+1 = 20004 [16:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 162 21.10.2024 16:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30665 ФПД: 222332193026397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161031&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30665&fm=222332193026397&tin=02508201610067®Number=0000000000186857&sum=20000 [16:10:26]StoreToDocumentArchive [16:10:26]shift 115 fd 30665 [16:10:26]save to /storage/0115/doc_00030665 [16:10:26]save last doc name /storage/0115/doc_00030665 to /storage/kkm_last_doc_name [16:10:26]save OK [16:10:26]Clear old archive folders... [16:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:26]tlvbuf is 01DEA5B0 [16:10:26]SAM_PROTO_ClearQueue [16:10:26]wFMCommunicate request_size=4 [16:10:26]MH_SAM_APDU [16:10:26]CAPDU: 80 09 00 00 [16:10:26]Write to MH i2c: E2 08 00 0B 4E 80 09 00 00 00 00 00 00 CB [16:10:26]Write i2c OK [16:10:26]MH_I2C_Read... [16:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:26]Read from MH i2c: E2 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 03 00 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 03 00 0B 4E 00 90 00 CD [16:10:26]RAPDU: 90 00 [16:10:26]wFMCommunicate OK [16:10:26]SAM_PROTO_ClearQueue done [16:10:26]KKMCreateOFDPacket [16:10:26]OFDProtocolAddRootSTLVToBuf [16:10:26]FM_MakeSignedData [16:10:26]FM_MakeSignedData [16:10:26]SAM_PROTO_SignData [16:10:26]wFMCommunicate request_size=4 [16:10:26]MH_SAM_APDU [16:10:26]CAPDU: 80 0D 01 02 [16:10:26]Write to MH i2c: E2 08 00 0C 4E 80 0D 01 02 00 00 00 00 D3 [16:10:26]Write i2c OK [16:10:26]MH_I2C_Read... [16:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:26]Read from MH i2c: E2 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 03 00 [16:10:26]MH_I2C_Read... [16:10:26]Read from MH i2c: E2 03 00 0C 4E 00 90 00 CE [16:10:26]RAPDU: 90 00 [16:10:26]wFMCommunicate OK [16:10:26]wFMCommunicate request_size=255 [16:10:26]MH_SAM_APDU [16:10:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A2 00 00 00 F4 03 04 00 F7 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 77 00 00 35 04 06 00 CA [16:10:26]Write to MH i2c: E2 02 01 0D 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A2 00 00 00 F4 03 04 00 F7 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 77 00 00 35 04 06 00 CA 00 00 35 [16:10:26]Write i2c OK [16:10:26]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 03 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 03 00 0D 4E 00 90 00 CF [16:10:27]RAPDU: 90 00 [16:10:27]wFMCommunicate OK [16:10:27]wFMCommunicate request_size=10 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 0D 02 02 05 35 BF 63 31 5D [16:10:27]Write to MH i2c: E2 0D 00 0E 4E 80 0D 02 02 05 00 35 BF 63 31 5D 00 00 C5 [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 03 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 03 00 0E 4E 00 90 00 D0 [16:10:27]RAPDU: 90 00 [16:10:27]wFMCommunicate OK [16:10:27]wFMCommunicate request_size=4 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 0D 03 02 [16:10:27]Write to MH i2c: E2 08 00 0F 4E 80 0D 03 02 00 00 00 00 D8 [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0B 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 0B 00 0F 4E 00 CA 1D 95 9D 94 9E 23 CB 90 00 12 [16:10:27]RAPDU: CA 1D 95 9D 94 9E 23 CB 90 00 [16:10:27]wFMCommunicate OK [16:10:27]SAM_PROTO_SignData done [16:10:27]FM_MakeSignedData done [16:10:27]CreateOFDProtocolMessage [16:10:27]wFMCommunicate request_size=4 [16:10:27]MH_SAM_APDU [16:10:27]CAPDU: 80 11 00 00 [16:10:27]Write to MH i2c: E2 08 00 10 4E 80 11 00 00 00 00 00 00 D8 [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:27]Read from MH i2c: E2 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 17 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: E2 17 00 10 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 26 [16:10:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:10:27]wFMCommunicate OK [16:10:27]CreateOFDProtocolMessage done [16:10:27]OFDSenderStorePacket 30665 [16:10:27]StoreOFDPacket docnum=30665 [16:10:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 88 07 01 34 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A2 00 00 00 F4 03 04 00 F7 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 77 00 00 35 04 06 00 CA 35 BF 63 31 5D CA 1D 95 9D 94 9E 23 CB [16:10:27]CheckFolder [16:10:27]dirname=/storage/ofd_packets [16:10:27]CheckFolder done [16:10:27]ProducePacketName [16:10:27]name=ofd_packets/00030665 [16:10:27]NVStorageSaveData ofd_packets/00030665 [16:10:27]File name is /storage/ofd_packets/00030665 [16:10:27]Write 301 bytes [16:10:27]NVStorageSaveData done [16:10:27]OFDSenderStorePacket done [16:10:27]KKMCreateOFDPacket done [16:10:27]NVStorageSaveData kkm_last_timestamp [16:10:27]File name is /storage/kkm_last_timestamp [16:10:27]Write 4 bytes [16:10:27]NVStorageSaveData done [16:10:27]ExternCall_PrintAddStr [16:10:27]wPrintStart [16:10:27]Write to MH i2c: 01 00 00 11 4E 5F [16:10:27]Write i2c OK [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: 01 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: 01 07 00 [16:10:27]MH_I2C_Read... [16:10:27]Read from MH i2c: 01 07 00 11 4E 00 00 00 00 00 FF 0F 74 [16:10:27]RasterBufferAndPrint [16:10:27]line Счет N : (1)343075 [16:10:27]line ИНН: 02508201610067 [16:10:27]line Контрольно-Кассовый Чек [16:10:27]line ПРОДАЖА [16:10:27]line ТРК (МРК, ГНК) : 63 [16:10:27]line Товар: 2710124130 [16:10:27]line Аи-92-К-2 [16:10:27]line 2.990 * 66.90 [16:10:27]line = 200.03 [16:10:27]line НДС 12% НСП 1% [16:10:27]line > о реализуемом товаре [16:10:27]line ОКРУГЛЕНИЕ: -0.03 [16:10:27]line ИТОГО: 200.00 [16:10:27]line Внесено: 200.00 [16:10:27]line СДАЧА: 0.00 [16:10:27]line НСП 1% : 1.77 [16:10:27]line НДС 12% : 21.24 [16:10:27]line Наличными: 200.00 [16:10:27]line Безнал.: 0.00 [16:10:27]line Место: АЗС № 78 "Партнер Нефть" [16:10:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:10:27]line СНО: Общий режим [16:10:27]line Чек 162 21.10.2024 16:10 [16:10:27]line Смена: 115 ФФД: 1.0 [16:10:27]line ЗНМ: 0300000137 [16:10:27]line РНМ: 0000000000186857 [16:10:27]line Версия ККМ: v1.0 [16:10:27]line ФМ: 0000000002094219 [16:10:27]line ФД: 30665 [16:10:27]line ФПД: 222332193026397 [16:10:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161031&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30665&fm=222332193026397&tin=02508201610067®Number=0000000000186857&sum=20000 [16:10:27]OFD Sender: Processing packet 30665 [packets to send 10, broken 9] [16:10:27]ProducePacketName [16:10:27]name=ofd_packets/00030665 [16:10:27]OFD Sender: To server: pG, [16:10:27]CommunicateWithHost lk.salyk.kg:30040 [16:10:27]ConnectInit lk.salyk.kg [16:10:27]written 0, free lines is 4095 [16:10:27]Connected sock=7 [16:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 88 07 01 34 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A2 00 00 00 F4 03 04 00 F7 7C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 77 00 00 35 04 06 00 CA 35 BF 63 31 5D CA 1D 95 9D 94 9E 23 CB [16:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B0 FD 47 00 17 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 C9 77 00 00 F4 03 04 00 77 27 16 67 B6 04 01 00 00 F4 22 77 62 24 C3 F9 4E [16:10:28]CommunicateWithHost err = 0 [16:10:28]CheckOFDResponse [16:10:28]1017 (14) - 77093643461234 [16:10:28]1041 (16) - 0000000002094219 [16:10:28]1040 (4) - 30665 [16:10:28]1012 (4) - 21.10.2024 10:05 [16:10:28]1206 (1) - 0 [16:10:28]OFD Sender: Remove packet 30665 [16:10:28]ProducePacketName [16:10:28]name=ofd_packets/00030665 [16:10:28]NVStorageDeleteData [16:10:28]Write to MH i2c: 01 00 00 3C 4E 8A [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: 01 07 00 3C 4E 00 00 00 00 00 EF 0C 8C [16:10:28]RasterBufferAndPrint [16:10:28]line [16:10:28]line [16:10:28]line [16:10:28]line [16:10:28]line [16:10:28]written 0, free lines is 3317 [16:10:28]MH_Cut [16:10:28]Write to MH i2c: D1 01 00 43 4E 01 63 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: D1 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: D1 01 00 [16:10:28]MH_I2C_Read... [16:10:28]Read from MH i2c: D1 01 00 43 4E 00 62 [16:10:28]Write to MH i2c: 01 00 00 44 4E 92 [16:10:28]Write i2c OK [16:10:28]MH_I2C_Read... [16:10:28]OFD Sender: No OFD packet to send [16:10:28]*** Cut start [16:10:28]*** Partial cut [16:10:28]*** CUTSNS_PIN = 1 [16:10:28]*** CUTSNS_PIN = 0 [16:10:29]*** Brake cut motor [16:10:29]Read from MH i2c: 01 [16:10:29]MH_I2C_Read... [16:10:29]*** Stop cut motor [16:10:29]*** Cut end [16:10:29]Read from MH i2c: 01 07 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: 01 07 00 44 4E 00 00 00 00 00 FF 0F A7 [16:10:29]process_action close_receipt done [16:10:29]requested_data is exist [16:10:29]produce_requested_data [16:10:29]requested_item fm.sn is exist - process it [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 11 00 00 [16:10:29]Write to MH i2c: E2 08 00 45 4E 80 11 00 00 00 00 00 00 0D [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 17 00 45 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [16:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:10:29]wFMCommunicate OK [16:10:29]requested_item fd.num is exist - process it [16:10:29]SAM_PROTO_GetFieldsCounters [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 13 00 00 [16:10:29]Write to MH i2c: E2 08 00 46 4E 80 13 00 00 00 00 00 00 10 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 62 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 62 00 46 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 77 00 00 0E 04 04 00 73 00 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 CF [16:10:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 C9 77 00 00 0E 04 04 00 73 00 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 [16:10:29]wFMCommunicate OK [16:10:29]SAM_PROTO_GetFieldsCounters done [16:10:29]requested_item shift.num is exist - process it [16:10:29]requested_item shift.opened is exist - process it [16:10:29]req_shift_opened [16:10:29]FM_GetShiftState [16:10:29]SAM_PROTO_GetShiftState [16:10:29]wFMCommunicate request_size=4 [16:10:29]MH_SAM_APDU [16:10:29]CAPDU: 80 13 01 00 [16:10:29]Write to MH i2c: E2 08 00 47 4E 80 13 01 00 00 00 00 00 12 [16:10:29]Write i2c OK [16:10:29]MH_I2C_Read... [16:10:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:29]Read from MH i2c: E2 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0E 00 [16:10:29]MH_I2C_Read... [16:10:29]Read from MH i2c: E2 0E 00 47 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8E [16:10:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:10:29]wFMCommunicate OK [16:10:29]SAM_PROTO_GetShiftState done [16:10:29]FM_GetShiftState done [16:10:29]req_shift_opened done [16:10:29]requested_item shift.open_date is exist - process it [16:10:29]req_shift_open_date [16:10:29]req_shift_open_date done [16:10:29]produce_requested_data done [16:10:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30665,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:10:29]process_action_free close_receipt [16:10:29]json_value_free [16:10:29]json_value_free done [16:10:29]process_json_proto returns [16:10:29]Send response to host [16:10:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30665,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:10:29]free response buf [16:10:29]execute_script done [16:10:29]execute_script returns [16:10:29]free content buf [16:10:29]Sock 10.Close socket [16:10:29]Sock 10.Thread stoped [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:17]accept exits with 9 [16:24:17]New connection [16:24:17]New thread 3067346276 created [16:24:17]Thread 3067489636 joined [16:24:17]Waiting for new connection... [16:24:17] Sock 9.Parse request [16:24:17]Sock 9.Check first char [16:24:17]Sock 9.First char is OK [16:24:17]request: POST /json_proto HTTP/1.0 [16:24:17]Method: POST [16:24:17]URL: /json_proto [16:24:17]Method is POST - this is cgi request [16:24:17]url: /json_proto [16:24:17]query_string will be loaded in cgi processing [16:24:17]execute_cgi json_proto POST (null) [16:24:17]execute_cgi path=json_proto method=POST [16:24:17]POST find Content-Length [16:24:17]Host: 172.17.51.3:8080 [16:24:17]Content-Length: 677 [16:24:17]Content-Type: application/json [16:24:17] [16:24:17]POST finish read [16:24:17]Found Content-Length = 677 [16:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:17]execute_script... [16:24:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:17]POST & json_proto [16:24:17]process_json_proto [16:24:17]json parsed OK: [16:24:17]protocol is kg_v1.0 [16:24:17]action value=close_receipt [16:24:17]process_action close_receipt [16:24:17]cmd_close_receipt [16:24:17]MH_GetDate [16:24:17]Write to MH i2c: F0 00 00 48 4E 85 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 09 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: F0 09 00 48 4E 00 36 80 16 67 04 C1 95 66 81 [16:24:17]GetLastDocTimeStamp 1729527031 [16:24:17]current date 1729527862 [16:24:17]FM_GetShiftState [16:24:17]SAM_PROTO_GetShiftState [16:24:17]wFMCommunicate request_size=4 [16:24:17]MH_SAM_APDU [16:24:17]CAPDU: 80 13 01 00 [16:24:17]Write to MH i2c: E2 08 00 49 4E 80 13 01 00 00 00 00 00 14 [16:24:17]Write i2c OK [16:24:17]MH_I2C_Read... [16:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:17]Read from MH i2c: E2 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 [16:24:17]MH_I2C_Read... [16:24:17]Read from MH i2c: E2 0E 00 49 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 90 [16:24:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:24:17]wFMCommunicate OK [16:24:17]SAM_PROTO_GetShiftState done [16:24:17]FM_GetShiftState done [16:24:17]opened in 1729471058 [16:24:17]opened+sec_in_day 1729557458 [16:24:17]quantity*price = 20003 [16:24:17]sum+1 = 20004 [16:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 163 21.10.2024 16:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30666 ФПД: 267405276371903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30666&fm=267405276371903&tin=02508201610067®Number=0000000000186857&sum=20000 [16:24:18]StoreToDocumentArchive [16:24:18]shift 115 fd 30666 [16:24:18]save to /storage/0115/doc_00030666 [16:24:18]save last doc name /storage/0115/doc_00030666 to /storage/kkm_last_doc_name [16:24:18]save OK [16:24:18]Clear old archive folders... [16:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:18]tlvbuf is B6E2B200 [16:24:18]SAM_PROTO_ClearQueue [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 09 00 00 [16:24:18]Write to MH i2c: E2 08 00 56 4E 80 09 00 00 00 00 00 00 16 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 56 4E 00 90 00 18 [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]SAM_PROTO_ClearQueue done [16:24:18]KKMCreateOFDPacket [16:24:18]OFDProtocolAddRootSTLVToBuf [16:24:18]FM_MakeSignedData [16:24:18]FM_MakeSignedData [16:24:18]SAM_PROTO_SignData [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 01 02 [16:24:18]Write to MH i2c: E2 08 00 57 4E 80 0D 01 02 00 00 00 00 1E [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 57 4E 00 90 00 19 [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=255 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A3 00 00 00 F4 03 04 00 36 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 77 00 00 35 04 06 00 F3 [16:24:18]Write to MH i2c: E2 02 01 58 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A3 00 00 00 F4 03 04 00 36 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 77 00 00 35 04 06 00 F3 00 00 EE [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 58 4E 00 90 00 1A [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=10 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 02 02 05 34 24 82 5B BF [16:24:18]Write to MH i2c: E2 0D 00 59 4E 80 0D 02 02 05 00 34 24 82 5B BF 00 00 1F [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 03 00 59 4E 00 90 00 1B [16:24:18]RAPDU: 90 00 [16:24:18]wFMCommunicate OK [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 0D 03 02 [16:24:18]Write to MH i2c: E2 08 00 5A 4E 80 0D 03 02 00 00 00 00 23 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 0B 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 0B 00 5A 4E 00 DF A5 C4 8B 89 DA E2 62 90 00 9E [16:24:18]RAPDU: DF A5 C4 8B 89 DA E2 62 90 00 [16:24:18]wFMCommunicate OK [16:24:18]SAM_PROTO_SignData done [16:24:18]FM_MakeSignedData done [16:24:18]CreateOFDProtocolMessage [16:24:18]wFMCommunicate request_size=4 [16:24:18]MH_SAM_APDU [16:24:18]CAPDU: 80 11 00 00 [16:24:18]Write to MH i2c: E2 08 00 5B 4E 80 11 00 00 00 00 00 00 23 [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:18]Read from MH i2c: E2 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 17 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: E2 17 00 5B 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [16:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:18]wFMCommunicate OK [16:24:18]CreateOFDProtocolMessage done [16:24:18]OFDSenderStorePacket 30666 [16:24:18]StoreOFDPacket docnum=30666 [16:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DA C7 07 01 44 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A3 00 00 00 F4 03 04 00 36 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 77 00 00 35 04 06 00 F3 34 24 82 5B BF DF A5 C4 8B 89 DA E2 62 [16:24:18]CheckFolder [16:24:18]dirname=/storage/ofd_packets [16:24:18]CheckFolder done [16:24:18]ProducePacketName [16:24:18]name=ofd_packets/00030666 [16:24:18]NVStorageSaveData ofd_packets/00030666 [16:24:18]File name is /storage/ofd_packets/00030666 [16:24:18]Write 301 bytes [16:24:18]NVStorageSaveData done [16:24:18]OFDSenderStorePacket done [16:24:18]KKMCreateOFDPacket done [16:24:18]NVStorageSaveData kkm_last_timestamp [16:24:18]File name is /storage/kkm_last_timestamp [16:24:18]Write 4 bytes [16:24:18]NVStorageSaveData done [16:24:18]ExternCall_PrintAddStr [16:24:18]wPrintStart [16:24:18]Write to MH i2c: 01 00 00 5C 4E AA [16:24:18]Write i2c OK [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 [16:24:18]MH_I2C_Read... [16:24:18]Read from MH i2c: 01 07 00 5C 4E 00 00 00 00 00 FF 0F BF [16:24:18]RasterBufferAndPrint [16:24:18]line Счет N : (1)343076 [16:24:18]line ИНН: 02508201610067 [16:24:18]line Контрольно-Кассовый Чек [16:24:18]line ПРОДАЖА [16:24:18]line ТРК (МРК, ГНК) : 53 [16:24:18]line Товар: 2710124130 [16:24:18]line Аи-92-К-2 [16:24:18]line 2.990 * 66.90 [16:24:18]line = 200.03 [16:24:18]line НДС 12% НСП 1% [16:24:18]line > о реализуемом товаре [16:24:18]line ОКРУГЛЕНИЕ: -0.03 [16:24:18]line ИТОГО: 200.00 [16:24:18]line Внесено: 200.00 [16:24:18]line СДАЧА: 0.00 [16:24:18]line НСП 1% : 1.77 [16:24:18]line НДС 12% : 21.24 [16:24:18]line Наличными: 200.00 [16:24:18]line Безнал.: 0.00 [16:24:18]line Место: АЗС № 78 "Партнер Нефть" [16:24:18]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:24:18]line СНО: Общий режим [16:24:18]line Чек 163 21.10.2024 16:24 [16:24:18]line Смена: 115 ФФД: 1.0 [16:24:18]line ЗНМ: 0300000137 [16:24:18]line РНМ: 0000000000186857 [16:24:18]line Версия ККМ: v1.0 [16:24:18]line ФМ: 0000000002094219 [16:24:18]line ФД: 30666 [16:24:18]line ФПД: 267405276371903 [16:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162422&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30666&fm=267405276371903&tin=02508201610067®Number=0000000000186857&sum=20000 [16:24:19]OFD Sender: Processing packet 30666 [packets to send 10, broken 9] [16:24:19]ProducePacketName [16:24:19]name=ofd_packets/00030666 [16:24:19]OFD Sender: To server: pG, [16:24:19]CommunicateWithHost lk.salyk.kg:30040 [16:24:19]ConnectInit lk.salyk.kg [16:24:19]written 0, free lines is 4095 [16:24:19]Connected sock=10 [16:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 DA C7 07 01 44 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 A3 00 00 00 F4 03 04 00 36 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 77 00 00 35 04 06 00 F3 34 24 82 5B BF DF A5 C4 8B 89 DA E2 62 [16:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1A 1A 47 00 68 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CA 77 00 00 F4 03 04 00 B7 2A 16 67 B6 04 01 00 00 FE 16 B6 DB D8 71 72 98 [16:24:19]CommunicateWithHost err = 0 [16:24:19]CheckOFDResponse [16:24:19]1017 (14) - 77093643461234 [16:24:19]1041 (16) - 0000000002094219 [16:24:19]1040 (4) - 30666 [16:24:19]1012 (4) - 21.10.2024 10:19 [16:24:19]1206 (1) - 0 [16:24:19]OFD Sender: Remove packet 30666 [16:24:19]ProducePacketName [16:24:19]name=ofd_packets/00030666 [16:24:19]NVStorageDeleteData [16:24:19]Write to MH i2c: 01 00 00 87 4E D5 [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: 01 07 00 87 4E 00 00 00 00 00 F3 0C DB [16:24:19]RasterBufferAndPrint [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]line [16:24:19]written 0, free lines is 3324 [16:24:19]MH_Cut [16:24:19]Write to MH i2c: D1 01 00 8E 4E 01 AE [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 01 00 [16:24:19]MH_I2C_Read... [16:24:19]Read from MH i2c: D1 01 00 8E 4E 00 AD [16:24:19]Write to MH i2c: 01 00 00 8F 4E DD [16:24:19]Write i2c OK [16:24:19]MH_I2C_Read... [16:24:20]OFD Sender: No OFD packet to send [16:24:20]*** Cut start [16:24:20]*** Partial cut [16:24:20]*** CUTSNS_PIN = 1 [16:24:20]*** CUTSNS_PIN = 0 [16:24:20]*** Brake cut motor [16:24:20]Read from MH i2c: 01 [16:24:20]MH_I2C_Read... [16:24:20]Read from MH i2c: 01 07 00 [16:24:20]MH_I2C_Read... [16:24:20]*** Stop cut motor [16:24:20]*** Cut end [16:24:20]Read from MH i2c: 01 07 00 8F 4E 00 00 00 00 00 FF 0F F2 [16:24:20]process_action close_receipt done [16:24:20]requested_data is exist [16:24:20]produce_requested_data [16:24:20]requested_item fm.sn is exist - process it [16:24:20]wFMCommunicate request_size=4 [16:24:20]MH_SAM_APDU [16:24:20]CAPDU: 80 11 00 00 [16:24:20]Write to MH i2c: E2 08 00 90 4E 80 11 00 00 00 00 00 00 58 [16:24:20]Write i2c OK [16:24:20]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 17 00 90 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [16:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:21]wFMCommunicate OK [16:24:21]requested_item fd.num is exist - process it [16:24:21]SAM_PROTO_GetFieldsCounters [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 00 00 [16:24:21]Write to MH i2c: E2 08 00 91 4E 80 13 00 00 00 00 00 00 5B [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 62 00 91 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 77 00 00 0E 04 04 00 73 00 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 1E [16:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CA 77 00 00 0E 04 04 00 73 00 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 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetFieldsCounters done [16:24:21]requested_item shift.num is exist - process it [16:24:21]requested_item shift.opened is exist - process it [16:24:21]req_shift_opened [16:24:21]FM_GetShiftState [16:24:21]SAM_PROTO_GetShiftState [16:24:21]wFMCommunicate request_size=4 [16:24:21]MH_SAM_APDU [16:24:21]CAPDU: 80 13 01 00 [16:24:21]Write to MH i2c: E2 08 00 92 4E 80 13 01 00 00 00 00 00 5D [16:24:21]Write i2c OK [16:24:21]MH_I2C_Read... [16:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:21]Read from MH i2c: E2 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 [16:24:21]MH_I2C_Read... [16:24:21]Read from MH i2c: E2 0E 00 92 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D9 [16:24:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:24:21]wFMCommunicate OK [16:24:21]SAM_PROTO_GetShiftState done [16:24:21]FM_GetShiftState done [16:24:21]req_shift_opened done [16:24:21]requested_item shift.open_date is exist - process it [16:24:21]req_shift_open_date [16:24:21]req_shift_open_date done [16:24:21]produce_requested_data done [16:24:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30666,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:24:21]process_action_free close_receipt [16:24:21]json_value_free [16:24:21]json_value_free done [16:24:21]process_json_proto returns [16:24:21]Send response to host [16:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30666,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:24:21]free response buf [16:24:21]execute_script done [16:24:21]execute_script returns [16:24:21]free content buf [16:24:21]Sock 9.Close socket [16:24:21]Sock 9.Thread stoped [16:24:23]accept exits with 7 [16:24:23]New connection [16:24:23]New thread 3067489636 created [16:24:23]Thread 3067346276 joined [16:24:23]Waiting for new connection... [16:24:23] Sock 7.Parse request [16:24:23]Sock 7.Check first char [16:24:23]Sock 7.First char is OK [16:24:23]request: POST /json_proto HTTP/1.0 [16:24:23]Method: POST [16:24:23]URL: /json_proto [16:24:23]Method is POST - this is cgi request [16:24:23]url: /json_proto [16:24:23]query_string will be loaded in cgi processing [16:24:23]execute_cgi json_proto POST (null) [16:24:23]execute_cgi path=json_proto method=POST [16:24:23]POST find Content-Length [16:24:23]Host: 172.17.51.3:8080 [16:24:23]Content-Length: 677 [16:24:23]Content-Type: application/json [16:24:23] [16:24:23]POST finish read [16:24:23]Found Content-Length = 677 [16:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:23]execute_script... [16:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:23]POST & json_proto [16:24:23]process_json_proto [16:24:23]json parsed OK: [16:24:23]protocol is kg_v1.0 [16:24:23]action value=close_receipt [16:24:23]process_action close_receipt [16:24:23]cmd_close_receipt [16:24:23]MH_GetDate [16:24:23]Write to MH i2c: F0 00 00 93 4E D0 [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 09 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: F0 09 00 93 4E 00 3D 80 16 67 04 C1 95 66 D3 [16:24:23]GetLastDocTimeStamp 1729527862 [16:24:23]current date 1729527869 [16:24:23]FM_GetShiftState [16:24:23]SAM_PROTO_GetShiftState [16:24:23]wFMCommunicate request_size=4 [16:24:23]MH_SAM_APDU [16:24:23]CAPDU: 80 13 01 00 [16:24:23]Write to MH i2c: E2 08 00 94 4E 80 13 01 00 00 00 00 00 5F [16:24:23]Write i2c OK [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: E2 [16:24:23]MH_I2C_Read... [16:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:23]Read from MH i2c: E2 0E 00 [16:24:23]MH_I2C_Read... [16:24:23]Read from MH i2c: E2 0E 00 94 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DB [16:24:23]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:24:23]wFMCommunicate OK [16:24:23]SAM_PROTO_GetShiftState done [16:24:23]FM_GetShiftState done [16:24:23]opened in 1729471058 [16:24:23]opened+sec_in_day 1729557458 [16:24:23]quantity*price = 30038 [16:24:23]sum+1 = 30039 [16:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 164 21.10.2024 16:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30667 ФПД: 46558185212369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162429&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30667&fm=46558185212369&tin=02508201610067®Number=0000000000186857&sum=30000 [16:24:24]StoreToDocumentArchive [16:24:24]shift 115 fd 30667 [16:24:24]save to /storage/0115/doc_00030667 [16:24:24]save last doc name /storage/0115/doc_00030667 to /storage/kkm_last_doc_name [16:24:24]save OK [16:24:24]Clear old archive folders... [16:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:24]tlvbuf is 01E01380 [16:24:24]SAM_PROTO_ClearQueue [16:24:24]wFMCommunicate request_size=4 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 09 00 00 [16:24:24]Write to MH i2c: E2 08 00 A1 4E 80 09 00 00 00 00 00 00 61 [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:24]Read from MH i2c: E2 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 A1 4E 00 90 00 63 [16:24:24]RAPDU: 90 00 [16:24:24]wFMCommunicate OK [16:24:24]SAM_PROTO_ClearQueue done [16:24:24]KKMCreateOFDPacket [16:24:24]OFDProtocolAddRootSTLVToBuf [16:24:24]FM_MakeSignedData [16:24:24]FM_MakeSignedData [16:24:24]SAM_PROTO_SignData [16:24:24]wFMCommunicate request_size=4 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 0D 01 02 [16:24:24]Write to MH i2c: E2 08 00 A2 4E 80 0D 01 02 00 00 00 00 69 [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:24]Read from MH i2c: E2 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 [16:24:24]MH_I2C_Read... [16:24:24]Read from MH i2c: E2 03 00 A2 4E 00 90 00 64 [16:24:24]RAPDU: 90 00 [16:24:24]wFMCommunicate OK [16:24:24]wFMCommunicate request_size=255 [16:24:24]MH_SAM_APDU [16:24:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 3D 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 77 00 00 35 04 06 00 2A [16:24:24]Write to MH i2c: E2 02 01 A3 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 3D 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 77 00 00 35 04 06 00 2A 00 00 AB [16:24:24]Write i2c OK [16:24:24]MH_I2C_Read... [16:24:25]OFD Sender: No OFD packet to send [16:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 A3 4E 00 90 00 65 [16:24:25]RAPDU: 90 00 [16:24:25]wFMCommunicate OK [16:24:25]wFMCommunicate request_size=10 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 0D 02 02 05 58 2C 17 49 D1 [16:24:25]Write to MH i2c: E2 0D 00 A4 4E 80 0D 02 02 05 00 58 2C 17 49 D1 00 00 2B [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 03 00 A4 4E 00 90 00 66 [16:24:25]RAPDU: 90 00 [16:24:25]wFMCommunicate OK [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 0D 03 02 [16:24:25]Write to MH i2c: E2 08 00 A5 4E 80 0D 03 02 00 00 00 00 6E [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0B 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 0B 00 A5 4E 00 AD 03 8E 5F BC 07 CC 4F 90 00 EA [16:24:25]RAPDU: AD 03 8E 5F BC 07 CC 4F 90 00 [16:24:25]wFMCommunicate OK [16:24:25]SAM_PROTO_SignData done [16:24:25]FM_MakeSignedData done [16:24:25]CreateOFDProtocolMessage [16:24:25]wFMCommunicate request_size=4 [16:24:25]MH_SAM_APDU [16:24:25]CAPDU: 80 11 00 00 [16:24:25]Write to MH i2c: E2 08 00 A6 4E 80 11 00 00 00 00 00 00 6E [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:25]Read from MH i2c: E2 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 17 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: E2 17 00 A6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [16:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:25]wFMCommunicate OK [16:24:25]CreateOFDProtocolMessage done [16:24:25]OFDSenderStorePacket 30667 [16:24:25]StoreOFDPacket docnum=30667 [16:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D A4 07 01 37 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 3D 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 77 00 00 35 04 06 00 2A 58 2C 17 49 D1 AD 03 8E 5F BC 07 CC 4F [16:24:25]CheckFolder [16:24:25]dirname=/storage/ofd_packets [16:24:25]CheckFolder done [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00030667 [16:24:25]NVStorageSaveData ofd_packets/00030667 [16:24:25]File name is /storage/ofd_packets/00030667 [16:24:25]Write 301 bytes [16:24:25]NVStorageSaveData done [16:24:25]OFDSenderStorePacket done [16:24:25]KKMCreateOFDPacket done [16:24:25]NVStorageSaveData kkm_last_timestamp [16:24:25]File name is /storage/kkm_last_timestamp [16:24:25]Write 4 bytes [16:24:25]NVStorageSaveData done [16:24:25]ExternCall_PrintAddStr [16:24:25]wPrintStart [16:24:25]Write to MH i2c: 01 00 00 A7 4E F5 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 A7 4E 00 00 00 00 00 FF 0F 0A [16:24:25]RasterBufferAndPrint [16:24:25]line Счет N : (1)343077 [16:24:25]line ИНН: 02508201610067 [16:24:25]line Контрольно-Кассовый Чек [16:24:25]line ПРОДАЖА [16:24:25]line ТРК (МРК, ГНК) : 43 [16:24:25]line Товар: 2710124130 [16:24:25]line Аи-92-К-2 [16:24:25]line 4.490 * 66.90 [16:24:25]line = 300.38 [16:24:25]line НДС 12% НСП 1% [16:24:25]line > о реализуемом товаре [16:24:25]line ОКРУГЛЕНИЕ: -0.38 [16:24:25]line ИТОГО: 300.00 [16:24:25]line Внесено: 300.00 [16:24:25]line СДАЧА: 0.00 [16:24:25]line НСП 1% : 2.66 [16:24:25]line НДС 12% : 31.90 [16:24:25]line Наличными: 300.00 [16:24:25]line Безнал.: 0.00 [16:24:25]line Место: АЗС № 78 "Партнер Нефть" [16:24:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:24:25]line СНО: Общий режим [16:24:25]line Чек 164 21.10.2024 16:24 [16:24:25]line Смена: 115 ФФД: 1.0 [16:24:25]line ЗНМ: 0300000137 [16:24:25]line РНМ: 0000000000186857 [16:24:25]line Версия ККМ: v1.0 [16:24:25]line ФМ: 0000000002094219 [16:24:25]line ФД: 30667 [16:24:25]line ФПД: 46558185212369 [16:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162429&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30667&fm=46558185212369&tin=02508201610067®Number=0000000000186857&sum=30000 [16:24:25]written 0, free lines is 4095 [16:24:25]OFD Sender: Processing packet 30667 [packets to send 10, broken 9] [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00030667 [16:24:25]OFD Sender: To server: pG, [16:24:25]CommunicateWithHost lk.salyk.kg:30040 [16:24:25]ConnectInit lk.salyk.kg [16:24:25]Connected sock=10 [16:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0D A4 07 01 37 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 3D 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 77 00 00 35 04 06 00 2A 58 2C 17 49 D1 AD 03 8E 5F BC 07 CC 4F [16:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CE D6 47 00 A5 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CB 77 00 00 F4 03 04 00 BD 2A 16 67 B6 04 01 00 00 D9 08 5F BD A9 1D D8 20 [16:24:25]CommunicateWithHost err = 0 [16:24:25]CheckOFDResponse [16:24:25]1017 (14) - 77093643461234 [16:24:25]1041 (16) - 0000000002094219 [16:24:25]1040 (4) - 30667 [16:24:25]1012 (4) - 21.10.2024 10:19 [16:24:25]1206 (1) - 0 [16:24:25]OFD Sender: Remove packet 30667 [16:24:25]ProducePacketName [16:24:25]name=ofd_packets/00030667 [16:24:25]NVStorageDeleteData [16:24:25]Write to MH i2c: 01 00 00 D2 4E 20 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: 01 07 00 D2 4E 00 00 00 00 00 FE 0C 31 [16:24:25]RasterBufferAndPrint [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]line [16:24:25]written 0, free lines is 3341 [16:24:25]MH_Cut [16:24:25]Write to MH i2c: D1 01 00 D9 4E 01 F9 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 01 00 [16:24:25]MH_I2C_Read... [16:24:25]Read from MH i2c: D1 01 00 D9 4E 00 F8 [16:24:25]Write to MH i2c: 01 00 00 DA 4E 28 [16:24:25]Write i2c OK [16:24:25]MH_I2C_Read... [16:24:26]OFD Sender: No OFD packet to send [16:24:26]*** Cut start [16:24:26]*** Partial cut [16:24:26]*** CUTSNS_PIN = 1 [16:24:26]*** CUTSNS_PIN = 0 [16:24:26]*** Brake cut motor [16:24:27]Read from MH i2c: 01 [16:24:27]MH_I2C_Read... [16:24:27]*** Stop cut motor [16:24:27]*** Cut end [16:24:27]Read from MH i2c: 01 07 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: 01 07 00 DA 4E 00 00 00 00 00 FF 0F 3D [16:24:27]process_action close_receipt done [16:24:27]requested_data is exist [16:24:27]produce_requested_data [16:24:27]requested_item fm.sn is exist - process it [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 11 00 00 [16:24:27]Write to MH i2c: E2 08 00 DB 4E 80 11 00 00 00 00 00 00 A3 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 17 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 17 00 DB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [16:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:24:27]wFMCommunicate OK [16:24:27]requested_item fd.num is exist - process it [16:24:27]SAM_PROTO_GetFieldsCounters [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 13 00 00 [16:24:27]Write to MH i2c: E2 08 00 DC 4E 80 13 00 00 00 00 00 00 A6 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 62 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 62 00 DC 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 77 00 00 0E 04 04 00 73 00 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 6D [16:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CB 77 00 00 0E 04 04 00 73 00 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 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_GetFieldsCounters done [16:24:27]requested_item shift.num is exist - process it [16:24:27]requested_item shift.opened is exist - process it [16:24:27]req_shift_opened [16:24:27]FM_GetShiftState [16:24:27]SAM_PROTO_GetShiftState [16:24:27]wFMCommunicate request_size=4 [16:24:27]MH_SAM_APDU [16:24:27]CAPDU: 80 13 01 00 [16:24:27]Write to MH i2c: E2 08 00 DD 4E 80 13 01 00 00 00 00 00 A8 [16:24:27]Write i2c OK [16:24:27]MH_I2C_Read... [16:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:27]Read from MH i2c: E2 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0E 00 [16:24:27]MH_I2C_Read... [16:24:27]Read from MH i2c: E2 0E 00 DD 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 24 [16:24:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:24:27]wFMCommunicate OK [16:24:27]SAM_PROTO_GetShiftState done [16:24:27]FM_GetShiftState done [16:24:27]req_shift_opened done [16:24:27]requested_item shift.open_date is exist - process it [16:24:27]req_shift_open_date [16:24:27]req_shift_open_date done [16:24:27]produce_requested_data done [16:24:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30667,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:24:27]process_action_free close_receipt [16:24:27]json_value_free [16:24:27]json_value_free done [16:24:27]process_json_proto returns [16:24:27]Send response to host [16:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30667,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:24:27]free response buf [16:24:27]execute_script done [16:24:27]execute_script returns [16:24:27]free content buf [16:24:27]Sock 7.Close socket [16:24:27]Sock 7.Thread stoped [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:07]accept exits with 9 [16:25:07]New connection [16:25:07]New thread 3067346276 created [16:25:07]Thread 3067489636 joined [16:25:07]Waiting for new connection... [16:25:07] Sock 9.Parse request [16:25:07]Sock 9.Check first char [16:25:07]Sock 9.First char is OK [16:25:07]request: POST /json_proto HTTP/1.0 [16:25:07]Method: POST [16:25:07]URL: /json_proto [16:25:07]Method is POST - this is cgi request [16:25:07]url: /json_proto [16:25:07]query_string will be loaded in cgi processing [16:25:07]execute_cgi json_proto POST (null) [16:25:07]execute_cgi path=json_proto method=POST [16:25:07]POST find Content-Length [16:25:07]Host: 172.17.51.3:8080 [16:25:07]Content-Length: 683 [16:25:07]Content-Type: application/json [16:25:07] [16:25:07]POST finish read [16:25:07]Found Content-Length = 683 [16:25:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:07]execute_script... [16:25:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:25:07]POST & json_proto [16:25:07]process_json_proto [16:25:07]json parsed OK: [16:25:07]protocol is kg_v1.0 [16:25:07]action value=close_receipt [16:25:07]process_action close_receipt [16:25:07]cmd_close_receipt [16:25:07]MH_GetDate [16:25:07]Write to MH i2c: F0 00 00 DE 4E 1B [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: F0 09 00 DE 4E 00 69 80 16 67 04 C1 95 66 4A [16:25:07]GetLastDocTimeStamp 1729527869 [16:25:07]current date 1729527913 [16:25:07]FM_GetShiftState [16:25:07]SAM_PROTO_GetShiftState [16:25:07]wFMCommunicate request_size=4 [16:25:07]MH_SAM_APDU [16:25:07]CAPDU: 80 13 01 00 [16:25:07]Write to MH i2c: E2 08 00 DF 4E 80 13 01 00 00 00 00 00 AA [16:25:07]Write i2c OK [16:25:07]MH_I2C_Read... [16:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:07]Read from MH i2c: E2 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 [16:25:07]MH_I2C_Read... [16:25:07]Read from MH i2c: E2 0E 00 DF 4E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 26 [16:25:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:25:07]wFMCommunicate OK [16:25:07]SAM_PROTO_GetShiftState done [16:25:07]FM_GetShiftState done [16:25:07]opened in 1729471058 [16:25:07]opened+sec_in_day 1729557458 [16:25:07]quantity*price = 50025 [16:25:07]sum+1 = 50027 [16:25:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 165 21.10.2024 16:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30668 ФПД: 179900971338963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30668&fm=179900971338963&tin=02508201610067®Number=0000000000186857&sum=50000 [16:25:08]StoreToDocumentArchive [16:25:08]shift 115 fd 30668 [16:25:08]save to /storage/0115/doc_00030668 [16:25:08]save last doc name /storage/0115/doc_00030668 to /storage/kkm_last_doc_name [16:25:08]save OK [16:25:08]Clear old archive folders... [16:25:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:25:08]tlvbuf is B6F5DC50 [16:25:08]SAM_PROTO_ClearQueue [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 09 00 00 [16:25:08]Write to MH i2c: E2 08 00 EC 4E 80 09 00 00 00 00 00 00 AC [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 EC 4E 00 90 00 AE [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_ClearQueue done [16:25:08]KKMCreateOFDPacket [16:25:08]OFDProtocolAddRootSTLVToBuf [16:25:08]FM_MakeSignedData [16:25:08]FM_MakeSignedData [16:25:08]SAM_PROTO_SignData [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 01 02 [16:25:08]Write to MH i2c: E2 08 00 ED 4E 80 0D 01 02 00 00 00 00 B4 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 ED 4E 00 90 00 AF [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=255 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 77 00 [16:25:08]Write to MH i2c: E2 02 01 EE 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 77 00 00 00 7F [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 EE 4E 00 90 00 B0 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=16 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A3 9E 75 7D CC D3 [16:25:08]Write to MH i2c: E2 13 00 EF 4E 80 0D 02 02 0B 00 00 35 04 06 00 A3 9E 75 7D CC D3 00 00 DE [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 03 00 EF 4E 00 90 00 B1 [16:25:08]RAPDU: 90 00 [16:25:08]wFMCommunicate OK [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 0D 03 02 [16:25:08]Write to MH i2c: E2 08 00 F0 4E 80 0D 03 02 00 00 00 00 B9 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:08]Read from MH i2c: E2 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0B 00 [16:25:08]MH_I2C_Read... [16:25:08]Read from MH i2c: E2 0B 00 F0 4E 00 FB 9A 13 DD 65 AD CF BA 90 00 DA [16:25:08]RAPDU: FB 9A 13 DD 65 AD CF BA 90 00 [16:25:08]wFMCommunicate OK [16:25:08]SAM_PROTO_SignData done [16:25:08]FM_MakeSignedData done [16:25:08]CreateOFDProtocolMessage [16:25:08]wFMCommunicate request_size=4 [16:25:08]MH_SAM_APDU [16:25:08]CAPDU: 80 11 00 00 [16:25:08]Write to MH i2c: E2 08 00 F1 4E 80 11 00 00 00 00 00 00 B9 [16:25:08]Write i2c OK [16:25:08]MH_I2C_Read... [16:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:09]Read from MH i2c: E2 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: E2 17 00 F1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [16:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:25:09]wFMCommunicate OK [16:25:09]CreateOFDProtocolMessage done [16:25:09]OFDSenderStorePacket 30668 [16:25:09]StoreOFDPacket docnum=30668 [16:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 FE F6 0D 01 B1 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 77 00 00 35 04 06 00 A3 9E 75 7D CC D3 FB 9A 13 DD 65 AD CF BA [16:25:09]CheckFolder [16:25:09]dirname=/storage/ofd_packets [16:25:09]CheckFolder done [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00030668 [16:25:09]NVStorageSaveData ofd_packets/00030668 [16:25:09]File name is /storage/ofd_packets/00030668 [16:25:09]Write 307 bytes [16:25:09]NVStorageSaveData done [16:25:09]OFDSenderStorePacket done [16:25:09]KKMCreateOFDPacket done [16:25:09]NVStorageSaveData kkm_last_timestamp [16:25:09]File name is /storage/kkm_last_timestamp [16:25:09]Write 4 bytes [16:25:09]NVStorageSaveData done [16:25:09]ExternCall_PrintAddStr [16:25:09]wPrintStart [16:25:09]Write to MH i2c: 01 00 00 F2 4E 40 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 F2 4E 00 00 00 00 00 FF 0F 55 [16:25:09]RasterBufferAndPrint [16:25:09]line Счет N : (1)343078 [16:25:09]line ИНН: 02508201610067 [16:25:09]line Контрольно-Кассовый Чек [16:25:09]line ПРОДАЖА [16:25:09]line ТРК (МРК, ГНК) : 61 [16:25:09]line Товар: 2710194210 [16:25:09]line D-ENERGY Дт-К-2 [16:25:09]line 6.480 * 77.20 [16:25:09]line = 500.26 [16:25:09]line НДС 12% НСП 1% [16:25:09]line > о реализуемом товаре [16:25:09]line ОКРУГЛЕНИЕ: -0.26 [16:25:09]line ИТОГО: 500.00 [16:25:09]line Внесено: 500.00 [16:25:09]line СДАЧА: 0.00 [16:25:09]line НСП 1% : 4.43 [16:25:09]line НДС 12% : 53.12 [16:25:09]line Наличными: 500.00 [16:25:09]line Безнал.: 0.00 [16:25:09]line Место: АЗС № 78 "Партнер Нефть" [16:25:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:25:09]line СНО: Общий режим [16:25:09]line Чек 165 21.10.2024 16:25 [16:25:09]line Смена: 115 ФФД: 1.0 [16:25:09]line ЗНМ: 0300000137 [16:25:09]line РНМ: 0000000000186857 [16:25:09]line Версия ККМ: v1.0 [16:25:09]line ФМ: 0000000002094219 [16:25:09]line ФД: 30668 [16:25:09]line ФПД: 179900971338963 [16:25:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162513&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30668&fm=179900971338963&tin=02508201610067®Number=0000000000186857&sum=50000 [16:25:09]OFD Sender: Processing packet 30668 [packets to send 10, broken 9] [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00030668 [16:25:09]OFD Sender: To server: pG, [16:25:09]CommunicateWithHost lk.salyk.kg:30040 [16:25:09]ConnectInit lk.salyk.kg [16:25:09]written 0, free lines is 4095 [16:25:09]Connected sock=10 [16:25:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 FE F6 0D 01 B1 5A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 69 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 77 00 00 35 04 06 00 A3 9E 75 7D CC D3 FB 9A 13 DD 65 AD CF BA [16:25:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 96 1E 47 00 FA E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CC 77 00 00 F4 03 04 00 E9 2A 16 67 B6 04 01 00 00 F8 A8 B0 70 8F 73 8E FB [16:25:09]CommunicateWithHost err = 0 [16:25:09]CheckOFDResponse [16:25:09]1017 (14) - 77093643461234 [16:25:09]1041 (16) - 0000000002094219 [16:25:09]1040 (4) - 30668 [16:25:09]1012 (4) - 21.10.2024 10:20 [16:25:09]1206 (1) - 0 [16:25:09]OFD Sender: Remove packet 30668 [16:25:09]ProducePacketName [16:25:09]name=ofd_packets/00030668 [16:25:09]NVStorageDeleteData [16:25:09]Write to MH i2c: 01 00 00 1D 4F 6C [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: 01 07 00 1D 4F 00 00 00 00 00 FB 0C 7A [16:25:09]RasterBufferAndPrint [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]line [16:25:09]written 0, free lines is 3330 [16:25:09]MH_Cut [16:25:09]Write to MH i2c: D1 01 00 24 4F 01 45 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 01 00 [16:25:09]MH_I2C_Read... [16:25:09]Read from MH i2c: D1 01 00 24 4F 00 44 [16:25:09]Write to MH i2c: 01 00 00 25 4F 74 [16:25:09]Write i2c OK [16:25:09]MH_I2C_Read... [16:25:10]OFD Sender: No OFD packet to send [16:25:10]*** Cut start [16:25:10]*** Partial cut [16:25:10]*** CUTSNS_PIN = 1 [16:25:10]*** CUTSNS_PIN = 0 [16:25:10]*** Brake cut motor [16:25:11]Read from MH i2c: 01 [16:25:11]MH_I2C_Read... [16:25:11]*** Stop cut motor [16:25:11]*** Cut end [16:25:11]Read from MH i2c: 01 07 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: 01 07 00 25 4F 00 00 00 00 00 FF 0F 89 [16:25:11]process_action close_receipt done [16:25:11]requested_data is exist [16:25:11]produce_requested_data [16:25:11]requested_item fm.sn is exist - process it [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 11 00 00 [16:25:11]Write to MH i2c: E2 08 00 26 4F 80 11 00 00 00 00 00 00 EF [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 17 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 17 00 26 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [16:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:25:11]wFMCommunicate OK [16:25:11]requested_item fd.num is exist - process it [16:25:11]SAM_PROTO_GetFieldsCounters [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 00 00 [16:25:11]Write to MH i2c: E2 08 00 27 4F 80 13 00 00 00 00 00 00 F2 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 62 00 27 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 77 00 00 0E 04 04 00 73 00 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 BD [16:25:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CC 77 00 00 0E 04 04 00 73 00 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 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetFieldsCounters done [16:25:11]requested_item shift.num is exist - process it [16:25:11]requested_item shift.opened is exist - process it [16:25:11]req_shift_opened [16:25:11]FM_GetShiftState [16:25:11]SAM_PROTO_GetShiftState [16:25:11]wFMCommunicate request_size=4 [16:25:11]MH_SAM_APDU [16:25:11]CAPDU: 80 13 01 00 [16:25:11]Write to MH i2c: E2 08 00 28 4F 80 13 01 00 00 00 00 00 F4 [16:25:11]Write i2c OK [16:25:11]MH_I2C_Read... [16:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:11]Read from MH i2c: E2 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 [16:25:11]MH_I2C_Read... [16:25:11]Read from MH i2c: E2 0E 00 28 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 70 [16:25:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:25:11]wFMCommunicate OK [16:25:11]SAM_PROTO_GetShiftState done [16:25:11]FM_GetShiftState done [16:25:11]req_shift_opened done [16:25:11]requested_item shift.open_date is exist - process it [16:25:11]req_shift_open_date [16:25:11]req_shift_open_date done [16:25:11]produce_requested_data done [16:25:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30668,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:25:11]process_action_free close_receipt [16:25:11]json_value_free [16:25:11]json_value_free done [16:25:11]process_json_proto returns [16:25:11]Send response to host [16:25:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30668,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:25:11]free response buf [16:25:11]execute_script done [16:25:11]execute_script returns [16:25:11]free content buf [16:25:11]Sock 9.Close socket [16:25:11]Sock 9.Thread stoped [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:42]accept exits with 7 [16:26:42]New connection [16:26:42]New thread 3067489636 created [16:26:42]Thread 3067346276 joined [16:26:42]Waiting for new connection... [16:26:42] Sock 7.Parse request [16:26:42]Sock 7.Check first char [16:26:42]Sock 7.First char is OK [16:26:42]request: POST /json_proto HTTP/1.0 [16:26:42]Method: POST [16:26:42]URL: /json_proto [16:26:42]Method is POST - this is cgi request [16:26:42]url: /json_proto [16:26:42]query_string will be loaded in cgi processing [16:26:42]execute_cgi json_proto POST (null) [16:26:42]execute_cgi path=json_proto method=POST [16:26:42]POST find Content-Length [16:26:42]Host: 172.17.51.3:8080 [16:26:42]Content-Length: 679 [16:26:42]Content-Type: application/json [16:26:42] [16:26:42]POST finish read [16:26:42]Found Content-Length = 679 [16:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:42]execute_script... [16:26:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:42]POST & json_proto [16:26:42]process_json_proto [16:26:42]json parsed OK: [16:26:42]protocol is kg_v1.0 [16:26:42]action value=close_receipt [16:26:42]process_action close_receipt [16:26:42]cmd_close_receipt [16:26:42]MH_GetDate [16:26:42]Write to MH i2c: F0 00 00 29 4F 67 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: F0 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: F0 09 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: F0 09 00 29 4F 00 C7 80 16 67 04 C1 95 66 F4 [16:26:42]GetLastDocTimeStamp 1729527913 [16:26:42]current date 1729528007 [16:26:42]FM_GetShiftState [16:26:42]SAM_PROTO_GetShiftState [16:26:42]wFMCommunicate request_size=4 [16:26:42]MH_SAM_APDU [16:26:42]CAPDU: 80 13 01 00 [16:26:42]Write to MH i2c: E2 08 00 2A 4F 80 13 01 00 00 00 00 00 F6 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:42]Read from MH i2c: E2 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 0E 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: E2 0E 00 2A 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 72 [16:26:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:26:42]wFMCommunicate OK [16:26:42]SAM_PROTO_GetShiftState done [16:26:42]FM_GetShiftState done [16:26:42]opened in 1729471058 [16:26:42]opened+sec_in_day 1729557458 [16:26:42]quantity*price = 100050 [16:26:42]sum+1 = 100052 [16:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 166 21.10.2024 16:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30669 ФПД: 205362950359825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30669&fm=205362950359825&tin=02508201610067®Number=0000000000186857&sum=100000 [16:26:43]StoreToDocumentArchive [16:26:43]shift 115 fd 30669 [16:26:43]save to /storage/0115/doc_00030669 [16:26:43]save last doc name /storage/0115/doc_00030669 to /storage/kkm_last_doc_name [16:26:43]save OK [16:26:43]Clear old archive folders... [16:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:43]tlvbuf is 01E7B130 [16:26:43]SAM_PROTO_ClearQueue [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 09 00 00 [16:26:43]Write to MH i2c: E2 08 00 37 4F 80 09 00 00 00 00 00 00 F8 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 37 4F 00 90 00 FA [16:26:43]RAPDU: 90 00 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_ClearQueue done [16:26:43]KKMCreateOFDPacket [16:26:43]OFDProtocolAddRootSTLVToBuf [16:26:43]FM_MakeSignedData [16:26:43]FM_MakeSignedData [16:26:43]SAM_PROTO_SignData [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 0D 01 02 [16:26:43]Write to MH i2c: E2 08 00 38 4F 80 0D 01 02 00 00 00 00 00 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 38 4F 00 90 00 FB [16:26:43]RAPDU: 90 00 [16:26:43]wFMCommunicate OK [16:26:43]wFMCommunicate request_size=255 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C8 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 77 00 00 35 04 06 00 BA C6 C9 B4 [16:26:43]Write to MH i2c: E2 02 01 39 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C8 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 77 00 00 35 04 06 00 BA C6 C9 B4 00 00 A6 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 39 4F 00 90 00 FC [16:26:43]RAPDU: 90 00 [16:26:43]wFMCommunicate OK [16:26:43]wFMCommunicate request_size=7 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 0D 02 02 02 CB 11 [16:26:43]Write to MH i2c: E2 0A 00 3A 4F 80 0D 02 02 02 00 CB 11 00 00 E3 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 03 00 3A 4F 00 90 00 FD [16:26:43]RAPDU: 90 00 [16:26:43]wFMCommunicate OK [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 0D 03 02 [16:26:43]Write to MH i2c: E2 08 00 3B 4F 80 0D 03 02 00 00 00 00 05 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0B 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0B 00 3B 4F 00 34 2D A8 84 A0 4B 20 6F 90 00 0D [16:26:43]RAPDU: 34 2D A8 84 A0 4B 20 6F 90 00 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_SignData done [16:26:43]FM_MakeSignedData done [16:26:43]CreateOFDProtocolMessage [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 11 00 00 [16:26:43]Write to MH i2c: E2 08 00 3C 4F 80 11 00 00 00 00 00 00 05 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 3C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 53 [16:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:43]wFMCommunicate OK [16:26:43]CreateOFDProtocolMessage done [16:26:43]OFDSenderStorePacket 30669 [16:26:43]StoreOFDPacket docnum=30669 [16:26:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2C 85 04 01 22 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C8 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 77 00 00 35 04 06 00 BA C6 C9 B4 CB 11 34 2D A8 84 A0 4B 20 6F [16:26:43]CheckFolder [16:26:43]dirname=/storage/ofd_packets [16:26:43]CheckFolder done [16:26:43]ProducePacketName [16:26:43]name=ofd_packets/00030669 [16:26:43]NVStorageSaveData ofd_packets/00030669 [16:26:43]File name is /storage/ofd_packets/00030669 [16:26:43]Write 298 bytes [16:26:43]NVStorageSaveData done [16:26:43]OFDSenderStorePacket done [16:26:43]KKMCreateOFDPacket done [16:26:43]NVStorageSaveData kkm_last_timestamp [16:26:43]File name is /storage/kkm_last_timestamp [16:26:43]Write 4 bytes [16:26:43]NVStorageSaveData done [16:26:43]ExternCall_PrintAddStr [16:26:43]wPrintStart [16:26:43]Write to MH i2c: 01 00 00 3D 4F 8C [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 3D 4F 00 00 00 00 00 FF 0F A1 [16:26:43]RasterBufferAndPrint [16:26:43]line Счет N : (1)343080 [16:26:43]line ИНН: 02508201610067 [16:26:43]line Контрольно-Кассовый Чек [16:26:43]line ПРОДАЖА [16:26:43]line ТРК (МРК, ГНК) : 44 [16:26:43]line Товар: 2710194210 [16:26:43]line ДТ-К-2 [16:26:43]line 13.130 * 76.20 [16:26:43]line = 1000.51 [16:26:43]line НДС 12% НСП 1% [16:26:43]line > о реализуемом товаре [16:26:43]line ОКРУГЛЕНИЕ: -0.51 [16:26:43]line ИТОГО: 1000.00 [16:26:43]line Внесено: 1000.00 [16:26:43]line СДАЧА: 0.00 [16:26:43]line НСП 1% : 8.85 [16:26:43]line НДС 12% : 106.25 [16:26:43]line Наличными: 1000.00 [16:26:43]line Безнал.: 0.00 [16:26:43]line Место: АЗС № 78 "Партнер Нефть" [16:26:43]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:26:43]line СНО: Общий режим [16:26:43]line Чек 166 21.10.2024 16:26 [16:26:43]line Смена: 115 ФФД: 1.0 [16:26:43]line ЗНМ: 0300000137 [16:26:43]line РНМ: 0000000000186857 [16:26:43]line Версия ККМ: v1.0 [16:26:43]line ФМ: 0000000002094219 [16:26:43]line ФД: 30669 [16:26:44]line ФПД: 205362950359825 [16:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162648&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30669&fm=205362950359825&tin=02508201610067®Number=0000000000186857&sum=100000 [16:26:44]OFD Sender: Processing packet 30669 [packets to send 10, broken 9] [16:26:44]ProducePacketName [16:26:44]name=ofd_packets/00030669 [16:26:44]OFD Sender: To server: pG, [16:26:44]CommunicateWithHost lk.salyk.kg:30040 [16:26:44]ConnectInit lk.salyk.kg [16:26:44]written 0, free lines is 4095 [16:26:44]Connected sock=10 [16:26:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 2C 85 04 01 22 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 C8 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CD 77 00 00 35 04 06 00 BA C6 C9 B4 CB 11 34 2D A8 84 A0 4B 20 6F [16:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 58 A4 47 00 68 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 32 30 39 34 32 31 39 10 04 04 00 CD 77 00 00 F4 03 04 00 48 2B 16 67 B6 04 01 00 00 B4 35 E7 0E 22 FB 96 38 [16:26:44]CommunicateWithHost err = 0 [16:26:44]CheckOFDResponse [16:26:44]1017 (14) - 77093643461234 [16:26:44]1041 (16) - 0000000002094219 [16:26:44]1040 (4) - 30669 [16:26:44]1012 (4) - 21.10.2024 10:22 [16:26:44]1206 (1) - 0 [16:26:44]OFD Sender: Remove packet 30669 [16:26:44]ProducePacketName [16:26:44]name=ofd_packets/00030669 [16:26:44]NVStorageDeleteData [16:26:44]Write to MH i2c: 01 00 00 68 4F B7 [16:26:44]Write i2c OK [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: 01 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: 01 07 00 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: 01 07 00 68 4F 00 00 00 00 00 EE 0C B8 [16:26:44]RasterBufferAndPrint [16:26:44]line [16:26:44]line [16:26:44]line [16:26:44]line [16:26:44]line [16:26:44]written 0, free lines is 3316 [16:26:44]MH_Cut [16:26:44]Write to MH i2c: D1 01 00 6F 4F 01 90 [16:26:44]Write i2c OK [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: D1 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: D1 01 00 [16:26:44]MH_I2C_Read... [16:26:44]Read from MH i2c: D1 01 00 6F 4F 00 8F [16:26:44]Write to MH i2c: 01 00 00 70 4F BF [16:26:44]Write i2c OK [16:26:44]MH_I2C_Read... [16:26:45]OFD Sender: No OFD packet to send [16:26:45]*** Cut start [16:26:45]*** Partial cut [16:26:45]*** CUTSNS_PIN = 1 [16:26:45]*** CUTSNS_PIN = 0 [16:26:45]*** Brake cut motor [16:26:45]Read from MH i2c: 01 [16:26:46]MH_I2C_Read... [16:26:46]*** Stop cut motor [16:26:46]*** Cut end [16:26:46]Read from MH i2c: 01 07 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: 01 07 00 70 4F 00 00 00 00 00 FF 0F D4 [16:26:46]process_action close_receipt done [16:26:46]requested_data is exist [16:26:46]produce_requested_data [16:26:46]requested_item fm.sn is exist - process it [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 11 00 00 [16:26:46]Write to MH i2c: E2 08 00 71 4F 80 11 00 00 00 00 00 00 3A [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 17 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 17 00 71 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [16:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:46]wFMCommunicate OK [16:26:46]requested_item fd.num is exist - process it [16:26:46]SAM_PROTO_GetFieldsCounters [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 13 00 00 [16:26:46]Write to MH i2c: E2 08 00 72 4F 80 13 00 00 00 00 00 00 3D [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 62 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 62 00 72 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 77 00 00 0E 04 04 00 73 00 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 0C [16:26:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CD 77 00 00 0E 04 04 00 73 00 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 [16:26:46]wFMCommunicate OK [16:26:46]SAM_PROTO_GetFieldsCounters done [16:26:46]requested_item shift.num is exist - process it [16:26:46]requested_item shift.opened is exist - process it [16:26:46]req_shift_opened [16:26:46]FM_GetShiftState [16:26:46]SAM_PROTO_GetShiftState [16:26:46]wFMCommunicate request_size=4 [16:26:46]MH_SAM_APDU [16:26:46]CAPDU: 80 13 01 00 [16:26:46]Write to MH i2c: E2 08 00 73 4F 80 13 01 00 00 00 00 00 3F [16:26:46]Write i2c OK [16:26:46]MH_I2C_Read... [16:26:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:46]Read from MH i2c: E2 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 [16:26:46]MH_I2C_Read... [16:26:46]Read from MH i2c: E2 0E 00 73 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BB [16:26:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:26:46]wFMCommunicate OK [16:26:46]SAM_PROTO_GetShiftState done [16:26:46]FM_GetShiftState done [16:26:46]req_shift_opened done [16:26:46]requested_item shift.open_date is exist - process it [16:26:46]req_shift_open_date [16:26:46]req_shift_open_date done [16:26:46]produce_requested_data done [16:26:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30669,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:26:46]process_action_free close_receipt [16:26:46]json_value_free [16:26:46]json_value_free done [16:26:46]process_json_proto returns [16:26:46]Send response to host [16:26:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30669,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:26:46]free response buf [16:26:46]execute_script done [16:26:46]execute_script returns [16:26:46]free content buf [16:26:46]Sock 7.Close socket [16:26:46]Sock 7.Thread stoped [16:26:50]OFD Sender: No OFD packet to send [16:26:52]accept exits with 9 [16:26:52]New connection [16:26:52]New thread 3067346276 created [16:26:52]Thread 3067489636 joined [16:26:52]Waiting for new connection... [16:26:52] Sock 9.Parse request [16:26:52]Sock 9.Check first char [16:26:52]Sock 9.First char is OK [16:26:52]request: POST /json_proto HTTP/1.0 [16:26:52]Method: POST [16:26:52]URL: /json_proto [16:26:52]Method is POST - this is cgi request [16:26:52]url: /json_proto [16:26:52]query_string will be loaded in cgi processing [16:26:52]execute_cgi json_proto POST (null) [16:26:52]execute_cgi path=json_proto method=POST [16:26:52]POST find Content-Length [16:26:52]Host: 172.17.51.3:8080 [16:26:52]Content-Length: 679 [16:26:52]Content-Type: application/json [16:26:52] [16:26:52]POST finish read [16:26:52]Found Content-Length = 679 [16:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:52]execute_script... [16:26:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:52]POST & json_proto [16:26:52]process_json_proto [16:26:52]json parsed OK: [16:26:52]protocol is kg_v1.0 [16:26:52]action value=close_receipt [16:26:52]process_action close_receipt [16:26:52]cmd_close_receipt [16:26:52]MH_GetDate [16:26:52]Write to MH i2c: F0 00 00 74 4F B2 [16:26:52]Write i2c OK [16:26:52]MH_I2C_Read... [16:26:52]Read from MH i2c: F0 [16:26:52]MH_I2C_Read... [16:26:52]Read from MH i2c: F0 09 00 [16:26:52]MH_I2C_Read... [16:26:52]Read from MH i2c: F0 09 00 74 4F 00 D1 80 16 67 04 C1 95 66 49 [16:26:52]GetLastDocTimeStamp 1729528008 [16:26:52]current date 1729528017 [16:26:52]FM_GetShiftState [16:26:52]SAM_PROTO_GetShiftState [16:26:52]wFMCommunicate request_size=4 [16:26:52]MH_SAM_APDU [16:26:52]CAPDU: 80 13 01 00 [16:26:52]Write to MH i2c: E2 08 00 75 4F 80 13 01 00 00 00 00 00 41 [16:26:52]Write i2c OK [16:26:52]MH_I2C_Read... [16:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:52]Read from MH i2c: E2 [16:26:52]MH_I2C_Read... [16:26:52]Read from MH i2c: E2 0E 00 [16:26:52]MH_I2C_Read... [16:26:52]Read from MH i2c: E2 0E 00 75 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BD [16:26:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:26:52]wFMCommunicate OK [16:26:52]SAM_PROTO_GetShiftState done [16:26:52]FM_GetShiftState done [16:26:52]opened in 1729471058 [16:26:52]opened+sec_in_day 1729557458 [16:26:52]quantity*price = 200025 [16:26:52]sum+1 = 200026 [16:26:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 167 21.10.2024 16:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30670 ФПД: 268856079627584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30670&fm=268856079627584&tin=02508201610067®Number=0000000000186857&sum=200000 [16:26:53]StoreToDocumentArchive [16:26:53]shift 115 fd 30670 [16:26:53]save to /storage/0115/doc_00030670 [16:26:53]save last doc name /storage/0115/doc_00030670 to /storage/kkm_last_doc_name [16:26:53]save OK [16:26:53]Clear old archive folders... [16:26:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:53]tlvbuf is 01DFCC80 [16:26:53]SAM_PROTO_ClearQueue [16:26:53]wFMCommunicate request_size=4 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 09 00 00 [16:26:53]Write to MH i2c: E2 08 00 82 4F 80 09 00 00 00 00 00 00 43 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 82 4F 00 90 00 45 [16:26:53]RAPDU: 90 00 [16:26:53]wFMCommunicate OK [16:26:53]SAM_PROTO_ClearQueue done [16:26:53]KKMCreateOFDPacket [16:26:53]OFDProtocolAddRootSTLVToBuf [16:26:53]FM_MakeSignedData [16:26:53]FM_MakeSignedData [16:26:53]SAM_PROTO_SignData [16:26:53]wFMCommunicate request_size=4 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 0D 01 02 [16:26:53]Write to MH i2c: E2 08 00 83 4F 80 0D 01 02 00 00 00 00 4B [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 83 4F 00 90 00 46 [16:26:53]RAPDU: 90 00 [16:26:53]wFMCommunicate OK [16:26:53]wFMCommunicate request_size=255 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 77 00 00 35 04 06 00 F4 85 EF 1F [16:26:53]Write to MH i2c: E2 02 01 84 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 77 00 00 35 04 06 00 F4 85 EF 1F 00 00 74 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 84 4F 00 90 00 47 [16:26:53]RAPDU: 90 00 [16:26:53]wFMCommunicate OK [16:26:53]wFMCommunicate request_size=7 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 0D 02 02 02 35 40 [16:26:53]Write to MH i2c: E2 0A 00 85 4F 80 0D 02 02 02 00 35 40 00 00 C7 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 03 00 85 4F 00 90 00 48 [16:26:53]RAPDU: 90 00 [16:26:53]wFMCommunicate OK [16:26:53]wFMCommunicate request_size=4 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 0D 03 02 [16:26:53]Write to MH i2c: E2 08 00 86 4F 80 0D 03 02 00 00 00 00 50 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 0B 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 0B 00 86 4F 00 EB 69 00 66 16 12 EA 0F 90 00 2C [16:26:53]RAPDU: EB 69 00 66 16 12 EA 0F 90 00 [16:26:53]wFMCommunicate OK [16:26:53]SAM_PROTO_SignData done [16:26:53]FM_MakeSignedData done [16:26:53]CreateOFDProtocolMessage [16:26:53]wFMCommunicate request_size=4 [16:26:53]MH_SAM_APDU [16:26:53]CAPDU: 80 11 00 00 [16:26:53]Write to MH i2c: E2 08 00 87 4F 80 11 00 00 00 00 00 00 50 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:53]Read from MH i2c: E2 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 17 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: E2 17 00 87 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9E [16:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:53]wFMCommunicate OK [16:26:53]CreateOFDProtocolMessage done [16:26:53]OFDSenderStorePacket 30670 [16:26:53]StoreOFDPacket docnum=30670 [16:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 22 A3 04 01 47 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 77 00 00 35 04 06 00 F4 85 EF 1F 35 40 EB 69 00 66 16 12 EA 0F [16:26:53]CheckFolder [16:26:53]dirname=/storage/ofd_packets [16:26:53]CheckFolder done [16:26:53]ProducePacketName [16:26:53]name=ofd_packets/00030670 [16:26:53]NVStorageSaveData ofd_packets/00030670 [16:26:53]File name is /storage/ofd_packets/00030670 [16:26:53]Write 298 bytes [16:26:53]NVStorageSaveData done [16:26:53]OFDSenderStorePacket done [16:26:53]KKMCreateOFDPacket done [16:26:53]NVStorageSaveData kkm_last_timestamp [16:26:53]File name is /storage/kkm_last_timestamp [16:26:53]Write 4 bytes [16:26:53]NVStorageSaveData done [16:26:53]ExternCall_PrintAddStr [16:26:53]wPrintStart [16:26:53]Write to MH i2c: 01 00 00 88 4F D7 [16:26:53]Write i2c OK [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: 01 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: 01 07 00 [16:26:53]MH_I2C_Read... [16:26:53]Read from MH i2c: 01 07 00 88 4F 00 00 00 00 00 FF 0F EC [16:26:53]RasterBufferAndPrint [16:26:53]line Счет N : (1)343079 [16:26:53]line ИНН: 02508201610067 [16:26:53]line Контрольно-Кассовый Чек [16:26:53]line ПРОДАЖА [16:26:53]line ТРК (МРК, ГНК) : 34 [16:26:53]line Товар: 2710194210 [16:26:53]line ДТ-К-2 [16:26:53]line 26.250 * 76.20 [16:26:53]line = 2000.25 [16:26:53]line НДС 12% НСП 1% [16:26:53]line > о реализуемом товаре [16:26:53]line ОКРУГЛЕНИЕ: -0.25 [16:26:53]line ИТОГО: 2000.00 [16:26:53]line Внесено: 2000.00 [16:26:53]line СДАЧА: 0.00 [16:26:53]line НСП 1% : 17.70 [16:26:53]line НДС 12% : 212.42 [16:26:53]line Наличными: 2000.00 [16:26:53]line Безнал.: 0.00 [16:26:53]line Место: АЗС № 78 "Партнер Нефть" [16:26:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:26:53]line СНО: Общий режим [16:26:53]line Чек 167 21.10.2024 16:26 [16:26:53]line Смена: 115 ФФД: 1.0 [16:26:53]line ЗНМ: 0300000137 [16:26:53]line РНМ: 0000000000186857 [16:26:53]line Версия ККМ: v1.0 [16:26:53]line ФМ: 0000000002094219 [16:26:53]line ФД: 30670 [16:26:53]line ФПД: 268856079627584 [16:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162657&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30670&fm=268856079627584&tin=02508201610067®Number=0000000000186857&sum=200000 [16:26:53]written 0, free lines is 4095 [16:26:53]OFD Sender: Processing packet 30670 [packets to send 10, broken 9] [16:26:53]ProducePacketName [16:26:53]name=ofd_packets/00030670 [16:26:53]OFD Sender: To server: pG, [16:26:53]CommunicateWithHost lk.salyk.kg:30040 [16:26:53]ConnectInit lk.salyk.kg [16:26:54]Connected sock=10 [16:26:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 22 A3 04 01 47 A7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 D1 80 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 77 00 00 35 04 06 00 F4 85 EF 1F 35 40 EB 69 00 66 16 12 EA 0F [16:26:54]Write to MH i2c: 01 00 00 B3 4F 02 [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: 01 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: 01 07 00 [16:26:54]MH_I2C_Read... [16:26:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 70 D6 47 00 84 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CE 77 00 00 F4 03 04 00 51 2B 16 67 B6 04 01 00 00 46 E4 16 FA DD 36 EF BF [16:26:54]CommunicateWithHost err = 0 [16:26:54]CheckOFDResponse [16:26:54]1017 (14) - 77093643461234 [16:26:54]1041 (16) - 0000000002094219 [16:26:54]1040 (4) - 30670 [16:26:54]1012 (4) - 21.10.2024 10:22 [16:26:54]1206 (1) - 0 [16:26:54]OFD Sender: Remove packet 30670 [16:26:54]ProducePacketName [16:26:54]name=ofd_packets/00030670 [16:26:54]NVStorageDeleteData [16:26:54]Read from MH i2c: 01 07 00 B3 4F 00 00 00 00 00 0F 0D 25 [16:26:54]RasterBufferAndPrint [16:26:54]line [16:26:54]line [16:26:54]line [16:26:54]line [16:26:54]line [16:26:54]written 0, free lines is 3395 [16:26:54]MH_Cut [16:26:54]Write to MH i2c: D1 01 00 BA 4F 01 DB [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: D1 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: D1 01 00 [16:26:54]MH_I2C_Read... [16:26:54]Read from MH i2c: D1 01 00 BA 4F 00 DA [16:26:54]Write to MH i2c: 01 00 00 BB 4F 0A [16:26:54]Write i2c OK [16:26:54]MH_I2C_Read... [16:26:54]OFD Sender: No OFD packet to send [16:26:55]*** Cut start [16:26:55]*** Partial cut [16:26:55]*** CUTSNS_PIN = 1 [16:26:55]*** CUTSNS_PIN = 0 [16:26:55]*** Brake cut motor [16:26:55]Read from MH i2c: 01 [16:26:55]MH_I2C_Read... [16:26:55]*** Stop cut motor [16:26:55]*** Cut end [16:26:55]Read from MH i2c: 01 07 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: 01 07 00 BB 4F 00 00 00 00 00 FF 0F 1F [16:26:55]process_action close_receipt done [16:26:55]requested_data is exist [16:26:55]produce_requested_data [16:26:55]requested_item fm.sn is exist - process it [16:26:55]wFMCommunicate request_size=4 [16:26:55]MH_SAM_APDU [16:26:55]CAPDU: 80 11 00 00 [16:26:55]Write to MH i2c: E2 08 00 BC 4F 80 11 00 00 00 00 00 00 85 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:55]Read from MH i2c: E2 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 17 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 17 00 BC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D3 [16:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:26:55]wFMCommunicate OK [16:26:55]requested_item fd.num is exist - process it [16:26:55]SAM_PROTO_GetFieldsCounters [16:26:55]wFMCommunicate request_size=4 [16:26:55]MH_SAM_APDU [16:26:55]CAPDU: 80 13 00 00 [16:26:55]Write to MH i2c: E2 08 00 BD 4F 80 13 00 00 00 00 00 00 88 [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:55]Read from MH i2c: E2 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 62 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 62 00 BD 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [16:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:55]wFMCommunicate OK [16:26:55]SAM_PROTO_GetFieldsCounters done [16:26:55]requested_item shift.num is exist - process it [16:26:55]requested_item shift.opened is exist - process it [16:26:55]req_shift_opened [16:26:55]FM_GetShiftState [16:26:55]SAM_PROTO_GetShiftState [16:26:55]wFMCommunicate request_size=4 [16:26:55]MH_SAM_APDU [16:26:55]CAPDU: 80 13 01 00 [16:26:55]Write to MH i2c: E2 08 00 BE 4F 80 13 01 00 00 00 00 00 8A [16:26:55]Write i2c OK [16:26:55]MH_I2C_Read... [16:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:55]Read from MH i2c: E2 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 0E 00 [16:26:55]MH_I2C_Read... [16:26:55]Read from MH i2c: E2 0E 00 BE 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 06 [16:26:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:26:55]wFMCommunicate OK [16:26:55]SAM_PROTO_GetShiftState done [16:26:55]FM_GetShiftState done [16:26:55]req_shift_opened done [16:26:55]requested_item shift.open_date is exist - process it [16:26:55]req_shift_open_date [16:26:55]req_shift_open_date done [16:26:55]produce_requested_data done [16:26:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30670,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:26:55]process_action_free close_receipt [16:26:55]json_value_free [16:26:55]json_value_free done [16:26:55]process_json_proto returns [16:26:55]Send response to host [16:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30670,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:26:55]free response buf [16:26:55]execute_script done [16:26:55]execute_script returns [16:26:55]free content buf [16:26:55]Sock 9.Close socket [16:26:55]Sock 9.Thread stoped [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:30]accept exits with 7 [16:33:30]New connection [16:33:30]New thread 3067489636 created [16:33:30]Thread 3067346276 joined [16:33:30]Waiting for new connection... [16:33:30] Sock 7.Parse request [16:33:30]Sock 7.Check first char [16:33:30]Sock 7.First char is OK [16:33:30]request: POST /json_proto HTTP/1.0 [16:33:30]Method: POST [16:33:30]URL: /json_proto [16:33:30]Method is POST - this is cgi request [16:33:30]url: /json_proto [16:33:30]query_string will be loaded in cgi processing [16:33:30]execute_cgi json_proto POST (null) [16:33:30]execute_cgi path=json_proto method=POST [16:33:30]POST find Content-Length [16:33:30]Host: 172.17.51.3:8080 [16:33:30]Content-Length: 677 [16:33:30]Content-Type: application/json [16:33:30] [16:33:30]POST finish read [16:33:30]Found Content-Length = 677 [16:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:30]execute_script... [16:33:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:30]POST & json_proto [16:33:30]process_json_proto [16:33:30]json parsed OK: [16:33:30]protocol is kg_v1.0 [16:33:30]action value=close_receipt [16:33:30]process_action close_receipt [16:33:30]cmd_close_receipt [16:33:30]MH_GetDate [16:33:30]Write to MH i2c: F0 00 00 BF 4F FD [16:33:30]Write i2c OK [16:33:30]MH_I2C_Read... [16:33:30]Read from MH i2c: F0 [16:33:30]MH_I2C_Read... [16:33:30]Read from MH i2c: F0 09 00 [16:33:30]MH_I2C_Read... [16:33:30]Read from MH i2c: F0 09 00 BF 4F 00 60 82 16 67 04 C1 95 66 25 [16:33:30]GetLastDocTimeStamp 1729528017 [16:33:30]current date 1729528416 [16:33:30]FM_GetShiftState [16:33:30]SAM_PROTO_GetShiftState [16:33:30]wFMCommunicate request_size=4 [16:33:30]MH_SAM_APDU [16:33:30]CAPDU: 80 13 01 00 [16:33:30]Write to MH i2c: E2 08 00 C0 4F 80 13 01 00 00 00 00 00 8C [16:33:30]Write i2c OK [16:33:30]MH_I2C_Read... [16:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:30]Read from MH i2c: E2 [16:33:30]MH_I2C_Read... [16:33:30]Read from MH i2c: E2 0E 00 [16:33:30]MH_I2C_Read... [16:33:30]Read from MH i2c: E2 0E 00 C0 4F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 08 [16:33:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:33:30]wFMCommunicate OK [16:33:30]SAM_PROTO_GetShiftState done [16:33:30]FM_GetShiftState done [16:33:30]opened in 1729471058 [16:33:30]opened+sec_in_day 1729557458 [16:33:30]quantity*price = 50041 [16:33:30]sum+1 = 50042 [16:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 168 21.10.2024 16:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30671 ФПД: 232420520838352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163336&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30671&fm=232420520838352&tin=02508201610067®Number=0000000000186857&sum=50000 [16:33:31]StoreToDocumentArchive [16:33:31]shift 115 fd 30671 [16:33:31]save to /storage/0115/doc_00030671 [16:33:31]save last doc name /storage/0115/doc_00030671 to /storage/kkm_last_doc_name [16:33:31]save OK [16:33:31]Clear old archive folders... [16:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:33:31]tlvbuf is 01DD4810 [16:33:31]SAM_PROTO_ClearQueue [16:33:31]wFMCommunicate request_size=4 [16:33:31]MH_SAM_APDU [16:33:31]CAPDU: 80 09 00 00 [16:33:31]Write to MH i2c: E2 08 00 CD 4F 80 09 00 00 00 00 00 00 8E [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:31]Read from MH i2c: E2 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 03 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 03 00 CD 4F 00 90 00 90 [16:33:31]RAPDU: 90 00 [16:33:31]wFMCommunicate OK [16:33:31]SAM_PROTO_ClearQueue done [16:33:31]KKMCreateOFDPacket [16:33:31]OFDProtocolAddRootSTLVToBuf [16:33:31]FM_MakeSignedData [16:33:31]FM_MakeSignedData [16:33:31]SAM_PROTO_SignData [16:33:31]wFMCommunicate request_size=4 [16:33:31]MH_SAM_APDU [16:33:31]CAPDU: 80 0D 01 02 [16:33:31]Write to MH i2c: E2 08 00 CE 4F 80 0D 01 02 00 00 00 00 96 [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:31]Read from MH i2c: E2 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 03 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 03 00 CE 4F 00 90 00 91 [16:33:31]RAPDU: 90 00 [16:33:31]wFMCommunicate OK [16:33:31]wFMCommunicate request_size=255 [16:33:31]MH_SAM_APDU [16:33:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 77 00 00 35 04 06 00 D3 [16:33:31]Write to MH i2c: E2 02 01 CF 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 77 00 00 35 04 06 00 D3 00 00 BA [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 CF 4F 00 90 00 92 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]wFMCommunicate request_size=10 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 02 02 05 62 9E 95 44 D0 [16:33:32]Write to MH i2c: E2 0D 00 D0 4F 80 0D 02 02 05 00 62 9E 95 44 D0 00 00 4C [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 D0 4F 00 90 00 93 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 03 02 [16:33:32]Write to MH i2c: E2 08 00 D1 4F 80 0D 03 02 00 00 00 00 9B [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 0B 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 0B 00 D1 4F 00 12 DF 3B 2C 7F 25 E8 78 90 00 F8 [16:33:32]RAPDU: 12 DF 3B 2C 7F 25 E8 78 90 00 [16:33:32]wFMCommunicate OK [16:33:32]SAM_PROTO_SignData done [16:33:32]FM_MakeSignedData done [16:33:32]CreateOFDProtocolMessage [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 11 00 00 [16:33:32]Write to MH i2c: E2 08 00 D2 4F 80 11 00 00 00 00 00 00 9B [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 17 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 17 00 D2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E9 [16:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:33:32]wFMCommunicate OK [16:33:32]CreateOFDProtocolMessage done [16:33:32]OFDSenderStorePacket 30671 [16:33:32]StoreOFDPacket docnum=30671 [16:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 36 AC 07 01 BB 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 77 00 00 35 04 06 00 D3 62 9E 95 44 D0 12 DF 3B 2C 7F 25 E8 78 [16:33:32]CheckFolder [16:33:32]dirname=/storage/ofd_packets [16:33:32]CheckFolder done [16:33:32]ProducePacketName [16:33:32]name=ofd_packets/00030671 [16:33:32]NVStorageSaveData ofd_packets/00030671 [16:33:32]File name is /storage/ofd_packets/00030671 [16:33:32]Write 301 bytes [16:33:32]NVStorageSaveData done [16:33:32]OFDSenderStorePacket done [16:33:32]KKMCreateOFDPacket done [16:33:32]NVStorageSaveData kkm_last_timestamp [16:33:32]File name is /storage/kkm_last_timestamp [16:33:32]Write 4 bytes [16:33:32]NVStorageSaveData done [16:33:32]ExternCall_PrintAddStr [16:33:32]wPrintStart [16:33:32]Write to MH i2c: 01 00 00 D3 4F 22 [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 07 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 07 00 D3 4F 00 00 00 00 00 FF 0F 37 [16:33:32]RasterBufferAndPrint [16:33:32]line Счет N : (1)343081 [16:33:32]line ИНН: 02508201610067 [16:33:32]line Контрольно-Кассовый Чек [16:33:32]line ПРОДАЖА [16:33:32]line ТРК (МРК, ГНК) : 53 [16:33:32]line Товар: 2710124130 [16:33:32]line Аи-92-К-2 [16:33:32]line 7.480 * 66.90 [16:33:32]line = 500.41 [16:33:32]line НДС 12% НСП 1% [16:33:32]line > о реализуемом товаре [16:33:32]line ОКРУГЛЕНИЕ: -0.41 [16:33:32]line ИТОГО: 500.00 [16:33:32]line Внесено: 500.00 [16:33:32]line СДАЧА: 0.00 [16:33:32]line НСП 1% : 4.43 [16:33:32]line НДС 12% : 53.14 [16:33:32]line Наличными: 500.00 [16:33:32]line Безнал.: 0.00 [16:33:32]line Место: АЗС № 78 "Партнер Нефть" [16:33:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:33:32]line СНО: Общий режим [16:33:32]line Чек 168 21.10.2024 16:33 [16:33:32]line Смена: 115 ФФД: 1.0 [16:33:32]line ЗНМ: 0300000137 [16:33:32]line РНМ: 0000000000186857 [16:33:32]line Версия ККМ: v1.0 [16:33:32]line ФМ: 0000000002094219 [16:33:32]line ФД: 30671 [16:33:32]line ФПД: 232420520838352 [16:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T163336&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30671&fm=232420520838352&tin=02508201610067®Number=0000000000186857&sum=50000 [16:33:32]OFD Sender: Processing packet 30671 [packets to send 10, broken 9] [16:33:32]ProducePacketName [16:33:32]name=ofd_packets/00030671 [16:33:32]OFD Sender: To server: pG, [16:33:32]CommunicateWithHost lk.salyk.kg:30040 [16:33:32]ConnectInit lk.salyk.kg [16:33:32]written 0, free lines is 4095 [16:33:32]Connected sock=10 [16:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 36 AC 07 01 BB 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 60 82 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 77 00 00 35 04 06 00 D3 62 9E 95 44 D0 12 DF 3B 2C 7F 25 E8 78 [16:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E7 D1 47 00 AF 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 CF 77 00 00 F4 03 04 00 E0 2C 16 67 B6 04 01 00 00 84 18 2E C5 0D A7 68 AF [16:33:32]CommunicateWithHost err = 0 [16:33:32]CheckOFDResponse [16:33:32]1017 (14) - 77093643461234 [16:33:32]1041 (16) - 0000000002094219 [16:33:32]1040 (4) - 30671 [16:33:32]1012 (4) - 21.10.2024 10:28 [16:33:32]1206 (1) - 0 [16:33:32]OFD Sender: Remove packet 30671 [16:33:32]ProducePacketName [16:33:32]name=ofd_packets/00030671 [16:33:32]NVStorageDeleteData [16:33:32]Write to MH i2c: 01 00 00 FE 4F 4D [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 07 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: 01 07 00 FE 4F 00 00 00 00 00 EC 0C 4C [16:33:32]RasterBufferAndPrint [16:33:32]line [16:33:32]line [16:33:32]line [16:33:32]line [16:33:32]line [16:33:33]written 0, free lines is 3315 [16:33:33]MH_Cut [16:33:33]Write to MH i2c: D1 01 00 05 50 01 27 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 05 50 00 26 [16:33:33]Write to MH i2c: 01 00 00 06 50 56 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]OFD Sender: No OFD packet to send [16:33:33]*** Cut start [16:33:33]*** Partial cut [16:33:33]*** CUTSNS_PIN = 1 [16:33:33]*** CUTSNS_PIN = 0 [16:33:33]*** Brake cut motor [16:33:34]Read from MH i2c: 01 [16:33:34]MH_I2C_Read... [16:33:34]*** Stop cut motor [16:33:34]*** Cut end [16:33:34]Read from MH i2c: 01 07 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: 01 07 00 06 50 00 00 00 00 00 FF 0F 6B [16:33:34]process_action close_receipt done [16:33:34]requested_data is exist [16:33:34]produce_requested_data [16:33:34]requested_item fm.sn is exist - process it [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 11 00 00 [16:33:34]Write to MH i2c: E2 08 00 07 50 80 11 00 00 00 00 00 00 D1 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 17 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 17 00 07 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [16:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:33:34]wFMCommunicate OK [16:33:34]requested_item fd.num is exist - process it [16:33:34]SAM_PROTO_GetFieldsCounters [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 13 00 00 [16:33:34]Write to MH i2c: E2 08 00 08 50 80 13 00 00 00 00 00 00 D4 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 62 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 62 00 08 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [16:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 CF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:34]wFMCommunicate OK [16:33:34]SAM_PROTO_GetFieldsCounters done [16:33:34]requested_item shift.num is exist - process it [16:33:34]requested_item shift.opened is exist - process it [16:33:34]req_shift_opened [16:33:34]FM_GetShiftState [16:33:34]SAM_PROTO_GetShiftState [16:33:34]wFMCommunicate request_size=4 [16:33:34]MH_SAM_APDU [16:33:34]CAPDU: 80 13 01 00 [16:33:34]Write to MH i2c: E2 08 00 09 50 80 13 01 00 00 00 00 00 D6 [16:33:34]Write i2c OK [16:33:34]MH_I2C_Read... [16:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:34]Read from MH i2c: E2 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 0E 00 [16:33:34]MH_I2C_Read... [16:33:34]Read from MH i2c: E2 0E 00 09 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 52 [16:33:34]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:33:34]wFMCommunicate OK [16:33:34]SAM_PROTO_GetShiftState done [16:33:34]FM_GetShiftState done [16:33:34]req_shift_opened done [16:33:34]requested_item shift.open_date is exist - process it [16:33:34]req_shift_open_date [16:33:34]req_shift_open_date done [16:33:34]produce_requested_data done [16:33:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30671,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:33:34]process_action_free close_receipt [16:33:34]json_value_free [16:33:34]json_value_free done [16:33:34]process_json_proto returns [16:33:34]Send response to host [16:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30671,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:33:34]free response buf [16:33:34]execute_script done [16:33:34]execute_script returns [16:33:34]free content buf [16:33:34]Sock 7.Close socket [16:33:34]Sock 7.Thread stoped [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:29]accept exits with 9 [16:43:29]New connection [16:43:29]New thread 3067346276 created [16:43:29]Thread 3067489636 joined [16:43:29]Waiting for new connection... [16:43:29] Sock 9.Parse request [16:43:29]Sock 9.Check first char [16:43:29]Sock 9.First char is OK [16:43:29]request: POST /json_proto HTTP/1.0 [16:43:29]Method: POST [16:43:29]URL: /json_proto [16:43:29]Method is POST - this is cgi request [16:43:29]url: /json_proto [16:43:29]query_string will be loaded in cgi processing [16:43:29]execute_cgi json_proto POST (null) [16:43:29]execute_cgi path=json_proto method=POST [16:43:29]POST find Content-Length [16:43:29]Host: 172.17.51.3:8080 [16:43:29]Content-Length: 679 [16:43:29]Content-Type: application/json [16:43:29] [16:43:29]POST finish read [16:43:29]Found Content-Length = 679 [16:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:29]execute_script... [16:43:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:43:29]POST & json_proto [16:43:29]process_json_proto [16:43:29]json parsed OK: [16:43:29]protocol is kg_v1.0 [16:43:29]action value=close_receipt [16:43:29]process_action close_receipt [16:43:29]cmd_close_receipt [16:43:29]MH_GetDate [16:43:29]Write to MH i2c: F0 00 00 0A 50 49 [16:43:29]Write i2c OK [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 09 00 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: F0 09 00 0A 50 00 B7 84 16 67 04 C1 95 66 CA [16:43:29]GetLastDocTimeStamp 1729528416 [16:43:29]current date 1729529015 [16:43:29]FM_GetShiftState [16:43:29]SAM_PROTO_GetShiftState [16:43:29]wFMCommunicate request_size=4 [16:43:29]MH_SAM_APDU [16:43:29]CAPDU: 80 13 01 00 [16:43:29]Write to MH i2c: E2 08 00 0B 50 80 13 01 00 00 00 00 00 D8 [16:43:29]Write i2c OK [16:43:29]MH_I2C_Read... [16:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:29]Read from MH i2c: E2 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: E2 0E 00 [16:43:29]MH_I2C_Read... [16:43:29]Read from MH i2c: E2 0E 00 0B 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 54 [16:43:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:43:29]wFMCommunicate OK [16:43:29]SAM_PROTO_GetShiftState done [16:43:29]FM_GetShiftState done [16:43:29]opened in 1729471058 [16:43:29]opened+sec_in_day 1729557458 [16:43:29]quantity*price = 150037 [16:43:29]sum+1 = 150039 [16:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 169 21.10.2024 16:43 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30672 ФПД: 129934071243220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164335&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30672&fm=129934071243220&tin=02508201610067®Number=0000000000186857&sum=150000 [16:43:30]StoreToDocumentArchive [16:43:30]shift 115 fd 30672 [16:43:30]save to /storage/0115/doc_00030672 [16:43:30]save last doc name /storage/0115/doc_00030672 to /storage/kkm_last_doc_name [16:43:30]save OK [16:43:30]Clear old archive folders... [16:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:43:30]tlvbuf is 01F3C310 [16:43:30]SAM_PROTO_ClearQueue [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 09 00 00 [16:43:30]Write to MH i2c: E2 08 00 18 50 80 09 00 00 00 00 00 00 DA [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 18 50 00 90 00 DC [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]SAM_PROTO_ClearQueue done [16:43:30]KKMCreateOFDPacket [16:43:30]OFDProtocolAddRootSTLVToBuf [16:43:30]FM_MakeSignedData [16:43:30]FM_MakeSignedData [16:43:30]SAM_PROTO_SignData [16:43:30]wFMCommunicate request_size=4 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 0D 01 02 [16:43:30]Write to MH i2c: E2 08 00 19 50 80 0D 01 02 00 00 00 00 E2 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:30]Read from MH i2c: E2 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 [16:43:30]MH_I2C_Read... [16:43:30]Read from MH i2c: E2 03 00 19 50 00 90 00 DD [16:43:30]RAPDU: 90 00 [16:43:30]wFMCommunicate OK [16:43:30]wFMCommunicate request_size=255 [16:43:30]MH_SAM_APDU [16:43:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B7 84 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 77 00 00 35 04 06 00 76 2C A2 29 [16:43:30]Write to MH i2c: E2 02 01 1A 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B7 84 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 77 00 00 35 04 06 00 76 2C A2 29 00 00 68 [16:43:30]Write i2c OK [16:43:30]MH_I2C_Read... [16:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:31]Read from MH i2c: E2 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 03 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 03 00 1A 50 00 90 00 DE [16:43:31]RAPDU: 90 00 [16:43:31]wFMCommunicate OK [16:43:31]wFMCommunicate request_size=7 [16:43:31]MH_SAM_APDU [16:43:31]CAPDU: 80 0D 02 02 02 21 D4 [16:43:31]Write to MH i2c: E2 0A 00 1B 50 80 0D 02 02 02 00 21 D4 00 00 DE [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:31]Read from MH i2c: E2 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 03 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [16:43:31]RAPDU: 90 00 [16:43:31]wFMCommunicate OK [16:43:31]wFMCommunicate request_size=4 [16:43:31]MH_SAM_APDU [16:43:31]CAPDU: 80 0D 03 02 [16:43:31]Write to MH i2c: E2 08 00 1C 50 80 0D 03 02 00 00 00 00 E7 [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:31]Read from MH i2c: E2 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 0B 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 0B 00 1C 50 00 A8 1C F3 B2 9E 16 94 9C 90 00 35 [16:43:31]RAPDU: A8 1C F3 B2 9E 16 94 9C 90 00 [16:43:31]wFMCommunicate OK [16:43:31]SAM_PROTO_SignData done [16:43:31]FM_MakeSignedData done [16:43:31]CreateOFDProtocolMessage [16:43:31]wFMCommunicate request_size=4 [16:43:31]MH_SAM_APDU [16:43:31]CAPDU: 80 11 00 00 [16:43:31]Write to MH i2c: E2 08 00 1D 50 80 11 00 00 00 00 00 00 E7 [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:31]Read from MH i2c: E2 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 17 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: E2 17 00 1D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 35 [16:43:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:43:31]wFMCommunicate OK [16:43:31]CreateOFDProtocolMessage done [16:43:31]OFDSenderStorePacket 30672 [16:43:31]StoreOFDPacket docnum=30672 [16:43:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 11 CC 04 01 38 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B7 84 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 77 00 00 35 04 06 00 76 2C A2 29 21 D4 A8 1C F3 B2 9E 16 94 9C [16:43:31]CheckFolder [16:43:31]dirname=/storage/ofd_packets [16:43:31]CheckFolder done [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00030672 [16:43:31]NVStorageSaveData ofd_packets/00030672 [16:43:31]File name is /storage/ofd_packets/00030672 [16:43:31]Write 298 bytes [16:43:31]NVStorageSaveData done [16:43:31]OFDSenderStorePacket done [16:43:31]KKMCreateOFDPacket done [16:43:31]NVStorageSaveData kkm_last_timestamp [16:43:31]File name is /storage/kkm_last_timestamp [16:43:31]Write 4 bytes [16:43:31]NVStorageSaveData done [16:43:31]ExternCall_PrintAddStr [16:43:31]wPrintStart [16:43:31]Write to MH i2c: 01 00 00 1E 50 6E [16:43:31]Write i2c OK [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 [16:43:31]MH_I2C_Read... [16:43:31]Read from MH i2c: 01 07 00 1E 50 00 00 00 00 00 FF 0F 83 [16:43:31]RasterBufferAndPrint [16:43:31]line Счет N : (1)343082 [16:43:31]line ИНН: 02508201610067 [16:43:31]line Контрольно-Кассовый Чек [16:43:31]line ПРОДАЖА [16:43:31]line ТРК (МРК, ГНК) : 54 [16:43:31]line Товар: 2710194210 [16:43:31]line ДТ-К-2 [16:43:31]line 19.690 * 76.20 [16:43:31]line = 1500.38 [16:43:31]line НДС 12% НСП 1% [16:43:31]line > о реализуемом товаре [16:43:31]line ОКРУГЛЕНИЕ: -0.38 [16:43:31]line ИТОГО: 1500.00 [16:43:31]line Внесено: 1500.00 [16:43:31]line СДАЧА: 0.00 [16:43:31]line НСП 1% : 13.28 [16:43:31]line НДС 12% : 159.33 [16:43:31]line Наличными: 1500.00 [16:43:31]line Безнал.: 0.00 [16:43:31]line Место: АЗС № 78 "Партнер Нефть" [16:43:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:43:31]line СНО: Общий режим [16:43:31]line Чек 169 21.10.2024 16:43 [16:43:31]line Смена: 115 ФФД: 1.0 [16:43:31]line ЗНМ: 0300000137 [16:43:31]line РНМ: 0000000000186857 [16:43:31]line Версия ККМ: v1.0 [16:43:31]line ФМ: 0000000002094219 [16:43:31]line ФД: 30672 [16:43:31]line ФПД: 129934071243220 [16:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164335&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30672&fm=129934071243220&tin=02508201610067®Number=0000000000186857&sum=150000 [16:43:31]OFD Sender: Processing packet 30672 [packets to send 10, broken 9] [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00030672 [16:43:31]OFD Sender: To server: pG, [16:43:31]CommunicateWithHost lk.salyk.kg:30040 [16:43:31]ConnectInit lk.salyk.kg [16:43:31]written 0, free lines is 4095 [16:43:31]Connected sock=7 [16:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 11 CC 04 01 38 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B7 84 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 77 00 00 35 04 06 00 76 2C A2 29 21 D4 A8 1C F3 B2 9E 16 94 9C [16:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9E 7C 47 00 DD 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D0 77 00 00 F4 03 04 00 37 2F 16 67 B6 04 01 00 00 64 82 7A 48 55 D6 CA AE [16:43:31]CommunicateWithHost err = 0 [16:43:31]CheckOFDResponse [16:43:31]1017 (14) - 77093643461234 [16:43:31]1041 (16) - 0000000002094219 [16:43:31]1040 (4) - 30672 [16:43:31]1012 (4) - 21.10.2024 10:38 [16:43:31]1206 (1) - 0 [16:43:31]OFD Sender: Remove packet 30672 [16:43:31]ProducePacketName [16:43:31]name=ofd_packets/00030672 [16:43:31]NVStorageDeleteData [16:43:32]Write to MH i2c: 01 00 00 49 50 99 [16:43:32]Write i2c OK [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: 01 [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: 01 07 00 [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: 01 07 00 49 50 00 00 00 00 00 FF 0C AB [16:43:32]RasterBufferAndPrint [16:43:32]line [16:43:32]line [16:43:32]line [16:43:32]line [16:43:32]line [16:43:32]written 0, free lines is 3333 [16:43:32]MH_Cut [16:43:32]Write to MH i2c: D1 01 00 50 50 01 72 [16:43:32]Write i2c OK [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: D1 [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: D1 01 00 [16:43:32]MH_I2C_Read... [16:43:32]Read from MH i2c: D1 01 00 50 50 00 71 [16:43:32]Write to MH i2c: 01 00 00 51 50 A1 [16:43:32]Write i2c OK [16:43:32]MH_I2C_Read... [16:43:32]OFD Sender: No OFD packet to send [16:43:32]*** Cut start [16:43:32]*** Partial cut [16:43:32]*** CUTSNS_PIN = 1 [16:43:32]*** CUTSNS_PIN = 0 [16:43:32]*** Brake cut motor [16:43:33]Read from MH i2c: 01 [16:43:33]MH_I2C_Read... [16:43:33]*** Stop cut motor [16:43:33]*** Cut end [16:43:33]Read from MH i2c: 01 07 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: 01 07 00 51 50 00 00 00 00 00 FF 0F B6 [16:43:33]process_action close_receipt done [16:43:33]requested_data is exist [16:43:33]produce_requested_data [16:43:33]requested_item fm.sn is exist - process it [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 11 00 00 [16:43:33]Write to MH i2c: E2 08 00 52 50 80 11 00 00 00 00 00 00 1C [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 17 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 17 00 52 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6A [16:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:43:33]wFMCommunicate OK [16:43:33]requested_item fd.num is exist - process it [16:43:33]SAM_PROTO_GetFieldsCounters [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 13 00 00 [16:43:33]Write to MH i2c: E2 08 00 53 50 80 13 00 00 00 00 00 00 1F [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 62 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 62 00 53 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [16:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:33]wFMCommunicate OK [16:43:33]SAM_PROTO_GetFieldsCounters done [16:43:33]requested_item shift.num is exist - process it [16:43:33]requested_item shift.opened is exist - process it [16:43:33]req_shift_opened [16:43:33]FM_GetShiftState [16:43:33]SAM_PROTO_GetShiftState [16:43:33]wFMCommunicate request_size=4 [16:43:33]MH_SAM_APDU [16:43:33]CAPDU: 80 13 01 00 [16:43:33]Write to MH i2c: E2 08 00 54 50 80 13 01 00 00 00 00 00 21 [16:43:33]Write i2c OK [16:43:33]MH_I2C_Read... [16:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:33]Read from MH i2c: E2 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 [16:43:33]MH_I2C_Read... [16:43:33]Read from MH i2c: E2 0E 00 54 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9D [16:43:33]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:43:33]wFMCommunicate OK [16:43:33]SAM_PROTO_GetShiftState done [16:43:33]FM_GetShiftState done [16:43:33]req_shift_opened done [16:43:33]requested_item shift.open_date is exist - process it [16:43:33]req_shift_open_date [16:43:33]req_shift_open_date done [16:43:33]produce_requested_data done [16:43:33]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30672,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:43:33]process_action_free close_receipt [16:43:33]json_value_free [16:43:33]json_value_free done [16:43:33]process_json_proto returns [16:43:33]Send response to host [16:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30672,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:43:33]free response buf [16:43:33]execute_script done [16:43:33]execute_script returns [16:43:33]free content buf [16:43:33]Sock 9.Close socket [16:43:33]Sock 9.Thread stoped [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:31]accept exits with 10 [16:47:31]New connection [16:47:31]New thread 3067489636 created [16:47:31]Thread 3067346276 joined [16:47:31]Waiting for new connection... [16:47:31] Sock 10.Parse request [16:47:31]Sock 10.Check first char [16:47:31]Sock 10.First char is OK [16:47:31]request: POST /json_proto HTTP/1.0 [16:47:31]Method: POST [16:47:31]URL: /json_proto [16:47:31]Method is POST - this is cgi request [16:47:31]url: /json_proto [16:47:31]query_string will be loaded in cgi processing [16:47:31]execute_cgi json_proto POST (null) [16:47:31]execute_cgi path=json_proto method=POST [16:47:31]POST find Content-Length [16:47:31]Host: 172.17.51.3:8080 [16:47:31]Content-Length: 677 [16:47:31]Content-Type: application/json [16:47:31] [16:47:31]POST finish read [16:47:31]Found Content-Length = 677 [16:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:31]execute_script... [16:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:31]POST & json_proto [16:47:31]process_json_proto [16:47:31]json parsed OK: [16:47:31]protocol is kg_v1.0 [16:47:31]action value=close_receipt [16:47:31]process_action close_receipt [16:47:31]cmd_close_receipt [16:47:31]MH_GetDate [16:47:31]Write to MH i2c: F0 00 00 55 50 94 [16:47:31]Write i2c OK [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: F0 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: F0 09 00 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: F0 09 00 55 50 00 A9 85 16 67 04 C1 95 66 08 [16:47:31]GetLastDocTimeStamp 1729529015 [16:47:31]current date 1729529257 [16:47:31]FM_GetShiftState [16:47:31]SAM_PROTO_GetShiftState [16:47:31]wFMCommunicate request_size=4 [16:47:31]MH_SAM_APDU [16:47:31]CAPDU: 80 13 01 00 [16:47:31]Write to MH i2c: E2 08 00 56 50 80 13 01 00 00 00 00 00 23 [16:47:31]Write i2c OK [16:47:31]MH_I2C_Read... [16:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:31]Read from MH i2c: E2 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 0E 00 [16:47:31]MH_I2C_Read... [16:47:31]Read from MH i2c: E2 0E 00 56 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9F [16:47:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:47:31]wFMCommunicate OK [16:47:31]SAM_PROTO_GetShiftState done [16:47:31]FM_GetShiftState done [16:47:31]opened in 1729471058 [16:47:31]opened+sec_in_day 1729557458 [16:47:31]quantity*price = 25020 [16:47:31]sum+1 = 25022 [16:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 170 21.10.2024 16:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30673 ФПД: 27533420006540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30673&fm=27533420006540&tin=02508201610067®Number=0000000000186857&sum=25000 [16:47:32]StoreToDocumentArchive [16:47:32]shift 115 fd 30673 [16:47:32]save to /storage/0115/doc_00030673 [16:47:32]save last doc name /storage/0115/doc_00030673 to /storage/kkm_last_doc_name [16:47:32]save OK [16:47:32]Clear old archive folders... [16:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:32]tlvbuf is 01DB6820 [16:47:32]SAM_PROTO_ClearQueue [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 09 00 00 [16:47:32]Write to MH i2c: E2 08 00 63 50 80 09 00 00 00 00 00 00 25 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 63 50 00 90 00 27 [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]SAM_PROTO_ClearQueue done [16:47:32]KKMCreateOFDPacket [16:47:32]OFDProtocolAddRootSTLVToBuf [16:47:32]FM_MakeSignedData [16:47:32]FM_MakeSignedData [16:47:32]SAM_PROTO_SignData [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 01 02 [16:47:32]Write to MH i2c: E2 08 00 64 50 80 0D 01 02 00 00 00 00 2D [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 64 50 00 90 00 28 [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]wFMCommunicate request_size=255 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A9 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 77 00 00 35 04 06 00 19 [16:47:32]Write to MH i2c: E2 02 01 65 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A9 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 77 00 00 35 04 06 00 19 00 00 C0 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]OFD Sender: No OFD packet to send [16:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 65 50 00 90 00 29 [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]wFMCommunicate request_size=10 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 02 02 05 0A 9F B8 0C 8C [16:47:32]Write to MH i2c: E2 0D 00 66 50 80 0D 02 02 05 00 0A 9F B8 0C 8C 00 00 33 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 03 00 66 50 00 90 00 2A [16:47:32]RAPDU: 90 00 [16:47:32]wFMCommunicate OK [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 0D 03 02 [16:47:32]Write to MH i2c: E2 08 00 67 50 80 0D 03 02 00 00 00 00 32 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0B 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 0B 00 67 50 00 5C 42 BA D8 2C 96 91 63 90 00 19 [16:47:32]RAPDU: 5C 42 BA D8 2C 96 91 63 90 00 [16:47:32]wFMCommunicate OK [16:47:32]SAM_PROTO_SignData done [16:47:32]FM_MakeSignedData done [16:47:32]CreateOFDProtocolMessage [16:47:32]wFMCommunicate request_size=4 [16:47:32]MH_SAM_APDU [16:47:32]CAPDU: 80 11 00 00 [16:47:32]Write to MH i2c: E2 08 00 68 50 80 11 00 00 00 00 00 00 32 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:32]Read from MH i2c: E2 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: E2 17 00 68 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [16:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:32]wFMCommunicate OK [16:47:32]CreateOFDProtocolMessage done [16:47:32]OFDSenderStorePacket 30673 [16:47:32]StoreOFDPacket docnum=30673 [16:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D6 EC 07 01 F9 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A9 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 77 00 00 35 04 06 00 19 0A 9F B8 0C 8C 5C 42 BA D8 2C 96 91 63 [16:47:32]CheckFolder [16:47:32]dirname=/storage/ofd_packets [16:47:32]CheckFolder done [16:47:32]ProducePacketName [16:47:32]name=ofd_packets/00030673 [16:47:32]NVStorageSaveData ofd_packets/00030673 [16:47:32]File name is /storage/ofd_packets/00030673 [16:47:32]Write 301 bytes [16:47:32]NVStorageSaveData done [16:47:32]OFDSenderStorePacket done [16:47:32]KKMCreateOFDPacket done [16:47:32]NVStorageSaveData kkm_last_timestamp [16:47:32]File name is /storage/kkm_last_timestamp [16:47:32]Write 4 bytes [16:47:32]NVStorageSaveData done [16:47:32]ExternCall_PrintAddStr [16:47:32]wPrintStart [16:47:32]Write to MH i2c: 01 00 00 69 50 B9 [16:47:32]Write i2c OK [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 07 00 [16:47:32]MH_I2C_Read... [16:47:32]Read from MH i2c: 01 07 00 69 50 00 00 00 00 00 FF 0F CE [16:47:32]RasterBufferAndPrint [16:47:32]line Счет N : (1)343084 [16:47:32]line ИНН: 02508201610067 [16:47:32]line Контрольно-Кассовый Чек [16:47:32]line ПРОДАЖА [16:47:32]line ТРК (МРК, ГНК) : 63 [16:47:33]line Товар: 2710124130 [16:47:33]line Аи-92-К-2 [16:47:33]line 3.740 * 66.90 [16:47:33]line = 250.21 [16:47:33]line НДС 12% НСП 1% [16:47:33]line > о реализуемом товаре [16:47:33]line ОКРУГЛЕНИЕ: -0.21 [16:47:33]line ИТОГО: 250.00 [16:47:33]line Внесено: 250.00 [16:47:33]line СДАЧА: 0.00 [16:47:33]line НСП 1% : 2.21 [16:47:33]line НДС 12% : 26.57 [16:47:33]line Наличными: 250.00 [16:47:33]line Безнал.: 0.00 [16:47:33]line Место: АЗС № 78 "Партнер Нефть" [16:47:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:47:33]line СНО: Общий режим [16:47:33]line Чек 170 21.10.2024 16:47 [16:47:33]line Смена: 115 ФФД: 1.0 [16:47:33]line ЗНМ: 0300000137 [16:47:33]line РНМ: 0000000000186857 [16:47:33]line Версия ККМ: v1.0 [16:47:33]line ФМ: 0000000002094219 [16:47:33]line ФД: 30673 [16:47:33]line ФПД: 27533420006540 [16:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164737&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30673&fm=27533420006540&tin=02508201610067®Number=0000000000186857&sum=25000 [16:47:33]OFD Sender: Processing packet 30673 [packets to send 10, broken 9] [16:47:33]ProducePacketName [16:47:33]name=ofd_packets/00030673 [16:47:33]OFD Sender: To server: pG, [16:47:33]CommunicateWithHost lk.salyk.kg:30040 [16:47:33]ConnectInit lk.salyk.kg [16:47:33]written 0, free lines is 4095 [16:47:33]Connected sock=9 [16:47:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D6 EC 07 01 F9 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 A9 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D1 77 00 00 35 04 06 00 19 0A 9F B8 0C 8C 5C 42 BA D8 2C 96 91 63 [16:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 7A BA 47 00 D8 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 32 30 39 34 32 31 39 10 04 04 00 D1 77 00 00 F4 03 04 00 29 30 16 67 B6 04 01 00 00 8A 93 53 6D C9 33 F9 6F [16:47:33]CommunicateWithHost err = 0 [16:47:33]CheckOFDResponse [16:47:33]1017 (14) - 77093643461234 [16:47:33]1041 (16) - 0000000002094219 [16:47:33]1040 (4) - 30673 [16:47:33]1012 (4) - 21.10.2024 10:42 [16:47:33]1206 (1) - 0 [16:47:33]OFD Sender: Remove packet 30673 [16:47:33]ProducePacketName [16:47:33]name=ofd_packets/00030673 [16:47:33]NVStorageDeleteData [16:47:33]Write to MH i2c: 01 00 00 94 50 E4 [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 07 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: 01 07 00 94 50 00 00 00 00 00 F5 0C EC [16:47:33]RasterBufferAndPrint [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]line [16:47:33]written 0, free lines is 3323 [16:47:33]MH_Cut [16:47:33]Write to MH i2c: D1 01 00 9B 50 01 BD [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 01 00 [16:47:33]MH_I2C_Read... [16:47:33]Read from MH i2c: D1 01 00 9B 50 00 BC [16:47:33]Write to MH i2c: 01 00 00 9C 50 EC [16:47:33]Write i2c OK [16:47:33]MH_I2C_Read... [16:47:34]OFD Sender: No OFD packet to send [16:47:34]*** Cut start [16:47:34]*** Partial cut [16:47:34]*** CUTSNS_PIN = 1 [16:47:34]*** CUTSNS_PIN = 0 [16:47:34]*** Brake cut motor [16:47:35]Read from MH i2c: 01 [16:47:35]MH_I2C_Read... [16:47:35]*** Stop cut motor [16:47:35]*** Cut end [16:47:35]Read from MH i2c: 01 07 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: 01 07 00 9C 50 00 00 00 00 00 FF 0F 01 [16:47:35]process_action close_receipt done [16:47:35]requested_data is exist [16:47:35]produce_requested_data [16:47:35]requested_item fm.sn is exist - process it [16:47:35]wFMCommunicate request_size=4 [16:47:35]MH_SAM_APDU [16:47:35]CAPDU: 80 11 00 00 [16:47:35]Write to MH i2c: E2 08 00 9D 50 80 11 00 00 00 00 00 00 67 [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 17 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 17 00 9D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [16:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:35]wFMCommunicate OK [16:47:35]requested_item fd.num is exist - process it [16:47:35]SAM_PROTO_GetFieldsCounters [16:47:35]wFMCommunicate request_size=4 [16:47:35]MH_SAM_APDU [16:47:35]CAPDU: 80 13 00 00 [16:47:35]Write to MH i2c: E2 08 00 9E 50 80 13 00 00 00 00 00 00 6A [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 62 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 62 00 9E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [16:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:35]wFMCommunicate OK [16:47:35]SAM_PROTO_GetFieldsCounters done [16:47:35]requested_item shift.num is exist - process it [16:47:35]requested_item shift.opened is exist - process it [16:47:35]req_shift_opened [16:47:35]FM_GetShiftState [16:47:35]SAM_PROTO_GetShiftState [16:47:35]wFMCommunicate request_size=4 [16:47:35]MH_SAM_APDU [16:47:35]CAPDU: 80 13 01 00 [16:47:35]Write to MH i2c: E2 08 00 9F 50 80 13 01 00 00 00 00 00 6C [16:47:35]Write i2c OK [16:47:35]MH_I2C_Read... [16:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:35]Read from MH i2c: E2 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 0E 00 [16:47:35]MH_I2C_Read... [16:47:35]Read from MH i2c: E2 0E 00 9F 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E8 [16:47:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:47:35]wFMCommunicate OK [16:47:35]SAM_PROTO_GetShiftState done [16:47:35]FM_GetShiftState done [16:47:35]req_shift_opened done [16:47:35]requested_item shift.open_date is exist - process it [16:47:35]req_shift_open_date [16:47:35]req_shift_open_date done [16:47:35]produce_requested_data done [16:47:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30673,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:47:35]process_action_free close_receipt [16:47:35]json_value_free [16:47:35]json_value_free done [16:47:35]process_json_proto returns [16:47:35]Send response to host [16:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30673,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:47:35]free response buf [16:47:35]execute_script done [16:47:35]execute_script returns [16:47:35]free content buf [16:47:35]Sock 10.Close socket [16:47:35]Sock 10.Thread stoped [16:47:39]OFD Sender: No OFD packet to send [16:47:40]accept exits with 7 [16:47:40]New connection [16:47:40]New thread 3067346276 created [16:47:40]Thread 3067489636 joined [16:47:40]Waiting for new connection... [16:47:40] Sock 7.Parse request [16:47:40]Sock 7.Check first char [16:47:40]Sock 7.First char is OK [16:47:40]request: POST /json_proto HTTP/1.0 [16:47:40]Method: POST [16:47:40]URL: /json_proto [16:47:40]Method is POST - this is cgi request [16:47:40]url: /json_proto [16:47:40]query_string will be loaded in cgi processing [16:47:40]execute_cgi json_proto POST (null) [16:47:40]execute_cgi path=json_proto method=POST [16:47:40]POST find Content-Length [16:47:40]Host: 172.17.51.3:8080 [16:47:40]Content-Length: 677 [16:47:40]Content-Type: application/json [16:47:40] [16:47:40]POST finish read [16:47:40]Found Content-Length = 677 [16:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:40]execute_script... [16:47:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:40]POST & json_proto [16:47:40]process_json_proto [16:47:40]json parsed OK: [16:47:40]protocol is kg_v1.0 [16:47:40]action value=close_receipt [16:47:40]process_action close_receipt [16:47:40]cmd_close_receipt [16:47:40]MH_GetDate [16:47:40]Write to MH i2c: F0 00 00 A0 50 DF [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: F0 09 00 A0 50 00 B2 85 16 67 04 C1 95 66 5C [16:47:40]GetLastDocTimeStamp 1729529257 [16:47:40]current date 1729529266 [16:47:40]FM_GetShiftState [16:47:40]SAM_PROTO_GetShiftState [16:47:40]wFMCommunicate request_size=4 [16:47:40]MH_SAM_APDU [16:47:40]CAPDU: 80 13 01 00 [16:47:40]Write to MH i2c: E2 08 00 A1 50 80 13 01 00 00 00 00 00 6E [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:40]Read from MH i2c: E2 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: E2 0E 00 A1 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EA [16:47:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:47:40]wFMCommunicate OK [16:47:40]SAM_PROTO_GetShiftState done [16:47:40]FM_GetShiftState done [16:47:40]opened in 1729471058 [16:47:40]opened+sec_in_day 1729557458 [16:47:40]quantity*price = 20003 [16:47:40]sum+1 = 20004 [16:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 171 21.10.2024 16:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30674 ФПД: 216814984486446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30674&fm=216814984486446&tin=02508201610067®Number=0000000000186857&sum=20000 [16:47:41]StoreToDocumentArchive [16:47:41]shift 115 fd 30674 [16:47:41]save to /storage/0115/doc_00030674 [16:47:41]save last doc name /storage/0115/doc_00030674 to /storage/kkm_last_doc_name [16:47:41]save OK [16:47:41]Clear old archive folders... [16:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:47:41]tlvbuf is 01F6B2E0 [16:47:41]SAM_PROTO_ClearQueue [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 09 00 00 [16:47:41]Write to MH i2c: E2 08 00 AE 50 80 09 00 00 00 00 00 00 70 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 AE 50 00 90 00 72 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_ClearQueue done [16:47:41]KKMCreateOFDPacket [16:47:41]OFDProtocolAddRootSTLVToBuf [16:47:41]FM_MakeSignedData [16:47:41]FM_MakeSignedData [16:47:41]SAM_PROTO_SignData [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 01 02 [16:47:41]Write to MH i2c: E2 08 00 AF 50 80 0D 01 02 00 00 00 00 78 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 AF 50 00 90 00 73 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=255 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 AB 00 00 00 F4 03 04 00 B2 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 77 00 00 35 04 06 00 C5 [16:47:41]Write to MH i2c: E2 02 01 B0 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 AB 00 00 00 F4 03 04 00 B2 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 77 00 00 35 04 06 00 C5 00 00 AB [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 B0 50 00 90 00 74 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=10 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 02 02 05 31 2C 21 DE 2E [16:47:41]Write to MH i2c: E2 0D 00 B1 50 80 0D 02 02 05 00 31 2C 21 DE 2E 00 00 0F [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 03 00 B1 50 00 90 00 75 [16:47:41]RAPDU: 90 00 [16:47:41]wFMCommunicate OK [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 0D 03 02 [16:47:41]Write to MH i2c: E2 08 00 B2 50 80 0D 03 02 00 00 00 00 7D [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0B 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 0B 00 B2 50 00 11 E0 F5 C7 81 BB F7 29 90 00 87 [16:47:41]RAPDU: 11 E0 F5 C7 81 BB F7 29 90 00 [16:47:41]wFMCommunicate OK [16:47:41]SAM_PROTO_SignData done [16:47:41]FM_MakeSignedData done [16:47:41]CreateOFDProtocolMessage [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 11 00 00 [16:47:41]Write to MH i2c: E2 08 00 B3 50 80 11 00 00 00 00 00 00 7D [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 17 00 B3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [16:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:42]wFMCommunicate OK [16:47:42]CreateOFDProtocolMessage done [16:47:42]OFDSenderStorePacket 30674 [16:47:42]StoreOFDPacket docnum=30674 [16:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5A 47 07 01 1A 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 AB 00 00 00 F4 03 04 00 B2 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 77 00 00 35 04 06 00 C5 31 2C 21 DE 2E 11 E0 F5 C7 81 BB F7 29 [16:47:42]CheckFolder [16:47:42]dirname=/storage/ofd_packets [16:47:42]CheckFolder done [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00030674 [16:47:42]NVStorageSaveData ofd_packets/00030674 [16:47:42]File name is /storage/ofd_packets/00030674 [16:47:42]Write 301 bytes [16:47:42]NVStorageSaveData done [16:47:42]OFDSenderStorePacket done [16:47:42]KKMCreateOFDPacket done [16:47:42]NVStorageSaveData kkm_last_timestamp [16:47:42]File name is /storage/kkm_last_timestamp [16:47:42]Write 4 bytes [16:47:42]NVStorageSaveData done [16:47:42]ExternCall_PrintAddStr [16:47:42]wPrintStart [16:47:42]Write to MH i2c: 01 00 00 B4 50 04 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 B4 50 00 00 00 00 00 FF 0F 19 [16:47:42]RasterBufferAndPrint [16:47:42]line Счет N : (1)343085 [16:47:42]line ИНН: 02508201610067 [16:47:42]line Контрольно-Кассовый Чек [16:47:42]line ПРОДАЖА [16:47:42]line ТРК (МРК, ГНК) : 43 [16:47:42]line Товар: 2710124130 [16:47:42]line Аи-92-К-2 [16:47:42]line 2.990 * 66.90 [16:47:42]line = 200.03 [16:47:42]line НДС 12% НСП 1% [16:47:42]line > о реализуемом товаре [16:47:42]line ОКРУГЛЕНИЕ: -0.03 [16:47:42]line ИТОГО: 200.00 [16:47:42]line Внесено: 200.00 [16:47:42]line СДАЧА: 0.00 [16:47:42]line НСП 1% : 1.77 [16:47:42]line НДС 12% : 21.24 [16:47:42]line Наличными: 200.00 [16:47:42]line Безнал.: 0.00 [16:47:42]line Место: АЗС № 78 "Партнер Нефть" [16:47:42]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:47:42]line СНО: Общий режим [16:47:42]line Чек 171 21.10.2024 16:47 [16:47:42]line Смена: 115 ФФД: 1.0 [16:47:42]line ЗНМ: 0300000137 [16:47:42]line РНМ: 0000000000186857 [16:47:42]line Версия ККМ: v1.0 [16:47:42]line ФМ: 0000000002094219 [16:47:42]line ФД: 30674 [16:47:42]line ФПД: 216814984486446 [16:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164746&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30674&fm=216814984486446&tin=02508201610067®Number=0000000000186857&sum=20000 [16:47:42]written 0, free lines is 4095 [16:47:42]OFD Sender: Processing packet 30674 [packets to send 10, broken 9] [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00030674 [16:47:42]OFD Sender: To server: pG, [16:47:42]CommunicateWithHost lk.salyk.kg:30040 [16:47:42]ConnectInit lk.salyk.kg [16:47:42]Connected sock=10 [16:47:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5A 47 07 01 1A 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 AB 00 00 00 F4 03 04 00 B2 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 77 00 00 35 04 06 00 C5 31 2C 21 DE 2E 11 E0 F5 C7 81 BB F7 29 [16:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BA 68 47 00 F5 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D2 77 00 00 F4 03 04 00 32 30 16 67 B6 04 01 00 00 0C FA 66 A1 FC 61 A4 6A [16:47:42]CommunicateWithHost err = 0 [16:47:42]CheckOFDResponse [16:47:42]1017 (14) - 77093643461234 [16:47:42]1041 (16) - 0000000002094219 [16:47:42]1040 (4) - 30674 [16:47:42]1012 (4) - 21.10.2024 10:42 [16:47:42]1206 (1) - 0 [16:47:42]OFD Sender: Remove packet 30674 [16:47:42]ProducePacketName [16:47:42]name=ofd_packets/00030674 [16:47:42]NVStorageDeleteData [16:47:42]Write to MH i2c: 01 00 00 DF 50 2F [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: 01 07 00 DF 50 00 00 00 00 00 FD 0C 3F [16:47:42]RasterBufferAndPrint [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]line [16:47:42]written 0, free lines is 3337 [16:47:42]MH_Cut [16:47:42]Write to MH i2c: D1 01 00 E6 50 01 08 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: D1 01 00 E6 50 00 07 [16:47:42]Write to MH i2c: 01 00 00 E7 50 37 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]OFD Sender: No OFD packet to send [16:47:43]*** Cut start [16:47:43]*** Partial cut [16:47:43]*** CUTSNS_PIN = 1 [16:47:43]*** CUTSNS_PIN = 0 [16:47:43]*** Brake cut motor [16:47:43]Read from MH i2c: 01 [16:47:43]MH_I2C_Read... [16:47:43]*** Stop cut motor [16:47:43]*** Cut end [16:47:43]Read from MH i2c: 01 07 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: 01 07 00 E7 50 00 00 00 00 00 FF 0F 4C [16:47:43]process_action close_receipt done [16:47:43]requested_data is exist [16:47:43]produce_requested_data [16:47:43]requested_item fm.sn is exist - process it [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 11 00 00 [16:47:43]Write to MH i2c: E2 08 00 E8 50 80 11 00 00 00 00 00 00 B2 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 17 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 17 00 E8 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [16:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:47:43]wFMCommunicate OK [16:47:43]requested_item fd.num is exist - process it [16:47:43]SAM_PROTO_GetFieldsCounters [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 13 00 00 [16:47:43]Write to MH i2c: E2 08 00 E9 50 80 13 00 00 00 00 00 00 B5 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:43]Read from MH i2c: E2 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 62 00 [16:47:43]MH_I2C_Read... [16:47:43]Read from MH i2c: E2 62 00 E9 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:43]wFMCommunicate OK [16:47:43]SAM_PROTO_GetFieldsCounters done [16:47:43]requested_item shift.num is exist - process it [16:47:43]requested_item shift.opened is exist - process it [16:47:43]req_shift_opened [16:47:43]FM_GetShiftState [16:47:43]SAM_PROTO_GetShiftState [16:47:43]wFMCommunicate request_size=4 [16:47:43]MH_SAM_APDU [16:47:43]CAPDU: 80 13 01 00 [16:47:43]Write to MH i2c: E2 08 00 EA 50 80 13 01 00 00 00 00 00 B7 [16:47:43]Write i2c OK [16:47:43]MH_I2C_Read... [16:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:44]Read from MH i2c: E2 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 [16:47:44]MH_I2C_Read... [16:47:44]Read from MH i2c: E2 0E 00 EA 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 33 [16:47:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:47:44]wFMCommunicate OK [16:47:44]SAM_PROTO_GetShiftState done [16:47:44]FM_GetShiftState done [16:47:44]req_shift_opened done [16:47:44]requested_item shift.open_date is exist - process it [16:47:44]req_shift_open_date [16:47:44]req_shift_open_date done [16:47:44]produce_requested_data done [16:47:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30674,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:47:44]process_action_free close_receipt [16:47:44]json_value_free [16:47:44]json_value_free done [16:47:44]process_json_proto returns [16:47:44]Send response to host [16:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30674,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:47:44]free response buf [16:47:44]execute_script done [16:47:44]execute_script returns [16:47:44]free content buf [16:47:44]Sock 7.Close socket [16:47:44]Sock 7.Thread stoped [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]accept exits with 9 [16:48:17]New connection [16:48:17]New thread 3067489636 created [16:48:17]Thread 3067346276 joined [16:48:17]Waiting for new connection... [16:48:17] Sock 9.Parse request [16:48:17]Sock 9.Check first char [16:48:17]Sock 9.First char is OK [16:48:17]request: POST /json_proto HTTP/1.0 [16:48:17]Method: POST [16:48:17]URL: /json_proto [16:48:17]Method is POST - this is cgi request [16:48:17]url: /json_proto [16:48:17]query_string will be loaded in cgi processing [16:48:17]execute_cgi json_proto POST (null) [16:48:17]execute_cgi path=json_proto method=POST [16:48:17]POST find Content-Length [16:48:17]Host: 172.17.51.3:8080 [16:48:17]Content-Length: 677 [16:48:17]Content-Type: application/json [16:48:17] [16:48:17]POST finish read [16:48:17]Found Content-Length = 677 [16:48:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:17]execute_script... [16:48:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:17]POST & json_proto [16:48:17]process_json_proto [16:48:17]json parsed OK: [16:48:17]protocol is kg_v1.0 [16:48:17]action value=close_receipt [16:48:17]process_action close_receipt [16:48:17]cmd_close_receipt [16:48:17]MH_GetDate [16:48:17]Write to MH i2c: F0 00 00 EB 50 2A [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 09 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: F0 09 00 EB 50 00 D7 85 16 67 04 C1 95 66 CC [16:48:17]GetLastDocTimeStamp 1729529266 [16:48:17]current date 1729529303 [16:48:17]FM_GetShiftState [16:48:17]SAM_PROTO_GetShiftState [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 13 01 00 [16:48:17]Write to MH i2c: E2 08 00 EC 50 80 13 01 00 00 00 00 00 B9 [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 0E 00 EC 50 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 35 [16:48:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:48:17]wFMCommunicate OK [16:48:17]SAM_PROTO_GetShiftState done [16:48:17]FM_GetShiftState done [16:48:17]opened in 1729471058 [16:48:17]opened+sec_in_day 1729557458 [16:48:17]quantity*price = 10035 [16:48:17]sum+1 = 10036 [16:48:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 172 21.10.2024 16:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30675 ФПД: 95387494120200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30675&fm=95387494120200&tin=02508201610067®Number=0000000000186857&sum=10000 [16:48:18]StoreToDocumentArchive [16:48:18]shift 115 fd 30675 [16:48:18]save to /storage/0115/doc_00030675 [16:48:18]save last doc name /storage/0115/doc_00030675 to /storage/kkm_last_doc_name [16:48:18]save OK [16:48:18]Clear old archive folders... [16:48:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:18]tlvbuf is 01F55BC0 [16:48:18]SAM_PROTO_ClearQueue [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 09 00 00 [16:48:18]Write to MH i2c: E2 08 00 F9 50 80 09 00 00 00 00 00 00 BB [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 F9 50 00 90 00 BD [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_ClearQueue done [16:48:18]KKMCreateOFDPacket [16:48:18]OFDProtocolAddRootSTLVToBuf [16:48:18]FM_MakeSignedData [16:48:18]FM_MakeSignedData [16:48:18]SAM_PROTO_SignData [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 01 02 [16:48:18]Write to MH i2c: E2 08 00 FA 50 80 0D 01 02 00 00 00 00 C3 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 03 00 FA 50 00 90 00 BE [16:48:18]RAPDU: 90 00 [16:48:18]wFMCommunicate OK [16:48:18]wFMCommunicate request_size=255 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D7 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 77 00 00 35 04 06 00 56 [16:48:18]Write to MH i2c: E2 02 01 FB 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D7 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 77 00 00 35 04 06 00 56 00 00 D3 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 FB 50 00 90 00 BF [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]wFMCommunicate request_size=10 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 02 02 05 C1 21 B3 FB 08 [16:48:19]Write to MH i2c: E2 0D 00 FC 50 80 0D 02 02 05 00 C1 21 B3 FB 08 00 00 68 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 FC 50 00 90 00 C0 [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 03 02 [16:48:19]Write to MH i2c: E2 08 00 FD 50 80 0D 03 02 00 00 00 00 C8 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 0B 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 0B 00 FD 50 00 4E 3B A8 C3 B8 F5 3F A6 90 00 4F [16:48:19]RAPDU: 4E 3B A8 C3 B8 F5 3F A6 90 00 [16:48:19]wFMCommunicate OK [16:48:19]SAM_PROTO_SignData done [16:48:19]FM_MakeSignedData done [16:48:19]CreateOFDProtocolMessage [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 11 00 00 [16:48:19]Write to MH i2c: E2 08 00 FE 50 80 11 00 00 00 00 00 00 C8 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 17 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 17 00 FE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [16:48:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:48:19]wFMCommunicate OK [16:48:19]CreateOFDProtocolMessage done [16:48:19]OFDSenderStorePacket 30675 [16:48:19]StoreOFDPacket docnum=30675 [16:48:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EE 59 07 01 7E 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D7 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 77 00 00 35 04 06 00 56 C1 21 B3 FB 08 4E 3B A8 C3 B8 F5 3F A6 [16:48:19]CheckFolder [16:48:19]dirname=/storage/ofd_packets [16:48:19]CheckFolder done [16:48:19]ProducePacketName [16:48:19]name=ofd_packets/00030675 [16:48:19]NVStorageSaveData ofd_packets/00030675 [16:48:19]File name is /storage/ofd_packets/00030675 [16:48:19]Write 301 bytes [16:48:19]NVStorageSaveData done [16:48:19]OFDSenderStorePacket done [16:48:19]KKMCreateOFDPacket done [16:48:19]NVStorageSaveData kkm_last_timestamp [16:48:19]File name is /storage/kkm_last_timestamp [16:48:19]Write 4 bytes [16:48:19]NVStorageSaveData done [16:48:19]ExternCall_PrintAddStr [16:48:19]wPrintStart [16:48:19]Write to MH i2c: 01 00 00 FF 50 4F [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 07 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: 01 07 00 FF 50 00 00 00 00 00 FF 0F 64 [16:48:19]RasterBufferAndPrint [16:48:19]line Счет N : (1)343086 [16:48:19]line ИНН: 02508201610067 [16:48:19]line Контрольно-Кассовый Чек [16:48:19]line ПРОДАЖА [16:48:19]line ТРК (МРК, ГНК) : 63 [16:48:19]line Товар: 2710124130 [16:48:19]line Аи-92-К-2 [16:48:19]line 1.500 * 66.90 [16:48:19]line = 100.35 [16:48:19]line НДС 12% НСП 1% [16:48:19]line > о реализуемом товаре [16:48:19]line ОКРУГЛЕНИЕ: -0.35 [16:48:19]line ИТОГО: 100.00 [16:48:19]line Внесено: 100.00 [16:48:19]line СДАЧА: 0.00 [16:48:19]line НСП 1% : 0.89 [16:48:19]line НДС 12% : 10.66 [16:48:19]line Наличными: 100.00 [16:48:19]line Безнал.: 0.00 [16:48:19]line Место: АЗС № 78 "Партнер Нефть" [16:48:19]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:48:19]line СНО: Общий режим [16:48:19]line Чек 172 21.10.2024 16:48 [16:48:19]line Смена: 115 ФФД: 1.0 [16:48:19]line ЗНМ: 0300000137 [16:48:19]line РНМ: 0000000000186857 [16:48:19]line Версия ККМ: v1.0 [16:48:19]line ФМ: 0000000002094219 [16:48:19]line ФД: 30675 [16:48:19]line ФПД: 95387494120200 [16:48:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164823&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30675&fm=95387494120200&tin=02508201610067®Number=0000000000186857&sum=10000 [16:48:19]OFD Sender: Processing packet 30675 [packets to send 10, broken 9] [16:48:19]ProducePacketName [16:48:19]name=ofd_packets/00030675 [16:48:19]OFD Sender: To server: pG, [16:48:19]CommunicateWithHost lk.salyk.kg:30040 [16:48:19]ConnectInit lk.salyk.kg [16:48:19]written 0, free lines is 4095 [16:48:19]Connected sock=10 [16:48:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EE 59 07 01 7E 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 D7 85 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 77 00 00 35 04 06 00 56 C1 21 B3 FB 08 4E 3B A8 C3 B8 F5 3F A6 [16:48:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 72 9F 47 00 B1 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D3 77 00 00 F4 03 04 00 57 30 16 67 B6 04 01 00 00 6E 9F 8B 6C 2D 66 24 72 [16:48:20]CommunicateWithHost err = 0 [16:48:20]CheckOFDResponse [16:48:20]1017 (14) - 77093643461234 [16:48:20]1041 (16) - 0000000002094219 [16:48:20]1040 (4) - 30675 [16:48:20]1012 (4) - 21.10.2024 10:43 [16:48:20]1206 (1) - 0 [16:48:20]OFD Sender: Remove packet 30675 [16:48:20]ProducePacketName [16:48:20]name=ofd_packets/00030675 [16:48:20]NVStorageDeleteData [16:48:20]Write to MH i2c: 01 00 00 2A 51 7B [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 2A 51 00 00 00 00 00 FB 0C 89 [16:48:20]RasterBufferAndPrint [16:48:20]line [16:48:20]line [16:48:20]line [16:48:20]line [16:48:20]line [16:48:20]written 0, free lines is 3329 [16:48:20]MH_Cut [16:48:20]Write to MH i2c: D1 01 00 31 51 01 54 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: D1 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: D1 01 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: D1 01 00 31 51 00 53 [16:48:20]Write to MH i2c: 01 00 00 32 51 83 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]OFD Sender: No OFD packet to send [16:48:20]*** Cut start [16:48:20]*** Partial cut [16:48:20]*** CUTSNS_PIN = 1 [16:48:20]*** CUTSNS_PIN = 0 [16:48:21]*** Brake cut motor [16:48:21]Read from MH i2c: 01 [16:48:21]MH_I2C_Read... [16:48:21]*** Stop cut motor [16:48:21]*** Cut end [16:48:21]Read from MH i2c: 01 07 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 32 51 00 00 00 00 00 FF 0F 98 [16:48:21]process_action close_receipt done [16:48:21]requested_data is exist [16:48:21]produce_requested_data [16:48:21]requested_item fm.sn is exist - process it [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 11 00 00 [16:48:21]Write to MH i2c: E2 08 00 33 51 80 11 00 00 00 00 00 00 FE [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 17 00 33 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4C [16:48:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:48:21]wFMCommunicate OK [16:48:21]requested_item fd.num is exist - process it [16:48:21]SAM_PROTO_GetFieldsCounters [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 13 00 00 [16:48:21]Write to MH i2c: E2 08 00 34 51 80 13 00 00 00 00 00 00 01 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 62 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 62 00 34 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [16:48:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetFieldsCounters done [16:48:21]requested_item shift.num is exist - process it [16:48:21]requested_item shift.opened is exist - process it [16:48:21]req_shift_opened [16:48:21]FM_GetShiftState [16:48:21]SAM_PROTO_GetShiftState [16:48:21]wFMCommunicate request_size=4 [16:48:21]MH_SAM_APDU [16:48:21]CAPDU: 80 13 01 00 [16:48:21]Write to MH i2c: E2 08 00 35 51 80 13 01 00 00 00 00 00 03 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:21]Read from MH i2c: E2 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: E2 0E 00 35 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7F [16:48:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:48:21]wFMCommunicate OK [16:48:21]SAM_PROTO_GetShiftState done [16:48:21]FM_GetShiftState done [16:48:21]req_shift_opened done [16:48:21]requested_item shift.open_date is exist - process it [16:48:21]req_shift_open_date [16:48:21]req_shift_open_date done [16:48:21]produce_requested_data done [16:48:21]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30675,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:48:21]process_action_free close_receipt [16:48:21]json_value_free [16:48:21]json_value_free done [16:48:21]process_json_proto returns [16:48:21]Send response to host [16:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30675,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:48:21]free response buf [16:48:21]execute_script done [16:48:21]execute_script returns [16:48:21]free content buf [16:48:21]Sock 9.Close socket [16:48:21]Sock 9.Thread stoped [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:11]accept exits with 7 [16:52:11]New connection [16:52:11]New thread 3067346276 created [16:52:11]Thread 3067489636 joined [16:52:11]Waiting for new connection... [16:52:11] Sock 7.Parse request [16:52:11]Sock 7.Check first char [16:52:11]Sock 7.First char is OK [16:52:11]request: POST /json_proto HTTP/1.0 [16:52:11]Method: POST [16:52:11]URL: /json_proto [16:52:11]Method is POST - this is cgi request [16:52:11]url: /json_proto [16:52:11]query_string will be loaded in cgi processing [16:52:11]execute_cgi json_proto POST (null) [16:52:11]execute_cgi path=json_proto method=POST [16:52:11]POST find Content-Length [16:52:11]Host: 172.17.51.3:8080 [16:52:11]Content-Length: 674 [16:52:11]Content-Type: application/json [16:52:11] [16:52:11]POST finish read [16:52:11]Found Content-Length = 674 [16:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]execute_script... [16:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:11]POST & json_proto [16:52:11]process_json_proto [16:52:11]json parsed OK: [16:52:11]protocol is kg_v1.0 [16:52:11]action value=close_receipt [16:52:11]process_action close_receipt [16:52:11]cmd_close_receipt [16:52:11]MH_GetDate [16:52:11]Write to MH i2c: F0 00 00 36 51 76 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: F0 09 00 36 51 00 C1 86 16 67 04 C1 95 66 03 [16:52:11]GetLastDocTimeStamp 1729529303 [16:52:11]current date 1729529537 [16:52:11]FM_GetShiftState [16:52:11]SAM_PROTO_GetShiftState [16:52:11]wFMCommunicate request_size=4 [16:52:11]MH_SAM_APDU [16:52:11]CAPDU: 80 13 01 00 [16:52:11]Write to MH i2c: E2 08 00 37 51 80 13 01 00 00 00 00 00 05 [16:52:11]Write i2c OK [16:52:11]MH_I2C_Read... [16:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:11]Read from MH i2c: E2 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 [16:52:11]MH_I2C_Read... [16:52:11]Read from MH i2c: E2 0E 00 37 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 81 [16:52:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:52:11]wFMCommunicate OK [16:52:11]SAM_PROTO_GetShiftState done [16:52:11]FM_GetShiftState done [16:52:11]opened in 1729471058 [16:52:11]opened+sec_in_day 1729557458 [16:52:11]quantity*price = 40005 [16:52:11]sum+1 = 40006 [16:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 173 21.10.2024 16:52 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30676 ФПД: 95496672526132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30676&fm=95496672526132&tin=02508201610067®Number=0000000000186857&sum=40000 [16:52:13]StoreToDocumentArchive [16:52:13]shift 115 fd 30676 [16:52:13]save to /storage/0115/doc_00030676 [16:52:13]save last doc name /storage/0115/doc_00030676 to /storage/kkm_last_doc_name [16:52:13]save OK [16:52:13]Clear old archive folders... [16:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:52:13]tlvbuf is B6E2B010 [16:52:13]SAM_PROTO_ClearQueue [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 09 00 00 [16:52:13]Write to MH i2c: E2 08 00 44 51 80 09 00 00 00 00 00 00 07 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 44 51 00 90 00 09 [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_ClearQueue done [16:52:13]KKMCreateOFDPacket [16:52:13]OFDProtocolAddRootSTLVToBuf [16:52:13]FM_MakeSignedData [16:52:13]FM_MakeSignedData [16:52:13]SAM_PROTO_SignData [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 01 02 [16:52:13]Write to MH i2c: E2 08 00 45 51 80 0D 01 02 00 00 00 00 0F [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 45 51 00 90 00 0A [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=255 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C1 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 77 00 00 35 04 06 00 56 DA 8D 3E [16:52:13]Write to MH i2c: E2 02 01 46 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C1 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 77 00 00 35 04 06 00 56 DA 8D 3E 00 00 B3 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 46 51 00 90 00 0B [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=7 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 02 02 02 3F 34 [16:52:13]Write to MH i2c: E2 0A 00 47 51 80 0D 02 02 02 00 3F 34 00 00 89 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 03 00 47 51 00 90 00 0C [16:52:13]RAPDU: 90 00 [16:52:13]wFMCommunicate OK [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 0D 03 02 [16:52:13]Write to MH i2c: E2 08 00 48 51 80 0D 03 02 00 00 00 00 14 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 0B 00 48 51 00 83 76 7B 42 6C 1C 08 50 90 00 AB [16:52:13]RAPDU: 83 76 7B 42 6C 1C 08 50 90 00 [16:52:13]wFMCommunicate OK [16:52:13]SAM_PROTO_SignData done [16:52:13]FM_MakeSignedData done [16:52:13]CreateOFDProtocolMessage [16:52:13]wFMCommunicate request_size=4 [16:52:13]MH_SAM_APDU [16:52:13]CAPDU: 80 11 00 00 [16:52:13]Write to MH i2c: E2 08 00 49 51 80 11 00 00 00 00 00 00 14 [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:13]Read from MH i2c: E2 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: E2 17 00 49 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [16:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:52:13]wFMCommunicate OK [16:52:13]CreateOFDProtocolMessage done [16:52:13]OFDSenderStorePacket 30676 [16:52:13]StoreOFDPacket docnum=30676 [16:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BE 36 04 01 2F 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C1 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 77 00 00 35 04 06 00 56 DA 8D 3E 3F 34 83 76 7B 42 6C 1C 08 50 [16:52:13]CheckFolder [16:52:13]dirname=/storage/ofd_packets [16:52:13]CheckFolder done [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00030676 [16:52:13]NVStorageSaveData ofd_packets/00030676 [16:52:13]File name is /storage/ofd_packets/00030676 [16:52:13]Write 298 bytes [16:52:13]NVStorageSaveData done [16:52:13]OFDSenderStorePacket done [16:52:13]KKMCreateOFDPacket done [16:52:13]NVStorageSaveData kkm_last_timestamp [16:52:13]File name is /storage/kkm_last_timestamp [16:52:13]Write 4 bytes [16:52:13]NVStorageSaveData done [16:52:13]ExternCall_PrintAddStr [16:52:13]wPrintStart [16:52:13]Write to MH i2c: 01 00 00 4A 51 9B [16:52:13]Write i2c OK [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 [16:52:13]MH_I2C_Read... [16:52:13]Read from MH i2c: 01 07 00 4A 51 00 00 00 00 00 FF 0F B0 [16:52:13]RasterBufferAndPrint [16:52:13]line Счет N : (1)343087 [16:52:13]line ИНН: 02508201610067 [16:52:13]line Контрольно-Кассовый Чек [16:52:13]line ПРОДАЖА [16:52:13]line ТРК (МРК, ГНК) : 64 [16:52:13]line Товар: 2710194210 [16:52:13]line ДТ-К-2 [16:52:13]line 5.250 * 76.20 [16:52:13]line = 400.05 [16:52:13]line НДС 12% НСП 1% [16:52:13]line > о реализуемом товаре [16:52:13]line ОКРУГЛЕНИЕ: -0.05 [16:52:13]line ИТОГО: 400.00 [16:52:13]line Внесено: 400.00 [16:52:13]line СДАЧА: 0.00 [16:52:13]line НСП 1% : 3.54 [16:52:13]line НДС 12% : 42.48 [16:52:13]line Наличными: 400.00 [16:52:13]line Безнал.: 0.00 [16:52:13]line Место: АЗС № 78 "Партнер Нефть" [16:52:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:52:13]line СНО: Общий режим [16:52:13]line Чек 173 21.10.2024 16:52 [16:52:13]line Смена: 115 ФФД: 1.0 [16:52:13]line ЗНМ: 0300000137 [16:52:13]line РНМ: 0000000000186857 [16:52:13]line Версия ККМ: v1.0 [16:52:13]line ФМ: 0000000002094219 [16:52:13]line ФД: 30676 [16:52:13]line ФПД: 95496672526132 [16:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30676&fm=95496672526132&tin=02508201610067®Number=0000000000186857&sum=40000 [16:52:13]OFD Sender: Processing packet 30676 [packets to send 10, broken 9] [16:52:13]ProducePacketName [16:52:13]name=ofd_packets/00030676 [16:52:13]OFD Sender: To server: pG, [16:52:13]CommunicateWithHost lk.salyk.kg:30040 [16:52:13]ConnectInit lk.salyk.kg [16:52:13]written 0, free lines is 4095 [16:52:13]Connected sock=10 [16:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 BE 36 04 01 2F 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 C1 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D4 77 00 00 35 04 06 00 56 DA 8D 3E 3F 34 83 76 7B 42 6C 1C 08 50 [16:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2E 77 47 00 29 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 32 30 39 34 32 31 39 10 04 04 00 D4 77 00 00 F4 03 04 00 41 31 16 67 B6 04 01 00 00 13 8E EF 0B 48 2E A7 D7 [16:52:14]CommunicateWithHost err = 0 [16:52:14]CheckOFDResponse [16:52:14]1017 (14) - 77093643461234 [16:52:14]1041 (16) - 0000000002094219 [16:52:14]1040 (4) - 30676 [16:52:14]1012 (4) - 21.10.2024 10:47 [16:52:14]1206 (1) - 0 [16:52:14]OFD Sender: Remove packet 30676 [16:52:14]ProducePacketName [16:52:14]name=ofd_packets/00030676 [16:52:14]NVStorageDeleteData [16:52:14]Write to MH i2c: 01 00 00 75 51 C6 [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: 01 07 00 75 51 00 00 00 00 00 F3 0C CC [16:52:14]RasterBufferAndPrint [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]line [16:52:14]written 0, free lines is 3321 [16:52:14]MH_Cut [16:52:14]Write to MH i2c: D1 01 00 7C 51 01 9F [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 [16:52:14]MH_I2C_Read... [16:52:14]Read from MH i2c: D1 01 00 7C 51 00 9E [16:52:14]Write to MH i2c: 01 00 00 7D 51 CE [16:52:14]Write i2c OK [16:52:14]MH_I2C_Read... [16:52:14]OFD Sender: No OFD packet to send [16:52:14]*** Cut start [16:52:14]*** Partial cut [16:52:14]*** CUTSNS_PIN = 1 [16:52:15]*** CUTSNS_PIN = 0 [16:52:15]*** Brake cut motor [16:52:15]Read from MH i2c: 01 [16:52:15]MH_I2C_Read... [16:52:15]*** Stop cut motor [16:52:15]*** Cut end [16:52:15]Read from MH i2c: 01 07 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: 01 07 00 7D 51 00 00 00 00 00 FF 0F E3 [16:52:15]process_action close_receipt done [16:52:15]requested_data is exist [16:52:15]produce_requested_data [16:52:15]requested_item fm.sn is exist - process it [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 11 00 00 [16:52:15]Write to MH i2c: E2 08 00 7E 51 80 11 00 00 00 00 00 00 49 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 17 00 7E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [16:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:52:15]wFMCommunicate OK [16:52:15]requested_item fd.num is exist - process it [16:52:15]SAM_PROTO_GetFieldsCounters [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 00 00 [16:52:15]Write to MH i2c: E2 08 00 7F 51 80 13 00 00 00 00 00 00 4C [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 62 00 7F 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetFieldsCounters done [16:52:15]requested_item shift.num is exist - process it [16:52:15]requested_item shift.opened is exist - process it [16:52:15]req_shift_opened [16:52:15]FM_GetShiftState [16:52:15]SAM_PROTO_GetShiftState [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 01 00 [16:52:15]Write to MH i2c: E2 08 00 80 51 80 13 01 00 00 00 00 00 4E [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 80 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CA [16:52:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetShiftState done [16:52:15]FM_GetShiftState done [16:52:15]req_shift_opened done [16:52:15]requested_item shift.open_date is exist - process it [16:52:15]req_shift_open_date [16:52:15]req_shift_open_date done [16:52:15]produce_requested_data done [16:52:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30676,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:52:15]process_action_free close_receipt [16:52:15]json_value_free [16:52:15]json_value_free done [16:52:15]process_json_proto returns [16:52:15]Send response to host [16:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30676,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:52:15]free response buf [16:52:15]execute_script done [16:52:15]execute_script returns [16:52:15]free content buf [16:52:15]Sock 7.Close socket [16:52:15]Sock 7.Thread stoped [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:07]accept exits with 9 [16:53:07]New connection [16:53:07]New thread 3067489636 created [16:53:07]Thread 3067346276 joined [16:53:07]Waiting for new connection... [16:53:07] Sock 9.Parse request [16:53:07]Sock 9.Check first char [16:53:07]Sock 9.First char is OK [16:53:07]request: POST /json_proto HTTP/1.0 [16:53:07]Method: POST [16:53:07]URL: /json_proto [16:53:07]Method is POST - this is cgi request [16:53:07]url: /json_proto [16:53:07]query_string will be loaded in cgi processing [16:53:07]execute_cgi json_proto POST (null) [16:53:07]execute_cgi path=json_proto method=POST [16:53:07]POST find Content-Length [16:53:07]Host: 172.17.51.3:8080 [16:53:07]Content-Length: 682 [16:53:07]Content-Type: application/json [16:53:07] [16:53:07]POST finish read [16:53:07]Found Content-Length = 682 [16:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:07]execute_script... [16:53:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:07]POST & json_proto [16:53:07]process_json_proto [16:53:07]json parsed OK: [16:53:07]protocol is kg_v1.0 [16:53:07]action value=close_receipt [16:53:07]process_action close_receipt [16:53:07]cmd_close_receipt [16:53:07]MH_GetDate [16:53:07]Write to MH i2c: F0 00 00 81 51 C1 [16:53:07]Write i2c OK [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 09 00 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: F0 09 00 81 51 00 F9 86 16 67 04 C1 95 66 86 [16:53:07]GetLastDocTimeStamp 1729529537 [16:53:07]current date 1729529593 [16:53:07]FM_GetShiftState [16:53:07]SAM_PROTO_GetShiftState [16:53:07]wFMCommunicate request_size=4 [16:53:07]MH_SAM_APDU [16:53:07]CAPDU: 80 13 01 00 [16:53:07]Write to MH i2c: E2 08 00 82 51 80 13 01 00 00 00 00 00 50 [16:53:07]Write i2c OK [16:53:07]MH_I2C_Read... [16:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:07]Read from MH i2c: E2 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: E2 0E 00 [16:53:07]MH_I2C_Read... [16:53:07]Read from MH i2c: E2 0E 00 82 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CC [16:53:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:53:07]wFMCommunicate OK [16:53:07]SAM_PROTO_GetShiftState done [16:53:07]FM_GetShiftState done [16:53:07]opened in 1729471058 [16:53:07]opened+sec_in_day 1729557458 [16:53:07]quantity*price = 100015 [16:53:07]sum+1 = 100017 [16:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 174 21.10.2024 16:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30677 ФПД: 220292308925417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30677&fm=220292308925417&tin=02508201610067®Number=0000000000186857&sum=100000 [16:53:08]StoreToDocumentArchive [16:53:08]shift 115 fd 30677 [16:53:08]save to /storage/0115/doc_00030677 [16:53:08]save last doc name /storage/0115/doc_00030677 to /storage/kkm_last_doc_name [16:53:08]save OK [16:53:08]Clear old archive folders... [16:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:08]tlvbuf is 01F09AA0 [16:53:08]SAM_PROTO_ClearQueue [16:53:08]wFMCommunicate request_size=4 [16:53:08]MH_SAM_APDU [16:53:08]CAPDU: 80 09 00 00 [16:53:08]Write to MH i2c: E2 08 00 8F 51 80 09 00 00 00 00 00 00 52 [16:53:08]Write i2c OK [16:53:08]MH_I2C_Read... [16:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:08]Read from MH i2c: E2 [16:53:08]MH_I2C_Read... [16:53:08]Read from MH i2c: E2 03 00 [16:53:08]MH_I2C_Read... [16:53:08]Read from MH i2c: E2 03 00 8F 51 00 90 00 54 [16:53:08]RAPDU: 90 00 [16:53:08]wFMCommunicate OK [16:53:08]SAM_PROTO_ClearQueue done [16:53:08]KKMCreateOFDPacket [16:53:08]OFDProtocolAddRootSTLVToBuf [16:53:08]FM_MakeSignedData [16:53:08]FM_MakeSignedData [16:53:08]SAM_PROTO_SignData [16:53:08]wFMCommunicate request_size=4 [16:53:08]MH_SAM_APDU [16:53:08]CAPDU: 80 0D 01 02 [16:53:08]Write to MH i2c: E2 08 00 90 51 80 0D 01 02 00 00 00 00 5A [16:53:08]Write i2c OK [16:53:08]MH_I2C_Read... [16:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:08]Read from MH i2c: E2 [16:53:08]MH_I2C_Read... [16:53:08]Read from MH i2c: E2 03 00 [16:53:08]MH_I2C_Read... [16:53:08]Read from MH i2c: E2 03 00 90 51 00 90 00 55 [16:53:08]RAPDU: 90 00 [16:53:08]wFMCommunicate OK [16:53:08]wFMCommunicate request_size=255 [16:53:08]MH_SAM_APDU [16:53:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F9 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 77 00 00 35 04 06 00 C8 [16:53:08]Write to MH i2c: E2 02 01 91 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F9 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 77 00 00 35 04 06 00 C8 00 00 16 [16:53:08]Write i2c OK [16:53:08]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 91 51 00 90 00 56 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]wFMCommunicate request_size=10 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 02 02 05 5A CC D1 FB E9 [16:53:09]Write to MH i2c: E2 0D 00 92 51 80 0D 02 02 05 00 5A CC D1 FB E9 00 00 42 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 03 00 92 51 00 90 00 57 [16:53:09]RAPDU: 90 00 [16:53:09]wFMCommunicate OK [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 0D 03 02 [16:53:09]Write to MH i2c: E2 08 00 93 51 80 0D 03 02 00 00 00 00 5F [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 0B 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 0B 00 93 51 00 7B 1A 29 76 EF C2 BF 50 90 00 54 [16:53:09]RAPDU: 7B 1A 29 76 EF C2 BF 50 90 00 [16:53:09]wFMCommunicate OK [16:53:09]SAM_PROTO_SignData done [16:53:09]FM_MakeSignedData done [16:53:09]CreateOFDProtocolMessage [16:53:09]wFMCommunicate request_size=4 [16:53:09]MH_SAM_APDU [16:53:09]CAPDU: 80 11 00 00 [16:53:09]Write to MH i2c: E2 08 00 94 51 80 11 00 00 00 00 00 00 5F [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:09]Read from MH i2c: E2 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 17 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: E2 17 00 94 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [16:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:53:09]wFMCommunicate OK [16:53:09]CreateOFDProtocolMessage done [16:53:09]OFDSenderStorePacket 30677 [16:53:09]StoreOFDPacket docnum=30677 [16:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 1E 07 01 12 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F9 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 77 00 00 35 04 06 00 C8 5A CC D1 FB E9 7B 1A 29 76 EF C2 BF 50 [16:53:09]CheckFolder [16:53:09]dirname=/storage/ofd_packets [16:53:09]CheckFolder done [16:53:09]ProducePacketName [16:53:09]name=ofd_packets/00030677 [16:53:09]NVStorageSaveData ofd_packets/00030677 [16:53:09]File name is /storage/ofd_packets/00030677 [16:53:09]Write 301 bytes [16:53:09]NVStorageSaveData done [16:53:09]OFDSenderStorePacket done [16:53:09]KKMCreateOFDPacket done [16:53:09]NVStorageSaveData kkm_last_timestamp [16:53:09]File name is /storage/kkm_last_timestamp [16:53:09]Write 4 bytes [16:53:09]NVStorageSaveData done [16:53:09]ExternCall_PrintAddStr [16:53:09]wPrintStart [16:53:09]Write to MH i2c: 01 00 00 95 51 E6 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 FF 0F FB [16:53:09]RasterBufferAndPrint [16:53:09]line Счет N : (1)343088 [16:53:09]line ИНН: 02508201610067 [16:53:09]line Контрольно-Кассовый Чек [16:53:09]line ПРОДАЖА [16:53:09]line ТРК (МРК, ГНК) : 53 [16:53:09]line Товар: 2710124130 [16:53:09]line Аи-92-К-2 [16:53:09]line 14.950 * 66.90 [16:53:09]line = 1000.16 [16:53:09]line НДС 12% НСП 1% [16:53:09]line > о реализуемом товаре [16:53:09]line ОКРУГЛЕНИЕ: -0.16 [16:53:09]line ИТОГО: 1000.00 [16:53:09]line Внесено: 1000.00 [16:53:09]line СДАЧА: 0.00 [16:53:09]line НСП 1% : 8.85 [16:53:09]line НДС 12% : 106.21 [16:53:09]line Наличными: 1000.00 [16:53:09]line Безнал.: 0.00 [16:53:09]line Место: АЗС № 78 "Партнер Нефть" [16:53:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:53:09]line СНО: Общий режим [16:53:09]line Чек 174 21.10.2024 16:53 [16:53:09]line Смена: 115 ФФД: 1.0 [16:53:09]line ЗНМ: 0300000137 [16:53:09]line РНМ: 0000000000186857 [16:53:09]line Версия ККМ: v1.0 [16:53:09]line ФМ: 0000000002094219 [16:53:09]line ФД: 30677 [16:53:09]line ФПД: 220292308925417 [16:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165313&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30677&fm=220292308925417&tin=02508201610067®Number=0000000000186857&sum=100000 [16:53:09]OFD Sender: Processing packet 30677 [packets to send 10, broken 9] [16:53:09]ProducePacketName [16:53:09]name=ofd_packets/00030677 [16:53:09]OFD Sender: To server: pG, [16:53:09]CommunicateWithHost lk.salyk.kg:30040 [16:53:09]ConnectInit lk.salyk.kg [16:53:09]written 0, free lines is 4095 [16:53:09]Connected sock=10 [16:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C6 1E 07 01 12 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F9 86 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D5 77 00 00 35 04 06 00 C8 5A CC D1 FB E9 7B 1A 29 76 EF C2 BF 50 [16:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 12 0C 47 00 FC 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 32 30 39 34 32 31 39 10 04 04 00 D5 77 00 00 F4 03 04 00 79 31 16 67 B6 04 01 00 00 14 9A 2E A6 EC 48 A7 69 [16:53:09]CommunicateWithHost err = 0 [16:53:09]CheckOFDResponse [16:53:09]1017 (14) - 77093643461234 [16:53:09]1041 (16) - 0000000002094219 [16:53:09]1040 (4) - 30677 [16:53:09]1012 (4) - 21.10.2024 10:48 [16:53:09]1206 (1) - 0 [16:53:09]OFD Sender: Remove packet 30677 [16:53:09]ProducePacketName [16:53:09]name=ofd_packets/00030677 [16:53:09]NVStorageDeleteData [16:53:09]Write to MH i2c: 01 00 00 C0 51 11 [16:53:09]Write i2c OK [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 [16:53:09]MH_I2C_Read... [16:53:09]Read from MH i2c: 01 07 00 C0 51 00 00 00 00 00 F1 0C 15 [16:53:09]RasterBufferAndPrint [16:53:09]line [16:53:09]line [16:53:09]line [16:53:09]line [16:53:09]line [16:53:09]written 0, free lines is 3319 [16:53:10]MH_Cut [16:53:10]Write to MH i2c: D1 01 00 C7 51 01 EA [16:53:10]Write i2c OK [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 01 00 [16:53:10]MH_I2C_Read... [16:53:10]Read from MH i2c: D1 01 00 C7 51 00 E9 [16:53:10]Write to MH i2c: 01 00 00 C8 51 19 [16:53:10]Write i2c OK [16:53:10]MH_I2C_Read... [16:53:10]OFD Sender: No OFD packet to send [16:53:10]*** Cut start [16:53:10]*** Partial cut [16:53:10]*** CUTSNS_PIN = 1 [16:53:10]*** CUTSNS_PIN = 0 [16:53:10]*** Brake cut motor [16:53:11]Read from MH i2c: 01 [16:53:11]MH_I2C_Read... [16:53:11]*** Stop cut motor [16:53:11]Read from MH i2c: 01 07 00 [16:53:11]MH_I2C_Read... [16:53:11]*** Cut end [16:53:11]Read from MH i2c: 01 07 00 C8 51 00 00 00 00 00 FF 0F 2E [16:53:11]process_action close_receipt done [16:53:11]requested_data is exist [16:53:11]produce_requested_data [16:53:11]requested_item fm.sn is exist - process it [16:53:11]wFMCommunicate request_size=4 [16:53:11]MH_SAM_APDU [16:53:11]CAPDU: 80 11 00 00 [16:53:11]Write to MH i2c: E2 08 00 C9 51 80 11 00 00 00 00 00 00 94 [16:53:11]Write i2c OK [16:53:11]MH_I2C_Read... [16:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:11]Read from MH i2c: E2 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 17 00 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 17 00 C9 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [16:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:53:11]wFMCommunicate OK [16:53:11]requested_item fd.num is exist - process it [16:53:11]SAM_PROTO_GetFieldsCounters [16:53:11]wFMCommunicate request_size=4 [16:53:11]MH_SAM_APDU [16:53:11]CAPDU: 80 13 00 00 [16:53:11]Write to MH i2c: E2 08 00 CA 51 80 13 00 00 00 00 00 00 97 [16:53:11]Write i2c OK [16:53:11]MH_I2C_Read... [16:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:11]Read from MH i2c: E2 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 62 00 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 62 00 CA 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:11]wFMCommunicate OK [16:53:11]SAM_PROTO_GetFieldsCounters done [16:53:11]requested_item shift.num is exist - process it [16:53:11]requested_item shift.opened is exist - process it [16:53:11]req_shift_opened [16:53:11]FM_GetShiftState [16:53:11]SAM_PROTO_GetShiftState [16:53:11]wFMCommunicate request_size=4 [16:53:11]MH_SAM_APDU [16:53:11]CAPDU: 80 13 01 00 [16:53:11]Write to MH i2c: E2 08 00 CB 51 80 13 01 00 00 00 00 00 99 [16:53:11]Write i2c OK [16:53:11]MH_I2C_Read... [16:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:11]Read from MH i2c: E2 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 0E 00 [16:53:11]MH_I2C_Read... [16:53:11]Read from MH i2c: E2 0E 00 CB 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 15 [16:53:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:53:11]wFMCommunicate OK [16:53:11]SAM_PROTO_GetShiftState done [16:53:11]FM_GetShiftState done [16:53:11]req_shift_opened done [16:53:11]requested_item shift.open_date is exist - process it [16:53:11]req_shift_open_date [16:53:11]req_shift_open_date done [16:53:11]produce_requested_data done [16:53:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30677,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:53:11]process_action_free close_receipt [16:53:11]json_value_free [16:53:11]json_value_free done [16:53:11]process_json_proto returns [16:53:11]Send response to host [16:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30677,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:53:11]free response buf [16:53:11]execute_script done [16:53:11]execute_script returns [16:53:11]free content buf [16:53:11]Sock 9.Close socket [16:53:11]Sock 9.Thread stoped [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:02]accept exits with 7 [16:58:02]New connection [16:58:02]New thread 3067346276 created [16:58:02]Thread 3067489636 joined [16:58:02]Waiting for new connection... [16:58:02] Sock 7.Parse request [16:58:02]Sock 7.Check first char [16:58:02]Sock 7.First char is OK [16:58:02]request: POST /json_proto HTTP/1.0 [16:58:02]Method: POST [16:58:02]URL: /json_proto [16:58:02]Method is POST - this is cgi request [16:58:02]url: /json_proto [16:58:02]query_string will be loaded in cgi processing [16:58:02]execute_cgi json_proto POST (null) [16:58:02]execute_cgi path=json_proto method=POST [16:58:02]POST find Content-Length [16:58:02]Host: 172.17.51.3:8080 [16:58:02]Content-Length: 800 [16:58:02]Content-Type: application/json [16:58:02] [16:58:02]POST finish read [16:58:02]Found Content-Length = 800 [16:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220347", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:02]execute_script... [16:58:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220347", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:02]POST & json_proto [16:58:02]process_json_proto [16:58:02]json parsed OK: [16:58:02]protocol is kg_v1.0 [16:58:02]action value=close_receipt [16:58:02]process_action close_receipt [16:58:02]cmd_close_receipt [16:58:02]MH_GetDate [16:58:02]Write to MH i2c: F0 00 00 CC 51 0C [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: F0 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: F0 09 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: F0 09 00 CC 51 00 20 88 16 67 04 C1 95 66 FA [16:58:02]GetLastDocTimeStamp 1729529593 [16:58:02]current date 1729529888 [16:58:02]FM_GetShiftState [16:58:02]SAM_PROTO_GetShiftState [16:58:02]wFMCommunicate request_size=4 [16:58:02]MH_SAM_APDU [16:58:02]CAPDU: 80 13 01 00 [16:58:02]Write to MH i2c: E2 08 00 CD 51 80 13 01 00 00 00 00 00 9B [16:58:02]Write i2c OK [16:58:02]MH_I2C_Read... [16:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:02]Read from MH i2c: E2 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 0E 00 [16:58:02]MH_I2C_Read... [16:58:02]Read from MH i2c: E2 0E 00 CD 51 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 17 [16:58:02]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:58:02]wFMCommunicate OK [16:58:02]SAM_PROTO_GetShiftState done [16:58:02]FM_GetShiftState done [16:58:02]opened in 1729471058 [16:58:02]opened+sec_in_day 1729557458 [16:58:02]quantity*price = 0 [16:58:02]sum+1 = 1 [16:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 175 21.10.2024 16:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливные Талоны 4220347 ФМ: 0000000002094219 ФД: 30678 ФПД: 178532071673842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30678&fm=178532071673842&tin=02508201610067®Number=0000000000186857&sum=0 [16:58:03]StoreToDocumentArchive [16:58:03]shift 115 fd 30678 [16:58:03]save to /storage/0115/doc_00030678 [16:58:03]save last doc name /storage/0115/doc_00030678 to /storage/kkm_last_doc_name [16:58:03]save OK [16:58:03]Clear old archive folders... [16:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:03]tlvbuf is 01F09AD0 [16:58:03]SAM_PROTO_ClearQueue [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 09 00 00 [16:58:03]Write to MH i2c: E2 08 00 DA 51 80 09 00 00 00 00 00 00 9D [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 DA 51 00 90 00 9F [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]SAM_PROTO_ClearQueue done [16:58:03]KKMCreateOFDPacket [16:58:03]OFDProtocolAddRootSTLVToBuf [16:58:03]FM_MakeSignedData [16:58:03]FM_MakeSignedData [16:58:03]SAM_PROTO_SignData [16:58:03]wFMCommunicate request_size=4 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 01 02 [16:58:03]Write to MH i2c: E2 08 00 DB 51 80 0D 01 02 00 00 00 00 A5 [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:03]Read from MH i2c: E2 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 [16:58:03]MH_I2C_Read... [16:58:03]Read from MH i2c: E2 03 00 DB 51 00 90 00 A0 [16:58:03]RAPDU: 90 00 [16:58:03]wFMCommunicate OK [16:58:03]wFMCommunicate request_size=255 [16:58:03]MH_SAM_APDU [16:58:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 20 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 77 00 00 35 04 06 00 A2 [16:58:03]Write to MH i2c: E2 02 01 DC 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 20 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 77 00 00 35 04 06 00 A2 00 00 1E [16:58:03]Write i2c OK [16:58:03]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 DC 51 00 90 00 A1 [16:58:04]RAPDU: 90 00 [16:58:04]wFMCommunicate OK [16:58:04]wFMCommunicate request_size=10 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 0D 02 02 05 5F BC B6 8F F2 [16:58:04]Write to MH i2c: E2 0D 00 DD 51 80 0D 02 02 05 00 5F BC B6 8F F2 00 00 04 [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 03 00 DD 51 00 90 00 A2 [16:58:04]RAPDU: 90 00 [16:58:04]wFMCommunicate OK [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 0D 03 02 [16:58:04]Write to MH i2c: E2 08 00 DE 51 80 0D 03 02 00 00 00 00 AA [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 0B 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 0B 00 DE 51 00 06 A7 19 D0 CB 67 DE 5D 90 00 AE [16:58:04]RAPDU: 06 A7 19 D0 CB 67 DE 5D 90 00 [16:58:04]wFMCommunicate OK [16:58:04]SAM_PROTO_SignData done [16:58:04]FM_MakeSignedData done [16:58:04]CreateOFDProtocolMessage [16:58:04]wFMCommunicate request_size=4 [16:58:04]MH_SAM_APDU [16:58:04]CAPDU: 80 11 00 00 [16:58:04]Write to MH i2c: E2 08 00 DF 51 80 11 00 00 00 00 00 00 AA [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:04]Read from MH i2c: E2 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 17 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: E2 17 00 DF 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [16:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:04]wFMCommunicate OK [16:58:04]CreateOFDProtocolMessage done [16:58:04]OFDSenderStorePacket 30678 [16:58:04]StoreOFDPacket docnum=30678 [16:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9C D4 07 01 21 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 20 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 77 00 00 35 04 06 00 A2 5F BC B6 8F F2 06 A7 19 D0 CB 67 DE 5D [16:58:04]CheckFolder [16:58:04]dirname=/storage/ofd_packets [16:58:04]CheckFolder done [16:58:04]ProducePacketName [16:58:04]name=ofd_packets/00030678 [16:58:04]NVStorageSaveData ofd_packets/00030678 [16:58:04]File name is /storage/ofd_packets/00030678 [16:58:04]Write 301 bytes [16:58:04]NVStorageSaveData done [16:58:04]OFDSenderStorePacket done [16:58:04]KKMCreateOFDPacket done [16:58:04]NVStorageSaveData kkm_last_timestamp [16:58:04]File name is /storage/kkm_last_timestamp [16:58:04]Write 4 bytes [16:58:04]NVStorageSaveData done [16:58:04]ExternCall_PrintAddStr [16:58:04]wPrintStart [16:58:04]Write to MH i2c: 01 00 00 E0 51 31 [16:58:04]OFD Sender: Processing packet 30678 [packets to send 10, broken 9] [16:58:04]ProducePacketName [16:58:04]name=ofd_packets/00030678 [16:58:04]OFD Sender: To server: pG, [16:58:04]CommunicateWithHost lk.salyk.kg:30040 [16:58:04]ConnectInit lk.salyk.kg [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 E0 51 00 00 00 00 00 FF 0F 46 [16:58:04]RasterBufferAndPrint [16:58:04]line Счет N : (1)343089 [16:58:04]line ИНН: 02508201610067 [16:58:04]line Контрольно-Кассовый Чек [16:58:04]line ПРОДАЖА [16:58:04]line ТРК (МРК, ГНК) : 63 [16:58:04]line Товар: 2710124130 [16:58:04]line Аи-92-К-2 [16:58:04]line 10.000 * 0.00 [16:58:04]line = 0.00 [16:58:04]line НДС 12% НСП 1% [16:58:04]line > о реализуемом товаре [16:58:04]line ИТОГО: 0.00 [16:58:04]line НСП 1% : 0.00 [16:58:04]line НДС 12% : 0.00 [16:58:04]line Наличными: 0.00 [16:58:04]line Безнал.: 0.00 [16:58:04]line Место: АЗС № 78 "Партнер Нефть" [16:58:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:58:04]line СНО: Общий режим [16:58:04]line Чек 175 21.10.2024 16:58 [16:58:04]line Смена: 115 ФФД: 1.0 [16:58:04]line ЗНМ: 0300000137 [16:58:04]line РНМ: 0000000000186857 [16:58:04]line Версия ККМ: v1.0 [16:58:04]line Талоны: Топливные Талоны [16:58:04]line 4220347 [16:58:04]line ФМ: 0000000002094219 [16:58:04]line ФД: 30678 [16:58:04]line ФПД: 178532071673842 [16:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165808&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30678&fm=178532071673842&tin=02508201610067®Number=0000000000186857&sum=0 [16:58:04]Connected sock=10 [16:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9C D4 07 01 written 0, free lines is 4095 [16:58:04]21 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 20 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 77 00 00 35 04 06 00 A2 5F BC B6 8F F2 06 A7 19 D0 CB 67 DE 5D [16:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 60 4E 47 00 00 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D6 77 00 00 F4 03 04 00 A0 32 16 67 B6 04 01 00 00 DE 02 F3 F8 CC B9 8C 02 [16:58:04]CommunicateWithHost err = 0 [16:58:04]CheckOFDResponse [16:58:04]1017 (14) - 77093643461234 [16:58:04]1041 (16) - 0000000002094219 [16:58:04]1040 (4) - 30678 [16:58:04]1012 (4) - 21.10.2024 10:53 [16:58:04]1206 (1) - 0 [16:58:04]OFD Sender: Remove packet 30678 [16:58:04]ProducePacketName [16:58:04]name=ofd_packets/00030678 [16:58:04]NVStorageDeleteData [16:58:04]Write to MH i2c: 01 00 00 0A 52 5C [16:58:04]Write i2c OK [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 [16:58:04]MH_I2C_Read... [16:58:04]Read from MH i2c: 01 07 00 0A 52 00 00 00 00 00 F1 0C 60 [16:58:04]RasterBufferAndPrint [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:04]line [16:58:05]written 0, free lines is 3322 [16:58:05]MH_Cut [16:58:05]Write to MH i2c: D1 01 00 11 52 01 35 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: D1 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: D1 01 00 [16:58:05]MH_I2C_Read... [16:58:05]Read from MH i2c: D1 01 00 11 52 00 34 [16:58:05]Write to MH i2c: 01 00 00 12 52 64 [16:58:05]Write i2c OK [16:58:05]MH_I2C_Read... [16:58:05]OFD Sender: No OFD packet to send [16:58:05]*** Cut start [16:58:05]*** Partial cut [16:58:05]*** CUTSNS_PIN = 1 [16:58:05]*** CUTSNS_PIN = 0 [16:58:05]*** Brake cut motor [16:58:06]Read from MH i2c: 01 [16:58:06]MH_I2C_Read... [16:58:06]*** Stop cut motor [16:58:06]*** Cut end [16:58:06]Read from MH i2c: 01 07 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: 01 07 00 12 52 00 00 00 00 00 FF 0F 79 [16:58:06]process_action close_receipt done [16:58:06]requested_data is exist [16:58:06]produce_requested_data [16:58:06]requested_item fm.sn is exist - process it [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 11 00 00 [16:58:06]Write to MH i2c: E2 08 00 13 52 80 11 00 00 00 00 00 00 DF [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 17 00 13 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2D [16:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:06]wFMCommunicate OK [16:58:06]requested_item fd.num is exist - process it [16:58:06]SAM_PROTO_GetFieldsCounters [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 13 00 00 [16:58:06]Write to MH i2c: E2 08 00 14 52 80 13 00 00 00 00 00 00 E2 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 62 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 62 00 14 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [16:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:06]wFMCommunicate OK [16:58:06]SAM_PROTO_GetFieldsCounters done [16:58:06]requested_item shift.num is exist - process it [16:58:06]requested_item shift.opened is exist - process it [16:58:06]req_shift_opened [16:58:06]FM_GetShiftState [16:58:06]SAM_PROTO_GetShiftState [16:58:06]wFMCommunicate request_size=4 [16:58:06]MH_SAM_APDU [16:58:06]CAPDU: 80 13 01 00 [16:58:06]Write to MH i2c: E2 08 00 15 52 80 13 01 00 00 00 00 00 E4 [16:58:06]Write i2c OK [16:58:06]MH_I2C_Read... [16:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:06]Read from MH i2c: E2 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 0E 00 [16:58:06]MH_I2C_Read... [16:58:06]Read from MH i2c: E2 0E 00 15 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 60 [16:58:06]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:58:06]wFMCommunicate OK [16:58:06]SAM_PROTO_GetShiftState done [16:58:06]FM_GetShiftState done [16:58:06]req_shift_opened done [16:58:06]requested_item shift.open_date is exist - process it [16:58:06]req_shift_open_date [16:58:06]req_shift_open_date done [16:58:06]produce_requested_data done [16:58:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30678,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:58:06]process_action_free close_receipt [16:58:06]json_value_free [16:58:06]json_value_free done [16:58:06]process_json_proto returns [16:58:06]Send response to host [16:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30678,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:58:06]free response buf [16:58:06]execute_script done [16:58:06]execute_script returns [16:58:06]free content buf [16:58:06]Sock 7.Close socket [16:58:06]Sock 7.Thread stoped [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:18]accept exits with 9 [16:58:18]New connection [16:58:18]New thread 3067489636 created [16:58:18]Thread 3067346276 joined [16:58:18]Waiting for new connection... [16:58:18] Sock 9.Parse request [16:58:18]Sock 9.Check first char [16:58:18]Sock 9.First char is OK [16:58:18]request: POST /json_proto HTTP/1.0 [16:58:18]Method: POST [16:58:18]URL: /json_proto [16:58:18]Method is POST - this is cgi request [16:58:18]url: /json_proto [16:58:18]query_string will be loaded in cgi processing [16:58:18]execute_cgi json_proto POST (null) [16:58:18]execute_cgi path=json_proto method=POST [16:58:18]POST find Content-Length [16:58:18]Host: 172.17.51.3:8080 [16:58:18]Content-Length: 677 [16:58:18]Content-Type: application/json [16:58:18] [16:58:18]POST finish read [16:58:18]Found Content-Length = 677 [16:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:18]execute_script... [16:58:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:18]POST & json_proto [16:58:18]process_json_proto [16:58:18]json parsed OK: [16:58:18]protocol is kg_v1.0 [16:58:18]action value=close_receipt [16:58:18]process_action close_receipt [16:58:18]cmd_close_receipt [16:58:18]MH_GetDate [16:58:18]Write to MH i2c: F0 00 00 16 52 57 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 09 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: F0 09 00 16 52 00 30 88 16 67 04 C1 95 66 55 [16:58:18]GetLastDocTimeStamp 1729529888 [16:58:18]current date 1729529904 [16:58:18]FM_GetShiftState [16:58:18]SAM_PROTO_GetShiftState [16:58:18]wFMCommunicate request_size=4 [16:58:18]MH_SAM_APDU [16:58:18]CAPDU: 80 13 01 00 [16:58:18]Write to MH i2c: E2 08 00 17 52 80 13 01 00 00 00 00 00 E6 [16:58:18]Write i2c OK [16:58:18]MH_I2C_Read... [16:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:18]Read from MH i2c: E2 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0E 00 [16:58:18]MH_I2C_Read... [16:58:18]Read from MH i2c: E2 0E 00 17 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 62 [16:58:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:58:18]wFMCommunicate OK [16:58:18]SAM_PROTO_GetShiftState done [16:58:18]FM_GetShiftState done [16:58:18]opened in 1729471058 [16:58:18]opened+sec_in_day 1729557458 [16:58:18]quantity*price = 50041 [16:58:18]sum+1 = 50042 [16:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 176 21.10.2024 16:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30679 ФПД: 57450573979424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165824&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30679&fm=57450573979424&tin=02508201610067®Number=0000000000186857&sum=50000 [16:58:19]StoreToDocumentArchive [16:58:19]shift 115 fd 30679 [16:58:19]save to /storage/0115/doc_00030679 [16:58:19]save last doc name /storage/0115/doc_00030679 to /storage/kkm_last_doc_name [16:58:19]save OK [16:58:19]Clear old archive folders... [16:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:19]tlvbuf is 01E067A0 [16:58:19]SAM_PROTO_ClearQueue [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 09 00 00 [16:58:19]Write to MH i2c: E2 08 00 24 52 80 09 00 00 00 00 00 00 E8 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 24 52 00 90 00 EA [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]SAM_PROTO_ClearQueue done [16:58:19]KKMCreateOFDPacket [16:58:19]OFDProtocolAddRootSTLVToBuf [16:58:19]FM_MakeSignedData [16:58:19]FM_MakeSignedData [16:58:19]SAM_PROTO_SignData [16:58:19]wFMCommunicate request_size=4 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 01 02 [16:58:19]Write to MH i2c: E2 08 00 25 52 80 0D 01 02 00 00 00 00 F0 [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:19]Read from MH i2c: E2 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 [16:58:19]MH_I2C_Read... [16:58:19]Read from MH i2c: E2 03 00 25 52 00 90 00 EB [16:58:19]RAPDU: 90 00 [16:58:19]wFMCommunicate OK [16:58:19]wFMCommunicate request_size=255 [16:58:19]MH_SAM_APDU [16:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 30 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 77 00 00 35 04 06 00 34 [16:58:19]Write to MH i2c: E2 02 01 26 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 30 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 77 00 00 35 04 06 00 34 00 00 5B [16:58:19]Write i2c OK [16:58:19]MH_I2C_Read... [16:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:20]Read from MH i2c: E2 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 03 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 03 00 26 52 00 90 00 EC [16:58:20]RAPDU: 90 00 [16:58:20]wFMCommunicate OK [16:58:20]wFMCommunicate request_size=10 [16:58:20]MH_SAM_APDU [16:58:20]CAPDU: 80 0D 02 02 05 40 41 0D DF 20 [16:58:20]Write to MH i2c: E2 0D 00 27 52 80 0D 02 02 05 00 40 41 0D DF 20 00 00 8A [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:20]Read from MH i2c: E2 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 03 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 03 00 27 52 00 90 00 ED [16:58:20]RAPDU: 90 00 [16:58:20]wFMCommunicate OK [16:58:20]wFMCommunicate request_size=4 [16:58:20]MH_SAM_APDU [16:58:20]CAPDU: 80 0D 03 02 [16:58:20]Write to MH i2c: E2 08 00 28 52 80 0D 03 02 00 00 00 00 F5 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:20]Read from MH i2c: E2 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 0B 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 0B 00 28 52 00 13 B3 B3 62 0C 88 23 A8 90 00 30 [16:58:20]RAPDU: 13 B3 B3 62 0C 88 23 A8 90 00 [16:58:20]wFMCommunicate OK [16:58:20]SAM_PROTO_SignData done [16:58:20]FM_MakeSignedData done [16:58:20]CreateOFDProtocolMessage [16:58:20]wFMCommunicate request_size=4 [16:58:20]MH_SAM_APDU [16:58:20]CAPDU: 80 11 00 00 [16:58:20]Write to MH i2c: E2 08 00 29 52 80 11 00 00 00 00 00 00 F5 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:20]Read from MH i2c: E2 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 17 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: E2 17 00 29 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 43 [16:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:20]wFMCommunicate OK [16:58:20]CreateOFDProtocolMessage done [16:58:20]OFDSenderStorePacket 30679 [16:58:20]StoreOFDPacket docnum=30679 [16:58:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 32 49 07 01 BE C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 30 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 77 00 00 35 04 06 00 34 40 41 0D DF 20 13 B3 B3 62 0C 88 23 A8 [16:58:20]CheckFolder [16:58:20]dirname=/storage/ofd_packets [16:58:20]CheckFolder done [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00030679 [16:58:20]NVStorageSaveData ofd_packets/00030679 [16:58:20]File name is /storage/ofd_packets/00030679 [16:58:20]Write 301 bytes [16:58:20]NVStorageSaveData done [16:58:20]OFDSenderStorePacket done [16:58:20]KKMCreateOFDPacket done [16:58:20]NVStorageSaveData kkm_last_timestamp [16:58:20]File name is /storage/kkm_last_timestamp [16:58:20]Write 4 bytes [16:58:20]NVStorageSaveData done [16:58:20]ExternCall_PrintAddStr [16:58:20]wPrintStart [16:58:20]Write to MH i2c: 01 00 00 2A 52 7C [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 2A 52 00 00 00 00 00 FF 0F 91 [16:58:20]RasterBufferAndPrint [16:58:20]line Счет N : (1)343090 [16:58:20]line ИНН: 02508201610067 [16:58:20]line Контрольно-Кассовый Чек [16:58:20]line ПРОДАЖА [16:58:20]line ТРК (МРК, ГНК) : 43 [16:58:20]line Товар: 2710124130 [16:58:20]line Аи-92-К-2 [16:58:20]line 7.480 * 66.90 [16:58:20]line = 500.41 [16:58:20]line НДС 12% НСП 1% [16:58:20]line > о реализуемом товаре [16:58:20]line ОКРУГЛЕНИЕ: -0.41 [16:58:20]line ИТОГО: 500.00 [16:58:20]line Внесено: 500.00 [16:58:20]line СДАЧА: 0.00 [16:58:20]line НСП 1% : 4.43 [16:58:20]line НДС 12% : 53.14 [16:58:20]line Наличными: 500.00 [16:58:20]line Безнал.: 0.00 [16:58:20]line Место: АЗС № 78 "Партнер Нефть" [16:58:20]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:58:20]line СНО: Общий режим [16:58:20]line Чек 176 21.10.2024 16:58 [16:58:20]line Смена: 115 ФФД: 1.0 [16:58:20]line ЗНМ: 0300000137 [16:58:20]line РНМ: 0000000000186857 [16:58:20]line Версия ККМ: v1.0 [16:58:20]line ФМ: 0000000002094219 [16:58:20]line ФД: 30679 [16:58:20]line ФПД: 57450573979424 [16:58:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165824&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30679&fm=57450573979424&tin=02508201610067®Number=0000000000186857&sum=50000 [16:58:20]OFD Sender: Processing packet 30679 [packets to send 10, broken 9] [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00030679 [16:58:20]OFD Sender: To server: pG, [16:58:20]CommunicateWithHost lk.salyk.kg:30040 [16:58:20]ConnectInit lk.salyk.kg [16:58:20]written 0, free lines is 4095 [16:58:20]Connected sock=10 [16:58:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 32 49 07 01 BE C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 30 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 77 00 00 35 04 06 00 34 40 41 0D DF 20 13 B3 B3 62 0C 88 23 A8 [16:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DF 07 47 00 B0 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D7 77 00 00 F4 03 04 00 B0 32 16 67 B6 04 01 00 00 81 53 FB F7 98 37 74 FA [16:58:20]CommunicateWithHost err = 0 [16:58:20]CheckOFDResponse [16:58:20]1017 (14) - 77093643461234 [16:58:20]1041 (16) - 0000000002094219 [16:58:20]1040 (4) - 30679 [16:58:20]1012 (4) - 21.10.2024 10:53 [16:58:20]1206 (1) - 0 [16:58:20]OFD Sender: Remove packet 30679 [16:58:20]ProducePacketName [16:58:20]name=ofd_packets/00030679 [16:58:20]NVStorageDeleteData [16:58:20]Write to MH i2c: 01 00 00 55 52 A7 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: 01 07 00 55 52 00 00 00 00 00 E2 0C 9C [16:58:20]RasterBufferAndPrint [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]line [16:58:20]written 0, free lines is 3304 [16:58:20]MH_Cut [16:58:20]Write to MH i2c: D1 01 00 5C 52 01 80 [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 [16:58:20]MH_I2C_Read... [16:58:20]Read from MH i2c: D1 01 00 5C 52 00 7F [16:58:20]Write to MH i2c: 01 00 00 5D 52 AF [16:58:20]Write i2c OK [16:58:20]MH_I2C_Read... [16:58:21]OFD Sender: No OFD packet to send [16:58:21]*** Cut start [16:58:21]*** Partial cut [16:58:21]*** CUTSNS_PIN = 1 [16:58:21]*** CUTSNS_PIN = 0 [16:58:21]*** Brake cut motor [16:58:22]Read from MH i2c: 01 [16:58:22]MH_I2C_Read... [16:58:22]*** Stop cut motor [16:58:22]*** Cut end [16:58:22]Read from MH i2c: 01 07 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: 01 07 00 5D 52 00 00 00 00 00 FF 0F C4 [16:58:22]process_action close_receipt done [16:58:22]requested_data is exist [16:58:22]produce_requested_data [16:58:22]requested_item fm.sn is exist - process it [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 11 00 00 [16:58:22]Write to MH i2c: E2 08 00 5E 52 80 11 00 00 00 00 00 00 2A [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 17 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 17 00 5E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 78 [16:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:58:22]wFMCommunicate OK [16:58:22]requested_item fd.num is exist - process it [16:58:22]SAM_PROTO_GetFieldsCounters [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 13 00 00 [16:58:22]Write to MH i2c: E2 08 00 5F 52 80 13 00 00 00 00 00 00 2D [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 62 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 62 00 5F 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:22]wFMCommunicate OK [16:58:22]SAM_PROTO_GetFieldsCounters done [16:58:22]requested_item shift.num is exist - process it [16:58:22]requested_item shift.opened is exist - process it [16:58:22]req_shift_opened [16:58:22]FM_GetShiftState [16:58:22]SAM_PROTO_GetShiftState [16:58:22]wFMCommunicate request_size=4 [16:58:22]MH_SAM_APDU [16:58:22]CAPDU: 80 13 01 00 [16:58:22]Write to MH i2c: E2 08 00 60 52 80 13 01 00 00 00 00 00 2F [16:58:22]Write i2c OK [16:58:22]MH_I2C_Read... [16:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:22]Read from MH i2c: E2 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0E 00 [16:58:22]MH_I2C_Read... [16:58:22]Read from MH i2c: E2 0E 00 60 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AB [16:58:22]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:58:22]wFMCommunicate OK [16:58:22]SAM_PROTO_GetShiftState done [16:58:22]FM_GetShiftState done [16:58:22]req_shift_opened done [16:58:22]requested_item shift.open_date is exist - process it [16:58:22]req_shift_open_date [16:58:22]req_shift_open_date done [16:58:22]produce_requested_data done [16:58:22]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30679,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:58:22]process_action_free close_receipt [16:58:22]json_value_free [16:58:22]json_value_free done [16:58:22]process_json_proto returns [16:58:22]Send response to host [16:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30679,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:58:22]free response buf [16:58:22]execute_script done [16:58:22]execute_script returns [16:58:22]free content buf [16:58:22]Sock 9.Close socket [16:58:22]Sock 9.Thread stoped [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:32]accept exits with 7 [16:59:32]New connection [16:59:32]New thread 3067346276 created [16:59:32]Thread 3067489636 joined [16:59:32]Waiting for new connection... [16:59:32] Sock 7.Parse request [16:59:32]Sock 7.Check first char [16:59:32]Sock 7.First char is OK [16:59:32]request: POST /json_proto HTTP/1.0 [16:59:32]Method: POST [16:59:32]URL: /json_proto [16:59:32]Method is POST - this is cgi request [16:59:32]url: /json_proto [16:59:32]query_string will be loaded in cgi processing [16:59:32]execute_cgi json_proto POST (null) [16:59:32]execute_cgi path=json_proto method=POST [16:59:32]POST find Content-Length [16:59:32]Host: 172.17.51.3:8080 [16:59:32]Content-Length: 679 [16:59:32]Content-Type: application/json [16:59:32] [16:59:32]POST finish read [16:59:32]Found Content-Length = 679 [16:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:32]execute_script... [16:59:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:32]POST & json_proto [16:59:32]process_json_proto [16:59:32]json parsed OK: [16:59:32]protocol is kg_v1.0 [16:59:32]action value=close_receipt [16:59:32]process_action close_receipt [16:59:32]cmd_close_receipt [16:59:32]MH_GetDate [16:59:32]Write to MH i2c: F0 00 00 61 52 A2 [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 09 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: F0 09 00 61 52 00 7A 88 16 67 04 C1 95 66 EA [16:59:32]GetLastDocTimeStamp 1729529904 [16:59:32]current date 1729529978 [16:59:32]FM_GetShiftState [16:59:32]SAM_PROTO_GetShiftState [16:59:32]wFMCommunicate request_size=4 [16:59:32]MH_SAM_APDU [16:59:32]CAPDU: 80 13 01 00 [16:59:32]Write to MH i2c: E2 08 00 62 52 80 13 01 00 00 00 00 00 31 [16:59:32]Write i2c OK [16:59:32]MH_I2C_Read... [16:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:32]Read from MH i2c: E2 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 0E 00 [16:59:32]MH_I2C_Read... [16:59:32]Read from MH i2c: E2 0E 00 62 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AD [16:59:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:59:32]wFMCommunicate OK [16:59:32]SAM_PROTO_GetShiftState done [16:59:32]FM_GetShiftState done [16:59:32]opened in 1729471058 [16:59:32]opened+sec_in_day 1729557458 [16:59:32]quantity*price = 200025 [16:59:32]sum+1 = 200026 [16:59:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 177 21.10.2024 16:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30680 ФПД: 172131932486548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30680&fm=172131932486548&tin=02508201610067®Number=0000000000186857&sum=200000 [16:59:33]StoreToDocumentArchive [16:59:33]shift 115 fd 30680 [16:59:33]save to /storage/0115/doc_00030680 [16:59:33]save last doc name /storage/0115/doc_00030680 to /storage/kkm_last_doc_name [16:59:33]save OK [16:59:33]Clear old archive folders... [16:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:59:33]tlvbuf is 01E31920 [16:59:33]SAM_PROTO_ClearQueue [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 09 00 00 [16:59:33]Write to MH i2c: E2 08 00 6F 52 80 09 00 00 00 00 00 00 33 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 6F 52 00 90 00 35 [16:59:33]RAPDU: 90 00 [16:59:33]wFMCommunicate OK [16:59:33]SAM_PROTO_ClearQueue done [16:59:33]KKMCreateOFDPacket [16:59:33]OFDProtocolAddRootSTLVToBuf [16:59:33]FM_MakeSignedData [16:59:33]FM_MakeSignedData [16:59:33]SAM_PROTO_SignData [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 0D 01 02 [16:59:33]Write to MH i2c: E2 08 00 70 52 80 0D 01 02 00 00 00 00 3B [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 70 52 00 90 00 36 [16:59:33]RAPDU: 90 00 [16:59:33]wFMCommunicate OK [16:59:33]wFMCommunicate request_size=255 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 7A 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 77 00 00 35 04 06 00 9C 8D 96 B0 [16:59:33]Write to MH i2c: E2 02 01 71 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 7A 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 77 00 00 35 04 06 00 9C 8D 96 B0 00 00 11 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 71 52 00 90 00 37 [16:59:33]RAPDU: 90 00 [16:59:33]wFMCommunicate OK [16:59:33]wFMCommunicate request_size=7 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 0D 02 02 02 BB 94 [16:59:33]Write to MH i2c: E2 0A 00 72 52 80 0D 02 02 02 00 BB 94 00 00 91 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:33]Read from MH i2c: E2 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 [16:59:33]MH_I2C_Read... [16:59:33]Read from MH i2c: E2 03 00 72 52 00 90 00 38 [16:59:33]RAPDU: 90 00 [16:59:33]wFMCommunicate OK [16:59:33]wFMCommunicate request_size=4 [16:59:33]MH_SAM_APDU [16:59:33]CAPDU: 80 0D 03 02 [16:59:33]Write to MH i2c: E2 08 00 73 52 80 0D 03 02 00 00 00 00 40 [16:59:33]Write i2c OK [16:59:33]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 0B 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 0B 00 73 52 00 18 E2 4E 5C 74 11 5C A1 90 00 67 [16:59:34]RAPDU: 18 E2 4E 5C 74 11 5C A1 90 00 [16:59:34]wFMCommunicate OK [16:59:34]SAM_PROTO_SignData done [16:59:34]FM_MakeSignedData done [16:59:34]CreateOFDProtocolMessage [16:59:34]wFMCommunicate request_size=4 [16:59:34]MH_SAM_APDU [16:59:34]CAPDU: 80 11 00 00 [16:59:34]Write to MH i2c: E2 08 00 74 52 80 11 00 00 00 00 00 00 40 [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:34]Read from MH i2c: E2 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 17 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: E2 17 00 74 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8E [16:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:59:34]wFMCommunicate OK [16:59:34]CreateOFDProtocolMessage done [16:59:34]OFDSenderStorePacket 30680 [16:59:34]StoreOFDPacket docnum=30680 [16:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 56 72 04 01 4C F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 7A 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 77 00 00 35 04 06 00 9C 8D 96 B0 BB 94 18 E2 4E 5C 74 11 5C A1 [16:59:34]CheckFolder [16:59:34]dirname=/storage/ofd_packets [16:59:34]CheckFolder done [16:59:34]ProducePacketName [16:59:34]name=ofd_packets/00030680 [16:59:34]NVStorageSaveData ofd_packets/00030680 [16:59:34]File name is /storage/ofd_packets/00030680 [16:59:34]Write 298 bytes [16:59:34]NVStorageSaveData done [16:59:34]OFDSenderStorePacket done [16:59:34]KKMCreateOFDPacket done [16:59:34]NVStorageSaveData kkm_last_timestamp [16:59:34]File name is /storage/kkm_last_timestamp [16:59:34]Write 4 bytes [16:59:34]NVStorageSaveData done [16:59:34]ExternCall_PrintAddStr [16:59:34]wPrintStart [16:59:34]Write to MH i2c: 01 00 00 75 52 C7 [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 75 52 00 00 00 00 00 FF 0F DC [16:59:34]RasterBufferAndPrint [16:59:34]line Счет N : (1)343091 [16:59:34]line ИНН: 02508201610067 [16:59:34]line Контрольно-Кассовый Чек [16:59:34]line ПРОДАЖА [16:59:34]line ТРК (МРК, ГНК) : 34 [16:59:34]line Товар: 2710194210 [16:59:34]line ДТ-К-2 [16:59:34]line 26.250 * 76.20 [16:59:34]line = 2000.25 [16:59:34]line НДС 12% НСП 1% [16:59:34]line > о реализуемом товаре [16:59:34]line ОКРУГЛЕНИЕ: -0.25 [16:59:34]line ИТОГО: 2000.00 [16:59:34]line Внесено: 2000.00 [16:59:34]line СДАЧА: 0.00 [16:59:34]line НСП 1% : 17.70 [16:59:34]line НДС 12% : 212.42 [16:59:34]line Наличными: 2000.00 [16:59:34]line Безнал.: 0.00 [16:59:34]line Место: АЗС № 78 "Партнер Нефть" [16:59:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [16:59:34]line СНО: Общий режим [16:59:34]line Чек 177 21.10.2024 16:59 [16:59:34]line Смена: 115 ФФД: 1.0 [16:59:34]line ЗНМ: 0300000137 [16:59:34]line РНМ: 0000000000186857 [16:59:34]line Версия ККМ: v1.0 [16:59:34]line ФМ: 0000000002094219 [16:59:34]line ФД: 30680 [16:59:34]line ФПД: 172131932486548 [16:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165938&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30680&fm=172131932486548&tin=02508201610067®Number=0000000000186857&sum=200000 [16:59:34]OFD Sender: Processing packet 30680 [packets to send 10, broken 9] [16:59:34]ProducePacketName [16:59:34]name=ofd_packets/00030680 [16:59:34]OFD Sender: To server: pG, [16:59:34]CommunicateWithHost lk.salyk.kg:30040 [16:59:34]ConnectInit lk.salyk.kg [16:59:34]written 0, free lines is 4095 [16:59:34]Connected sock=10 [16:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 56 72 04 01 4C F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 7A 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 77 00 00 35 04 06 00 9C 8D 96 B0 BB 94 18 E2 4E 5C 74 11 5C A1 [16:59:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EF 79 47 00 E8 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D8 77 00 00 F4 03 04 00 FA 32 16 67 B6 04 01 00 00 E7 CB EF 64 DD C0 F2 DB [16:59:34]CommunicateWithHost err = 0 [16:59:34]CheckOFDResponse [16:59:34]1017 (14) - 77093643461234 [16:59:34]1041 (16) - 0000000002094219 [16:59:34]1040 (4) - 30680 [16:59:34]1012 (4) - 21.10.2024 10:54 [16:59:34]1206 (1) - 0 [16:59:34]OFD Sender: Remove packet 30680 [16:59:34]ProducePacketName [16:59:34]name=ofd_packets/00030680 [16:59:34]NVStorageDeleteData [16:59:34]Write to MH i2c: 01 00 00 A0 52 F2 [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: 01 07 00 A0 52 00 00 00 00 00 F3 0C F8 [16:59:34]RasterBufferAndPrint [16:59:34]line [16:59:34]line [16:59:34]line [16:59:34]line [16:59:34]line [16:59:34]written 0, free lines is 3321 [16:59:34]MH_Cut [16:59:34]Write to MH i2c: D1 01 00 A7 52 01 CB [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: D1 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: D1 01 00 [16:59:34]MH_I2C_Read... [16:59:34]Read from MH i2c: D1 01 00 A7 52 00 CA [16:59:34]Write to MH i2c: 01 00 00 A8 52 FA [16:59:34]Write i2c OK [16:59:34]MH_I2C_Read... [16:59:35]OFD Sender: No OFD packet to send [16:59:35]*** Cut start [16:59:35]*** Partial cut [16:59:35]*** CUTSNS_PIN = 1 [16:59:35]*** CUTSNS_PIN = 0 [16:59:35]*** Brake cut motor [16:59:36]Read from MH i2c: 01 [16:59:36]MH_I2C_Read... [16:59:36]*** Stop cut motor [16:59:36]*** Cut end [16:59:36]Read from MH i2c: 01 07 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: 01 07 00 A8 52 00 00 00 00 00 FF 0F 0F [16:59:36]process_action close_receipt done [16:59:36]requested_data is exist [16:59:36]produce_requested_data [16:59:36]requested_item fm.sn is exist - process it [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 11 00 00 [16:59:36]Write to MH i2c: E2 08 00 A9 52 80 11 00 00 00 00 00 00 75 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 17 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 17 00 A9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C3 [16:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [16:59:36]wFMCommunicate OK [16:59:36]requested_item fd.num is exist - process it [16:59:36]SAM_PROTO_GetFieldsCounters [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 13 00 00 [16:59:36]Write to MH i2c: E2 08 00 AA 52 80 13 00 00 00 00 00 00 78 [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 62 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 62 00 AA 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [16:59:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:36]wFMCommunicate OK [16:59:36]SAM_PROTO_GetFieldsCounters done [16:59:36]requested_item shift.num is exist - process it [16:59:36]requested_item shift.opened is exist - process it [16:59:36]req_shift_opened [16:59:36]FM_GetShiftState [16:59:36]SAM_PROTO_GetShiftState [16:59:36]wFMCommunicate request_size=4 [16:59:36]MH_SAM_APDU [16:59:36]CAPDU: 80 13 01 00 [16:59:36]Write to MH i2c: E2 08 00 AB 52 80 13 01 00 00 00 00 00 7A [16:59:36]Write i2c OK [16:59:36]MH_I2C_Read... [16:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:36]Read from MH i2c: E2 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 0E 00 [16:59:36]MH_I2C_Read... [16:59:36]Read from MH i2c: E2 0E 00 AB 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F6 [16:59:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [16:59:36]wFMCommunicate OK [16:59:36]SAM_PROTO_GetShiftState done [16:59:36]FM_GetShiftState done [16:59:36]req_shift_opened done [16:59:36]requested_item shift.open_date is exist - process it [16:59:36]req_shift_open_date [16:59:36]req_shift_open_date done [16:59:36]produce_requested_data done [16:59:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30680,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [16:59:36]process_action_free close_receipt [16:59:36]json_value_free [16:59:36]json_value_free done [16:59:36]process_json_proto returns [16:59:36]Send response to host [16:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30680,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [16:59:36]free response buf [16:59:36]execute_script done [16:59:36]execute_script returns [16:59:36]free content buf [16:59:36]Sock 7.Close socket [16:59:36]Sock 7.Thread stoped [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:13]accept exits with 9 [17:00:13]New connection [17:00:13]New thread 3067489636 created [17:00:13]Thread 3067346276 joined [17:00:13]Waiting for new connection... [17:00:13] Sock 9.Parse request [17:00:13]Sock 9.Check first char [17:00:13]Sock 9.First char is OK [17:00:13]request: POST /json_proto HTTP/1.0 [17:00:13]Method: POST [17:00:13]URL: /json_proto [17:00:13]Method is POST - this is cgi request [17:00:13]url: /json_proto [17:00:13]query_string will be loaded in cgi processing [17:00:13]execute_cgi json_proto POST (null) [17:00:13]execute_cgi path=json_proto method=POST [17:00:13]POST find Content-Length [17:00:13]Host: 172.17.51.3:8080 [17:00:13]Content-Length: 682 [17:00:13]Content-Type: application/json [17:00:13] [17:00:13]POST finish read [17:00:13]Found Content-Length = 682 [17:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:13]execute_script... [17:00:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:13]POST & json_proto [17:00:13]process_json_proto [17:00:13]json parsed OK: [17:00:13]protocol is kg_v1.0 [17:00:13]action value=close_receipt [17:00:13]process_action close_receipt [17:00:13]cmd_close_receipt [17:00:13]MH_GetDate [17:00:13]Write to MH i2c: F0 00 00 AC 52 ED [17:00:13]Write i2c OK [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 09 00 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: F0 09 00 AC 52 00 A2 88 16 67 04 C1 95 66 5D [17:00:13]GetLastDocTimeStamp 1729529978 [17:00:13]current date 1729530018 [17:00:13]FM_GetShiftState [17:00:13]SAM_PROTO_GetShiftState [17:00:13]wFMCommunicate request_size=4 [17:00:13]MH_SAM_APDU [17:00:13]CAPDU: 80 13 01 00 [17:00:13]Write to MH i2c: E2 08 00 AD 52 80 13 01 00 00 00 00 00 7C [17:00:13]Write i2c OK [17:00:13]MH_I2C_Read... [17:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:13]Read from MH i2c: E2 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: E2 0E 00 [17:00:13]MH_I2C_Read... [17:00:13]Read from MH i2c: E2 0E 00 AD 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F8 [17:00:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:00:13]wFMCommunicate OK [17:00:13]SAM_PROTO_GetShiftState done [17:00:13]FM_GetShiftState done [17:00:13]opened in 1729471058 [17:00:13]opened+sec_in_day 1729557458 [17:00:13]quantity*price = 100015 [17:00:13]sum+1 = 100017 [17:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 178 21.10.2024 17:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30681 ФПД: 99656276719899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30681&fm=99656276719899&tin=02508201610067®Number=0000000000186857&sum=100000 [17:00:14]StoreToDocumentArchive [17:00:14]shift 115 fd 30681 [17:00:14]save to /storage/0115/doc_00030681 [17:00:14]save last doc name /storage/0115/doc_00030681 to /storage/kkm_last_doc_name [17:00:14]save OK [17:00:14]Clear old archive folders... [17:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:14]tlvbuf is 01E6F900 [17:00:14]SAM_PROTO_ClearQueue [17:00:14]wFMCommunicate request_size=4 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 09 00 00 [17:00:14]Write to MH i2c: E2 08 00 BA 52 80 09 00 00 00 00 00 00 7E [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 BA 52 00 90 00 80 [17:00:14]RAPDU: 90 00 [17:00:14]wFMCommunicate OK [17:00:14]SAM_PROTO_ClearQueue done [17:00:14]KKMCreateOFDPacket [17:00:14]OFDProtocolAddRootSTLVToBuf [17:00:14]FM_MakeSignedData [17:00:14]FM_MakeSignedData [17:00:14]SAM_PROTO_SignData [17:00:14]wFMCommunicate request_size=4 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 0D 01 02 [17:00:14]Write to MH i2c: E2 08 00 BB 52 80 0D 01 02 00 00 00 00 86 [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 BB 52 00 90 00 81 [17:00:14]RAPDU: 90 00 [17:00:14]wFMCommunicate OK [17:00:14]wFMCommunicate request_size=255 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A2 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 77 00 00 35 04 06 00 5A [17:00:14]Write to MH i2c: E2 02 01 BC 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A2 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 77 00 00 35 04 06 00 5A 00 00 87 [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 BC 52 00 90 00 82 [17:00:14]RAPDU: 90 00 [17:00:14]wFMCommunicate OK [17:00:14]wFMCommunicate request_size=10 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 0D 02 02 05 A3 08 F9 39 1B [17:00:14]Write to MH i2c: E2 0D 00 BD 52 80 0D 02 02 05 00 A3 08 F9 39 1B 00 00 8B [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 03 00 BD 52 00 90 00 83 [17:00:14]RAPDU: 90 00 [17:00:14]wFMCommunicate OK [17:00:14]wFMCommunicate request_size=4 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 0D 03 02 [17:00:14]Write to MH i2c: E2 08 00 BE 52 80 0D 03 02 00 00 00 00 8B [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 0B 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 0B 00 BE 52 00 F5 1F 2B 54 0D 00 DE D7 90 00 E1 [17:00:14]RAPDU: F5 1F 2B 54 0D 00 DE D7 90 00 [17:00:14]wFMCommunicate OK [17:00:14]SAM_PROTO_SignData done [17:00:14]FM_MakeSignedData done [17:00:14]CreateOFDProtocolMessage [17:00:14]wFMCommunicate request_size=4 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 11 00 00 [17:00:14]Write to MH i2c: E2 08 00 BF 52 80 11 00 00 00 00 00 00 8B [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 17 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 17 00 BF 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D9 [17:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:00:14]wFMCommunicate OK [17:00:14]CreateOFDProtocolMessage done [17:00:14]OFDSenderStorePacket 30681 [17:00:14]StoreOFDPacket docnum=30681 [17:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 EB 07 01 A5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A2 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 77 00 00 35 04 06 00 5A A3 08 F9 39 1B F5 1F 2B 54 0D 00 DE D7 [17:00:14]CheckFolder [17:00:14]dirname=/storage/ofd_packets [17:00:14]CheckFolder done [17:00:14]ProducePacketName [17:00:14]name=ofd_packets/00030681 [17:00:14]NVStorageSaveData ofd_packets/00030681 [17:00:14]File name is /storage/ofd_packets/00030681 [17:00:14]Write 301 bytes [17:00:14]NVStorageSaveData done [17:00:14]OFDSenderStorePacket done [17:00:14]KKMCreateOFDPacket done [17:00:14]NVStorageSaveData kkm_last_timestamp [17:00:14]File name is /storage/kkm_last_timestamp [17:00:14]Write 4 bytes [17:00:14]NVStorageSaveData done [17:00:14]ExternCall_PrintAddStr [17:00:14]wPrintStart [17:00:14]Write to MH i2c: 01 00 00 C0 52 12 [17:00:14]OFD Sender: Processing packet 30681 [packets to send 10, broken 9] [17:00:14]ProducePacketName [17:00:14]name=ofd_packets/00030681 [17:00:14]OFD Sender: To server: pG, [17:00:14]CommunicateWithHost lk.salyk.kg:30040 [17:00:14]ConnectInit lk.salyk.kg [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: 01 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: 01 07 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: 01 07 00 C0 52 00 00 00 00 00 FF 0F 27 [17:00:14]RasterBufferAndPrint [17:00:14]line Счет N : (1)343092 [17:00:14]line ИНН: 02508201610067 [17:00:14]line Контрольно-Кассовый Чек [17:00:14]line ПРОДАЖА [17:00:14]line ТРК (МРК, ГНК) : 53 [17:00:14]line Товар: 2710124130 [17:00:14]line Аи-92-К-2 [17:00:14]line 14.950 * 66.90 [17:00:14]line = 1000.16 [17:00:14]line НДС 12% НСП 1% [17:00:14]line > о реализуемом товаре [17:00:14]line ОКРУГЛЕНИЕ: -0.16 [17:00:14]line ИТОГО: 1000.00 [17:00:14]line Внесено: 1000.00 [17:00:14]line СДАЧА: 0.00 [17:00:14]line НСП 1% : 8.85 [17:00:14]line НДС 12% : 106.21 [17:00:14]line Наличными: 1000.00 [17:00:14]line Безнал.: 0.00 [17:00:14]line Место: АЗС № 78 "Партнер Нефть" [17:00:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:00:14]line СНО: Общий режим [17:00:14]line Чек 178 21.10.2024 17:00 [17:00:14]line Смена: 115 ФФД: 1.0 [17:00:14]line ЗНМ: 0300000137 [17:00:14]line РНМ: 0000000000186857 [17:00:14]line Версия ККМ: v1.0 [17:00:14]line ФМ: 0000000002094219 [17:00:14]line ФД: 30681 [17:00:14]line ФПД: 99656276719899 [17:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170018&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30681&fm=99656276719899&tin=02508201610067®Number=0000000000186857&sum=100000 [17:00:15]Connected sock=10 [17:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 EB 07 01 A5 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A2 88 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 D9 77 00 00 35 04 06 00 5A A3 08 F9 39 1B F5 1F 2B 54 0D 00 DE D7 [17:00:15]written 0, free lines is 4095 [17:00:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D7 BB 47 00 F9 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 32 30 39 34 32 31 39 10 04 04 00 D9 77 00 00 F4 03 04 00 23 33 16 67 B6 04 01 00 00 E6 A8 9A 01 54 CE 0D 04 [17:00:15]CommunicateWithHost err = 0 [17:00:15]CheckOFDResponse [17:00:15]1017 (14) - 77093643461234 [17:00:15]1041 (16) - 0000000002094219 [17:00:15]1040 (4) - 30681 [17:00:15]1012 (4) - 21.10.2024 10:55 [17:00:15]1206 (1) - 0 [17:00:15]OFD Sender: Remove packet 30681 [17:00:15]ProducePacketName [17:00:15]name=ofd_packets/00030681 [17:00:15]NVStorageDeleteData [17:00:15]Write to MH i2c: 01 00 00 EB 52 3D [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 EB 52 00 00 00 00 00 E0 0C 30 [17:00:15]RasterBufferAndPrint [17:00:15]line [17:00:15]line [17:00:15]line [17:00:15]line [17:00:15]line [17:00:15]written 0, free lines is 3302 [17:00:15]MH_Cut [17:00:15]Write to MH i2c: D1 01 00 F2 52 01 16 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: D1 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: D1 01 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: D1 01 00 F2 52 00 15 [17:00:15]Write to MH i2c: 01 00 00 F3 52 45 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]OFD Sender: No OFD packet to send [17:00:16]*** Cut start [17:00:16]*** Partial cut [17:00:16]*** CUTSNS_PIN = 1 [17:00:16]*** CUTSNS_PIN = 0 [17:00:16]*** Brake cut motor [17:00:16]Read from MH i2c: 01 [17:00:16]MH_I2C_Read... [17:00:16]*** Stop cut motor [17:00:16]*** Cut end [17:00:16]Read from MH i2c: 01 07 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 07 00 F3 52 00 00 00 00 00 FF 0F 5A [17:00:16]process_action close_receipt done [17:00:16]requested_data is exist [17:00:16]produce_requested_data [17:00:16]requested_item fm.sn is exist - process it [17:00:16]wFMCommunicate request_size=4 [17:00:16]MH_SAM_APDU [17:00:16]CAPDU: 80 11 00 00 [17:00:16]Write to MH i2c: E2 08 00 F4 52 80 11 00 00 00 00 00 00 C0 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:16]Read from MH i2c: E2 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: E2 17 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: E2 17 00 F4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0E [17:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:00:16]wFMCommunicate OK [17:00:16]requested_item fd.num is exist - process it [17:00:16]SAM_PROTO_GetFieldsCounters [17:00:16]wFMCommunicate request_size=4 [17:00:16]MH_SAM_APDU [17:00:16]CAPDU: 80 13 00 00 [17:00:16]Write to MH i2c: E2 08 00 F5 52 80 13 00 00 00 00 00 00 C3 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:17]Read from MH i2c: E2 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 62 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 62 00 F5 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 D9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:17]wFMCommunicate OK [17:00:17]SAM_PROTO_GetFieldsCounters done [17:00:17]requested_item shift.num is exist - process it [17:00:17]requested_item shift.opened is exist - process it [17:00:17]req_shift_opened [17:00:17]FM_GetShiftState [17:00:17]SAM_PROTO_GetShiftState [17:00:17]wFMCommunicate request_size=4 [17:00:17]MH_SAM_APDU [17:00:17]CAPDU: 80 13 01 00 [17:00:17]Write to MH i2c: E2 08 00 F6 52 80 13 01 00 00 00 00 00 C5 [17:00:17]Write i2c OK [17:00:17]MH_I2C_Read... [17:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:17]Read from MH i2c: E2 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 0E 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 0E 00 F6 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 41 [17:00:17]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:00:17]wFMCommunicate OK [17:00:17]SAM_PROTO_GetShiftState done [17:00:17]FM_GetShiftState done [17:00:17]req_shift_opened done [17:00:17]requested_item shift.open_date is exist - process it [17:00:17]req_shift_open_date [17:00:17]req_shift_open_date done [17:00:17]produce_requested_data done [17:00:17]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30681,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:00:17]process_action_free close_receipt [17:00:17]json_value_free [17:00:17]json_value_free done [17:00:17]process_json_proto returns [17:00:17]Send response to host [17:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30681,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:00:17]free response buf [17:00:17]execute_script done [17:00:17]execute_script returns [17:00:17]free content buf [17:00:17]Sock 9.Close socket [17:00:17]Sock 9.Thread stoped [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:01:57]accept exits with 7 [17:01:57]New connection [17:01:57]New thread 3067346276 created [17:01:57]Thread 3067489636 joined [17:01:57]Waiting for new connection... [17:01:57] Sock 7.Parse request [17:01:57]Sock 7.Check first char [17:01:57]Sock 7.First char is OK [17:01:57]request: POST /json_proto HTTP/1.0 [17:01:57]Method: POST [17:01:57]URL: /json_proto [17:01:57]Method is POST - this is cgi request [17:01:57]url: /json_proto [17:01:57]query_string will be loaded in cgi processing [17:01:57]execute_cgi json_proto POST (null) [17:01:57]execute_cgi path=json_proto method=POST [17:01:57]POST find Content-Length [17:01:57]Host: 172.17.51.3:8080 [17:01:57]Content-Length: 677 [17:01:57]Content-Type: application/json [17:01:57] [17:01:57]POST finish read [17:01:57]Found Content-Length = 677 [17:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:57]execute_script... [17:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:57]POST & json_proto [17:01:57]process_json_proto [17:01:57]json parsed OK: [17:01:57]protocol is kg_v1.0 [17:01:57]action value=close_receipt [17:01:57]process_action close_receipt [17:01:57]cmd_close_receipt [17:01:57]MH_GetDate [17:01:57]Write to MH i2c: F0 00 00 F7 52 38 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 09 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: F0 09 00 F7 52 00 0B 89 16 67 04 C1 95 66 12 [17:01:57]GetLastDocTimeStamp 1729530018 [17:01:57]current date 1729530123 [17:01:57]FM_GetShiftState [17:01:57]SAM_PROTO_GetShiftState [17:01:57]wFMCommunicate request_size=4 [17:01:57]MH_SAM_APDU [17:01:57]CAPDU: 80 13 01 00 [17:01:57]Write to MH i2c: E2 08 00 F8 52 80 13 01 00 00 00 00 00 C7 [17:01:57]Write i2c OK [17:01:57]MH_I2C_Read... [17:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:57]Read from MH i2c: E2 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 [17:01:57]MH_I2C_Read... [17:01:57]Read from MH i2c: E2 0E 00 F8 52 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 43 [17:01:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:01:57]wFMCommunicate OK [17:01:57]SAM_PROTO_GetShiftState done [17:01:57]FM_GetShiftState done [17:01:57]opened in 1729471058 [17:01:57]opened+sec_in_day 1729557458 [17:01:57]quantity*price = 30038 [17:01:57]sum+1 = 30039 [17:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 179 21.10.2024 17:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30682 ФПД: 265047059567382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30682&fm=265047059567382&tin=02508201610067®Number=0000000000186857&sum=30000 [17:01:59]StoreToDocumentArchive [17:01:59]shift 115 fd 30682 [17:01:59]save to /storage/0115/doc_00030682 [17:01:59]save last doc name /storage/0115/doc_00030682 to /storage/kkm_last_doc_name [17:01:59]save OK [17:01:59]Clear old archive folders... [17:01:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:59]tlvbuf is 01DAF720 [17:01:59]SAM_PROTO_ClearQueue [17:01:59]wFMCommunicate request_size=4 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 09 00 00 [17:01:59]Write to MH i2c: E2 08 00 05 53 80 09 00 00 00 00 00 00 CA [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 05 53 00 90 00 CC [17:01:59]RAPDU: 90 00 [17:01:59]wFMCommunicate OK [17:01:59]SAM_PROTO_ClearQueue done [17:01:59]KKMCreateOFDPacket [17:01:59]OFDProtocolAddRootSTLVToBuf [17:01:59]FM_MakeSignedData [17:01:59]FM_MakeSignedData [17:01:59]SAM_PROTO_SignData [17:01:59]wFMCommunicate request_size=4 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 0D 01 02 [17:01:59]Write to MH i2c: E2 08 00 06 53 80 0D 01 02 00 00 00 00 D2 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 06 53 00 90 00 CD [17:01:59]RAPDU: 90 00 [17:01:59]wFMCommunicate OK [17:01:59]wFMCommunicate request_size=255 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0B 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 77 00 00 35 04 06 00 F1 [17:01:59]Write to MH i2c: E2 02 01 07 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0B 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 77 00 00 35 04 06 00 F1 00 00 D0 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 07 53 00 90 00 CE [17:01:59]RAPDU: 90 00 [17:01:59]wFMCommunicate OK [17:01:59]wFMCommunicate request_size=10 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 0D 02 02 05 0F 13 D5 93 16 [17:01:59]Write to MH i2c: E2 0D 00 08 53 80 0D 02 02 05 00 0F 13 D5 93 16 00 00 7F [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 03 00 08 53 00 90 00 CF [17:01:59]RAPDU: 90 00 [17:01:59]wFMCommunicate OK [17:01:59]wFMCommunicate request_size=4 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 0D 03 02 [17:01:59]Write to MH i2c: E2 08 00 09 53 80 0D 03 02 00 00 00 00 D7 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 0B 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 0B 00 09 53 00 D2 7C DE 18 FA 42 D6 43 90 00 71 [17:01:59]RAPDU: D2 7C DE 18 FA 42 D6 43 90 00 [17:01:59]wFMCommunicate OK [17:01:59]SAM_PROTO_SignData done [17:01:59]FM_MakeSignedData done [17:01:59]CreateOFDProtocolMessage [17:01:59]wFMCommunicate request_size=4 [17:01:59]MH_SAM_APDU [17:01:59]CAPDU: 80 11 00 00 [17:01:59]Write to MH i2c: E2 08 00 0A 53 80 11 00 00 00 00 00 00 D7 [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:59]Read from MH i2c: E2 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 17 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: E2 17 00 0A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [17:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:01:59]wFMCommunicate OK [17:01:59]CreateOFDProtocolMessage done [17:01:59]OFDSenderStorePacket 30682 [17:01:59]StoreOFDPacket docnum=30682 [17:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 9B 07 01 2A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0B 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 77 00 00 35 04 06 00 F1 0F 13 D5 93 16 D2 7C DE 18 FA 42 D6 43 [17:01:59]CheckFolder [17:01:59]dirname=/storage/ofd_packets [17:01:59]CheckFolder done [17:01:59]ProducePacketName [17:01:59]name=ofd_packets/00030682 [17:01:59]NVStorageSaveData ofd_packets/00030682 [17:01:59]File name is /storage/ofd_packets/00030682 [17:01:59]Write 301 bytes [17:01:59]NVStorageSaveData done [17:01:59]OFDSenderStorePacket done [17:01:59]KKMCreateOFDPacket done [17:01:59]NVStorageSaveData kkm_last_timestamp [17:01:59]File name is /storage/kkm_last_timestamp [17:01:59]Write 4 bytes [17:01:59]NVStorageSaveData done [17:01:59]ExternCall_PrintAddStr [17:01:59]wPrintStart [17:01:59]Write to MH i2c: 01 00 00 0B 53 5E [17:01:59]Write i2c OK [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 07 00 [17:01:59]MH_I2C_Read... [17:01:59]Read from MH i2c: 01 07 00 0B 53 00 00 00 00 00 FF 0F 73 [17:01:59]RasterBufferAndPrint [17:01:59]line Счет N : (1)343094 [17:01:59]line ИНН: 02508201610067 [17:01:59]line Контрольно-Кассовый Чек [17:01:59]line ПРОДАЖА [17:01:59]line ТРК (МРК, ГНК) : 33 [17:01:59]line Товар: 2710124130 [17:01:59]line Аи-92-К-2 [17:01:59]line 4.490 * 66.90 [17:01:59]line = 300.38 [17:01:59]line НДС 12% НСП 1% [17:01:59]line > о реализуемом товаре [17:01:59]line ОКРУГЛЕНИЕ: -0.38 [17:01:59]line ИТОГО: 300.00 [17:01:59]line Внесено: 300.00 [17:01:59]line СДАЧА: 0.00 [17:01:59]line НСП 1% : 2.66 [17:01:59]line НДС 12% : 31.90 [17:01:59]line Наличными: 300.00 [17:01:59]line Безнал.: 0.00 [17:01:59]line Место: АЗС № 78 "Партнер Нефть" [17:01:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:01:59]line СНО: Общий режим [17:01:59]line Чек 179 21.10.2024 17:02 [17:01:59]line Смена: 115 ФФД: 1.0 [17:01:59]line ЗНМ: 0300000137 [17:01:59]line РНМ: 0000000000186857 [17:01:59]line Версия ККМ: v1.0 [17:01:59]line ФМ: 0000000002094219 [17:01:59]line ФД: 30682 [17:01:59]line ФПД: 265047059567382 [17:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170203&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30682&fm=265047059567382&tin=02508201610067®Number=0000000000186857&sum=30000 [17:01:59]OFD Sender: Processing packet 30682 [packets to send 10, broken 9] [17:01:59]ProducePacketName [17:01:59]name=ofd_packets/00030682 [17:01:59]OFD Sender: To server: pG, [17:01:59]CommunicateWithHost lk.salyk.kg:30040 [17:01:59]ConnectInit lk.salyk.kg [17:01:59]written 0, free lines is 4095 [17:02:00]Connected sock=10 [17:02:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 9B 07 01 2A 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 0B 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 77 00 00 35 04 06 00 F1 0F 13 D5 93 16 D2 7C DE 18 FA 42 D6 43 [17:02:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8B 50 47 00 D3 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DA 77 00 00 F4 03 04 00 8B 33 16 67 B6 04 01 00 00 73 AD 56 27 09 E8 A2 94 [17:02:00]CommunicateWithHost err = 0 [17:02:00]CheckOFDResponse [17:02:00]1017 (14) - 77093643461234 [17:02:00]1041 (16) - 0000000002094219 [17:02:00]1040 (4) - 30682 [17:02:00]1012 (4) - 21.10.2024 10:57 [17:02:00]1206 (1) - 0 [17:02:00]OFD Sender: Remove packet 30682 [17:02:00]ProducePacketName [17:02:00]name=ofd_packets/00030682 [17:02:00]NVStorageDeleteData [17:02:00]Write to MH i2c: 01 00 00 36 53 89 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: 01 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: 01 07 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: 01 07 00 36 53 00 00 00 00 00 EE 0C 8A [17:02:00]RasterBufferAndPrint [17:02:00]line [17:02:00]line [17:02:00]line [17:02:00]line [17:02:00]line [17:02:00]written 0, free lines is 3316 [17:02:00]MH_Cut [17:02:00]Write to MH i2c: D1 01 00 3D 53 01 62 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: D1 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: D1 01 00 [17:02:00]MH_I2C_Read... [17:02:00]Read from MH i2c: D1 01 00 3D 53 00 61 [17:02:00]Write to MH i2c: 01 00 00 3E 53 91 [17:02:00]Write i2c OK [17:02:00]MH_I2C_Read... [17:02:00]OFD Sender: No OFD packet to send [17:02:01]*** Cut start [17:02:01]*** Partial cut [17:02:01]*** CUTSNS_PIN = 1 [17:02:01]*** CUTSNS_PIN = 0 [17:02:01]*** Brake cut motor [17:02:01]Read from MH i2c: 01 [17:02:01]MH_I2C_Read... [17:02:01]*** Stop cut motor [17:02:01]*** Cut end [17:02:01]Read from MH i2c: 01 07 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: 01 07 00 3E 53 00 00 00 00 00 FF 0F A6 [17:02:01]process_action close_receipt done [17:02:01]requested_data is exist [17:02:01]produce_requested_data [17:02:01]requested_item fm.sn is exist - process it [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 11 00 00 [17:02:01]Write to MH i2c: E2 08 00 3F 53 80 11 00 00 00 00 00 00 0C [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:01]Read from MH i2c: E2 17 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 17 00 3F 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [17:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:02:01]wFMCommunicate OK [17:02:01]requested_item fd.num is exist - process it [17:02:01]SAM_PROTO_GetFieldsCounters [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 13 00 00 [17:02:01]Write to MH i2c: E2 08 00 40 53 80 13 00 00 00 00 00 00 0F [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 62 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 62 00 40 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [17:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_GetFieldsCounters done [17:02:01]requested_item shift.num is exist - process it [17:02:01]requested_item shift.opened is exist - process it [17:02:01]req_shift_opened [17:02:01]FM_GetShiftState [17:02:01]SAM_PROTO_GetShiftState [17:02:01]wFMCommunicate request_size=4 [17:02:01]MH_SAM_APDU [17:02:01]CAPDU: 80 13 01 00 [17:02:01]Write to MH i2c: E2 08 00 41 53 80 13 01 00 00 00 00 00 11 [17:02:01]Write i2c OK [17:02:01]MH_I2C_Read... [17:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:01]Read from MH i2c: E2 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 [17:02:01]MH_I2C_Read... [17:02:01]Read from MH i2c: E2 0E 00 41 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8D [17:02:01]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:02:01]wFMCommunicate OK [17:02:01]SAM_PROTO_GetShiftState done [17:02:01]FM_GetShiftState done [17:02:01]req_shift_opened done [17:02:01]requested_item shift.open_date is exist - process it [17:02:01]req_shift_open_date [17:02:01]req_shift_open_date done [17:02:01]produce_requested_data done [17:02:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30682,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:02:01]process_action_free close_receipt [17:02:01]json_value_free [17:02:01]json_value_free done [17:02:01]process_json_proto returns [17:02:01]Send response to host [17:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30682,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:02:01]free response buf [17:02:01]execute_script done [17:02:01]execute_script returns [17:02:01]free content buf [17:02:01]Sock 7.Close socket [17:02:01]Sock 7.Thread stoped [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:11]accept exits with 9 [17:02:11]New connection [17:02:11]New thread 3067489636 created [17:02:11]Thread 3067346276 joined [17:02:11]Waiting for new connection... [17:02:11] Sock 9.Parse request [17:02:11]Sock 9.Check first char [17:02:11]Sock 9.First char is OK [17:02:11]request: POST /json_proto HTTP/1.0 [17:02:11]Method: POST [17:02:11]URL: /json_proto [17:02:11]Method is POST - this is cgi request [17:02:11]url: /json_proto [17:02:11]query_string will be loaded in cgi processing [17:02:11]execute_cgi json_proto POST (null) [17:02:11]execute_cgi path=json_proto method=POST [17:02:11]POST find Content-Length [17:02:11]Host: 172.17.51.3:8080 [17:02:11]Content-Length: 674 [17:02:11]Content-Type: application/json [17:02:11] [17:02:11]POST finish read [17:02:11]Found Content-Length = 674 [17:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:11]execute_script... [17:02:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:11]POST & json_proto [17:02:11]process_json_proto [17:02:11]json parsed OK: [17:02:11]protocol is kg_v1.0 [17:02:11]action value=close_receipt [17:02:11]process_action close_receipt [17:02:11]cmd_close_receipt [17:02:11]MH_GetDate [17:02:11]Write to MH i2c: F0 00 00 42 53 84 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 09 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 09 00 42 53 00 19 89 16 67 04 C1 95 66 6C [17:02:11]GetLastDocTimeStamp 1729530123 [17:02:11]current date 1729530137 [17:02:11]FM_GetShiftState [17:02:11]SAM_PROTO_GetShiftState [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 13 01 00 [17:02:11]Write to MH i2c: E2 08 00 43 53 80 13 01 00 00 00 00 00 13 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 43 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8F [17:02:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetShiftState done [17:02:11]FM_GetShiftState done [17:02:11]opened in 1729471058 [17:02:11]opened+sec_in_day 1729557458 [17:02:11]quantity*price = 60045 [17:02:11]sum+1 = 60047 [17:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 180 21.10.2024 17:02 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30683 ФПД: 208393907310692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30683&fm=208393907310692&tin=02508201610067®Number=0000000000186857&sum=60000 [17:02:12]StoreToDocumentArchive [17:02:12]shift 115 fd 30683 [17:02:12]save to /storage/0115/doc_00030683 [17:02:12]save last doc name /storage/0115/doc_00030683 to /storage/kkm_last_doc_name [17:02:12]save OK [17:02:12]Clear old archive folders... [17:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:02:12]tlvbuf is 01DAF600 [17:02:12]SAM_PROTO_ClearQueue [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 09 00 00 [17:02:12]Write to MH i2c: E2 08 00 50 53 80 09 00 00 00 00 00 00 15 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 50 53 00 90 00 17 [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]SAM_PROTO_ClearQueue done [17:02:12]KKMCreateOFDPacket [17:02:12]OFDProtocolAddRootSTLVToBuf [17:02:12]FM_MakeSignedData [17:02:12]FM_MakeSignedData [17:02:12]SAM_PROTO_SignData [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 01 02 [17:02:12]Write to MH i2c: E2 08 00 51 53 80 0D 01 02 00 00 00 00 1D [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 51 53 00 90 00 18 [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]wFMCommunicate request_size=255 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 19 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 77 00 00 35 04 06 00 BD 88 7C D1 [17:02:12]Write to MH i2c: E2 02 01 52 53 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 19 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 77 00 00 35 04 06 00 BD 88 7C D1 00 00 8F [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 52 53 00 90 00 19 [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]wFMCommunicate request_size=7 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 02 02 02 90 64 [17:02:12]Write to MH i2c: E2 0A 00 53 53 80 0D 02 02 02 00 90 64 00 00 18 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 53 53 00 90 00 1A [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 03 02 [17:02:12]Write to MH i2c: E2 08 00 54 53 80 0D 03 02 00 00 00 00 22 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 0B 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 0B 00 54 53 00 4A D8 60 E5 AF CF F9 D4 90 00 D5 [17:02:12]RAPDU: 4A D8 60 E5 AF CF F9 D4 90 00 [17:02:12]wFMCommunicate OK [17:02:12]SAM_PROTO_SignData done [17:02:12]FM_MakeSignedData done [17:02:12]CreateOFDProtocolMessage [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 11 00 00 [17:02:12]Write to MH i2c: E2 08 00 55 53 80 11 00 00 00 00 00 00 22 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 17 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 17 00 55 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [17:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:02:13]wFMCommunicate OK [17:02:13]CreateOFDProtocolMessage done [17:02:13]OFDSenderStorePacket 30683 [17:02:13]StoreOFDPacket docnum=30683 [17:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E4 22 04 01 63 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 19 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 77 00 00 35 04 06 00 BD 88 7C D1 90 64 4A D8 60 E5 AF CF F9 D4 [17:02:13]CheckFolder [17:02:13]dirname=/storage/ofd_packets [17:02:13]CheckFolder done [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00030683 [17:02:13]NVStorageSaveData ofd_packets/00030683 [17:02:13]File name is /storage/ofd_packets/00030683 [17:02:13]Write 298 bytes [17:02:13]NVStorageSaveData done [17:02:13]OFDSenderStorePacket done [17:02:13]KKMCreateOFDPacket done [17:02:13]NVStorageSaveData kkm_last_timestamp [17:02:13]File name is /storage/kkm_last_timestamp [17:02:13]Write 4 bytes [17:02:13]NVStorageSaveData done [17:02:13]ExternCall_PrintAddStr [17:02:13]wPrintStart [17:02:13]Write to MH i2c: 01 00 00 56 53 A9 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 56 53 00 00 00 00 00 FF 0F BE [17:02:13]RasterBufferAndPrint [17:02:13]line Счет N : (1)343093 [17:02:13]line ИНН: 02508201610067 [17:02:13]line Контрольно-Кассовый Чек [17:02:13]line ПРОДАЖА [17:02:13]line ТРК (МРК, ГНК) : 64 [17:02:13]line Товар: 2710194210 [17:02:13]line ДТ-К-2 [17:02:13]line 7.880 * 76.20 [17:02:13]line = 600.46 [17:02:13]line НДС 12% НСП 1% [17:02:13]line > о реализуемом товаре [17:02:13]line ОКРУГЛЕНИЕ: -0.46 [17:02:13]line ИТОГО: 600.00 [17:02:13]line Внесено: 600.00 [17:02:13]line СДАЧА: 0.00 [17:02:13]line НСП 1% : 5.31 [17:02:13]line НДС 12% : 63.77 [17:02:13]line Наличными: 600.00 [17:02:13]line Безнал.: 0.00 [17:02:13]line Место: АЗС № 78 "Партнер Нефть" [17:02:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:02:13]line СНО: Общий режим [17:02:13]line Чек 180 21.10.2024 17:02 [17:02:13]line Смена: 115 ФФД: 1.0 [17:02:13]line ЗНМ: 0300000137 [17:02:13]line РНМ: 0000000000186857 [17:02:13]line Версия ККМ: v1.0 [17:02:13]line ФМ: 0000000002094219 [17:02:13]line ФД: 30683 [17:02:13]line ФПД: 208393907310692 [17:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170217&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30683&fm=208393907310692&tin=02508201610067®Number=0000000000186857&sum=60000 [17:02:13]OFD Sender: Processing packet 30683 [packets to send 10, broken 9] [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00030683 [17:02:13]OFD Sender: To server: pG, [17:02:13]CommunicateWithHost lk.salyk.kg:30040 [17:02:13]ConnectInit lk.salyk.kg [17:02:13]written 0, free lines is 4095 [17:02:13]Connected sock=10 [17:02:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 E4 22 04 01 63 21 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 19 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 77 00 00 35 04 06 00 BD 88 7C D1 90 64 4A D8 60 E5 AF CF F9 D4 [17:02:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AC 9A 47 00 12 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DB 77 00 00 F4 03 04 00 99 33 16 67 B6 04 01 00 00 06 B8 F7 B3 AA F6 3E 81 [17:02:13]CommunicateWithHost err = 0 [17:02:13]CheckOFDResponse [17:02:13]1017 (14) - 77093643461234 [17:02:13]1041 (16) - 0000000002094219 [17:02:13]1040 (4) - 30683 [17:02:13]1012 (4) - 21.10.2024 10:57 [17:02:13]1206 (1) - 0 [17:02:13]OFD Sender: Remove packet 30683 [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00030683 [17:02:13]NVStorageDeleteData [17:02:13]Write to MH i2c: 01 00 00 81 53 D4 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 81 53 00 00 00 00 00 EC 0C D3 [17:02:13]RasterBufferAndPrint [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]line [17:02:13]written 0, free lines is 3314 [17:02:13]MH_Cut [17:02:13]Write to MH i2c: D1 01 00 88 53 01 AD [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 01 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: D1 01 00 88 53 00 AC [17:02:13]Write to MH i2c: 01 00 00 89 53 DC [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:14]OFD Sender: No OFD packet to send [17:02:14]*** Cut start [17:02:14]*** Partial cut [17:02:14]*** CUTSNS_PIN = 1 [17:02:14]*** CUTSNS_PIN = 0 [17:02:14]*** Brake cut motor [17:02:15]Read from MH i2c: 01 [17:02:15]MH_I2C_Read... [17:02:15]*** Stop cut motor [17:02:15]*** Cut end [17:02:15]Read from MH i2c: 01 07 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: 01 07 00 89 53 00 00 00 00 00 FF 0F F1 [17:02:15]process_action close_receipt done [17:02:15]requested_data is exist [17:02:15]produce_requested_data [17:02:15]requested_item fm.sn is exist - process it [17:02:15]wFMCommunicate request_size=4 [17:02:15]MH_SAM_APDU [17:02:15]CAPDU: 80 11 00 00 [17:02:15]Write to MH i2c: E2 08 00 8A 53 80 11 00 00 00 00 00 00 57 [17:02:15]Write i2c OK [17:02:15]MH_I2C_Read... [17:02:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:15]Read from MH i2c: E2 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 17 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 17 00 8A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [17:02:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:02:15]wFMCommunicate OK [17:02:15]requested_item fd.num is exist - process it [17:02:15]SAM_PROTO_GetFieldsCounters [17:02:15]wFMCommunicate request_size=4 [17:02:15]MH_SAM_APDU [17:02:15]CAPDU: 80 13 00 00 [17:02:15]Write to MH i2c: E2 08 00 8B 53 80 13 00 00 00 00 00 00 5A [17:02:15]Write i2c OK [17:02:15]MH_I2C_Read... [17:02:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:15]Read from MH i2c: E2 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 62 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 62 00 8B 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [17:02:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:15]wFMCommunicate OK [17:02:15]SAM_PROTO_GetFieldsCounters done [17:02:15]requested_item shift.num is exist - process it [17:02:15]requested_item shift.opened is exist - process it [17:02:15]req_shift_opened [17:02:15]FM_GetShiftState [17:02:15]SAM_PROTO_GetShiftState [17:02:15]wFMCommunicate request_size=4 [17:02:15]MH_SAM_APDU [17:02:15]CAPDU: 80 13 01 00 [17:02:15]Write to MH i2c: E2 08 00 8C 53 80 13 01 00 00 00 00 00 5C [17:02:15]Write i2c OK [17:02:15]MH_I2C_Read... [17:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:15]Read from MH i2c: E2 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 0E 00 [17:02:15]MH_I2C_Read... [17:02:15]Read from MH i2c: E2 0E 00 8C 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D8 [17:02:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:02:15]wFMCommunicate OK [17:02:15]SAM_PROTO_GetShiftState done [17:02:15]FM_GetShiftState done [17:02:15]req_shift_opened done [17:02:15]requested_item shift.open_date is exist - process it [17:02:15]req_shift_open_date [17:02:15]req_shift_open_date done [17:02:15]produce_requested_data done [17:02:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30683,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:02:15]process_action_free close_receipt [17:02:15]json_value_free [17:02:15]json_value_free done [17:02:15]process_json_proto returns [17:02:15]Send response to host [17:02:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30683,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:02:15]free response buf [17:02:15]execute_script done [17:02:15]execute_script returns [17:02:15]free content buf [17:02:15]Sock 9.Close socket [17:02:15]Sock 9.Thread stoped [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:21]accept exits with 7 [17:03:21]New connection [17:03:21]New thread 3067346276 created [17:03:21]Thread 3067489636 joined [17:03:21]Waiting for new connection... [17:03:21] Sock 7.Parse request [17:03:21]Sock 7.Check first char [17:03:21]Sock 7.First char is OK [17:03:21]request: POST /json_proto HTTP/1.0 [17:03:21]Method: POST [17:03:21]URL: /json_proto [17:03:21]Method is POST - this is cgi request [17:03:21]url: /json_proto [17:03:21]query_string will be loaded in cgi processing [17:03:21]execute_cgi json_proto POST (null) [17:03:21]execute_cgi path=json_proto method=POST [17:03:21]POST find Content-Length [17:03:21]Host: 172.17.51.3:8080 [17:03:21]Content-Length: 682 [17:03:21]Content-Type: application/json [17:03:21] [17:03:21]POST finish read [17:03:21]Found Content-Length = 682 [17:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:21]execute_script... [17:03:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:21]POST & json_proto [17:03:21]process_json_proto [17:03:21]json parsed OK: [17:03:21]protocol is kg_v1.0 [17:03:21]action value=close_receipt [17:03:21]process_action close_receipt [17:03:21]cmd_close_receipt [17:03:21]MH_GetDate [17:03:21]Write to MH i2c: F0 00 00 8D 53 CF [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: F0 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: F0 09 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: F0 09 00 8D 53 00 5E 89 16 67 04 C1 95 66 FC [17:03:21]GetLastDocTimeStamp 1729530137 [17:03:21]current date 1729530206 [17:03:21]FM_GetShiftState [17:03:21]SAM_PROTO_GetShiftState [17:03:21]wFMCommunicate request_size=4 [17:03:21]MH_SAM_APDU [17:03:21]CAPDU: 80 13 01 00 [17:03:21]Write to MH i2c: E2 08 00 8E 53 80 13 01 00 00 00 00 00 5E [17:03:21]Write i2c OK [17:03:21]MH_I2C_Read... [17:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:21]Read from MH i2c: E2 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 0E 00 [17:03:21]MH_I2C_Read... [17:03:21]Read from MH i2c: E2 0E 00 8E 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DA [17:03:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:03:21]wFMCommunicate OK [17:03:21]SAM_PROTO_GetShiftState done [17:03:21]FM_GetShiftState done [17:03:21]opened in 1729471058 [17:03:21]opened+sec_in_day 1729557458 [17:03:21]quantity*price = 100021 [17:03:21]sum+1 = 100023 [17:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 181 21.10.2024 17:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30684 ФПД: 82093223692085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30684&fm=82093223692085&tin=02508201610067®Number=0000000000186857&sum=100000 [17:03:22]StoreToDocumentArchive [17:03:22]shift 115 fd 30684 [17:03:22]save to /storage/0115/doc_00030684 [17:03:22]save last doc name /storage/0115/doc_00030684 to /storage/kkm_last_doc_name [17:03:22]save OK [17:03:22]Clear old archive folders... [17:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:22]tlvbuf is 01DEAA60 [17:03:22]SAM_PROTO_ClearQueue [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 09 00 00 [17:03:22]Write to MH i2c: E2 08 00 9B 53 80 09 00 00 00 00 00 00 60 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 9B 53 00 90 00 62 [17:03:22]RAPDU: 90 00 [17:03:22]wFMCommunicate OK [17:03:22]SAM_PROTO_ClearQueue done [17:03:22]KKMCreateOFDPacket [17:03:22]OFDProtocolAddRootSTLVToBuf [17:03:22]FM_MakeSignedData [17:03:22]FM_MakeSignedData [17:03:22]SAM_PROTO_SignData [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 0D 01 02 [17:03:22]Write to MH i2c: E2 08 00 9C 53 80 0D 01 02 00 00 00 00 68 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 9C 53 00 90 00 63 [17:03:22]RAPDU: 90 00 [17:03:22]wFMCommunicate OK [17:03:22]wFMCommunicate request_size=255 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5E 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 77 00 00 35 04 06 00 4A [17:03:22]Write to MH i2c: E2 02 01 9D 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5E 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 77 00 00 35 04 06 00 4A 00 00 40 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 9D 53 00 90 00 64 [17:03:22]RAPDU: 90 00 [17:03:22]wFMCommunicate OK [17:03:22]wFMCommunicate request_size=10 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 0D 02 02 05 A9 D1 6F C7 35 [17:03:22]Write to MH i2c: E2 0D 00 9E 53 80 0D 02 02 05 00 A9 D1 6F C7 35 00 00 5A [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 03 00 9E 53 00 90 00 65 [17:03:22]RAPDU: 90 00 [17:03:22]wFMCommunicate OK [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 0D 03 02 [17:03:22]Write to MH i2c: E2 08 00 9F 53 80 0D 03 02 00 00 00 00 6D [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 0B 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 0B 00 9F 53 00 4C A2 96 76 FF 8E DF 4A 90 00 1E [17:03:22]RAPDU: 4C A2 96 76 FF 8E DF 4A 90 00 [17:03:22]wFMCommunicate OK [17:03:22]SAM_PROTO_SignData done [17:03:22]FM_MakeSignedData done [17:03:22]CreateOFDProtocolMessage [17:03:22]wFMCommunicate request_size=4 [17:03:22]MH_SAM_APDU [17:03:22]CAPDU: 80 11 00 00 [17:03:22]Write to MH i2c: E2 08 00 A0 53 80 11 00 00 00 00 00 00 6D [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:22]Read from MH i2c: E2 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: E2 17 00 A0 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [17:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:03:22]wFMCommunicate OK [17:03:22]CreateOFDProtocolMessage done [17:03:22]OFDSenderStorePacket 30684 [17:03:22]StoreOFDPacket docnum=30684 [17:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A4 F7 07 01 92 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5E 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 77 00 00 35 04 06 00 4A A9 D1 6F C7 35 4C A2 96 76 FF 8E DF 4A [17:03:22]CheckFolder [17:03:22]dirname=/storage/ofd_packets [17:03:22]CheckFolder done [17:03:22]ProducePacketName [17:03:22]name=ofd_packets/00030684 [17:03:22]NVStorageSaveData ofd_packets/00030684 [17:03:22]File name is /storage/ofd_packets/00030684 [17:03:22]Write 301 bytes [17:03:22]NVStorageSaveData done [17:03:22]OFDSenderStorePacket done [17:03:22]KKMCreateOFDPacket done [17:03:22]NVStorageSaveData kkm_last_timestamp [17:03:22]File name is /storage/kkm_last_timestamp [17:03:22]Write 4 bytes [17:03:22]NVStorageSaveData done [17:03:22]ExternCall_PrintAddStr [17:03:22]wPrintStart [17:03:22]Write to MH i2c: 01 00 00 A1 53 F4 [17:03:22]Write i2c OK [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: 01 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: 01 07 00 [17:03:22]MH_I2C_Read... [17:03:22]Read from MH i2c: 01 07 00 A1 53 00 00 00 00 00 FF 0F 09 [17:03:22]RasterBufferAndPrint [17:03:22]line Счет N : (1)343095 [17:03:22]line ИНН: 02508201610067 [17:03:22]line Контрольно-Кассовый Чек [17:03:22]line ПРОДАЖА [17:03:22]line ТРК (МРК, ГНК) : 52 [17:03:22]line Товар: 2710124500 [17:03:22]line Аи-95-К-3 [17:03:22]line 13.480 * 74.20 [17:03:22]line = 1000.22 [17:03:22]line НДС 12% НСП 1% [17:03:22]line > о реализуемом товаре [17:03:22]line ОКРУГЛЕНИЕ: -0.22 [17:03:22]line ИТОГО: 1000.00 [17:03:22]line Внесено: 1000.00 [17:03:22]line СДАЧА: 0.00 [17:03:22]line НСП 1% : 8.85 [17:03:22]line НДС 12% : 106.22 [17:03:22]line Наличными: 1000.00 [17:03:22]line Безнал.: 0.00 [17:03:22]line Место: АЗС № 78 "Партнер Нефть" [17:03:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:03:22]line СНО: Общий режим [17:03:22]line Чек 181 21.10.2024 17:03 [17:03:22]line Смена: 115 ФФД: 1.0 [17:03:22]line ЗНМ: 0300000137 [17:03:22]line РНМ: 0000000000186857 [17:03:22]line Версия ККМ: v1.0 [17:03:22]line ФМ: 0000000002094219 [17:03:22]line ФД: 30684 [17:03:22]line ФПД: 82093223692085 [17:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170326&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30684&fm=82093223692085&tin=02508201610067®Number=0000000000186857&sum=100000 [17:03:23]OFD Sender: Processing packet 30684 [packets to send 10, broken 9] [17:03:23]ProducePacketName [17:03:23]name=ofd_packets/00030684 [17:03:23]OFD Sender: To server: pG, [17:03:23]CommunicateWithHost lk.salyk.kg:30040 [17:03:23]ConnectInit lk.salyk.kg [17:03:23]written 0, free lines is 4095 [17:03:23]Connected sock=10 [17:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A4 F7 07 01 92 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 5E 89 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DC 77 00 00 35 04 06 00 4A A9 D1 6F C7 35 4C A2 96 76 FF 8E DF 4A [17:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 16 64 47 00 DC 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 32 30 39 34 32 31 39 10 04 04 00 DC 77 00 00 F4 03 04 00 DF 33 16 67 B6 04 01 00 00 8E 0D FA 5A 56 13 BF 68 [17:03:23]CommunicateWithHost err = 0 [17:03:23]CheckOFDResponse [17:03:23]1017 (14) - 77093643461234 [17:03:23]1041 (16) - 0000000002094219 [17:03:23]1040 (4) - 30684 [17:03:23]1012 (4) - 21.10.2024 10:58 [17:03:23]1206 (1) - 0 [17:03:23]OFD Sender: Remove packet 30684 [17:03:23]ProducePacketName [17:03:23]name=ofd_packets/00030684 [17:03:23]NVStorageDeleteData [17:03:23]Write to MH i2c: 01 00 00 CC 53 1F [17:03:23]Write i2c OK [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: 01 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: 01 07 00 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: 01 07 00 CC 53 00 00 00 00 00 EF 0C 21 [17:03:23]RasterBufferAndPrint [17:03:23]line [17:03:23]line [17:03:23]line [17:03:23]line [17:03:23]line [17:03:23]written 0, free lines is 3317 [17:03:23]MH_Cut [17:03:23]Write to MH i2c: D1 01 00 D3 53 01 F8 [17:03:23]Write i2c OK [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: D1 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: D1 01 00 [17:03:23]MH_I2C_Read... [17:03:23]Read from MH i2c: D1 01 00 D3 53 00 F7 [17:03:23]Write to MH i2c: 01 00 00 D4 53 27 [17:03:23]Write i2c OK [17:03:23]MH_I2C_Read... [17:03:23]OFD Sender: No OFD packet to send [17:03:24]*** Cut start [17:03:24]*** Partial cut [17:03:24]*** CUTSNS_PIN = 1 [17:03:24]*** CUTSNS_PIN = 0 [17:03:24]*** Brake cut motor [17:03:24]Read from MH i2c: 01 [17:03:24]MH_I2C_Read... [17:03:24]*** Stop cut motor [17:03:24]*** Cut end [17:03:24]Read from MH i2c: 01 07 00 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: 01 07 00 D4 53 00 00 00 00 00 FF 0F 3C [17:03:24]process_action close_receipt done [17:03:24]requested_data is exist [17:03:24]produce_requested_data [17:03:24]requested_item fm.sn is exist - process it [17:03:24]wFMCommunicate request_size=4 [17:03:24]MH_SAM_APDU [17:03:24]CAPDU: 80 11 00 00 [17:03:24]Write to MH i2c: E2 08 00 D5 53 80 11 00 00 00 00 00 00 A2 [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:24]Read from MH i2c: E2 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 17 00 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 17 00 D5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [17:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:03:24]wFMCommunicate OK [17:03:24]requested_item fd.num is exist - process it [17:03:24]SAM_PROTO_GetFieldsCounters [17:03:24]wFMCommunicate request_size=4 [17:03:24]MH_SAM_APDU [17:03:24]CAPDU: 80 13 00 00 [17:03:24]Write to MH i2c: E2 08 00 D6 53 80 13 00 00 00 00 00 00 A5 [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:24]Read from MH i2c: E2 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 62 00 [17:03:24]MH_I2C_Read... [17:03:24]Read from MH i2c: E2 62 00 D6 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [17:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:24]wFMCommunicate OK [17:03:24]SAM_PROTO_GetFieldsCounters done [17:03:24]requested_item shift.num is exist - process it [17:03:24]requested_item shift.opened is exist - process it [17:03:24]req_shift_opened [17:03:24]FM_GetShiftState [17:03:24]SAM_PROTO_GetShiftState [17:03:24]wFMCommunicate request_size=4 [17:03:24]MH_SAM_APDU [17:03:24]CAPDU: 80 13 01 00 [17:03:24]Write to MH i2c: E2 08 00 D7 53 80 13 01 00 00 00 00 00 A7 [17:03:24]Write i2c OK [17:03:24]MH_I2C_Read... [17:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:25]Read from MH i2c: E2 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0E 00 [17:03:25]MH_I2C_Read... [17:03:25]Read from MH i2c: E2 0E 00 D7 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 23 [17:03:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:03:25]wFMCommunicate OK [17:03:25]SAM_PROTO_GetShiftState done [17:03:25]FM_GetShiftState done [17:03:25]req_shift_opened done [17:03:25]requested_item shift.open_date is exist - process it [17:03:25]req_shift_open_date [17:03:25]req_shift_open_date done [17:03:25]produce_requested_data done [17:03:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30684,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:03:25]process_action_free close_receipt [17:03:25]json_value_free [17:03:25]json_value_free done [17:03:25]process_json_proto returns [17:03:25]Send response to host [17:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30684,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:03:25]free response buf [17:03:25]execute_script done [17:03:25]execute_script returns [17:03:25]free content buf [17:03:25]Sock 7.Close socket [17:03:25]Sock 7.Thread stoped [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:36]accept exits with 9 [17:08:36]New connection [17:08:36]New thread 3067489636 created [17:08:36]Thread 3067346276 joined [17:08:36]Waiting for new connection... [17:08:36] Sock 9.Parse request [17:08:36]Sock 9.Check first char [17:08:36]Sock 9.First char is OK [17:08:36]request: POST /json_proto HTTP/1.0 [17:08:36]Method: POST [17:08:36]URL: /json_proto [17:08:36]Method is POST - this is cgi request [17:08:36]url: /json_proto [17:08:36]query_string will be loaded in cgi processing [17:08:36]execute_cgi json_proto POST (null) [17:08:36]execute_cgi path=json_proto method=POST [17:08:36]POST find Content-Length [17:08:36]Host: 172.17.51.3:8080 [17:08:36]Content-Length: 754 [17:08:36]Content-Type: application/json [17:08:36] [17:08:36]POST finish read [17:08:36]Found Content-Length = 754 [17:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120358", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:36]execute_script... [17:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120358", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:36]POST & json_proto [17:08:36]process_json_proto [17:08:36]json parsed OK: [17:08:36]protocol is kg_v1.0 [17:08:36]action value=close_receipt [17:08:36]process_action close_receipt [17:08:36]cmd_close_receipt [17:08:36]MH_GetDate [17:08:36]Write to MH i2c: F0 00 00 D8 53 1A [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: F0 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: F0 09 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: F0 09 00 D8 53 00 9A 8A 16 67 04 C1 95 66 84 [17:08:36]GetLastDocTimeStamp 1729530206 [17:08:36]current date 1729530522 [17:08:36]FM_GetShiftState [17:08:36]SAM_PROTO_GetShiftState [17:08:36]wFMCommunicate request_size=4 [17:08:36]MH_SAM_APDU [17:08:36]CAPDU: 80 13 01 00 [17:08:36]Write to MH i2c: E2 08 00 D9 53 80 13 01 00 00 00 00 00 A9 [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:36]Read from MH i2c: E2 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 0E 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 0E 00 D9 53 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 25 [17:08:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:08:36]wFMCommunicate OK [17:08:36]SAM_PROTO_GetShiftState done [17:08:36]FM_GetShiftState done [17:08:36]opened in 1729471058 [17:08:36]opened+sec_in_day 1729557458 [17:08:36]quantity*price = 0 [17:08:36]sum+1 = 1 [17:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 182 21.10.2024 17:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30120358 ФМ: 0000000002094219 ФД: 30685 ФПД: 213685623982326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30685&fm=213685623982326&tin=02508201610067®Number=0000000000186857&sum=0 [17:08:37]StoreToDocumentArchive [17:08:37]shift 115 fd 30685 [17:08:37]save to /storage/0115/doc_00030685 [17:08:37]save last doc name /storage/0115/doc_00030685 to /storage/kkm_last_doc_name [17:08:37]save OK [17:08:37]Clear old archive folders... [17:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:37]tlvbuf is 01E0BF50 [17:08:37]SAM_PROTO_ClearQueue [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 09 00 00 [17:08:37]Write to MH i2c: E2 08 00 E6 53 80 09 00 00 00 00 00 00 AB [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 03 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 03 00 E6 53 00 90 00 AD [17:08:37]RAPDU: 90 00 [17:08:37]wFMCommunicate OK [17:08:37]SAM_PROTO_ClearQueue done [17:08:37]KKMCreateOFDPacket [17:08:37]OFDProtocolAddRootSTLVToBuf [17:08:37]FM_MakeSignedData [17:08:37]FM_MakeSignedData [17:08:37]SAM_PROTO_SignData [17:08:37]wFMCommunicate request_size=4 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 0D 01 02 [17:08:37]Write to MH i2c: E2 08 00 E7 53 80 0D 01 02 00 00 00 00 B3 [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:37]Read from MH i2c: E2 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 03 00 [17:08:37]MH_I2C_Read... [17:08:37]Read from MH i2c: E2 03 00 E7 53 00 90 00 AE [17:08:37]RAPDU: 90 00 [17:08:37]wFMCommunicate OK [17:08:37]wFMCommunicate request_size=255 [17:08:37]MH_SAM_APDU [17:08:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9A 8A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 77 00 00 35 04 06 00 C2 [17:08:37]Write to MH i2c: E2 02 01 E8 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9A 8A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 77 00 00 35 04 06 00 C2 00 00 12 [17:08:37]Write i2c OK [17:08:37]MH_I2C_Read... [17:08:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:37]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 E8 53 00 90 00 AF [17:08:38]RAPDU: 90 00 [17:08:38]wFMCommunicate OK [17:08:38]wFMCommunicate request_size=10 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 0D 02 02 05 58 8F B6 08 F6 [17:08:38]Write to MH i2c: E2 0D 00 E9 53 80 0D 02 02 05 00 58 8F B6 08 F6 00 00 5B [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:38]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 03 00 E9 53 00 90 00 B0 [17:08:38]RAPDU: 90 00 [17:08:38]wFMCommunicate OK [17:08:38]wFMCommunicate request_size=4 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 0D 03 02 [17:08:38]Write to MH i2c: E2 08 00 EA 53 80 0D 03 02 00 00 00 00 B8 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:38]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 0B 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 0B 00 EA 53 00 9D 4A CE 00 FA F0 E8 38 90 00 78 [17:08:38]RAPDU: 9D 4A CE 00 FA F0 E8 38 90 00 [17:08:38]wFMCommunicate OK [17:08:38]SAM_PROTO_SignData done [17:08:38]FM_MakeSignedData done [17:08:38]CreateOFDProtocolMessage [17:08:38]wFMCommunicate request_size=4 [17:08:38]MH_SAM_APDU [17:08:38]CAPDU: 80 11 00 00 [17:08:38]Write to MH i2c: E2 08 00 EB 53 80 11 00 00 00 00 00 00 B8 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:38]Read from MH i2c: E2 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 17 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: E2 17 00 EB 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [17:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:38]wFMCommunicate OK [17:08:38]CreateOFDProtocolMessage done [17:08:38]OFDSenderStorePacket 30685 [17:08:38]StoreOFDPacket docnum=30685 [17:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 18 07 01 F2 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9A 8A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 77 00 00 35 04 06 00 C2 58 8F B6 08 F6 9D 4A CE 00 FA F0 E8 38 [17:08:38]CheckFolder [17:08:38]dirname=/storage/ofd_packets [17:08:38]CheckFolder done [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00030685 [17:08:38]NVStorageSaveData ofd_packets/00030685 [17:08:38]File name is /storage/ofd_packets/00030685 [17:08:38]Write 301 bytes [17:08:38]NVStorageSaveData done [17:08:38]OFDSenderStorePacket done [17:08:38]KKMCreateOFDPacket done [17:08:38]NVStorageSaveData kkm_last_timestamp [17:08:38]File name is /storage/kkm_last_timestamp [17:08:38]Write 4 bytes [17:08:38]NVStorageSaveData done [17:08:38]ExternCall_PrintAddStr [17:08:38]wPrintStart [17:08:38]Write to MH i2c: 01 00 00 EC 53 3F [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 07 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 07 00 EC 53 00 00 00 00 00 FF 0F 54 [17:08:38]RasterBufferAndPrint [17:08:38]line Счет N : (1)343096 [17:08:38]line ИНН: 02508201610067 [17:08:38]line Контрольно-Кассовый Чек [17:08:38]line ПРОДАЖА [17:08:38]line ТРК (МРК, ГНК) : 52 [17:08:38]line Товар: 2710124500 [17:08:38]line Аи-95-К-3 [17:08:38]line 20.000 * 0.00 [17:08:38]line = 0.00 [17:08:38]line НДС 12% НСП 1% [17:08:38]line > о реализуемом товаре [17:08:38]line ИТОГО: 0.00 [17:08:38]line НСП 1% : 0.00 [17:08:38]line НДС 12% : 0.00 [17:08:38]line Наличными: 0.00 [17:08:38]line Безнал.: 0.00 [17:08:38]line Место: АЗС № 78 "Партнер Нефть" [17:08:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:08:38]line СНО: Общий режим [17:08:38]line Чек 182 21.10.2024 17:08 [17:08:38]line Смена: 115 ФФД: 1.0 [17:08:38]line ЗНМ: 0300000137 [17:08:38]line РНМ: 0000000000186857 [17:08:38]line Версия ККМ: v1.0 [17:08:38]line Талоны: ТК ГПНА Online [17:08:38]line 30120358 [17:08:38]line ФМ: 0000000002094219 [17:08:38]line ФД: 30685 [17:08:38]line ФПД: 213685623982326 [17:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30685&fm=213685623982326&tin=02508201610067®Number=0000000000186857&sum=0 [17:08:38]OFD Sender: Processing packet 30685 [packets to send 10, broken 9] [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00030685 [17:08:38]OFD Sender: To server: pG, [17:08:38]CommunicateWithHost lk.salyk.kg:30040 [17:08:38]ConnectInit lk.salyk.kg [17:08:38]written 0, free lines is 4095 [17:08:38]Connected sock=10 [17:08:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 18 07 01 F2 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 9A 8A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 77 00 00 35 04 06 00 C2 58 8F B6 08 F6 9D 4A CE 00 FA F0 E8 38 [17:08:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 23 FE 47 00 99 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DD 77 00 00 F4 03 04 00 1A 35 16 67 B6 04 01 00 00 B7 3A CD BC 4F 3F 02 7B [17:08:38]CommunicateWithHost err = 0 [17:08:38]CheckOFDResponse [17:08:38]1017 (14) - 77093643461234 [17:08:38]1041 (16) - 0000000002094219 [17:08:38]1040 (4) - 30685 [17:08:38]1012 (4) - 21.10.2024 11:03 [17:08:38]1206 (1) - 0 [17:08:38]OFD Sender: Remove packet 30685 [17:08:38]ProducePacketName [17:08:38]name=ofd_packets/00030685 [17:08:38]NVStorageDeleteData [17:08:38]Write to MH i2c: 01 00 00 16 54 6A [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 07 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: 01 07 00 16 54 00 00 00 00 00 0B 0D 89 [17:08:38]RasterBufferAndPrint [17:08:38]line [17:08:38]line [17:08:38]line [17:08:38]line [17:08:38]line [17:08:38]written 0, free lines is 3348 [17:08:38]MH_Cut [17:08:38]Write to MH i2c: D1 01 00 1D 54 01 43 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: D1 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: D1 01 00 [17:08:38]MH_I2C_Read... [17:08:38]Read from MH i2c: D1 01 00 1D 54 00 42 [17:08:38]Write to MH i2c: 01 00 00 1E 54 72 [17:08:38]Write i2c OK [17:08:38]MH_I2C_Read... [17:08:39]OFD Sender: No OFD packet to send [17:08:39]*** Cut start [17:08:39]*** Partial cut [17:08:39]*** CUTSNS_PIN = 1 [17:08:39]*** CUTSNS_PIN = 0 [17:08:39]*** Brake cut motor [17:08:40]Read from MH i2c: 01 [17:08:40]MH_I2C_Read... [17:08:40]*** Stop cut motor [17:08:40]*** Cut end [17:08:40]Read from MH i2c: 01 07 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: 01 07 00 1E 54 00 00 00 00 00 FF 0F 87 [17:08:40]process_action close_receipt done [17:08:40]requested_data is exist [17:08:40]produce_requested_data [17:08:40]requested_item fm.sn is exist - process it [17:08:40]wFMCommunicate request_size=4 [17:08:40]MH_SAM_APDU [17:08:40]CAPDU: 80 11 00 00 [17:08:40]Write to MH i2c: E2 08 00 1F 54 80 11 00 00 00 00 00 00 ED [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:40]Read from MH i2c: E2 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 17 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 17 00 1F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3B [17:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:08:40]wFMCommunicate OK [17:08:40]requested_item fd.num is exist - process it [17:08:40]SAM_PROTO_GetFieldsCounters [17:08:40]wFMCommunicate request_size=4 [17:08:40]MH_SAM_APDU [17:08:40]CAPDU: 80 13 00 00 [17:08:40]Write to MH i2c: E2 08 00 20 54 80 13 00 00 00 00 00 00 F0 [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:40]Read from MH i2c: E2 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 62 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 62 00 20 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [17:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:40]wFMCommunicate OK [17:08:40]SAM_PROTO_GetFieldsCounters done [17:08:40]requested_item shift.num is exist - process it [17:08:40]requested_item shift.opened is exist - process it [17:08:40]req_shift_opened [17:08:40]FM_GetShiftState [17:08:40]SAM_PROTO_GetShiftState [17:08:40]wFMCommunicate request_size=4 [17:08:40]MH_SAM_APDU [17:08:40]CAPDU: 80 13 01 00 [17:08:40]Write to MH i2c: E2 08 00 21 54 80 13 01 00 00 00 00 00 F2 [17:08:40]Write i2c OK [17:08:40]MH_I2C_Read... [17:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:40]Read from MH i2c: E2 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 0E 00 [17:08:40]MH_I2C_Read... [17:08:40]Read from MH i2c: E2 0E 00 21 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6E [17:08:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:08:40]wFMCommunicate OK [17:08:40]SAM_PROTO_GetShiftState done [17:08:40]FM_GetShiftState done [17:08:40]req_shift_opened done [17:08:40]requested_item shift.open_date is exist - process it [17:08:40]req_shift_open_date [17:08:40]req_shift_open_date done [17:08:40]produce_requested_data done [17:08:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30685,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:08:40]process_action_free close_receipt [17:08:40]json_value_free [17:08:40]json_value_free done [17:08:40]process_json_proto returns [17:08:40]Send response to host [17:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30685,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:08:40]free response buf [17:08:40]execute_script done [17:08:40]execute_script returns [17:08:40]free content buf [17:08:40]Sock 9.Close socket [17:08:40]Sock 9.Thread stoped [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:07]accept exits with 7 [17:11:07]New connection [17:11:07]New thread 3067346276 created [17:11:07]Thread 3067489636 joined [17:11:07]Waiting for new connection... [17:11:07] Sock 7.Parse request [17:11:07]Sock 7.Check first char [17:11:07]Sock 7.First char is OK [17:11:07]request: POST /json_proto HTTP/1.0 [17:11:07]Method: POST [17:11:07]URL: /json_proto [17:11:07]Method is POST - this is cgi request [17:11:07]url: /json_proto [17:11:07]query_string will be loaded in cgi processing [17:11:07]execute_cgi json_proto POST (null) [17:11:07]execute_cgi path=json_proto method=POST [17:11:07]POST find Content-Length [17:11:07]Host: 172.17.51.3:8080 [17:11:07]Content-Length: 677 [17:11:07]Content-Type: application/json [17:11:07] [17:11:07]POST finish read [17:11:07]Found Content-Length = 677 [17:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:07]execute_script... [17:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:07]POST & json_proto [17:11:07]process_json_proto [17:11:07]json parsed OK: [17:11:07]protocol is kg_v1.0 [17:11:07]action value=close_receipt [17:11:07]process_action close_receipt [17:11:07]cmd_close_receipt [17:11:07]MH_GetDate [17:11:07]Write to MH i2c: F0 00 00 22 54 65 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 09 00 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: F0 09 00 22 54 00 31 8B 16 67 04 C1 95 66 67 [17:11:07]GetLastDocTimeStamp 1729530522 [17:11:07]current date 1729530673 [17:11:07]FM_GetShiftState [17:11:07]SAM_PROTO_GetShiftState [17:11:07]wFMCommunicate request_size=4 [17:11:07]MH_SAM_APDU [17:11:07]CAPDU: 80 13 01 00 [17:11:07]Write to MH i2c: E2 08 00 23 54 80 13 01 00 00 00 00 00 F4 [17:11:07]Write i2c OK [17:11:07]MH_I2C_Read... [17:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:07]Read from MH i2c: E2 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 0E 00 [17:11:07]MH_I2C_Read... [17:11:07]Read from MH i2c: E2 0E 00 23 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 70 [17:11:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:11:07]wFMCommunicate OK [17:11:07]SAM_PROTO_GetShiftState done [17:11:07]FM_GetShiftState done [17:11:07]opened in 1729471058 [17:11:07]opened+sec_in_day 1729557458 [17:11:07]quantity*price = 25020 [17:11:07]sum+1 = 25022 [17:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 183 21.10.2024 17:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30686 ФПД: 174513165246855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171113&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30686&fm=174513165246855&tin=02508201610067®Number=0000000000186857&sum=25000 [17:11:08]StoreToDocumentArchive [17:11:08]shift 115 fd 30686 [17:11:08]save to /storage/0115/doc_00030686 [17:11:08]save last doc name /storage/0115/doc_00030686 to /storage/kkm_last_doc_name [17:11:08]save OK [17:11:08]Clear old archive folders... [17:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:08]tlvbuf is 01E0CA80 [17:11:08]SAM_PROTO_ClearQueue [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 09 00 00 [17:11:08]Write to MH i2c: E2 08 00 30 54 80 09 00 00 00 00 00 00 F6 [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 30 54 00 90 00 F8 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]SAM_PROTO_ClearQueue done [17:11:08]KKMCreateOFDPacket [17:11:08]OFDProtocolAddRootSTLVToBuf [17:11:08]FM_MakeSignedData [17:11:08]FM_MakeSignedData [17:11:08]SAM_PROTO_SignData [17:11:08]wFMCommunicate request_size=4 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 01 02 [17:11:08]Write to MH i2c: E2 08 00 31 54 80 0D 01 02 00 00 00 00 FE [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:08]Read from MH i2c: E2 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 [17:11:08]MH_I2C_Read... [17:11:08]Read from MH i2c: E2 03 00 31 54 00 90 00 F9 [17:11:08]RAPDU: 90 00 [17:11:08]wFMCommunicate OK [17:11:08]wFMCommunicate request_size=255 [17:11:08]MH_SAM_APDU [17:11:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 31 8B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 77 00 00 35 04 06 00 9E [17:11:08]Write to MH i2c: E2 02 01 32 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 31 8B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 77 00 00 35 04 06 00 9E 00 00 BE [17:11:08]Write i2c OK [17:11:08]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 32 54 00 90 00 FA [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]wFMCommunicate request_size=10 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 0D 02 02 05 B8 03 39 21 87 [17:11:09]Write to MH i2c: E2 0D 00 33 54 80 0D 02 02 05 00 B8 03 39 21 87 00 00 A7 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 03 00 33 54 00 90 00 FB [17:11:09]RAPDU: 90 00 [17:11:09]wFMCommunicate OK [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 0D 03 02 [17:11:09]Write to MH i2c: E2 08 00 34 54 80 0D 03 02 00 00 00 00 03 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0B 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 0B 00 34 54 00 6B 1B 4F CC 3F FA B3 10 90 00 A1 [17:11:09]RAPDU: 6B 1B 4F CC 3F FA B3 10 90 00 [17:11:09]wFMCommunicate OK [17:11:09]SAM_PROTO_SignData done [17:11:09]FM_MakeSignedData done [17:11:09]CreateOFDProtocolMessage [17:11:09]wFMCommunicate request_size=4 [17:11:09]MH_SAM_APDU [17:11:09]CAPDU: 80 11 00 00 [17:11:09]Write to MH i2c: E2 08 00 35 54 80 11 00 00 00 00 00 00 03 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:09]Read from MH i2c: E2 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 17 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: E2 17 00 35 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 51 [17:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:11:09]wFMCommunicate OK [17:11:09]CreateOFDProtocolMessage done [17:11:09]OFDSenderStorePacket 30686 [17:11:09]StoreOFDPacket docnum=30686 [17:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 4D 07 01 F8 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 31 8B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 77 00 00 35 04 06 00 9E B8 03 39 21 87 6B 1B 4F CC 3F FA B3 10 [17:11:09]CheckFolder [17:11:09]dirname=/storage/ofd_packets [17:11:09]CheckFolder done [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00030686 [17:11:09]NVStorageSaveData ofd_packets/00030686 [17:11:09]File name is /storage/ofd_packets/00030686 [17:11:09]Write 301 bytes [17:11:09]NVStorageSaveData done [17:11:09]OFDSenderStorePacket done [17:11:09]KKMCreateOFDPacket done [17:11:09]NVStorageSaveData kkm_last_timestamp [17:11:09]File name is /storage/kkm_last_timestamp [17:11:09]Write 4 bytes [17:11:09]NVStorageSaveData done [17:11:09]ExternCall_PrintAddStr [17:11:09]wPrintStart [17:11:09]Write to MH i2c: 01 00 00 36 54 8A [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 36 54 00 00 00 00 00 FF 0F 9F [17:11:09]RasterBufferAndPrint [17:11:09]line Счет N : (1)343097 [17:11:09]line ИНН: 02508201610067 [17:11:09]line Контрольно-Кассовый Чек [17:11:09]line ПРОДАЖА [17:11:09]line ТРК (МРК, ГНК) : 33 [17:11:09]line Товар: 2710124130 [17:11:09]line Аи-92-К-2 [17:11:09]line 3.740 * 66.90 [17:11:09]line = 250.21 [17:11:09]line НДС 12% НСП 1% [17:11:09]line > о реализуемом товаре [17:11:09]line ОКРУГЛЕНИЕ: -0.21 [17:11:09]line ИТОГО: 250.00 [17:11:09]line Внесено: 250.00 [17:11:09]line СДАЧА: 0.00 [17:11:09]line НСП 1% : 2.21 [17:11:09]line НДС 12% : 26.57 [17:11:09]line Наличными: 250.00 [17:11:09]line Безнал.: 0.00 [17:11:09]line Место: АЗС № 78 "Партнер Нефть" [17:11:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:11:09]line СНО: Общий режим [17:11:09]line Чек 183 21.10.2024 17:11 [17:11:09]line Смена: 115 ФФД: 1.0 [17:11:09]line ЗНМ: 0300000137 [17:11:09]line РНМ: 0000000000186857 [17:11:09]line Версия ККМ: v1.0 [17:11:09]line ФМ: 0000000002094219 [17:11:09]line ФД: 30686 [17:11:09]line ФПД: 174513165246855 [17:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171113&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30686&fm=174513165246855&tin=02508201610067®Number=0000000000186857&sum=25000 [17:11:09]OFD Sender: Processing packet 30686 [packets to send 10, broken 9] [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00030686 [17:11:09]OFD Sender: To server: pG, [17:11:09]CommunicateWithHost lk.salyk.kg:30040 [17:11:09]ConnectInit lk.salyk.kg [17:11:09]written 0, free lines is 4095 [17:11:09]Connected sock=10 [17:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E7 4D 07 01 F8 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 31 8B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 77 00 00 35 04 06 00 9E B8 03 39 21 87 6B 1B 4F CC 3F FA B3 10 [17:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 51 D3 47 00 14 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DE 77 00 00 F4 03 04 00 B1 35 16 67 B6 04 01 00 00 DC 4F 7F 47 01 14 EA 0F [17:11:09]CommunicateWithHost err = 0 [17:11:09]CheckOFDResponse [17:11:09]1017 (14) - 77093643461234 [17:11:09]1041 (16) - 0000000002094219 [17:11:09]1040 (4) - 30686 [17:11:09]1012 (4) - 21.10.2024 11:06 [17:11:09]1206 (1) - 0 [17:11:09]OFD Sender: Remove packet 30686 [17:11:09]ProducePacketName [17:11:09]name=ofd_packets/00030686 [17:11:09]NVStorageDeleteData [17:11:09]Write to MH i2c: 01 00 00 61 54 B5 [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: 01 07 00 61 54 00 00 00 00 00 E4 0C AC [17:11:09]RasterBufferAndPrint [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]line [17:11:09]written 0, free lines is 3306 [17:11:09]MH_Cut [17:11:09]Write to MH i2c: D1 01 00 68 54 01 8E [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 01 00 [17:11:09]MH_I2C_Read... [17:11:09]Read from MH i2c: D1 01 00 68 54 00 8D [17:11:09]Write to MH i2c: 01 00 00 69 54 BD [17:11:09]Write i2c OK [17:11:09]MH_I2C_Read... [17:11:10]OFD Sender: No OFD packet to send [17:11:10]*** Cut start [17:11:10]*** Partial cut [17:11:10]*** CUTSNS_PIN = 1 [17:11:10]*** CUTSNS_PIN = 0 [17:11:10]*** Brake cut motor [17:11:11]Read from MH i2c: 01 [17:11:11]MH_I2C_Read... [17:11:11]*** Stop cut motor [17:11:11]*** Cut end [17:11:11]Read from MH i2c: 01 07 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: 01 07 00 69 54 00 00 00 00 00 FF 0F D2 [17:11:11]process_action close_receipt done [17:11:11]requested_data is exist [17:11:11]produce_requested_data [17:11:11]requested_item fm.sn is exist - process it [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 11 00 00 [17:11:11]Write to MH i2c: E2 08 00 6A 54 80 11 00 00 00 00 00 00 38 [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 17 00 6A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [17:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:11:11]wFMCommunicate OK [17:11:11]requested_item fd.num is exist - process it [17:11:11]SAM_PROTO_GetFieldsCounters [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 13 00 00 [17:11:11]Write to MH i2c: E2 08 00 6B 54 80 13 00 00 00 00 00 00 3B [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 62 00 6B 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [17:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetFieldsCounters done [17:11:11]requested_item shift.num is exist - process it [17:11:11]requested_item shift.opened is exist - process it [17:11:11]req_shift_opened [17:11:11]FM_GetShiftState [17:11:11]SAM_PROTO_GetShiftState [17:11:11]wFMCommunicate request_size=4 [17:11:11]MH_SAM_APDU [17:11:11]CAPDU: 80 13 01 00 [17:11:11]Write to MH i2c: E2 08 00 6C 54 80 13 01 00 00 00 00 00 3D [17:11:11]Write i2c OK [17:11:11]MH_I2C_Read... [17:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:11]Read from MH i2c: E2 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 [17:11:11]MH_I2C_Read... [17:11:11]Read from MH i2c: E2 0E 00 6C 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B9 [17:11:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:11:11]wFMCommunicate OK [17:11:11]SAM_PROTO_GetShiftState done [17:11:11]FM_GetShiftState done [17:11:11]req_shift_opened done [17:11:11]requested_item shift.open_date is exist - process it [17:11:11]req_shift_open_date [17:11:11]req_shift_open_date done [17:11:11]produce_requested_data done [17:11:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30686,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:11:11]process_action_free close_receipt [17:11:11]json_value_free [17:11:11]json_value_free done [17:11:11]process_json_proto returns [17:11:11]Send response to host [17:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30686,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:11:11]free response buf [17:11:11]execute_script done [17:11:11]execute_script returns [17:11:11]free content buf [17:11:11]Sock 7.Close socket [17:11:11]Sock 7.Thread stoped [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:07]accept exits with 9 [17:15:07]New connection [17:15:07]New thread 3067489636 created [17:15:07]Thread 3067346276 joined [17:15:07]Waiting for new connection... [17:15:07] Sock 9.Parse request [17:15:07]Sock 9.Check first char [17:15:07]Sock 9.First char is OK [17:15:07]request: POST /json_proto HTTP/1.0 [17:15:07]Method: POST [17:15:07]URL: /json_proto [17:15:07]Method is POST - this is cgi request [17:15:07]url: /json_proto [17:15:07]query_string will be loaded in cgi processing [17:15:07]execute_cgi json_proto POST (null) [17:15:07]execute_cgi path=json_proto method=POST [17:15:07]POST find Content-Length [17:15:07]Host: 172.17.51.3:8080 [17:15:07]Content-Length: 849 [17:15:07]Content-Type: application/json [17:15:07] [17:15:07]POST finish read [17:15:07]Found Content-Length = 849 [17:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:07]execute_script... [17:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:07]POST & json_proto [17:15:07]process_json_proto [17:15:07]json parsed OK: [17:15:07]protocol is kg_v1.0 [17:15:07]action value=close_receipt [17:15:07]process_action close_receipt [17:15:07]cmd_close_receipt [17:15:07]MH_GetDate [17:15:07]Write to MH i2c: F0 00 00 6D 54 B0 [17:15:07]Write i2c OK [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 09 00 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: F0 09 00 6D 54 00 20 8C 16 67 04 C1 95 66 A2 [17:15:07]GetLastDocTimeStamp 1729530673 [17:15:07]current date 1729530912 [17:15:07]FM_GetShiftState [17:15:07]SAM_PROTO_GetShiftState [17:15:07]wFMCommunicate request_size=4 [17:15:07]MH_SAM_APDU [17:15:07]CAPDU: 80 13 01 00 [17:15:07]Write to MH i2c: E2 08 00 6E 54 80 13 01 00 00 00 00 00 3F [17:15:07]Write i2c OK [17:15:07]MH_I2C_Read... [17:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:07]Read from MH i2c: E2 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: E2 0E 00 [17:15:07]MH_I2C_Read... [17:15:07]Read from MH i2c: E2 0E 00 6E 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BB [17:15:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:15:07]wFMCommunicate OK [17:15:07]SAM_PROTO_GetShiftState done [17:15:07]FM_GetShiftState done [17:15:07]opened in 1729471058 [17:15:07]opened+sec_in_day 1729557458 [17:15:07]quantity*price = 100051 [17:15:07]sum+1 = 100052 [17:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 184 21.10.2024 17:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30687 ФПД: 140457638245594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30687&fm=140457638245594&tin=02508201610067®Number=0000000000186857&sum=100051 [17:15:08]StoreToDocumentArchive [17:15:08]shift 115 fd 30687 [17:15:08]save to /storage/0115/doc_00030687 [17:15:08]save last doc name /storage/0115/doc_00030687 to /storage/kkm_last_doc_name [17:15:08]save OK [17:15:08]Clear old archive folders... [17:15:08]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:15:08]tlvbuf is 01DEAA40 [17:15:08]SAM_PROTO_ClearQueue [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 09 00 00 [17:15:08]Write to MH i2c: E2 08 00 7B 54 80 09 00 00 00 00 00 00 41 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 7B 54 00 90 00 43 [17:15:08]RAPDU: 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_ClearQueue done [17:15:08]KKMCreateOFDPacket [17:15:08]OFDProtocolAddRootSTLVToBuf [17:15:08]FM_MakeSignedData [17:15:08]FM_MakeSignedData [17:15:08]SAM_PROTO_SignData [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 0D 01 02 [17:15:08]Write to MH i2c: E2 08 00 7C 54 80 0D 01 02 00 00 00 00 49 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 7C 54 00 90 00 44 [17:15:08]RAPDU: 90 00 [17:15:08]wFMCommunicate OK [17:15:08]wFMCommunicate request_size=255 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 20 8C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 77 00 [17:15:08]Write to MH i2c: E2 02 01 7D 54 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 20 8C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 77 00 00 00 B3 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 7D 54 00 90 00 45 [17:15:08]RAPDU: 90 00 [17:15:08]wFMCommunicate OK [17:15:08]wFMCommunicate request_size=16 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7F BE D7 A2 34 DA [17:15:08]Write to MH i2c: E2 13 00 7E 54 80 0D 02 02 0B 00 00 35 04 06 00 7F BE D7 A2 34 DA 00 00 65 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 03 00 7E 54 00 90 00 46 [17:15:08]RAPDU: 90 00 [17:15:08]wFMCommunicate OK [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 0D 03 02 [17:15:08]Write to MH i2c: E2 08 00 7F 54 80 0D 03 02 00 00 00 00 4E [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0B 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0B 00 7F 54 00 2B C6 F1 BB 94 B3 8D 8C 90 00 4C [17:15:08]RAPDU: 2B C6 F1 BB 94 B3 8D 8C 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_SignData done [17:15:08]FM_MakeSignedData done [17:15:08]CreateOFDProtocolMessage [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 11 00 00 [17:15:08]Write to MH i2c: E2 08 00 80 54 80 11 00 00 00 00 00 00 4E [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 17 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 17 00 80 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [17:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:15:08]wFMCommunicate OK [17:15:08]CreateOFDProtocolMessage done [17:15:08]OFDSenderStorePacket 30687 [17:15:08]StoreOFDPacket docnum=30687 [17:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A4 21 0D 01 FF 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 20 8C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 77 00 00 35 04 06 00 7F BE D7 A2 34 DA 2B C6 F1 BB 94 B3 8D 8C [17:15:08]CheckFolder [17:15:08]dirname=/storage/ofd_packets [17:15:08]CheckFolder done [17:15:08]ProducePacketName [17:15:08]name=ofd_packets/00030687 [17:15:08]NVStorageSaveData ofd_packets/00030687 [17:15:08]File name is /storage/ofd_packets/00030687 [17:15:08]Write 307 bytes [17:15:08]NVStorageSaveData done [17:15:08]OFDSenderStorePacket done [17:15:08]KKMCreateOFDPacket done [17:15:08]NVStorageSaveData kkm_last_timestamp [17:15:08]File name is /storage/kkm_last_timestamp [17:15:08]Write 4 bytes [17:15:08]NVStorageSaveData done [17:15:08]ExternCall_PrintAddStr [17:15:08]wPrintStart [17:15:08]Write to MH i2c: 01 00 00 81 54 D5 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 07 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: 01 07 00 81 54 00 00 00 00 00 FF 0F EA [17:15:08]RasterBufferAndPrint [17:15:08]line Счет N : (1)343098 [17:15:08]line ИНН: 02508201610067 [17:15:08]line Контрольно-Кассовый Чек [17:15:08]line ПРОДАЖА [17:15:08]line ТРК (МРК, ГНК) : 61 [17:15:08]line Товар: 2710194210 [17:15:08]line D-ENERGY Дт-К-2 [17:15:08]line 12.960 * 77.20 [17:15:08]line = 1000.51 [17:15:08]line НДС 12% НСП 1% [17:15:08]line > о реализуемом товаре [17:15:08]line ИТОГО: 1000.51 [17:15:08]line НСП 1% : 8.85 [17:15:08]line НДС 12% : 106.25 [17:15:08]line Наличными: 0.00 [17:15:08]line Безнал.: 1000.51 [17:15:08]line Место: АЗС № 78 "Партнер Нефть" [17:15:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:15:08]line СНО: Общий режим [17:15:08]line Чек 184 21.10.2024 17:15 [17:15:08]line Смена: 115 ФФД: 1.0 [17:15:08]line ЗНМ: 0300000137 [17:15:08]line РНМ: 0000000000186857 [17:15:08]line Версия ККМ: v1.0 [17:15:08]line Платежная система: АКБ Кыргызстан [17:15:08]line ФМ: 0000000002094219 [17:15:08]line ФД: 30687 [17:15:08]line ФПД: 140457638245594 [17:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171512&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30687&fm=140457638245594&tin=02508201610067®Number=0000000000186857&sum=100051 [17:15:09]OFD Sender: Processing packet 30687 [packets to send 10, broken 9] [17:15:09]ProducePacketName [17:15:09]name=ofd_packets/00030687 [17:15:09]OFD Sender: To server: pG, [17:15:09]CommunicateWithHost lk.salyk.kg:30040 [17:15:09]ConnectInit lk.salyk.kg [17:15:09]written 0, free lines is 4095 [17:15:09]Connected sock=10 [17:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 A4 21 0D 01 FF 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 20 8C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 77 00 00 35 04 06 00 7F BE D7 A2 34 DA 2B C6 F1 BB 94 B3 8D 8C [17:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B8 42 47 00 CF AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 DF 77 00 00 F4 03 04 00 A1 36 16 67 B6 04 01 00 00 DC BD 44 F1 7C C8 BC 94 [17:15:09]CommunicateWithHost err = 0 [17:15:09]CheckOFDResponse [17:15:09]1017 (14) - 77093643461234 [17:15:09]1041 (16) - 0000000002094219 [17:15:09]1040 (4) - 30687 [17:15:09]1012 (4) - 21.10.2024 11:10 [17:15:09]1206 (1) - 0 [17:15:09]OFD Sender: Remove packet 30687 [17:15:09]ProducePacketName [17:15:09]name=ofd_packets/00030687 [17:15:09]NVStorageDeleteData [17:15:09]Write to MH i2c: 01 00 00 AB 54 FF [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 07 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: 01 07 00 AB 54 00 00 00 00 00 0D 0D 20 [17:15:09]RasterBufferAndPrint [17:15:09]line [17:15:09]line [17:15:09]line [17:15:09]line [17:15:09]line [17:15:09]written 0, free lines is 3347 [17:15:09]MH_Cut [17:15:09]Write to MH i2c: D1 01 00 B2 54 01 D8 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: D1 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: D1 01 00 [17:15:09]MH_I2C_Read... [17:15:09]Read from MH i2c: D1 01 00 B2 54 00 D7 [17:15:09]Write to MH i2c: 01 00 00 B3 54 07 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:09]OFD Sender: No OFD packet to send [17:15:10]*** Cut start [17:15:10]*** Partial cut [17:15:10]*** CUTSNS_PIN = 1 [17:15:10]*** CUTSNS_PIN = 0 [17:15:10]*** Brake cut motor [17:15:10]Read from MH i2c: 01 [17:15:10]MH_I2C_Read... [17:15:10]*** Stop cut motor [17:15:10]*** Cut end [17:15:10]Read from MH i2c: 01 07 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 07 00 B3 54 00 00 00 00 00 FF 0F 1C [17:15:10]process_action close_receipt done [17:15:10]requested_data is exist [17:15:10]produce_requested_data [17:15:10]requested_item fm.sn is exist - process it [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 11 00 00 [17:15:10]Write to MH i2c: E2 08 00 B4 54 80 11 00 00 00 00 00 00 82 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 17 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 17 00 B4 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D0 [17:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:15:10]wFMCommunicate OK [17:15:10]requested_item fd.num is exist - process it [17:15:10]SAM_PROTO_GetFieldsCounters [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 13 00 00 [17:15:10]Write to MH i2c: E2 08 00 B5 54 80 13 00 00 00 00 00 00 85 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 62 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 62 00 B5 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [17:15:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 DF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:15:11]wFMCommunicate OK [17:15:11]SAM_PROTO_GetFieldsCounters done [17:15:11]requested_item shift.num is exist - process it [17:15:11]requested_item shift.opened is exist - process it [17:15:11]req_shift_opened [17:15:11]FM_GetShiftState [17:15:11]SAM_PROTO_GetShiftState [17:15:11]wFMCommunicate request_size=4 [17:15:11]MH_SAM_APDU [17:15:11]CAPDU: 80 13 01 00 [17:15:11]Write to MH i2c: E2 08 00 B6 54 80 13 01 00 00 00 00 00 87 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:11]Read from MH i2c: E2 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0E 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: E2 0E 00 B6 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 03 [17:15:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:15:11]wFMCommunicate OK [17:15:11]SAM_PROTO_GetShiftState done [17:15:11]FM_GetShiftState done [17:15:11]req_shift_opened done [17:15:11]requested_item shift.open_date is exist - process it [17:15:11]req_shift_open_date [17:15:11]req_shift_open_date done [17:15:11]produce_requested_data done [17:15:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30687,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:15:11]process_action_free close_receipt [17:15:11]json_value_free [17:15:11]json_value_free done [17:15:11]process_json_proto returns [17:15:11]Send response to host [17:15:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30687,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:15:11]free response buf [17:15:11]execute_script done [17:15:11]execute_script returns [17:15:11]free content buf [17:15:11]Sock 9.Close socket [17:15:11]Sock 9.Thread stoped [17:15:14]OFD Sender: No OFD packet to send [17:15:19]OFD Sender: No OFD packet to send [17:15:24]OFD Sender: No OFD packet to send [17:15:29]OFD Sender: No OFD packet to send [17:15:34]OFD Sender: No OFD packet to send [17:15:39]OFD Sender: No OFD packet to send [17:15:44]OFD Sender: No OFD packet to send [17:15:49]OFD Sender: No OFD packet to send [17:15:54]OFD Sender: No OFD packet to send [17:15:59]OFD Sender: No OFD packet to send [17:16:04]OFD Sender: No OFD packet to send [17:16:09]OFD Sender: No OFD packet to send [17:16:14]OFD Sender: No OFD packet to send [17:16:19]OFD Sender: No OFD packet to send [17:16:24]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:40]OFD Sender: No OFD packet to send [17:16:45]OFD Sender: No OFD packet to send [17:16:50]OFD Sender: No OFD packet to send [17:16:55]OFD Sender: No OFD packet to send [17:17:00]OFD Sender: No OFD packet to send [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:30]OFD Sender: No OFD packet to send [17:18:35]OFD Sender: No OFD packet to send [17:18:40]OFD Sender: No OFD packet to send [17:18:45]OFD Sender: No OFD packet to send [17:18:50]OFD Sender: No OFD packet to send [17:18:55]OFD Sender: No OFD packet to send [17:19:00]OFD Sender: No OFD packet to send [17:19:05]OFD Sender: No OFD packet to send [17:19:10]OFD Sender: No OFD packet to send [17:19:15]OFD Sender: No OFD packet to send [17:19:20]OFD Sender: No OFD packet to send [17:19:25]OFD Sender: No OFD packet to send [17:19:30]OFD Sender: No OFD packet to send [17:19:35]OFD Sender: No OFD packet to send [17:19:40]OFD Sender: No OFD packet to send [17:19:45]OFD Sender: No OFD packet to send [17:19:50]OFD Sender: No OFD packet to send [17:19:55]OFD Sender: No OFD packet to send [17:20:00]OFD Sender: No OFD packet to send [17:20:05]OFD Sender: No OFD packet to send [17:20:10]OFD Sender: No OFD packet to send [17:20:15]OFD Sender: No OFD packet to send [17:20:20]OFD Sender: No OFD packet to send [17:20:25]OFD Sender: No OFD packet to send [17:20:30]OFD Sender: No OFD packet to send [17:20:35]OFD Sender: No OFD packet to send [17:20:40]OFD Sender: No OFD packet to send [17:20:45]OFD Sender: No OFD packet to send [17:20:50]OFD Sender: No OFD packet to send [17:20:55]OFD Sender: No OFD packet to send [17:21:00]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:52]accept exits with 7 [17:21:52]New connection [17:21:52]New thread 3067346276 created [17:21:52]Thread 3067489636 joined [17:21:52]Waiting for new connection... [17:21:52] Sock 7.Parse request [17:21:52]Sock 7.Check first char [17:21:52]Sock 7.First char is OK [17:21:52]request: POST /json_proto HTTP/1.0 [17:21:52]Method: POST [17:21:52]URL: /json_proto [17:21:52]Method is POST - this is cgi request [17:21:52]url: /json_proto [17:21:52]query_string will be loaded in cgi processing [17:21:52]execute_cgi json_proto POST (null) [17:21:52]execute_cgi path=json_proto method=POST [17:21:52]POST find Content-Length [17:21:52]Host: 172.17.51.3:8080 [17:21:52]Content-Length: 679 [17:21:52]Content-Type: application/json [17:21:52] [17:21:52]POST finish read [17:21:52]Found Content-Length = 679 [17:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:52]execute_script... [17:21:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:52]POST & json_proto [17:21:52]process_json_proto [17:21:52]json parsed OK: [17:21:52]protocol is kg_v1.0 [17:21:52]action value=close_receipt [17:21:52]process_action close_receipt [17:21:52]cmd_close_receipt [17:21:52]MH_GetDate [17:21:52]Write to MH i2c: F0 00 00 B7 54 FA [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 09 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: F0 09 00 B7 54 00 B6 8D 16 67 04 C1 95 66 83 [17:21:52]GetLastDocTimeStamp 1729530912 [17:21:52]current date 1729531318 [17:21:52]FM_GetShiftState [17:21:52]SAM_PROTO_GetShiftState [17:21:52]wFMCommunicate request_size=4 [17:21:52]MH_SAM_APDU [17:21:52]CAPDU: 80 13 01 00 [17:21:52]Write to MH i2c: E2 08 00 B8 54 80 13 01 00 00 00 00 00 89 [17:21:52]Write i2c OK [17:21:52]MH_I2C_Read... [17:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:52]Read from MH i2c: E2 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 [17:21:52]MH_I2C_Read... [17:21:52]Read from MH i2c: E2 0E 00 B8 54 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 05 [17:21:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:21:52]wFMCommunicate OK [17:21:52]SAM_PROTO_GetShiftState done [17:21:52]FM_GetShiftState done [17:21:52]opened in 1729471058 [17:21:52]opened+sec_in_day 1729557458 [17:21:52]quantity*price = 200025 [17:21:52]sum+1 = 200026 [17:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 185 21.10.2024 17:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30688 ФПД: 203582662145011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30688&fm=203582662145011&tin=02508201610067®Number=0000000000186857&sum=200000 [17:21:53]StoreToDocumentArchive [17:21:53]shift 115 fd 30688 [17:21:53]save to /storage/0115/doc_00030688 [17:21:53]save last doc name /storage/0115/doc_00030688 to /storage/kkm_last_doc_name [17:21:53]save OK [17:21:53]Clear old archive folders... [17:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:21:53]tlvbuf is 01E10C30 [17:21:53]SAM_PROTO_ClearQueue [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 09 00 00 [17:21:53]Write to MH i2c: E2 08 00 C5 54 80 09 00 00 00 00 00 00 8B [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 C5 54 00 90 00 8D [17:21:53]RAPDU: 90 00 [17:21:53]wFMCommunicate OK [17:21:53]SAM_PROTO_ClearQueue done [17:21:53]KKMCreateOFDPacket [17:21:53]OFDProtocolAddRootSTLVToBuf [17:21:53]FM_MakeSignedData [17:21:53]FM_MakeSignedData [17:21:53]SAM_PROTO_SignData [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 0D 01 02 [17:21:53]Write to MH i2c: E2 08 00 C6 54 80 0D 01 02 00 00 00 00 93 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 03 00 C6 54 00 90 00 8E [17:21:53]RAPDU: 90 00 [17:21:53]wFMCommunicate OK [17:21:53]wFMCommunicate request_size=255 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B6 8D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 77 00 00 35 04 06 00 B9 28 48 42 [17:21:53]Write to MH i2c: E2 02 01 C7 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B6 8D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 77 00 00 35 04 06 00 B9 28 48 42 00 00 B6 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 C7 54 00 90 00 8F [17:21:54]RAPDU: 90 00 [17:21:54]wFMCommunicate OK [17:21:54]wFMCommunicate request_size=7 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 0D 02 02 02 73 F3 [17:21:54]Write to MH i2c: E2 0A 00 C8 54 80 0D 02 02 02 00 73 F3 00 00 00 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 03 00 C8 54 00 90 00 90 [17:21:54]RAPDU: 90 00 [17:21:54]wFMCommunicate OK [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 0D 03 02 [17:21:54]Write to MH i2c: E2 08 00 C9 54 80 0D 03 02 00 00 00 00 98 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0B 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 0B 00 C9 54 00 6F 1E D2 86 D9 56 D9 BE 90 00 44 [17:21:54]RAPDU: 6F 1E D2 86 D9 56 D9 BE 90 00 [17:21:54]wFMCommunicate OK [17:21:54]SAM_PROTO_SignData done [17:21:54]FM_MakeSignedData done [17:21:54]CreateOFDProtocolMessage [17:21:54]wFMCommunicate request_size=4 [17:21:54]MH_SAM_APDU [17:21:54]CAPDU: 80 11 00 00 [17:21:54]Write to MH i2c: E2 08 00 CA 54 80 11 00 00 00 00 00 00 98 [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:54]Read from MH i2c: E2 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: E2 17 00 CA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E6 [17:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:21:54]wFMCommunicate OK [17:21:54]CreateOFDProtocolMessage done [17:21:54]OFDSenderStorePacket 30688 [17:21:54]StoreOFDPacket docnum=30688 [17:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EF F2 04 01 FD BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B6 8D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 77 00 00 35 04 06 00 B9 28 48 42 73 F3 6F 1E D2 86 D9 56 D9 BE [17:21:54]CheckFolder [17:21:54]dirname=/storage/ofd_packets [17:21:54]CheckFolder done [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00030688 [17:21:54]NVStorageSaveData ofd_packets/00030688 [17:21:54]File name is /storage/ofd_packets/00030688 [17:21:54]Write 298 bytes [17:21:54]NVStorageSaveData done [17:21:54]OFDSenderStorePacket done [17:21:54]KKMCreateOFDPacket done [17:21:54]NVStorageSaveData kkm_last_timestamp [17:21:54]File name is /storage/kkm_last_timestamp [17:21:54]Write 4 bytes [17:21:54]NVStorageSaveData done [17:21:54]ExternCall_PrintAddStr [17:21:54]wPrintStart [17:21:54]Write to MH i2c: 01 00 00 CB 54 1F [17:21:54]Write i2c OK [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 [17:21:54]MH_I2C_Read... [17:21:54]Read from MH i2c: 01 07 00 CB 54 00 00 00 00 00 FF 0F 34 [17:21:54]RasterBufferAndPrint [17:21:54]line Счет N : (1)343099 [17:21:54]line ИНН: 02508201610067 [17:21:54]line Контрольно-Кассовый Чек [17:21:54]line ПРОДАЖА [17:21:54]line ТРК (МРК, ГНК) : 34 [17:21:54]line Товар: 2710194210 [17:21:54]line ДТ-К-2 [17:21:54]line 26.250 * 76.20 [17:21:54]line = 2000.25 [17:21:54]line НДС 12% НСП 1% [17:21:54]line > о реализуемом товаре [17:21:54]line ОКРУГЛЕНИЕ: -0.25 [17:21:54]line ИТОГО: 2000.00 [17:21:54]line Внесено: 2000.00 [17:21:54]line СДАЧА: 0.00 [17:21:54]line НСП 1% : 17.70 [17:21:54]line НДС 12% : 212.42 [17:21:54]line Наличными: 2000.00 [17:21:54]line Безнал.: 0.00 [17:21:54]line Место: АЗС № 78 "Партнер Нефть" [17:21:54]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:21:54]line СНО: Общий режим [17:21:54]line Чек 185 21.10.2024 17:21 [17:21:54]line Смена: 115 ФФД: 1.0 [17:21:54]line ЗНМ: 0300000137 [17:21:54]line РНМ: 0000000000186857 [17:21:54]line Версия ККМ: v1.0 [17:21:54]line ФМ: 0000000002094219 [17:21:54]line ФД: 30688 [17:21:54]line ФПД: 203582662145011 [17:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172158&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30688&fm=203582662145011&tin=02508201610067®Number=0000000000186857&sum=200000 [17:21:54]OFD Sender: Processing packet 30688 [packets to send 10, broken 9] [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00030688 [17:21:54]OFD Sender: To server: pG, [17:21:54]CommunicateWithHost lk.salyk.kg:30040 [17:21:54]ConnectInit lk.salyk.kg [17:21:54]written 0, free lines is 4095 [17:21:54]Connected sock=10 [17:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 EF F2 04 01 FD BB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 B6 8D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 77 00 00 35 04 06 00 B9 28 48 42 73 F3 6F 1E D2 86 D9 56 D9 BE [17:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 07 1F 47 00 71 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E0 77 00 00 F4 03 04 00 36 38 16 67 B6 04 01 00 00 EF 70 D6 5B A7 34 ED AA [17:21:54]CommunicateWithHost err = 0 [17:21:54]CheckOFDResponse [17:21:54]1017 (14) - 77093643461234 [17:21:54]1041 (16) - 0000000002094219 [17:21:54]1040 (4) - 30688 [17:21:54]1012 (4) - 21.10.2024 11:17 [17:21:54]1206 (1) - 0 [17:21:54]OFD Sender: Remove packet 30688 [17:21:54]ProducePacketName [17:21:54]name=ofd_packets/00030688 [17:21:54]NVStorageDeleteData [17:21:55]Write to MH i2c: 01 00 00 F6 54 4A [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 07 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: 01 07 00 F6 54 00 00 00 00 00 F8 0C 55 [17:21:55]RasterBufferAndPrint [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]line [17:21:55]written 0, free lines is 3327 [17:21:55]MH_Cut [17:21:55]Write to MH i2c: D1 01 00 FD 54 01 23 [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: D1 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: D1 01 00 [17:21:55]MH_I2C_Read... [17:21:55]Read from MH i2c: D1 01 00 FD 54 00 22 [17:21:55]Write to MH i2c: 01 00 00 FE 54 52 [17:21:55]Write i2c OK [17:21:55]MH_I2C_Read... [17:21:55]OFD Sender: No OFD packet to send [17:21:55]*** Cut start [17:21:55]*** Partial cut [17:21:55]*** CUTSNS_PIN = 1 [17:21:55]*** CUTSNS_PIN = 0 [17:21:55]*** Brake cut motor [17:21:56]Read from MH i2c: 01 [17:21:56]MH_I2C_Read... [17:21:56]*** Stop cut motor [17:21:56]*** Cut end [17:21:56]Read from MH i2c: 01 07 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: 01 07 00 FE 54 00 00 00 00 00 FF 0F 67 [17:21:56]process_action close_receipt done [17:21:56]requested_data is exist [17:21:56]produce_requested_data [17:21:56]requested_item fm.sn is exist - process it [17:21:56]wFMCommunicate request_size=4 [17:21:56]MH_SAM_APDU [17:21:56]CAPDU: 80 11 00 00 [17:21:56]Write to MH i2c: E2 08 00 FF 54 80 11 00 00 00 00 00 00 CD [17:21:56]Write i2c OK [17:21:56]MH_I2C_Read... [17:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:56]Read from MH i2c: E2 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 17 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 17 00 FF 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [17:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:21:56]wFMCommunicate OK [17:21:56]requested_item fd.num is exist - process it [17:21:56]SAM_PROTO_GetFieldsCounters [17:21:56]wFMCommunicate request_size=4 [17:21:56]MH_SAM_APDU [17:21:56]CAPDU: 80 13 00 00 [17:21:56]Write to MH i2c: E2 08 00 00 55 80 13 00 00 00 00 00 00 D1 [17:21:56]Write i2c OK [17:21:56]MH_I2C_Read... [17:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:56]Read from MH i2c: E2 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 62 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 62 00 00 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [17:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:56]wFMCommunicate OK [17:21:56]SAM_PROTO_GetFieldsCounters done [17:21:56]requested_item shift.num is exist - process it [17:21:56]requested_item shift.opened is exist - process it [17:21:56]req_shift_opened [17:21:56]FM_GetShiftState [17:21:56]SAM_PROTO_GetShiftState [17:21:56]wFMCommunicate request_size=4 [17:21:56]MH_SAM_APDU [17:21:56]CAPDU: 80 13 01 00 [17:21:56]Write to MH i2c: E2 08 00 01 55 80 13 01 00 00 00 00 00 D3 [17:21:56]Write i2c OK [17:21:56]MH_I2C_Read... [17:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:56]Read from MH i2c: E2 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 0E 00 [17:21:56]MH_I2C_Read... [17:21:56]Read from MH i2c: E2 0E 00 01 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4F [17:21:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:21:56]wFMCommunicate OK [17:21:56]SAM_PROTO_GetShiftState done [17:21:56]FM_GetShiftState done [17:21:56]req_shift_opened done [17:21:56]requested_item shift.open_date is exist - process it [17:21:56]req_shift_open_date [17:21:56]req_shift_open_date done [17:21:56]produce_requested_data done [17:21:56]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30688,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:21:56]process_action_free close_receipt [17:21:56]json_value_free [17:21:56]json_value_free done [17:21:56]process_json_proto returns [17:21:56]Send response to host [17:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30688,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:21:56]free response buf [17:21:56]execute_script done [17:21:56]execute_script returns [17:21:56]free content buf [17:21:56]Sock 7.Close socket [17:21:56]Sock 7.Thread stoped [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:20]accept exits with 9 [17:24:20]New connection [17:24:20]New thread 3067489636 created [17:24:20]Thread 3067346276 joined [17:24:20]Waiting for new connection... [17:24:20] Sock 9.Parse request [17:24:20]Sock 9.Check first char [17:24:20]Sock 9.First char is OK [17:24:20]request: POST /json_proto HTTP/1.0 [17:24:20]Method: POST [17:24:20]URL: /json_proto [17:24:20]Method is POST - this is cgi request [17:24:20]url: /json_proto [17:24:20]query_string will be loaded in cgi processing [17:24:20]execute_cgi json_proto POST (null) [17:24:20]execute_cgi path=json_proto method=POST [17:24:20]POST find Content-Length [17:24:20]Host: 172.17.51.3:8080 [17:24:20]Content-Length: 679 [17:24:20]Content-Type: application/json [17:24:20] [17:24:20]POST finish read [17:24:20]Found Content-Length = 679 [17:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:20]execute_script... [17:24:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:20]POST & json_proto [17:24:20]process_json_proto [17:24:20]json parsed OK: [17:24:20]protocol is kg_v1.0 [17:24:20]action value=close_receipt [17:24:20]process_action close_receipt [17:24:20]cmd_close_receipt [17:24:20]MH_GetDate [17:24:20]Write to MH i2c: F0 00 00 02 55 46 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 09 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: F0 09 00 02 55 00 4A 8E 16 67 04 C1 95 66 64 [17:24:20]GetLastDocTimeStamp 1729531318 [17:24:20]current date 1729531466 [17:24:20]FM_GetShiftState [17:24:20]SAM_PROTO_GetShiftState [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 13 01 00 [17:24:20]Write to MH i2c: E2 08 00 03 55 80 13 01 00 00 00 00 00 D5 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:20]Read from MH i2c: E2 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0E 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: E2 0E 00 03 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 51 [17:24:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:24:20]wFMCommunicate OK [17:24:20]SAM_PROTO_GetShiftState done [17:24:20]FM_GetShiftState done [17:24:20]opened in 1729471058 [17:24:20]opened+sec_in_day 1729557458 [17:24:20]quantity*price = 100050 [17:24:20]sum+1 = 100052 [17:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 186 21.10.2024 17:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30689 ФПД: 201720311226731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30689&fm=201720311226731&tin=02508201610067®Number=0000000000186857&sum=100000 [17:24:21]StoreToDocumentArchive [17:24:21]shift 115 fd 30689 [17:24:21]save to /storage/0115/doc_00030689 [17:24:21]save last doc name /storage/0115/doc_00030689 to /storage/kkm_last_doc_name [17:24:21]save OK [17:24:21]Clear old archive folders... [17:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:21]tlvbuf is 01F8ACF0 [17:24:21]SAM_PROTO_ClearQueue [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 09 00 00 [17:24:21]Write to MH i2c: E2 08 00 10 55 80 09 00 00 00 00 00 00 D7 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 03 00 10 55 00 90 00 D9 [17:24:21]RAPDU: 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_ClearQueue done [17:24:21]KKMCreateOFDPacket [17:24:21]OFDProtocolAddRootSTLVToBuf [17:24:21]FM_MakeSignedData [17:24:21]FM_MakeSignedData [17:24:21]SAM_PROTO_SignData [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 0D 01 02 [17:24:21]Write to MH i2c: E2 08 00 11 55 80 0D 01 02 00 00 00 00 DF [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 11 55 00 90 00 DA [17:24:22]RAPDU: 90 00 [17:24:22]wFMCommunicate OK [17:24:22]wFMCommunicate request_size=255 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4A 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 77 00 00 35 04 06 00 B7 76 AB 7E [17:24:22]Write to MH i2c: E2 02 01 12 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4A 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 77 00 00 35 04 06 00 B7 76 AB 7E 00 00 96 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 12 55 00 90 00 DB [17:24:22]RAPDU: 90 00 [17:24:22]wFMCommunicate OK [17:24:22]wFMCommunicate request_size=7 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 0D 02 02 02 A1 6B [17:24:22]Write to MH i2c: E2 0A 00 13 55 80 0D 02 02 02 00 A1 6B 00 00 F2 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 03 00 13 55 00 90 00 DC [17:24:22]RAPDU: 90 00 [17:24:22]wFMCommunicate OK [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 0D 03 02 [17:24:22]Write to MH i2c: E2 08 00 14 55 80 0D 03 02 00 00 00 00 E4 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0B 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 0B 00 14 55 00 CB 20 C0 04 C8 68 EA B5 90 00 63 [17:24:22]RAPDU: CB 20 C0 04 C8 68 EA B5 90 00 [17:24:22]wFMCommunicate OK [17:24:22]SAM_PROTO_SignData done [17:24:22]FM_MakeSignedData done [17:24:22]CreateOFDProtocolMessage [17:24:22]wFMCommunicate request_size=4 [17:24:22]MH_SAM_APDU [17:24:22]CAPDU: 80 11 00 00 [17:24:22]Write to MH i2c: E2 08 00 15 55 80 11 00 00 00 00 00 00 E4 [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:22]Read from MH i2c: E2 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: E2 17 00 15 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [17:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:24:22]wFMCommunicate OK [17:24:22]CreateOFDProtocolMessage done [17:24:22]OFDSenderStorePacket 30689 [17:24:22]StoreOFDPacket docnum=30689 [17:24:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0D 08 04 01 26 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4A 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 77 00 00 35 04 06 00 B7 76 AB 7E A1 6B CB 20 C0 04 C8 68 EA B5 [17:24:22]CheckFolder [17:24:22]dirname=/storage/ofd_packets [17:24:22]CheckFolder done [17:24:22]ProducePacketName [17:24:22]name=ofd_packets/00030689 [17:24:22]NVStorageSaveData ofd_packets/00030689 [17:24:22]File name is /storage/ofd_packets/00030689 [17:24:22]Write 298 bytes [17:24:22]NVStorageSaveData done [17:24:22]OFDSenderStorePacket done [17:24:22]KKMCreateOFDPacket done [17:24:22]NVStorageSaveData kkm_last_timestamp [17:24:22]File name is /storage/kkm_last_timestamp [17:24:22]Write 4 bytes [17:24:22]NVStorageSaveData done [17:24:22]ExternCall_PrintAddStr [17:24:22]wPrintStart [17:24:22]Write to MH i2c: 01 00 00 16 55 6B [17:24:22]Write i2c OK [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 [17:24:22]MH_I2C_Read... [17:24:22]Read from MH i2c: 01 07 00 16 55 00 00 00 00 00 FF 0F 80 [17:24:22]RasterBufferAndPrint [17:24:22]line Счет N : (1)343101 [17:24:22]line ИНН: 02508201610067 [17:24:22]line Контрольно-Кассовый Чек [17:24:22]line ПРОДАЖА [17:24:22]line ТРК (МРК, ГНК) : 64 [17:24:22]line Товар: 2710194210 [17:24:22]line ДТ-К-2 [17:24:22]line 13.130 * 76.20 [17:24:22]line = 1000.51 [17:24:22]line НДС 12% НСП 1% [17:24:22]line > о реализуемом товаре [17:24:22]line ОКРУГЛЕНИЕ: -0.51 [17:24:22]line ИТОГО: 1000.00 [17:24:22]line Внесено: 1000.00 [17:24:22]line СДАЧА: 0.00 [17:24:22]line НСП 1% : 8.85 [17:24:22]line НДС 12% : 106.25 [17:24:22]line Наличными: 1000.00 [17:24:22]line Безнал.: 0.00 [17:24:22]line Место: АЗС № 78 "Партнер Нефть" [17:24:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:24:22]line СНО: Общий режим [17:24:22]line Чек 186 21.10.2024 17:24 [17:24:22]line Смена: 115 ФФД: 1.0 [17:24:22]line ЗНМ: 0300000137 [17:24:22]line РНМ: 0000000000186857 [17:24:22]line Версия ККМ: v1.0 [17:24:22]line ФМ: 0000000002094219 [17:24:22]line ФД: 30689 [17:24:22]line ФПД: 201720311226731 [17:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172426&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30689&fm=201720311226731&tin=02508201610067®Number=0000000000186857&sum=100000 [17:24:22]OFD Sender: Processing packet 30689 [packets to send 10, broken 9] [17:24:22]ProducePacketName [17:24:22]name=ofd_packets/00030689 [17:24:22]OFD Sender: To server: pG, [17:24:22]CommunicateWithHost lk.salyk.kg:30040 [17:24:22]ConnectInit lk.salyk.kg [17:24:22]written 0, free lines is 4095 [17:24:22]Connected sock=11 [17:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 0D 08 04 01 26 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 4A 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 77 00 00 35 04 06 00 B7 76 AB 7E A1 6B CB 20 C0 04 C8 68 EA B5 [17:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AF 00 47 00 07 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E1 77 00 00 F4 03 04 00 CA 38 16 67 B6 04 01 00 00 97 43 3F B9 4F C7 4D A6 [17:24:23]CommunicateWithHost err = 0 [17:24:23]CheckOFDResponse [17:24:23]1017 (14) - 77093643461234 [17:24:23]1041 (16) - 0000000002094219 [17:24:23]1040 (4) - 30689 [17:24:23]1012 (4) - 21.10.2024 11:19 [17:24:23]1206 (1) - 0 [17:24:23]OFD Sender: Remove packet 30689 [17:24:23]ProducePacketName [17:24:23]name=ofd_packets/00030689 [17:24:23]NVStorageDeleteData [17:24:23]Write to MH i2c: 01 00 00 41 55 96 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: 01 07 00 41 55 00 00 00 00 00 EF 0C 98 [17:24:23]RasterBufferAndPrint [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]line [17:24:23]written 0, free lines is 3317 [17:24:23]MH_Cut [17:24:23]Write to MH i2c: D1 01 00 48 55 01 6F [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 01 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: D1 01 00 48 55 00 6E [17:24:23]Write to MH i2c: 01 00 00 49 55 9E [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]OFD Sender: No OFD packet to send [17:24:23]*** Cut start [17:24:23]*** Partial cut [17:24:23]*** CUTSNS_PIN = 1 [17:24:23]*** CUTSNS_PIN = 0 [17:24:24]*** Brake cut motor [17:24:24]Read from MH i2c: 01 [17:24:24]MH_I2C_Read... [17:24:24]*** Stop cut motor [17:24:24]*** Cut end [17:24:24]Read from MH i2c: 01 07 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: 01 07 00 49 55 00 00 00 00 00 FF 0F B3 [17:24:24]process_action close_receipt done [17:24:24]requested_data is exist [17:24:24]produce_requested_data [17:24:24]requested_item fm.sn is exist - process it [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 11 00 00 [17:24:24]Write to MH i2c: E2 08 00 4A 55 80 11 00 00 00 00 00 00 19 [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 17 00 4A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [17:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:24:24]wFMCommunicate OK [17:24:24]requested_item fd.num is exist - process it [17:24:24]SAM_PROTO_GetFieldsCounters [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 13 00 00 [17:24:24]Write to MH i2c: E2 08 00 4B 55 80 13 00 00 00 00 00 00 1C [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 62 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 62 00 4B 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:24:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetFieldsCounters done [17:24:24]requested_item shift.num is exist - process it [17:24:24]requested_item shift.opened is exist - process it [17:24:24]req_shift_opened [17:24:24]FM_GetShiftState [17:24:24]SAM_PROTO_GetShiftState [17:24:24]wFMCommunicate request_size=4 [17:24:24]MH_SAM_APDU [17:24:24]CAPDU: 80 13 01 00 [17:24:24]Write to MH i2c: E2 08 00 4C 55 80 13 01 00 00 00 00 00 1E [17:24:24]Write i2c OK [17:24:24]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 4C 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9A [17:24:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetShiftState done [17:24:24]FM_GetShiftState done [17:24:24]req_shift_opened done [17:24:24]requested_item shift.open_date is exist - process it [17:24:24]req_shift_open_date [17:24:24]req_shift_open_date done [17:24:24]produce_requested_data done [17:24:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30689,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:24:24]process_action_free close_receipt [17:24:24]json_value_free [17:24:24]json_value_free done [17:24:24]process_json_proto returns [17:24:24]Send response to host [17:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30689,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:24:24]free response buf [17:24:24]execute_script done [17:24:24]execute_script returns [17:24:24]free content buf [17:24:24]Sock 9.Close socket [17:24:24]Sock 9.Thread stoped [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:24:58]accept exits with 7 [17:24:58]New connection [17:24:58]New thread 3067346276 created [17:24:58]Thread 3067489636 joined [17:24:58]Waiting for new connection... [17:24:58] Sock 7.Parse request [17:24:58]Sock 7.Check first char [17:24:58]Sock 7.First char is OK [17:24:58]request: POST /json_proto HTTP/1.0 [17:24:58]Method: POST [17:24:58]URL: /json_proto [17:24:58]Method is POST - this is cgi request [17:24:58]url: /json_proto [17:24:58]query_string will be loaded in cgi processing [17:24:58]execute_cgi json_proto POST (null) [17:24:58]execute_cgi path=json_proto method=POST [17:24:58]POST find Content-Length [17:24:58]Host: 172.17.51.3:8080 [17:24:58]Content-Length: 674 [17:24:58]Content-Type: application/json [17:24:58] [17:24:58]POST finish read [17:24:58]Found Content-Length = 674 [17:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:58]execute_script... [17:24:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:58]POST & json_proto [17:24:58]process_json_proto [17:24:58]json parsed OK: [17:24:58]protocol is kg_v1.0 [17:24:58]action value=close_receipt [17:24:58]process_action close_receipt [17:24:58]cmd_close_receipt [17:24:58]MH_GetDate [17:24:58]Write to MH i2c: F0 00 00 4D 55 91 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: F0 09 00 4D 55 00 70 8E 16 67 04 C1 95 66 D5 [17:24:58]GetLastDocTimeStamp 1729531466 [17:24:58]current date 1729531504 [17:24:58]FM_GetShiftState [17:24:58]SAM_PROTO_GetShiftState [17:24:58]wFMCommunicate request_size=4 [17:24:58]MH_SAM_APDU [17:24:58]CAPDU: 80 13 01 00 [17:24:58]Write to MH i2c: E2 08 00 4E 55 80 13 01 00 00 00 00 00 20 [17:24:58]Write i2c OK [17:24:58]MH_I2C_Read... [17:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:58]Read from MH i2c: E2 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 [17:24:58]MH_I2C_Read... [17:24:58]Read from MH i2c: E2 0E 00 4E 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9C [17:24:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:24:58]wFMCommunicate OK [17:24:58]SAM_PROTO_GetShiftState done [17:24:58]FM_GetShiftState done [17:24:58]opened in 1729471058 [17:24:58]opened+sec_in_day 1729557458 [17:24:58]quantity*price = 50063 [17:24:58]sum+1 = 50064 [17:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 187 21.10.2024 17:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30690 ФПД: 111622085721835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30690&fm=111622085721835&tin=02508201610067®Number=0000000000186857&sum=50000 [17:24:59]StoreToDocumentArchive [17:24:59]shift 115 fd 30690 [17:24:59]save to /storage/0115/doc_00030690 [17:24:59]save last doc name /storage/0115/doc_00030690 to /storage/kkm_last_doc_name [17:24:59]save OK [17:24:59]Clear old archive folders... [17:24:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:59]tlvbuf is 01E1C8A0 [17:24:59]SAM_PROTO_ClearQueue [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 09 00 00 [17:24:59]Write to MH i2c: E2 08 00 5B 55 80 09 00 00 00 00 00 00 22 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 09 00 00... 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 5B 55 00 90 00 24 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]SAM_PROTO_ClearQueue done [17:24:59]KKMCreateOFDPacket [17:24:59]OFDProtocolAddRootSTLVToBuf [17:24:59]FM_MakeSignedData [17:24:59]FM_MakeSignedData [17:24:59]SAM_PROTO_SignData [17:24:59]wFMCommunicate request_size=4 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 01 02 [17:24:59]Write to MH i2c: E2 08 00 5C 55 80 0D 01 02 00 00 00 00 2A [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:24:59]*** iso7816_exchange 80 0D 01 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 5C 55 00 90 00 25 [17:24:59]RAPDU: 90 00 [17:24:59]wFMCommunicate OK [17:24:59]wFMCommunicate request_size=255 [17:24:59]MH_SAM_APDU [17:24:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 70 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 77 00 00 35 04 06 00 65 85 0A C4 [17:24:59]Write to MH i2c: E2 02 01 5D 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 70 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 77 00 00 35 04 06 00 65 85 0A C4 00 00 F3 [17:24:59]Write i2c OK [17:24:59]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 5D 55 00 90 00 26 [17:25:00]RAPDU: 90 00 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=7 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 0D 02 02 02 BE EB [17:25:00]Write to MH i2c: E2 0A 00 5E 55 80 0D 02 02 02 00 BE EB 00 00 DA [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 03 00 5E 55 00 90 00 27 [17:25:00]RAPDU: 90 00 [17:25:00]wFMCommunicate OK [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 0D 03 02 [17:25:00]Write to MH i2c: E2 08 00 5F 55 80 0D 03 02 00 00 00 00 2F [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 0B 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 0B 00 5F 55 00 AB 1E 90 5C 85 82 43 16 90 00 45 [17:25:00]RAPDU: AB 1E 90 5C 85 82 43 16 90 00 [17:25:00]wFMCommunicate OK [17:25:00]SAM_PROTO_SignData done [17:25:00]FM_MakeSignedData done [17:25:00]CreateOFDProtocolMessage [17:25:00]wFMCommunicate request_size=4 [17:25:00]MH_SAM_APDU [17:25:00]CAPDU: 80 11 00 00 [17:25:00]Write to MH i2c: E2 08 00 60 55 80 11 00 00 00 00 00 00 2F [17:25:00]Write i2c OK [17:25:00]MH_I2C_Read... [17:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:00]Read from MH i2c: E2 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 17 00 [17:25:00]MH_I2C_Read... [17:25:00]Read from MH i2c: E2 17 00 60 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [17:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:25:00]wFMCommunicate OK [17:25:00]CreateOFDProtocolMessage done [17:25:00]OFDSenderStorePacket 30690 [17:25:00]StoreOFDPacket docnum=30690 [17:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 11 8B 04 01 E9 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 70 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 77 00 00 35 04 06 00 65 85 0A C4 BE EB AB 1E 90 5C 85 82 43 16 [17:25:00]CheckFolder [17:25:00]dirname=/storage/ofd_packets [17:25:00]CheckFolder done [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00030690 [17:25:00]NVStorageSaveData ofd_packets/00030690 [17:25:00]File name is /storage/ofd_packets/00030690 [17:25:00]Write 298 bytes [17:25:00]NVStorageSaveData done [17:25:00]OFDSenderStorePacket done [17:25:00]KKMCreateOFDPacket done [17:25:00]NVStorageSaveData kkm_last_timestamp [17:25:00]File name is /storage/kkm_last_timestamp [17:25:00]Write 4 bytes [17:25:00]NVStorageSaveData done [17:25:00]ExternCall_PrintAddStr [17:25:00]wPrintStart [17:25:00]Write to MH i2c: 01 00 00 61 55 B6 [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 61 55 00 00 00 00 00 FF 0F CB [17:25:00]RasterBufferAndPrint [17:25:00]line Счет N : (1)343100 [17:25:00]line ИНН: 02508201610067 [17:25:00]line Контрольно-Кассовый Чек [17:25:00]line ПРОДАЖА [17:25:00]line ТРК (МРК, ГНК) : 54 [17:25:00]line Товар: 2710194210 [17:25:00]line ДТ-К-2 [17:25:00]line 6.570 * 76.20 [17:25:00]line = 500.63 [17:25:00]line НДС 12% НСП 1% [17:25:00]line > о реализуемом товаре [17:25:00]line ОКРУГЛЕНИЕ: -0.63 [17:25:00]line ИТОГО: 500.00 [17:25:00]line Внесено: 500.00 [17:25:00]line СДАЧА: 0.00 [17:25:00]line НСП 1% : 4.43 [17:25:00]line НДС 12% : 53.16 [17:25:00]line Наличными: 500.00 [17:25:00]line Безнал.: 0.00 [17:25:00]line Место: АЗС № 78 "Партнер Нефть" [17:25:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:25:00]line СНО: Общий режим [17:25:00]line Чек 187 21.10.2024 17:25 [17:25:00]line Смена: 115 ФФД: 1.0 [17:25:00]line ЗНМ: 0300000137 [17:25:00]line РНМ: 0000000000186857 [17:25:00]line Версия ККМ: v1.0 [17:25:00]line ФМ: 0000000002094219 [17:25:00]line ФД: 30690 [17:25:00]line ФПД: 111622085721835 [17:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172504&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30690&fm=111622085721835&tin=02508201610067®Number=0000000000186857&sum=50000 [17:25:00]OFD Sender: Processing packet 30690 [packets to send 10, broken 9] [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00030690 [17:25:00]OFD Sender: To server: pG, [17:25:00]CommunicateWithHost lk.salyk.kg:30040 [17:25:00]ConnectInit lk.salyk.kg [17:25:00]written 0, free lines is 4095 [17:25:00]Connected sock=10 [17:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 11 8B 04 01 E9 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 70 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E2 77 00 00 35 04 06 00 65 85 0A C4 BE EB AB 1E 90 5C 85 82 43 16 [17:25:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DF AE 47 00 BA 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 32 30 39 34 32 31 39 10 04 04 00 E2 77 00 00 F4 03 04 00 F0 38 16 67 B6 04 01 00 00 B0 06 4F D7 5F 72 13 76 [17:25:00]CommunicateWithHost err = 0 [17:25:00]CheckOFDResponse [17:25:00]1017 (14) - 77093643461234 [17:25:00]1041 (16) - 0000000002094219 [17:25:00]1040 (4) - 30690 [17:25:00]1012 (4) - 21.10.2024 11:20 [17:25:00]1206 (1) - 0 [17:25:00]OFD Sender: Remove packet 30690 [17:25:00]ProducePacketName [17:25:00]name=ofd_packets/00030690 [17:25:00]NVStorageDeleteData [17:25:01]Write to MH i2c: 01 00 00 8C 55 E1 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: 01 [17:25:01]MH_I2C_Read... [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 8C 55 00 00 00 00 00 EC 0C E0 [17:25:01]RasterBufferAndPrint [17:25:01]line [17:25:01]line [17:25:01]line [17:25:01]line [17:25:01]line [17:25:01]written 0, free lines is 3314 [17:25:01]MH_Cut [17:25:01]Write to MH i2c: D1 01 00 93 55 01 BA [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 01 00 [17:25:01]MH_I2C_Read... [17:25:01]Read from MH i2c: D1 01 00 93 55 00 B9 [17:25:01]Write to MH i2c: 01 00 00 94 55 E9 [17:25:01]Write i2c OK [17:25:01]MH_I2C_Read... [17:25:01]OFD Sender: No OFD packet to send [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:02]Read from MH i2c: 01 [17:25:02]MH_I2C_Read... [17:25:02]*** Stop cut motor [17:25:02]*** Cut end [17:25:02]Read from MH i2c: 01 07 00 [17:25:02]MH_I2C_Read... [17:25:02]Read from MH i2c: 01 07 00 94 55 00 00 00 00 00 FF 0F FE [17:25:02]process_action close_receipt done [17:25:02]requested_data is exist [17:25:02]produce_requested_data [17:25:02]requested_item fm.sn is exist - process it [17:25:02]wFMCommunicate request_size=4 [17:25:02]MH_SAM_APDU [17:25:02]CAPDU: 80 11 00 00 [17:25:02]Write to MH i2c: E2 08 00 95 55 80 11 00 00 00 00 00 00 64 [17:25:02]Write i2c OK [17:25:02]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 95 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [17:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 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 96 55 80 13 00 00 00 00 00 00 67 [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 96 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [17:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 97 55 80 13 01 00 00 00 00 00 69 [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 97 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E5 [17:25:02]RAPDU: 09 00 01 52 A2 15 67 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":"0000000002094219","fd.num":30690,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [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":"0000000002094219","fd.num":30690,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [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 7.Close socket [17:25:02]Sock 7.Thread stoped [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:44]accept exits with 9 [17:26:44]New connection [17:26:44]New thread 3067489636 created [17:26:44]Thread 3067346276 joined [17:26:44]Waiting for new connection... [17:26:44] Sock 9.Parse request [17:26:44]Sock 9.Check first char [17:26:44]Sock 9.First char is OK [17:26:44]request: POST /json_proto HTTP/1.0 [17:26:44]Method: POST [17:26:44]URL: /json_proto [17:26:44]Method is POST - this is cgi request [17:26:44]url: /json_proto [17:26:44]query_string will be loaded in cgi processing [17:26:44]execute_cgi json_proto POST (null) [17:26:44]execute_cgi path=json_proto method=POST [17:26:44]POST find Content-Length [17:26:44]Host: 172.17.51.3:8080 [17:26:44]Content-Length: 688 [17:26:44]Content-Type: application/json [17:26:44] [17:26:44]POST finish read [17:26:44]Found Content-Length = 688 [17:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:44]execute_script... [17:26:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:44]POST & json_proto [17:26:44]process_json_proto [17:26:44]json parsed OK: [17:26:44]protocol is kg_v1.0 [17:26:44]action value=close_receipt [17:26:44]process_action close_receipt [17:26:44]cmd_close_receipt [17:26:44]MH_GetDate [17:26:44]Write to MH i2c: F0 00 00 98 55 DC [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 09 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: F0 09 00 98 55 00 DA 8E 16 67 04 C1 95 66 8A [17:26:44]GetLastDocTimeStamp 1729531504 [17:26:44]current date 1729531610 [17:26:44]FM_GetShiftState [17:26:44]SAM_PROTO_GetShiftState [17:26:44]wFMCommunicate request_size=4 [17:26:44]MH_SAM_APDU [17:26:44]CAPDU: 80 13 01 00 [17:26:44]Write to MH i2c: E2 08 00 99 55 80 13 01 00 00 00 00 00 6B [17:26:44]Write i2c OK [17:26:44]MH_I2C_Read... [17:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:44]Read from MH i2c: E2 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0E 00 [17:26:44]MH_I2C_Read... [17:26:44]Read from MH i2c: E2 0E 00 99 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E7 [17:26:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:26:44]wFMCommunicate OK [17:26:44]SAM_PROTO_GetShiftState done [17:26:44]FM_GetShiftState done [17:26:44]opened in 1729471058 [17:26:44]opened+sec_in_day 1729557458 [17:26:44]quantity*price = 200025 [17:26:44]sum+1 = 200026 [17:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 188 21.10.2024 17:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30691 ФПД: 52953200009198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30691&fm=52953200009198&tin=02508201610067®Number=0000000000186857&sum=200000 [17:26:45]StoreToDocumentArchive [17:26:45]shift 115 fd 30691 [17:26:45]save to /storage/0115/doc_00030691 [17:26:45]save last doc name /storage/0115/doc_00030691 to /storage/kkm_last_doc_name [17:26:45]save OK [17:26:45]Clear old archive folders... [17:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:26:45]tlvbuf is 01DDD9E0 [17:26:45]SAM_PROTO_ClearQueue [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 09 00 00 [17:26:45]Write to MH i2c: E2 08 00 A6 55 80 09 00 00 00 00 00 00 6D [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 A6 55 00 90 00 6F [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]SAM_PROTO_ClearQueue done [17:26:45]KKMCreateOFDPacket [17:26:45]OFDProtocolAddRootSTLVToBuf [17:26:45]FM_MakeSignedData [17:26:45]FM_MakeSignedData [17:26:45]SAM_PROTO_SignData [17:26:45]wFMCommunicate request_size=4 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 01 02 [17:26:45]Write to MH i2c: E2 08 00 A7 55 80 0D 01 02 00 00 00 00 75 [17:26:45]Write i2c OK [17:26:45]MH_I2C_Read... [17:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:45]Read from MH i2c: E2 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 [17:26:45]MH_I2C_Read... [17:26:45]Read from MH i2c: E2 03 00 A7 55 00 90 00 70 [17:26:45]RAPDU: 90 00 [17:26:45]wFMCommunicate OK [17:26:45]wFMCommunicate request_size=255 [17:26:45]MH_SAM_APDU [17:26:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DA 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 77 00 [17:26:45]Write to MH i2c: E2 02 01 A8 55 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DA 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 77 00 00 00 81 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 A8 55 00 90 00 71 [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=16 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 30 29 20 AD 1F EE [17:26:46]Write to MH i2c: E2 13 00 A9 55 80 0D 02 02 0B 00 00 35 04 06 00 30 29 20 AD 1F EE 00 00 00 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 03 00 A9 55 00 90 00 72 [17:26:46]RAPDU: 90 00 [17:26:46]wFMCommunicate OK [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 0D 03 02 [17:26:46]Write to MH i2c: E2 08 00 AA 55 80 0D 03 02 00 00 00 00 7A [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0B 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 0B 00 AA 55 00 BC B0 86 32 40 50 44 59 90 00 CC [17:26:46]RAPDU: BC B0 86 32 40 50 44 59 90 00 [17:26:46]wFMCommunicate OK [17:26:46]SAM_PROTO_SignData done [17:26:46]FM_MakeSignedData done [17:26:46]CreateOFDProtocolMessage [17:26:46]wFMCommunicate request_size=4 [17:26:46]MH_SAM_APDU [17:26:46]CAPDU: 80 11 00 00 [17:26:46]Write to MH i2c: E2 08 00 AB 55 80 11 00 00 00 00 00 00 7A [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:46]Read from MH i2c: E2 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: E2 17 00 AB 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [17:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:46]wFMCommunicate OK [17:26:46]CreateOFDProtocolMessage done [17:26:46]OFDSenderStorePacket 30691 [17:26:46]StoreOFDPacket docnum=30691 [17:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 E8 5B 0D 01 44 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DA 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 77 00 00 35 04 06 00 30 29 20 AD 1F EE BC B0 86 32 40 50 44 59 [17:26:46]CheckFolder [17:26:46]dirname=/storage/ofd_packets [17:26:46]CheckFolder done [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00030691 [17:26:46]NVStorageSaveData ofd_packets/00030691 [17:26:46]File name is /storage/ofd_packets/00030691 [17:26:46]Write 307 bytes [17:26:46]NVStorageSaveData done [17:26:46]OFDSenderStorePacket done [17:26:46]KKMCreateOFDPacket done [17:26:46]NVStorageSaveData kkm_last_timestamp [17:26:46]File name is /storage/kkm_last_timestamp [17:26:46]Write 4 bytes [17:26:46]NVStorageSaveData done [17:26:46]ExternCall_PrintAddStr [17:26:46]wPrintStart [17:26:46]Write to MH i2c: 01 00 00 AC 55 01 [17:26:46]Write i2c OK [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 [17:26:46]MH_I2C_Read... [17:26:46]Read from MH i2c: 01 07 00 AC 55 00 00 00 00 00 FF 0F 16 [17:26:46]RasterBufferAndPrint [17:26:46]line Счет N : (1)343102 [17:26:46]line ИНН: 02508201610067 [17:26:46]line Контрольно-Кассовый Чек [17:26:46]line ПРОДАЖА [17:26:46]line ТРК (МРК, ГНК) : 51 [17:26:46]line Товар: 2710194210 [17:26:46]line D-ENERGY Дт-К-2 [17:26:46]line 25.910 * 77.20 [17:26:46]line = 2000.25 [17:26:46]line НДС 12% НСП 1% [17:26:46]line > о реализуемом товаре [17:26:46]line ОКРУГЛЕНИЕ: -0.25 [17:26:46]line ИТОГО: 2000.00 [17:26:46]line Внесено: 2000.00 [17:26:46]line СДАЧА: 0.00 [17:26:46]line НСП 1% : 17.70 [17:26:46]line НДС 12% : 212.42 [17:26:46]line Наличными: 2000.00 [17:26:46]line Безнал.: 0.00 [17:26:46]line Место: АЗС № 78 "Партнер Нефть" [17:26:46]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:26:46]line СНО: Общий режим [17:26:46]line Чек 188 21.10.2024 17:26 [17:26:46]line Смена: 115 ФФД: 1.0 [17:26:46]line ЗНМ: 0300000137 [17:26:46]line РНМ: 0000000000186857 [17:26:46]line Версия ККМ: v1.0 [17:26:46]line ФМ: 0000000002094219 [17:26:46]line ФД: 30691 [17:26:46]line ФПД: 52953200009198 [17:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172650&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30691&fm=52953200009198&tin=02508201610067®Number=0000000000186857&sum=200000 [17:26:46]OFD Sender: Processing packet 30691 [packets to send 10, broken 9] [17:26:46]ProducePacketName [17:26:46]name=ofd_packets/00030691 [17:26:46]OFD Sender: To server: pG, [17:26:46]CommunicateWithHost lk.salyk.kg:30040 [17:26:46]ConnectInit lk.salyk.kg [17:26:46]written 0, free lines is 4095 [17:26:46]Connected sock=10 [17:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 E8 5B 0D 01 44 15 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DA 8E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 77 00 00 35 04 06 00 30 29 20 AD 1F EE BC B0 86 32 40 50 44 59 [17:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EE D1 47 00 F1 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E3 77 00 00 F4 03 04 00 5A 39 16 67 B6 04 01 00 00 3C 63 1A 7D 39 B7 44 62 [17:26:47]CommunicateWithHost err = 0 [17:26:47]CheckOFDResponse [17:26:47]1017 (14) - 77093643461234 [17:26:47]1041 (16) - 0000000002094219 [17:26:47]1040 (4) - 30691 [17:26:47]1012 (4) - 21.10.2024 11:22 [17:26:47]1206 (1) - 0 [17:26:47]OFD Sender: Remove packet 30691 [17:26:47]ProducePacketName [17:26:47]name=ofd_packets/00030691 [17:26:47]NVStorageDeleteData [17:26:47]Write to MH i2c: 01 00 00 D7 55 2C [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: 01 07 00 D7 55 00 00 00 00 00 F1 0C 30 [17:26:47]RasterBufferAndPrint [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]line [17:26:47]written 0, free lines is 3319 [17:26:47]MH_Cut [17:26:47]Write to MH i2c: D1 01 00 DE 55 01 05 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 01 00 [17:26:47]MH_I2C_Read... [17:26:47]Read from MH i2c: D1 01 00 DE 55 00 04 [17:26:47]Write to MH i2c: 01 00 00 DF 55 34 [17:26:47]Write i2c OK [17:26:47]MH_I2C_Read... [17:26:47]OFD Sender: No OFD packet to send [17:26:47]*** Cut start [17:26:47]*** Partial cut [17:26:47]*** CUTSNS_PIN = 1 [17:26:47]*** CUTSNS_PIN = 0 [17:26:48]*** Brake cut motor [17:26:48]Read from MH i2c: 01 *** Stop cut motor [17:26:48]*** Cut end [17:26:48] [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: 01 07 00 DF 55 00 00 00 00 00 FF 0F 49 [17:26:48]process_action close_receipt done [17:26:48]requested_data is exist [17:26:48]produce_requested_data [17:26:48]requested_item fm.sn is exist - process it [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 11 00 00 [17:26:48]Write to MH i2c: E2 08 00 E0 55 80 11 00 00 00 00 00 00 AF [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 17 00 E0 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [17:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:26:48]wFMCommunicate OK [17:26:48]requested_item fd.num is exist - process it [17:26:48]SAM_PROTO_GetFieldsCounters [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 13 00 00 [17:26:48]Write to MH i2c: E2 08 00 E1 55 80 13 00 00 00 00 00 00 B2 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 62 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 62 00 E1 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [17:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:48]wFMCommunicate OK [17:26:48]SAM_PROTO_GetFieldsCounters done [17:26:48]requested_item shift.num is exist - process it [17:26:48]requested_item shift.opened is exist - process it [17:26:48]req_shift_opened [17:26:48]FM_GetShiftState [17:26:48]SAM_PROTO_GetShiftState [17:26:48]wFMCommunicate request_size=4 [17:26:48]MH_SAM_APDU [17:26:48]CAPDU: 80 13 01 00 [17:26:48]Write to MH i2c: E2 08 00 E2 55 80 13 01 00 00 00 00 00 B4 [17:26:48]Write i2c OK [17:26:48]MH_I2C_Read... [17:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:48]Read from MH i2c: E2 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 0E 00 [17:26:48]MH_I2C_Read... [17:26:48]Read from MH i2c: E2 0E 00 E2 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 30 [17:26:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:26:48]wFMCommunicate OK [17:26:48]SAM_PROTO_GetShiftState done [17:26:48]FM_GetShiftState done [17:26:48]req_shift_opened done [17:26:48]requested_item shift.open_date is exist - process it [17:26:48]req_shift_open_date [17:26:48]req_shift_open_date done [17:26:48]produce_requested_data done [17:26:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30691,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:26:48]process_action_free close_receipt [17:26:48]json_value_free [17:26:48]json_value_free done [17:26:48]process_json_proto returns [17:26:48]Send response to host [17:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30691,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:26:48]free response buf [17:26:48]execute_script done [17:26:48]execute_script returns [17:26:48]free content buf [17:26:48]Sock 9.Close socket [17:26:48]Sock 9.Thread stoped [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]accept exits with 7 [17:27:57]New connection [17:27:57]New thread 3067346276 created [17:27:57]Thread 3067489636 joined [17:27:57]Waiting for new connection... [17:27:57] Sock 7.Parse request [17:27:57]Sock 7.Check first char [17:27:57]Sock 7.First char is OK [17:27:57]request: POST /json_proto HTTP/1.0 [17:27:57]Method: POST [17:27:57]URL: /json_proto [17:27:57]Method is POST - this is cgi request [17:27:57]url: /json_proto [17:27:57]query_string will be loaded in cgi processing [17:27:57]execute_cgi json_proto POST (null) [17:27:57]execute_cgi path=json_proto method=POST [17:27:57]POST find Content-Length [17:27:57]Host: 172.17.51.3:8080 [17:27:57]Content-Length: 677 [17:27:57]Content-Type: application/json [17:27:57] [17:27:57]POST finish read [17:27:57]Found Content-Length = 677 [17:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:57]execute_script... [17:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:57]POST & json_proto [17:27:57]process_json_proto [17:27:57]json parsed OK: [17:27:57]protocol is kg_v1.0 [17:27:57]action value=close_receipt [17:27:57]process_action close_receipt [17:27:57]cmd_close_receipt [17:27:57]MH_GetDate [17:27:57]Write to MH i2c: F0 00 00 E3 55 27 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: F0 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: F0 09 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: F0 09 00 E3 55 00 23 8F 16 67 04 C1 95 66 1F [17:27:57]GetLastDocTimeStamp 1729531610 [17:27:57]current date 1729531683 [17:27:57]FM_GetShiftState [17:27:57]SAM_PROTO_GetShiftState [17:27:57]wFMCommunicate request_size=4 [17:27:57]MH_SAM_APDU [17:27:57]CAPDU: 80 13 01 00 [17:27:57]Write to MH i2c: E2 08 00 E4 55 80 13 01 00 00 00 00 00 B6 [17:27:57]Write i2c OK [17:27:57]MH_I2C_Read... [17:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:57]Read from MH i2c: E2 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0E 00 [17:27:57]MH_I2C_Read... [17:27:57]Read from MH i2c: E2 0E 00 E4 55 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 32 [17:27:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:27:57]wFMCommunicate OK [17:27:57]SAM_PROTO_GetShiftState done [17:27:57]FM_GetShiftState done [17:27:57]opened in 1729471058 [17:27:57]opened+sec_in_day 1729557458 [17:27:57]quantity*price = 50041 [17:27:57]sum+1 = 50042 [17:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 189 21.10.2024 17:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30692 ФПД: 178008540548462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172803&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30692&fm=178008540548462&tin=02508201610067®Number=0000000000186857&sum=50000 [17:27:58]StoreToDocumentArchive [17:27:58]shift 115 fd 30692 [17:27:58]save to /storage/0115/doc_00030692 [17:27:58]save last doc name /storage/0115/doc_00030692 to /storage/kkm_last_doc_name [17:27:58]save OK [17:27:58]Clear old archive folders... [17:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:58]tlvbuf is B6FD8CA0 [17:27:58]SAM_PROTO_ClearQueue [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 09 00 00 [17:27:58]Write to MH i2c: E2 08 00 F1 55 80 09 00 00 00 00 00 00 B8 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 F1 55 00 90 00 BA [17:27:58]RAPDU: 90 00 [17:27:58]wFMCommunicate OK [17:27:58]SAM_PROTO_ClearQueue done [17:27:58]KKMCreateOFDPacket [17:27:58]OFDProtocolAddRootSTLVToBuf [17:27:58]FM_MakeSignedData [17:27:58]FM_MakeSignedData [17:27:58]SAM_PROTO_SignData [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 0D 01 02 [17:27:58]Write to MH i2c: E2 08 00 F2 55 80 0D 01 02 00 00 00 00 C0 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 F2 55 00 90 00 BB [17:27:58]RAPDU: 90 00 [17:27:58]wFMCommunicate OK [17:27:58]wFMCommunicate request_size=255 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 23 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 77 00 00 35 04 06 00 A1 [17:27:58]Write to MH i2c: E2 02 01 F3 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 23 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 77 00 00 35 04 06 00 A1 00 00 AC [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 F3 55 00 90 00 BC [17:27:58]RAPDU: 90 00 [17:27:58]wFMCommunicate OK [17:27:58]wFMCommunicate request_size=10 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 0D 02 02 05 E5 D7 D3 8D 6E [17:27:58]Write to MH i2c: E2 0D 00 F4 55 80 0D 02 02 05 00 E5 D7 D3 8D 6E 00 00 57 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 03 00 F4 55 00 90 00 BD [17:27:58]RAPDU: 90 00 [17:27:58]wFMCommunicate OK [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 0D 03 02 [17:27:58]Write to MH i2c: E2 08 00 F5 55 80 0D 03 02 00 00 00 00 C5 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0B 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0B 00 F5 55 00 DB 64 AC 91 46 96 A6 72 90 00 36 [17:27:58]RAPDU: DB 64 AC 91 46 96 A6 72 90 00 [17:27:58]wFMCommunicate OK [17:27:58]SAM_PROTO_SignData done [17:27:58]FM_MakeSignedData done [17:27:58]CreateOFDProtocolMessage [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 11 00 00 [17:27:58]Write to MH i2c: E2 08 00 F6 55 80 11 00 00 00 00 00 00 C5 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 17 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 17 00 F6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [17:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:27:58]wFMCommunicate OK [17:27:58]CreateOFDProtocolMessage done [17:27:58]OFDSenderStorePacket 30692 [17:27:58]StoreOFDPacket docnum=30692 [17:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F4 97 07 01 B5 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 23 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 77 00 00 35 04 06 00 A1 E5 D7 D3 8D 6E DB 64 AC 91 46 96 A6 72 [17:27:58]CheckFolder [17:27:58]dirname=/storage/ofd_packets [17:27:58]CheckFolder done [17:27:58]ProducePacketName [17:27:58]name=ofd_packets/00030692 [17:27:58]NVStorageSaveData ofd_packets/00030692 [17:27:58]File name is /storage/ofd_packets/00030692 [17:27:58]Write 301 bytes [17:27:58]NVStorageSaveData done [17:27:58]OFDSenderStorePacket done [17:27:58]KKMCreateOFDPacket done [17:27:58]NVStorageSaveData kkm_last_timestamp [17:27:58]File name is /storage/kkm_last_timestamp [17:27:58]Write 4 bytes [17:27:58]NVStorageSaveData done [17:27:58]ExternCall_PrintAddStr [17:27:58]wPrintStart [17:27:58]Write to MH i2c: 01 00 00 F7 55 4C [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: 01 07 00 F7 55 00 00 00 00 00 FF 0F 61 [17:27:58]RasterBufferAndPrint [17:27:58]line Счет N : (1)343103 [17:27:58]line ИНН: 02508201610067 [17:27:58]line Контрольно-Кассовый Чек [17:27:58]line ПРОДАЖА [17:27:58]line ТРК (МРК, ГНК) : 63 [17:27:58]line Товар: 2710124130 [17:27:58]line Аи-92-К-2 [17:27:58]line 7.480 * 66.90 [17:27:58]line = 500.41 [17:27:58]line НДС 12% НСП 1% [17:27:58]line > о реализуемом товаре [17:27:58]line ОКРУГЛЕНИЕ: -0.41 [17:27:58]line ИТОГО: 500.00 [17:27:58]line Внесено: 500.00 [17:27:58]line СДАЧА: 0.00 [17:27:58]line НСП 1% : 4.43 [17:27:58]line НДС 12% : 53.14 [17:27:58]line Наличными: 500.00 [17:27:58]line Безнал.: 0.00 [17:27:58]line Место: АЗС № 78 "Партнер Нефть" [17:27:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:27:58]line СНО: Общий режим [17:27:58]line Чек 189 21.10.2024 17:28 [17:27:58]line Смена: 115 ФФД: 1.0 [17:27:58]line ЗНМ: 0300000137 [17:27:58]line РНМ: 0000000000186857 [17:27:58]line Версия ККМ: v1.0 [17:27:58]line ФМ: 0000000002094219 [17:27:58]line ФД: 30692 [17:27:58]line ФПД: 178008540548462 [17:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172803&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30692&fm=178008540548462&tin=02508201610067®Number=0000000000186857&sum=50000 [17:27:59]OFD Sender: Processing packet 30692 [packets to send 10, broken 9] [17:27:59]ProducePacketName [17:27:59]name=ofd_packets/00030692 [17:27:59]OFD Sender: To server: pG, [17:27:59]CommunicateWithHost lk.salyk.kg:30040 [17:27:59]ConnectInit lk.salyk.kg [17:27:59]written 0, free lines is 4095 [17:27:59]Connected sock=10 [17:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F4 97 07 01 B5 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 23 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E4 77 00 00 35 04 06 00 A1 E5 D7 D3 8D 6E DB 64 AC 91 46 96 A6 72 [17:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 B8 6A 47 00 D3 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 32 30 39 34 32 31 39 10 04 04 00 E4 77 00 00 F4 03 04 00 A3 39 16 67 B6 04 01 00 00 B4 C7 80 95 A6 37 31 04 [17:27:59]CommunicateWithHost err = 0 [17:27:59]CheckOFDResponse [17:27:59]1017 (14) - 77093643461234 [17:27:59]1041 (16) - 0000000002094219 [17:27:59]1040 (4) - 30692 [17:27:59]1012 (4) - 21.10.2024 11:23 [17:27:59]1206 (1) - 0 [17:27:59]OFD Sender: Remove packet 30692 [17:27:59]ProducePacketName [17:27:59]name=ofd_packets/00030692 [17:27:59]NVStorageDeleteData [17:27:59]Write to MH i2c: 01 00 00 22 56 78 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 22 56 00 00 00 00 00 F0 0C 7B [17:27:59]RasterBufferAndPrint [17:27:59]line [17:27:59]line [17:27:59]line [17:27:59]line [17:27:59]line [17:27:59]written 0, free lines is 3319 [17:27:59]MH_Cut [17:27:59]Write to MH i2c: D1 01 00 29 56 01 51 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: D1 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: D1 01 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: D1 01 00 29 56 00 50 [17:27:59]Write to MH i2c: 01 00 00 2A 56 80 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]OFD Sender: No OFD packet to send [17:28:00]*** Cut start [17:28:00]*** Partial cut [17:28:00]*** CUTSNS_PIN = 1 [17:28:00]*** CUTSNS_PIN = 0 [17:28:00]*** Brake cut motor [17:28:00]Read from MH i2c: 01 [17:28:00]MH_I2C_Read... [17:28:00]*** Stop cut motor [17:28:00]*** Cut end [17:28:00]Read from MH i2c: 01 07 00 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: 01 07 00 2A 56 00 00 00 00 00 FF 0F 95 [17:28:00]process_action close_receipt done [17:28:00]requested_data is exist [17:28:00]produce_requested_data [17:28:00]requested_item fm.sn is exist - process it [17:28:00]wFMCommunicate request_size=4 [17:28:00]MH_SAM_APDU [17:28:00]CAPDU: 80 11 00 00 [17:28:00]Write to MH i2c: E2 08 00 2B 56 80 11 00 00 00 00 00 00 FB [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:00]Read from MH i2c: E2 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: E2 17 00 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: E2 17 00 2B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [17:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:28:00]wFMCommunicate OK [17:28:00]requested_item fd.num is exist - process it [17:28:00]SAM_PROTO_GetFieldsCounters [17:28:00]wFMCommunicate request_size=4 [17:28:00]MH_SAM_APDU [17:28:00]CAPDU: 80 13 00 00 [17:28:00]Write to MH i2c: E2 08 00 2C 56 80 13 00 00 00 00 00 00 FE [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:00]Read from MH i2c: E2 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: E2 62 00 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: E2 62 00 2C 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [17:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:00]wFMCommunicate OK [17:28:00]SAM_PROTO_GetFieldsCounters done [17:28:00]requested_item shift.num is exist - process it [17:28:00]requested_item shift.opened is exist - process it [17:28:00]req_shift_opened [17:28:00]FM_GetShiftState [17:28:00]SAM_PROTO_GetShiftState [17:28:00]wFMCommunicate request_size=4 [17:28:00]MH_SAM_APDU [17:28:00]CAPDU: 80 13 01 00 [17:28:00]Write to MH i2c: E2 08 00 2D 56 80 13 01 00 00 00 00 00 00 [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:01]Read from MH i2c: E2 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 [17:28:01]MH_I2C_Read... [17:28:01]Read from MH i2c: E2 0E 00 2D 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7C [17:28:01]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:28:01]wFMCommunicate OK [17:28:01]SAM_PROTO_GetShiftState done [17:28:01]FM_GetShiftState done [17:28:01]req_shift_opened done [17:28:01]requested_item shift.open_date is exist - process it [17:28:01]req_shift_open_date [17:28:01]req_shift_open_date done [17:28:01]produce_requested_data done [17:28:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30692,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:28:01]process_action_free close_receipt [17:28:01]json_value_free [17:28:01]json_value_free done [17:28:01]process_json_proto returns [17:28:01]Send response to host [17:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30692,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:28:01]free response buf [17:28:01]execute_script done [17:28:01]execute_script returns [17:28:01]free content buf [17:28:01]Sock 7.Close socket [17:28:01]Sock 7.Thread stoped [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:21]accept exits with 9 [17:28:21]New connection [17:28:21]New thread 3067489636 created [17:28:21]Thread 3067346276 joined [17:28:21]Waiting for new connection... [17:28:21] Sock 9.Parse request [17:28:21]Sock 9.Check first char [17:28:21]Sock 9.First char is OK [17:28:21]request: POST /json_proto HTTP/1.0 [17:28:21]Method: POST [17:28:21]URL: /json_proto [17:28:21]Method is POST - this is cgi request [17:28:21]url: /json_proto [17:28:21]query_string will be loaded in cgi processing [17:28:21]execute_cgi json_proto POST (null) [17:28:21]execute_cgi path=json_proto method=POST [17:28:21]POST find Content-Length [17:28:21]Host: 172.17.51.3:8080 [17:28:21]Content-Length: 677 [17:28:21]Content-Type: application/json [17:28:21] [17:28:21]POST finish read [17:28:21]Found Content-Length = 677 [17:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:21]execute_script... [17:28:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:21]POST & json_proto [17:28:21]process_json_proto [17:28:21]json parsed OK: [17:28:21]protocol is kg_v1.0 [17:28:21]action value=close_receipt [17:28:21]process_action close_receipt [17:28:21]cmd_close_receipt [17:28:21]MH_GetDate [17:28:21]Write to MH i2c: F0 00 00 2E 56 73 [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 09 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: F0 09 00 2E 56 00 3A 8F 16 67 04 C1 95 66 82 [17:28:21]GetLastDocTimeStamp 1729531683 [17:28:21]current date 1729531706 [17:28:21]FM_GetShiftState [17:28:21]SAM_PROTO_GetShiftState [17:28:21]wFMCommunicate request_size=4 [17:28:21]MH_SAM_APDU [17:28:21]CAPDU: 80 13 01 00 [17:28:21]Write to MH i2c: E2 08 00 2F 56 80 13 01 00 00 00 00 00 02 [17:28:21]Write i2c OK [17:28:21]MH_I2C_Read... [17:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:21]Read from MH i2c: E2 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: E2 0E 00 [17:28:21]MH_I2C_Read... [17:28:21]Read from MH i2c: E2 0E 00 2F 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7E [17:28:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:28:21]wFMCommunicate OK [17:28:21]SAM_PROTO_GetShiftState done [17:28:21]FM_GetShiftState done [17:28:21]opened in 1729471058 [17:28:21]opened+sec_in_day 1729557458 [17:28:21]quantity*price = 30038 [17:28:21]sum+1 = 30039 [17:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 190 21.10.2024 17:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30693 ФПД: 109348916635975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30693&fm=109348916635975&tin=02508201610067®Number=0000000000186857&sum=30000 [17:28:22]StoreToDocumentArchive [17:28:22]shift 115 fd 30693 [17:28:22]save to /storage/0115/doc_00030693 [17:28:22]save last doc name /storage/0115/doc_00030693 to /storage/kkm_last_doc_name [17:28:22]save OK [17:28:22]Clear old archive folders... [17:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:22]tlvbuf is 01F8ACF0 [17:28:22]SAM_PROTO_ClearQueue [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 09 00 00 [17:28:22]Write to MH i2c: E2 08 00 3C 56 80 09 00 00 00 00 00 00 04 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 3C 56 00 90 00 06 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]SAM_PROTO_ClearQueue done [17:28:22]KKMCreateOFDPacket [17:28:22]OFDProtocolAddRootSTLVToBuf [17:28:22]FM_MakeSignedData [17:28:22]FM_MakeSignedData [17:28:22]SAM_PROTO_SignData [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 01 02 [17:28:22]Write to MH i2c: E2 08 00 3D 56 80 0D 01 02 00 00 00 00 0C [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 3D 56 00 90 00 07 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=255 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 3B 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 77 00 00 35 04 06 00 63 [17:28:22]Write to MH i2c: E2 02 01 3E 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 3B 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 77 00 00 35 04 06 00 63 00 00 C8 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 3E 56 00 90 00 08 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=10 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 02 02 05 73 C7 55 29 47 [17:28:22]Write to MH i2c: E2 0D 00 3F 56 80 0D 02 02 05 00 73 C7 55 29 47 00 00 18 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 03 00 3F 56 00 90 00 09 [17:28:22]RAPDU: 90 00 [17:28:22]wFMCommunicate OK [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 0D 03 02 [17:28:22]Write to MH i2c: E2 08 00 40 56 80 0D 03 02 00 00 00 00 11 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0B 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 0B 00 40 56 00 F8 F2 88 AF 81 4E EF C5 90 00 B6 [17:28:22]RAPDU: F8 F2 88 AF 81 4E EF C5 90 00 [17:28:22]wFMCommunicate OK [17:28:22]SAM_PROTO_SignData done [17:28:22]FM_MakeSignedData done [17:28:22]CreateOFDProtocolMessage [17:28:22]wFMCommunicate request_size=4 [17:28:22]MH_SAM_APDU [17:28:22]CAPDU: 80 11 00 00 [17:28:22]Write to MH i2c: E2 08 00 41 56 80 11 00 00 00 00 00 00 11 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:22]Read from MH i2c: E2 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 17 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: E2 17 00 41 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [17:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:28:22]wFMCommunicate OK [17:28:22]CreateOFDProtocolMessage done [17:28:22]OFDSenderStorePacket 30693 [17:28:22]StoreOFDPacket docnum=30693 [17:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B0 C4 07 01 F2 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 3B 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 77 00 00 35 04 06 00 63 73 C7 55 29 47 F8 F2 88 AF 81 4E EF C5 [17:28:22]CheckFolder [17:28:22]dirname=/storage/ofd_packets [17:28:22]CheckFolder done [17:28:22]ProducePacketName [17:28:22]name=ofd_packets/00030693 [17:28:22]NVStorageSaveData ofd_packets/00030693 [17:28:22]File name is /storage/ofd_packets/00030693 [17:28:22]Write 301 bytes [17:28:22]NVStorageSaveData done [17:28:22]OFDSenderStorePacket done [17:28:22]KKMCreateOFDPacket done [17:28:22]NVStorageSaveData kkm_last_timestamp [17:28:22]File name is /storage/kkm_last_timestamp [17:28:22]Write 4 bytes [17:28:22]NVStorageSaveData done [17:28:22]ExternCall_PrintAddStr [17:28:22]wPrintStart [17:28:22]Write to MH i2c: 01 00 00 42 56 98 [17:28:22]Write i2c OK [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: 01 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: 01 07 00 [17:28:22]MH_I2C_Read... [17:28:22]Read from MH i2c: 01 07 00 42 56 00 00 00 00 00 FF 0F AD [17:28:22]RasterBufferAndPrint [17:28:22]line Счет N : (1)343104 [17:28:22]line ИНН: 02508201610067 [17:28:22]line Контрольно-Кассовый Чек [17:28:22]line ПРОДАЖА [17:28:22]line ТРК (МРК, ГНК) : 53 [17:28:22]line Товар: 2710124130 [17:28:22]line Аи-92-К-2 [17:28:22]line 4.490 * 66.90 [17:28:22]line = 300.38 [17:28:22]line НДС 12% НСП 1% [17:28:22]line > о реализуемом товаре [17:28:22]line ОКРУГЛЕНИЕ: -0.38 [17:28:22]line ИТОГО: 300.00 [17:28:22]line Внесено: 300.00 [17:28:22]line СДАЧА: 0.00 [17:28:22]line НСП 1% : 2.66 [17:28:22]line НДС 12% : 31.90 [17:28:22]line Наличными: 300.00 [17:28:22]line Безнал.: 0.00 [17:28:22]line Место: АЗС № 78 "Партнер Нефть" [17:28:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:28:22]line СНО: Общий режим [17:28:22]line Чек 190 21.10.2024 17:28 [17:28:22]line Смена: 115 ФФД: 1.0 [17:28:22]line ЗНМ: 0300000137 [17:28:22]line РНМ: 0000000000186857 [17:28:22]line Версия ККМ: v1.0 [17:28:22]line ФМ: 0000000002094219 [17:28:22]line ФД: 30693 [17:28:22]line ФПД: 109348916635975 [17:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172827&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30693&fm=109348916635975&tin=02508201610067®Number=0000000000186857&sum=30000 [17:28:23]written 0, free lines is 4095 [17:28:23]OFD Sender: Processing packet 30693 [packets to send 10, broken 9] [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00030693 [17:28:23]OFD Sender: To server: pG, [17:28:23]CommunicateWithHost lk.salyk.kg:30040 [17:28:23]ConnectInit lk.salyk.kg [17:28:23]Connected sock=10 [17:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B0 C4 07 01 F2 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 3B 8F 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 77 00 00 35 04 06 00 63 73 C7 55 29 47 F8 F2 88 AF 81 4E EF C5 [17:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A1 91 47 00 40 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E5 77 00 00 F4 03 04 00 BB 39 16 67 B6 04 01 00 00 1C 3D BA 0D 95 2C 8E A0 [17:28:23]CommunicateWithHost err = 0 [17:28:23]CheckOFDResponse [17:28:23]1017 (14) - 77093643461234 [17:28:23]1041 (16) - 0000000002094219 [17:28:23]1040 (4) - 30693 [17:28:23]1012 (4) - 21.10.2024 11:23 [17:28:23]1206 (1) - 0 [17:28:23]OFD Sender: Remove packet 30693 [17:28:23]ProducePacketName [17:28:23]name=ofd_packets/00030693 [17:28:23]NVStorageDeleteData [17:28:23]Write to MH i2c: 01 00 00 6D 56 C3 [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: 01 07 00 6D 56 00 00 00 00 00 FC 0C D2 [17:28:23]RasterBufferAndPrint [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]line [17:28:23]written 0, free lines is 3330 [17:28:23]MH_Cut [17:28:23]Write to MH i2c: D1 01 00 74 56 01 9C [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: D1 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: D1 01 00 [17:28:23]MH_I2C_Read... [17:28:23]Read from MH i2c: D1 01 00 74 56 00 9B [17:28:23]Write to MH i2c: 01 00 00 75 56 CB [17:28:23]Write i2c OK [17:28:23]MH_I2C_Read... [17:28:23]OFD Sender: No OFD packet to send [17:28:24]*** Cut start [17:28:24]*** Partial cut [17:28:24]*** CUTSNS_PIN = 1 [17:28:24]*** CUTSNS_PIN = 0 [17:28:24]*** Brake cut motor [17:28:24]Read from MH i2c: 01 [17:28:24]MH_I2C_Read... [17:28:24]*** Stop cut motor [17:28:24]*** Cut end [17:28:24]Read from MH i2c: 01 07 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: 01 07 00 75 56 00 00 00 00 00 FF 0F E0 [17:28:24]process_action close_receipt done [17:28:24]requested_data is exist [17:28:24]produce_requested_data [17:28:24]requested_item fm.sn is exist - process it [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 11 00 00 [17:28:24]Write to MH i2c: E2 08 00 76 56 80 11 00 00 00 00 00 00 46 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:24]Read from MH i2c: E2 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 17 00 [17:28:24]MH_I2C_Read... [17:28:24]Read from MH i2c: E2 17 00 76 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [17:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:28:24]wFMCommunicate OK [17:28:24]requested_item fd.num is exist - process it [17:28:24]SAM_PROTO_GetFieldsCounters [17:28:24]wFMCommunicate request_size=4 [17:28:24]MH_SAM_APDU [17:28:24]CAPDU: 80 13 00 00 [17:28:24]Write to MH i2c: E2 08 00 77 56 80 13 00 00 00 00 00 00 49 [17:28:24]Write i2c OK [17:28:24]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 62 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 62 00 77 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:28:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_GetFieldsCounters done [17:28:25]requested_item shift.num is exist - process it [17:28:25]requested_item shift.opened is exist - process it [17:28:25]req_shift_opened [17:28:25]FM_GetShiftState [17:28:25]SAM_PROTO_GetShiftState [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 13 01 00 [17:28:25]Write to MH i2c: E2 08 00 78 56 80 13 01 00 00 00 00 00 4B [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0E 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0E 00 78 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C7 [17:28:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_GetShiftState done [17:28:25]FM_GetShiftState done [17:28:25]req_shift_opened done [17:28:25]requested_item shift.open_date is exist - process it [17:28:25]req_shift_open_date [17:28:25]req_shift_open_date done [17:28:25]produce_requested_data done [17:28:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30693,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:28:25]process_action_free close_receipt [17:28:25]json_value_free [17:28:25]json_value_free done [17:28:25]process_json_proto returns [17:28:25]Send response to host [17:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30693,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:28:25]free response buf [17:28:25]execute_script done [17:28:25]execute_script returns [17:28:25]free content buf [17:28:25]Sock 9.Close socket [17:28:25]Sock 9.Thread stoped [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:48]accept exits with 7 [17:33:48]New connection [17:33:48]New thread 3067346276 created [17:33:48]Thread 3067489636 joined [17:33:48]Waiting for new connection... [17:33:48] Sock 7.Parse request [17:33:48]Sock 7.Check first char [17:33:48]Sock 7.First char is OK [17:33:48]request: POST /json_proto HTTP/1.0 [17:33:48]Method: POST [17:33:48]URL: /json_proto [17:33:48]Method is POST - this is cgi request [17:33:48]url: /json_proto [17:33:48]query_string will be loaded in cgi processing [17:33:48]execute_cgi json_proto POST (null) [17:33:48]execute_cgi path=json_proto method=POST [17:33:48]POST find Content-Length [17:33:48]Host: 172.17.51.3:8080 [17:33:48]Content-Length: 840 [17:33:48]Content-Type: application/json [17:33:48] [17:33:48]POST finish read [17:33:48]Found Content-Length = 840 [17:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:48]execute_script... [17:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:48]POST & json_proto [17:33:48]process_json_proto [17:33:48]json parsed OK: [17:33:48]protocol is kg_v1.0 [17:33:48]action value=close_receipt [17:33:48]process_action close_receipt [17:33:48]cmd_close_receipt [17:33:48]MH_GetDate [17:33:48]Write to MH i2c: F0 00 00 79 56 BE [17:33:48]Write i2c OK [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: F0 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: F0 09 00 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: F0 09 00 79 56 00 82 90 16 67 04 C1 95 66 16 [17:33:48]GetLastDocTimeStamp 1729531707 [17:33:48]current date 1729532034 [17:33:48]FM_GetShiftState [17:33:48]SAM_PROTO_GetShiftState [17:33:48]wFMCommunicate request_size=4 [17:33:48]MH_SAM_APDU [17:33:48]CAPDU: 80 13 01 00 [17:33:48]Write to MH i2c: E2 08 00 7A 56 80 13 01 00 00 00 00 00 4D [17:33:48]Write i2c OK [17:33:48]MH_I2C_Read... [17:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:48]Read from MH i2c: E2 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 0E 00 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 0E 00 7A 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C9 [17:33:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:33:48]wFMCommunicate OK [17:33:48]SAM_PROTO_GetShiftState done [17:33:48]FM_GetShiftState done [17:33:48]opened in 1729471058 [17:33:48]opened+sec_in_day 1729557458 [17:33:48]quantity*price = 20003 [17:33:48]sum+1 = 20004 [17:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 191 21.10.2024 17:33 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30694 ФПД: 54557451703782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173354&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30694&fm=54557451703782&tin=02508201610067®Number=0000000000186857&sum=20003 [17:33:49]StoreToDocumentArchive [17:33:49]shift 115 fd 30694 [17:33:49]save to /storage/0115/doc_00030694 [17:33:49]save last doc name /storage/0115/doc_00030694 to /storage/kkm_last_doc_name [17:33:49]save OK [17:33:49]Clear old archive folders... [17:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:49]tlvbuf is 01E7B3C0 [17:33:49]SAM_PROTO_ClearQueue [17:33:49]wFMCommunicate request_size=4 [17:33:49]MH_SAM_APDU [17:33:49]CAPDU: 80 09 00 00 [17:33:49]Write to MH i2c: E2 08 00 87 56 80 09 00 00 00 00 00 00 4F [17:33:49]Write i2c OK [17:33:49]MH_I2C_Read... [17:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:49]Read from MH i2c: E2 [17:33:49]MH_I2C_Read... [17:33:49]Read from MH i2c: E2 03 00 [17:33:49]MH_I2C_Read... [17:33:49]Read from MH i2c: E2 03 00 87 56 00 90 00 51 [17:33:49]RAPDU: 90 00 [17:33:49]wFMCommunicate OK [17:33:49]SAM_PROTO_ClearQueue done [17:33:49]KKMCreateOFDPacket [17:33:49]OFDProtocolAddRootSTLVToBuf [17:33:49]FM_MakeSignedData [17:33:49]FM_MakeSignedData [17:33:49]SAM_PROTO_SignData [17:33:49]wFMCommunicate request_size=4 [17:33:49]MH_SAM_APDU [17:33:49]CAPDU: 80 0D 01 02 [17:33:49]Write to MH i2c: E2 08 00 88 56 80 0D 01 02 00 00 00 00 57 [17:33:49]Write i2c OK [17:33:49]MH_I2C_Read... [17:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:49]Read from MH i2c: E2 [17:33:49]MH_I2C_Read... [17:33:49]Read from MH i2c: E2 03 00 [17:33:49]MH_I2C_Read... [17:33:49]Read from MH i2c: E2 03 00 88 56 00 90 00 52 [17:33:49]RAPDU: 90 00 [17:33:49]wFMCommunicate OK [17:33:49]wFMCommunicate request_size=255 [17:33:49]MH_SAM_APDU [17:33:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 90 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 77 00 00 35 04 06 00 31 [17:33:49]Write to MH i2c: E2 02 01 89 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 90 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 77 00 00 35 04 06 00 31 00 00 FF [17:33:49]Write i2c OK [17:33:49]MH_I2C_Read... [17:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:50]Read from MH i2c: E2 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 03 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 03 00 89 56 00 90 00 53 [17:33:50]RAPDU: 90 00 [17:33:50]wFMCommunicate OK [17:33:50]wFMCommunicate request_size=10 [17:33:50]MH_SAM_APDU [17:33:50]CAPDU: 80 0D 02 02 05 9E A5 87 55 E6 [17:33:50]Write to MH i2c: E2 0D 00 8A 56 80 0D 02 02 05 00 9E A5 87 55 E6 00 00 69 [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:50]Read from MH i2c: E2 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 03 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 03 00 8A 56 00 90 00 54 [17:33:50]RAPDU: 90 00 [17:33:50]wFMCommunicate OK [17:33:50]wFMCommunicate request_size=4 [17:33:50]MH_SAM_APDU [17:33:50]CAPDU: 80 0D 03 02 [17:33:50]Write to MH i2c: E2 08 00 8B 56 80 0D 03 02 00 00 00 00 5C [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:50]Read from MH i2c: E2 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 0B 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 0B 00 8B 56 00 F3 FF 0C 78 5B 02 FB 5B 90 00 86 [17:33:50]RAPDU: F3 FF 0C 78 5B 02 FB 5B 90 00 [17:33:50]wFMCommunicate OK [17:33:50]SAM_PROTO_SignData done [17:33:50]FM_MakeSignedData done [17:33:50]CreateOFDProtocolMessage [17:33:50]wFMCommunicate request_size=4 [17:33:50]MH_SAM_APDU [17:33:50]CAPDU: 80 11 00 00 [17:33:50]Write to MH i2c: E2 08 00 8C 56 80 11 00 00 00 00 00 00 5C [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:50]Read from MH i2c: E2 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 17 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: E2 17 00 8C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AA [17:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:33:50]wFMCommunicate OK [17:33:50]CreateOFDProtocolMessage done [17:33:50]OFDSenderStorePacket 30694 [17:33:50]StoreOFDPacket docnum=30694 [17:33:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 FD 07 01 C4 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 90 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 77 00 00 35 04 06 00 31 9E A5 87 55 E6 F3 FF 0C 78 5B 02 FB 5B [17:33:50]CheckFolder [17:33:50]dirname=/storage/ofd_packets [17:33:50]CheckFolder done [17:33:50]ProducePacketName [17:33:50]name=ofd_packets/00030694 [17:33:50]NVStorageSaveData ofd_packets/00030694 [17:33:50]File name is /storage/ofd_packets/00030694 [17:33:50]Write 301 bytes [17:33:50]NVStorageSaveData done [17:33:50]OFDSenderStorePacket done [17:33:50]KKMCreateOFDPacket done [17:33:50]NVStorageSaveData kkm_last_timestamp [17:33:50]File name is /storage/kkm_last_timestamp [17:33:50]Write 4 bytes [17:33:50]NVStorageSaveData done [17:33:50]ExternCall_PrintAddStr [17:33:50]wPrintStart [17:33:50]Write to MH i2c: 01 00 00 8D 56 E3 [17:33:50]Write i2c OK [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: 01 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: 01 07 00 [17:33:50]MH_I2C_Read... [17:33:50]Read from MH i2c: 01 07 00 8D 56 00 00 00 00 00 FF 0F F8 [17:33:50]RasterBufferAndPrint [17:33:50]line Счет N : (1)343105 [17:33:50]line ИНН: 02508201610067 [17:33:50]line Контрольно-Кассовый Чек [17:33:50]line ПРОДАЖА [17:33:50]line ТРК (МРК, ГНК) : 33 [17:33:50]line Товар: 2710124130 [17:33:50]line Аи-92-К-2 [17:33:50]line 2.990 * 66.90 [17:33:50]line = 200.03 [17:33:50]line НДС 12% НСП 1% [17:33:50]line > о реализуемом товаре [17:33:50]line ИТОГО: 200.03 [17:33:50]line НСП 1% : 1.77 [17:33:50]line НДС 12% : 21.24 [17:33:50]line Наличными: 0.00 [17:33:50]line Безнал.: 200.03 [17:33:50]line Место: АЗС № 78 "Партнер Нефть" [17:33:50]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:33:50]line СНО: Общий режим [17:33:50]line Чек 191 21.10.2024 17:33 [17:33:50]line Смена: 115 ФФД: 1.0 [17:33:50]line ЗНМ: 0300000137 [17:33:50]line РНМ: 0000000000186857 [17:33:50]line Версия ККМ: v1.0 [17:33:50]line Платежная система: АКБ Кыргызстан [17:33:50]line ФМ: 0000000002094219 [17:33:50]line ФД: 30694 [17:33:50]line ФПД: 54557451703782 [17:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173354&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30694&fm=54557451703782&tin=02508201610067®Number=0000000000186857&sum=20003 [17:33:50]OFD Sender: Processing packet 30694 [packets to send 10, broken 9] [17:33:50]ProducePacketName [17:33:50]name=ofd_packets/00030694 [17:33:50]OFD Sender: To server: pG, [17:33:50]CommunicateWithHost lk.salyk.kg:30040 [17:33:50]ConnectInit lk.salyk.kg [17:33:50]written 0, free lines is 4095 [17:33:50]Connected sock=10 [17:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 FD 07 01 C4 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 82 90 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E6 77 00 00 35 04 06 00 31 9E A5 87 55 E6 F3 FF 0C 78 5B 02 FB 5B [17:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8D 9C 47 00 30 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 32 30 39 34 32 31 39 10 04 04 00 E6 77 00 00 F4 03 04 00 02 3B 16 67 B6 04 01 00 00 CA B2 BE 14 DA 65 99 63 [17:33:50]CommunicateWithHost err = 0 [17:33:50]CheckOFDResponse [17:33:50]1017 (14) - 77093643461234 [17:33:50]1041 (16) - 0000000002094219 [17:33:50]1040 (4) - 30694 [17:33:50]1012 (4) - 21.10.2024 11:29 [17:33:50]1206 (1) - 0 [17:33:50]OFD Sender: Remove packet 30694 [17:33:50]ProducePacketName [17:33:50]name=ofd_packets/00030694 [17:33:50]NVStorageDeleteData [17:33:51]Write to MH i2c: 01 00 00 B7 56 0D [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: 01 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: 01 07 00 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: 01 07 00 B7 56 00 00 00 00 00 03 0D 24 [17:33:51]RasterBufferAndPrint [17:33:51]line [17:33:51]line [17:33:51]line [17:33:51]line [17:33:51]line [17:33:51]written 0, free lines is 3337 [17:33:51]MH_Cut [17:33:51]Write to MH i2c: D1 01 00 BE 56 01 E6 [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: D1 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: D1 01 00 [17:33:51]MH_I2C_Read... [17:33:51]Read from MH i2c: D1 01 00 BE 56 00 E5 [17:33:51]Write to MH i2c: 01 00 00 BF 56 15 [17:33:51]Write i2c OK [17:33:51]MH_I2C_Read... [17:33:51]OFD Sender: No OFD packet to send [17:33:51]*** Cut start [17:33:51]*** Partial cut [17:33:51]*** CUTSNS_PIN = 1 [17:33:51]*** CUTSNS_PIN = 0 [17:33:52]*** Brake cut motor [17:33:52]Read from MH i2c: 01 [17:33:52]MH_I2C_Read... [17:33:52]*** Stop cut motor [17:33:52]*** Cut end [17:33:52]Read from MH i2c: 01 07 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: 01 07 00 BF 56 00 00 00 00 00 FF 0F 2A [17:33:52]process_action close_receipt done [17:33:52]requested_data is exist [17:33:52]produce_requested_data [17:33:52]requested_item fm.sn is exist - process it [17:33:52]wFMCommunicate request_size=4 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 11 00 00 [17:33:52]Write to MH i2c: E2 08 00 C0 56 80 11 00 00 00 00 00 00 90 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 17 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 17 00 C0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DE [17:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:33:52]wFMCommunicate OK [17:33:52]requested_item fd.num is exist - process it [17:33:52]SAM_PROTO_GetFieldsCounters [17:33:52]wFMCommunicate request_size=4 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 13 00 00 [17:33:52]Write to MH i2c: E2 08 00 C1 56 80 13 00 00 00 00 00 00 93 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 62 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 62 00 C1 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [17:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:52]wFMCommunicate OK [17:33:52]SAM_PROTO_GetFieldsCounters done [17:33:52]requested_item shift.num is exist - process it [17:33:52]requested_item shift.opened is exist - process it [17:33:52]req_shift_opened [17:33:52]FM_GetShiftState [17:33:52]SAM_PROTO_GetShiftState [17:33:52]wFMCommunicate request_size=4 [17:33:52]MH_SAM_APDU [17:33:52]CAPDU: 80 13 01 00 [17:33:52]Write to MH i2c: E2 08 00 C2 56 80 13 01 00 00 00 00 00 95 [17:33:52]Write i2c OK [17:33:52]MH_I2C_Read... [17:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:52]Read from MH i2c: E2 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 0E 00 [17:33:52]MH_I2C_Read... [17:33:52]Read from MH i2c: E2 0E 00 C2 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 11 [17:33:52]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:33:52]wFMCommunicate OK [17:33:52]SAM_PROTO_GetShiftState done [17:33:52]FM_GetShiftState done [17:33:52]req_shift_opened done [17:33:52]requested_item shift.open_date is exist - process it [17:33:52]req_shift_open_date [17:33:52]req_shift_open_date done [17:33:52]produce_requested_data done [17:33:52]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30694,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:33:52]process_action_free close_receipt [17:33:52]json_value_free [17:33:52]json_value_free done [17:33:52]process_json_proto returns [17:33:52]Send response to host [17:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30694,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:33:52]free response buf [17:33:52]execute_script done [17:33:52]execute_script returns [17:33:52]free content buf [17:33:52]Sock 7.Close socket [17:33:52]Sock 7.Thread stoped [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:20]accept exits with 9 [17:36:20]New connection [17:36:20]New thread 3067489636 created [17:36:20]Thread 3067346276 joined [17:36:20]Waiting for new connection... [17:36:20] Sock 9.Parse request [17:36:20]Sock 9.Check first char [17:36:20]Sock 9.First char is OK [17:36:20]request: POST /json_proto HTTP/1.0 [17:36:20]Method: POST [17:36:20]URL: /json_proto [17:36:20]Method is POST - this is cgi request [17:36:20]url: /json_proto [17:36:20]query_string will be loaded in cgi processing [17:36:20]execute_cgi json_proto POST (null) [17:36:20]execute_cgi path=json_proto method=POST [17:36:20]POST find Content-Length [17:36:20]Host: 172.17.51.3:8080 [17:36:20]Content-Length: 682 [17:36:20]Content-Type: application/json [17:36:20] [17:36:20]POST finish read [17:36:20]Found Content-Length = 682 [17:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:20]execute_script... [17:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:20]POST & json_proto [17:36:20]process_json_proto [17:36:20]json parsed OK: [17:36:20]protocol is kg_v1.0 [17:36:20]action value=close_receipt [17:36:20]process_action close_receipt [17:36:20]cmd_close_receipt [17:36:20]MH_GetDate [17:36:20]Write to MH i2c: F0 00 00 C3 56 08 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: F0 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: F0 09 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: F0 09 00 C3 56 00 1A 91 16 67 04 C1 95 66 F9 [17:36:20]GetLastDocTimeStamp 1729532034 [17:36:20]current date 1729532186 [17:36:20]FM_GetShiftState [17:36:20]SAM_PROTO_GetShiftState [17:36:20]wFMCommunicate request_size=4 [17:36:20]MH_SAM_APDU [17:36:20]CAPDU: 80 13 01 00 [17:36:20]Write to MH i2c: E2 08 00 C4 56 80 13 01 00 00 00 00 00 97 [17:36:20]Write i2c OK [17:36:20]MH_I2C_Read... [17:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:20]Read from MH i2c: E2 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0E 00 [17:36:20]MH_I2C_Read... [17:36:20]Read from MH i2c: E2 0E 00 C4 56 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 13 [17:36:20]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:36:20]wFMCommunicate OK [17:36:20]SAM_PROTO_GetShiftState done [17:36:20]FM_GetShiftState done [17:36:20]opened in 1729471058 [17:36:20]opened+sec_in_day 1729557458 [17:36:20]quantity*price = 100021 [17:36:20]sum+1 = 100023 [17:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 192 21.10.2024 17:36 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30695 ФПД: 198892279853306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30695&fm=198892279853306&tin=02508201610067®Number=0000000000186857&sum=100000 [17:36:21]StoreToDocumentArchive [17:36:21]shift 115 fd 30695 [17:36:21]save to /storage/0115/doc_00030695 [17:36:21]save last doc name /storage/0115/doc_00030695 to /storage/kkm_last_doc_name [17:36:21]save OK [17:36:21]Clear old archive folders... [17:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:21]tlvbuf is 01DFCA00 [17:36:21]SAM_PROTO_ClearQueue [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 09 00 00 [17:36:21]Write to MH i2c: E2 08 00 D1 56 80 09 00 00 00 00 00 00 99 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 D1 56 00 90 00 9B [17:36:21]RAPDU: 90 00 [17:36:21]wFMCommunicate OK [17:36:21]SAM_PROTO_ClearQueue done [17:36:21]KKMCreateOFDPacket [17:36:21]OFDProtocolAddRootSTLVToBuf [17:36:21]FM_MakeSignedData [17:36:21]FM_MakeSignedData [17:36:21]SAM_PROTO_SignData [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 0D 01 02 [17:36:21]Write to MH i2c: E2 08 00 D2 56 80 0D 01 02 00 00 00 00 A1 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 D2 56 00 90 00 9C [17:36:21]RAPDU: 90 00 [17:36:21]wFMCommunicate OK [17:36:21]wFMCommunicate request_size=255 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 1A 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 77 00 00 35 04 06 00 B4 [17:36:21]Write to MH i2c: E2 02 01 D3 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 1A 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 77 00 00 35 04 06 00 B4 00 00 BD [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 D3 56 00 90 00 9D [17:36:21]RAPDU: 90 00 [17:36:21]wFMCommunicate OK [17:36:21]wFMCommunicate request_size=10 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 0D 02 02 05 E4 37 B0 70 FA [17:36:21]Write to MH i2c: E2 0D 00 D4 56 80 0D 02 02 05 00 E4 37 B0 70 FA 00 00 E3 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 03 00 D4 56 00 90 00 9E [17:36:21]RAPDU: 90 00 [17:36:21]wFMCommunicate OK [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 0D 03 02 [17:36:21]Write to MH i2c: E2 08 00 D5 56 80 0D 03 02 00 00 00 00 A6 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]OFD Sender: No OFD packet to send [17:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0B 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 0B 00 D5 56 00 15 20 A1 45 EE 75 2E 52 90 00 A5 [17:36:21]RAPDU: 15 20 A1 45 EE 75 2E 52 90 00 [17:36:21]wFMCommunicate OK [17:36:21]SAM_PROTO_SignData done [17:36:21]FM_MakeSignedData done [17:36:21]CreateOFDProtocolMessage [17:36:21]wFMCommunicate request_size=4 [17:36:21]MH_SAM_APDU [17:36:21]CAPDU: 80 11 00 00 [17:36:21]Write to MH i2c: E2 08 00 D6 56 80 11 00 00 00 00 00 00 A6 [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:21]Read from MH i2c: E2 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 17 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: E2 17 00 D6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F4 [17:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:36:21]wFMCommunicate OK [17:36:21]CreateOFDProtocolMessage done [17:36:21]OFDSenderStorePacket 30695 [17:36:21]StoreOFDPacket docnum=30695 [17:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 C8 07 01 F7 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 1A 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 77 00 00 35 04 06 00 B4 E4 37 B0 70 FA 15 20 A1 45 EE 75 2E 52 [17:36:21]CheckFolder [17:36:21]dirname=/storage/ofd_packets [17:36:21]CheckFolder done [17:36:21]ProducePacketName [17:36:21]name=ofd_packets/00030695 [17:36:21]NVStorageSaveData ofd_packets/00030695 [17:36:21]File name is /storage/ofd_packets/00030695 [17:36:21]Write 301 bytes [17:36:21]NVStorageSaveData done [17:36:21]OFDSenderStorePacket done [17:36:21]KKMCreateOFDPacket done [17:36:21]NVStorageSaveData kkm_last_timestamp [17:36:21]File name is /storage/kkm_last_timestamp [17:36:21]Write 4 bytes [17:36:21]NVStorageSaveData done [17:36:21]ExternCall_PrintAddStr [17:36:21]wPrintStart [17:36:21]Write to MH i2c: 01 00 00 D7 56 2D [17:36:21]Write i2c OK [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 07 00 [17:36:21]MH_I2C_Read... [17:36:21]Read from MH i2c: 01 07 00 D7 56 00 00 00 00 00 FF 0F 42 [17:36:21]RasterBufferAndPrint [17:36:21]line Счет N : (1)343106 [17:36:21]line ИНН: 02508201610067 [17:36:21]line Контрольно-Кассовый Чек [17:36:21]line ПРОДАЖА [17:36:21]line ТРК (МРК, ГНК) : 62 [17:36:21]line Товар: 2710124500 [17:36:21]line Аи-95-К-3 [17:36:21]line 13.480 * 74.20 [17:36:21]line = 1000.22 [17:36:21]line НДС 12% НСП 1% [17:36:21]line > о реализуемом товаре [17:36:21]line ОКРУГЛЕНИЕ: -0.22 [17:36:21]line ИТОГО: 1000.00 [17:36:21]line Внесено: 1000.00 [17:36:21]line СДАЧА: 0.00 [17:36:21]line НСП 1% : 8.85 [17:36:21]line НДС 12% : 106.22 [17:36:21]line Наличными: 1000.00 [17:36:21]line Безнал.: 0.00 [17:36:21]line Место: АЗС № 78 "Партнер Нефть" [17:36:21]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:36:21]line СНО: Общий режим [17:36:21]line Чек 192 21.10.2024 17:36 [17:36:21]line Смена: 115 ФФД: 1.0 [17:36:21]line ЗНМ: 0300000137 [17:36:21]line РНМ: 0000000000186857 [17:36:21]line Версия ККМ: v1.0 [17:36:21]line ФМ: 0000000002094219 [17:36:21]line ФД: 30695 [17:36:21]line ФПД: 198892279853306 [17:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173626&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30695&fm=198892279853306&tin=02508201610067®Number=0000000000186857&sum=100000 [17:36:22]OFD Sender: Processing packet 30695 [packets to send 10, broken 9] [17:36:22]ProducePacketName [17:36:22]name=ofd_packets/00030695 [17:36:22]OFD Sender: To server: pG, [17:36:22]CommunicateWithHost lk.salyk.kg:30040 [17:36:22]ConnectInit lk.salyk.kg [17:36:22]written 0, free lines is 4095 [17:36:22]Connected sock=10 [17:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 75 C8 07 01 F7 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 1A 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 77 00 00 35 04 06 00 B4 E4 37 B0 70 FA 15 20 A1 45 EE 75 2E 52 [17:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 38 91 47 00 C0 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E7 77 00 00 F4 03 04 00 9A 3B 16 67 B6 04 01 00 00 73 D8 D0 A2 BD AD E9 6E [17:36:22]CommunicateWithHost err = 0 [17:36:22]CheckOFDResponse [17:36:22]1017 (14) - 77093643461234 [17:36:22]1041 (16) - 0000000002094219 [17:36:22]1040 (4) - 30695 [17:36:22]1012 (4) - 21.10.2024 11:31 [17:36:22]1206 (1) - 0 [17:36:22]OFD Sender: Remove packet 30695 [17:36:22]ProducePacketName [17:36:22]name=ofd_packets/00030695 [17:36:22]NVStorageDeleteData [17:36:22]Write to MH i2c: 01 00 00 02 57 59 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 07 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: 01 07 00 02 57 00 00 00 00 00 F8 0C 64 [17:36:22]RasterBufferAndPrint [17:36:22]line [17:36:22]line [17:36:22]line [17:36:22]line [17:36:22]line [17:36:22]written 0, free lines is 3326 [17:36:22]MH_Cut [17:36:22]Write to MH i2c: D1 01 00 09 57 01 32 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: D1 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: D1 01 00 [17:36:22]MH_I2C_Read... [17:36:22]Read from MH i2c: D1 01 00 09 57 00 31 [17:36:22]Write to MH i2c: 01 00 00 0A 57 61 [17:36:22]Write i2c OK [17:36:22]MH_I2C_Read... [17:36:22]OFD Sender: No OFD packet to send [17:36:23]*** Cut start [17:36:23]*** Partial cut [17:36:23]*** CUTSNS_PIN = 1 [17:36:23]*** CUTSNS_PIN = 0 [17:36:23]*** Brake cut motor [17:36:23]Read from MH i2c: 01 [17:36:23]MH_I2C_Read... [17:36:23]*** Stop cut motor [17:36:23]*** Cut end [17:36:23]Read from MH i2c: 01 07 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: 01 07 00 0A 57 00 00 00 00 00 FF 0F 76 [17:36:23]process_action close_receipt done [17:36:23]requested_data is exist [17:36:23]produce_requested_data [17:36:23]requested_item fm.sn is exist - process it [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 11 00 00 [17:36:23]Write to MH i2c: E2 08 00 0B 57 80 11 00 00 00 00 00 00 DC [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:23]Read from MH i2c: E2 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 17 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 17 00 0B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2A [17:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:36:23]wFMCommunicate OK [17:36:23]requested_item fd.num is exist - process it [17:36:23]SAM_PROTO_GetFieldsCounters [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 13 00 00 [17:36:23]Write to MH i2c: E2 08 00 0C 57 80 13 00 00 00 00 00 00 DF [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:23]Read from MH i2c: E2 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 62 00 [17:36:23]MH_I2C_Read... [17:36:23]Read from MH i2c: E2 62 00 0C 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [17:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:23]wFMCommunicate OK [17:36:23]SAM_PROTO_GetFieldsCounters done [17:36:23]requested_item shift.num is exist - process it [17:36:23]requested_item shift.opened is exist - process it [17:36:23]req_shift_opened [17:36:23]FM_GetShiftState [17:36:23]SAM_PROTO_GetShiftState [17:36:23]wFMCommunicate request_size=4 [17:36:23]MH_SAM_APDU [17:36:23]CAPDU: 80 13 01 00 [17:36:23]Write to MH i2c: E2 08 00 0D 57 80 13 01 00 00 00 00 00 E1 [17:36:23]Write i2c OK [17:36:23]MH_I2C_Read... [17:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:24]Read from MH i2c: E2 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0E 00 [17:36:24]MH_I2C_Read... [17:36:24]Read from MH i2c: E2 0E 00 0D 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5D [17:36:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:36:24]wFMCommunicate OK [17:36:24]SAM_PROTO_GetShiftState done [17:36:24]FM_GetShiftState done [17:36:24]req_shift_opened done [17:36:24]requested_item shift.open_date is exist - process it [17:36:24]req_shift_open_date [17:36:24]req_shift_open_date done [17:36:24]produce_requested_data done [17:36:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30695,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:36:24]process_action_free close_receipt [17:36:24]json_value_free [17:36:24]json_value_free done [17:36:24]process_json_proto returns [17:36:24]Send response to host [17:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30695,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:36:24]free response buf [17:36:24]execute_script done [17:36:24]execute_script returns [17:36:24]free content buf [17:36:24]Sock 9.Close socket [17:36:24]Sock 9.Thread stoped [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38: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:03]accept exits with 7 [17:40:03]New connection [17:40:03]New thread 3067346276 created [17:40:03]Thread 3067489636 joined [17:40:03]Waiting for new connection... [17:40:03] Sock 7.Parse request [17:40:03]Sock 7.Check first char [17:40:03]Sock 7.First char is OK [17:40:03]request: POST /json_proto HTTP/1.0 [17:40:03]Method: POST [17:40:03]URL: /json_proto [17:40:03]Method is POST - this is cgi request [17:40:03]url: /json_proto [17:40:03]query_string will be loaded in cgi processing [17:40:03]execute_cgi json_proto POST (null) [17:40:03]execute_cgi path=json_proto method=POST [17:40:03]POST find Content-Length [17:40:03]Host: 172.17.51.3:8080 [17:40:03]Content-Length: 677 [17:40:03]Content-Type: application/json [17:40:03] [17:40:03]POST finish read [17:40:03]Found Content-Length = 677 [17:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:03]execute_script... [17:40:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:03]POST & json_proto [17:40:03]process_json_proto [17:40:03]json parsed OK: [17:40:03]protocol is kg_v1.0 [17:40:03]action value=close_receipt [17:40:03]process_action close_receipt [17:40:03]cmd_close_receipt [17:40:03]MH_GetDate [17:40:03]Write to MH i2c: F0 00 00 0E 57 54 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 09 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: F0 09 00 0E 57 00 F9 91 16 67 04 C1 95 66 24 [17:40:03]GetLastDocTimeStamp 1729532186 [17:40:03]current date 1729532409 [17:40:03]FM_GetShiftState [17:40:03]SAM_PROTO_GetShiftState [17:40:03]wFMCommunicate request_size=4 [17:40:03]MH_SAM_APDU [17:40:03]CAPDU: 80 13 01 00 [17:40:03]Write to MH i2c: E2 08 00 0F 57 80 13 01 00 00 00 00 00 E3 [17:40:03]Write i2c OK [17:40:03]MH_I2C_Read... [17:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:03]Read from MH i2c: E2 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 [17:40:03]MH_I2C_Read... [17:40:03]Read from MH i2c: E2 0E 00 0F 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5F [17:40:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:40:03]wFMCommunicate OK [17:40:03]SAM_PROTO_GetShiftState done [17:40:03]FM_GetShiftState done [17:40:03]opened in 1729471058 [17:40:03]opened+sec_in_day 1729557458 [17:40:03]quantity*price = 20003 [17:40:03]sum+1 = 20004 [17:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 193 21.10.2024 17:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30696 ФПД: 18819778488560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174009&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30696&fm=18819778488560&tin=02508201610067®Number=0000000000186857&sum=20000 [17:40:04]StoreToDocumentArchive [17:40:04]shift 115 fd 30696 [17:40:04]save to /storage/0115/doc_00030696 [17:40:04]save last doc name /storage/0115/doc_00030696 to /storage/kkm_last_doc_name [17:40:04]save OK [17:40:04]Clear old archive folders... [17:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:04]tlvbuf is 01E55B50 [17:40:04]SAM_PROTO_ClearQueue [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 09 00 00 [17:40:04]Write to MH i2c: E2 08 00 1C 57 80 09 00 00 00 00 00 00 E5 [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 1C 57 00 90 00 E7 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]SAM_PROTO_ClearQueue done [17:40:04]KKMCreateOFDPacket [17:40:04]OFDProtocolAddRootSTLVToBuf [17:40:04]FM_MakeSignedData [17:40:04]FM_MakeSignedData [17:40:04]SAM_PROTO_SignData [17:40:04]wFMCommunicate request_size=4 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 01 02 [17:40:04]Write to MH i2c: E2 08 00 1D 57 80 0D 01 02 00 00 00 00 ED [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:04]Read from MH i2c: E2 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 [17:40:04]MH_I2C_Read... [17:40:04]Read from MH i2c: E2 03 00 1D 57 00 90 00 E8 [17:40:04]RAPDU: 90 00 [17:40:04]wFMCommunicate OK [17:40:04]wFMCommunicate request_size=255 [17:40:04]MH_SAM_APDU [17:40:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 C1 00 00 00 F4 03 04 00 F9 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 77 00 00 35 04 06 00 11 [17:40:04]Write to MH i2c: E2 02 01 1E 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 C1 00 00 00 F4 03 04 00 F9 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 77 00 00 35 04 06 00 11 00 00 EB [17:40:04]Write i2c OK [17:40:04]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 1E 57 00 90 00 E9 [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]wFMCommunicate request_size=10 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 02 02 05 1D D2 36 28 F0 [17:40:05]Write to MH i2c: E2 0D 00 1F 57 80 0D 02 02 05 00 1D D2 36 28 F0 00 00 37 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 03 00 1F 57 00 90 00 EA [17:40:05]RAPDU: 90 00 [17:40:05]wFMCommunicate OK [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 0D 03 02 [17:40:05]Write to MH i2c: E2 08 00 20 57 80 0D 03 02 00 00 00 00 F2 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0B 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 0B 00 20 57 00 1D 61 87 36 66 F5 2B B9 90 00 6D [17:40:05]RAPDU: 1D 61 87 36 66 F5 2B B9 90 00 [17:40:05]wFMCommunicate OK [17:40:05]SAM_PROTO_SignData done [17:40:05]FM_MakeSignedData done [17:40:05]CreateOFDProtocolMessage [17:40:05]wFMCommunicate request_size=4 [17:40:05]MH_SAM_APDU [17:40:05]CAPDU: 80 11 00 00 [17:40:05]Write to MH i2c: E2 08 00 21 57 80 11 00 00 00 00 00 00 F2 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:05]Read from MH i2c: E2 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: E2 17 00 21 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 40 [17:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:40:05]wFMCommunicate OK [17:40:05]CreateOFDProtocolMessage done [17:40:05]OFDSenderStorePacket 30696 [17:40:05]StoreOFDPacket docnum=30696 [17:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9C 7B 07 01 96 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 C1 00 00 00 F4 03 04 00 F9 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 77 00 00 35 04 06 00 11 1D D2 36 28 F0 1D 61 87 36 66 F5 2B B9 [17:40:05]CheckFolder [17:40:05]dirname=/storage/ofd_packets [17:40:05]CheckFolder done [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00030696 [17:40:05]NVStorageSaveData ofd_packets/00030696 [17:40:05]File name is /storage/ofd_packets/00030696 [17:40:05]Write 301 bytes [17:40:05]NVStorageSaveData done [17:40:05]OFDSenderStorePacket done [17:40:05]KKMCreateOFDPacket done [17:40:05]NVStorageSaveData kkm_last_timestamp [17:40:05]File name is /storage/kkm_last_timestamp [17:40:05]Write 4 bytes [17:40:05]NVStorageSaveData done [17:40:05]ExternCall_PrintAddStr [17:40:05]wPrintStart [17:40:05]Write to MH i2c: 01 00 00 22 57 79 [17:40:05]Write i2c OK [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 [17:40:05]MH_I2C_Read... [17:40:05]Read from MH i2c: 01 07 00 22 57 00 00 00 00 00 FF 0F 8E [17:40:05]RasterBufferAndPrint [17:40:05]line Счет N : (1)343107 [17:40:05]line ИНН: 02508201610067 [17:40:05]line Контрольно-Кассовый Чек [17:40:05]line ПРОДАЖА [17:40:05]line ТРК (МРК, ГНК) : 63 [17:40:05]line Товар: 2710124130 [17:40:05]line Аи-92-К-2 [17:40:05]line 2.990 * 66.90 [17:40:05]line = 200.03 [17:40:05]line НДС 12% НСП 1% [17:40:05]line > о реализуемом товаре [17:40:05]line ОКРУГЛЕНИЕ: -0.03 [17:40:05]line ИТОГО: 200.00 [17:40:05]line Внесено: 200.00 [17:40:05]line СДАЧА: 0.00 [17:40:05]line НСП 1% : 1.77 [17:40:05]line НДС 12% : 21.24 [17:40:05]line Наличными: 200.00 [17:40:05]line Безнал.: 0.00 [17:40:05]line Место: АЗС № 78 "Партнер Нефть" [17:40:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:40:05]line СНО: Общий режим [17:40:05]line Чек 193 21.10.2024 17:40 [17:40:05]line Смена: 115 ФФД: 1.0 [17:40:05]line ЗНМ: 0300000137 [17:40:05]line РНМ: 0000000000186857 [17:40:05]line Версия ККМ: v1.0 [17:40:05]line ФМ: 0000000002094219 [17:40:05]line ФД: 30696 [17:40:05]line ФПД: 18819778488560 [17:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174009&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30696&fm=18819778488560&tin=02508201610067®Number=0000000000186857&sum=20000 [17:40:05]OFD Sender: Processing packet 30696 [packets to send 10, broken 9] [17:40:05]ProducePacketName [17:40:05]name=ofd_packets/00030696 [17:40:05]OFD Sender: To server: pG, [17:40:05]CommunicateWithHost lk.salyk.kg:30040 [17:40:05]ConnectInit lk.salyk.kg [17:40:05]written 0, free lines is 4095 [17:40:05]Connected sock=10 [17:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9C 7B 07 01 96 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 C1 00 00 00 F4 03 04 00 F9 91 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E8 77 00 00 35 04 06 00 11 1D D2 36 28 F0 1D 61 87 36 66 F5 2B B9 [17:40:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4D 42 47 00 06 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 32 30 39 34 32 31 39 10 04 04 00 E8 77 00 00 F4 03 04 00 79 3C 16 67 B6 04 01 00 00 7D 8F A2 3C 0A 3B D1 DE [17:40:06]CommunicateWithHost err = 0 [17:40:06]CheckOFDResponse [17:40:06]1017 (14) - 77093643461234 [17:40:06]1041 (16) - 0000000002094219 [17:40:06]1040 (4) - 30696 [17:40:06]1012 (4) - 21.10.2024 11:35 [17:40:06]1206 (1) - 0 [17:40:06]OFD Sender: Remove packet 30696 [17:40:06]ProducePacketName [17:40:06]name=ofd_packets/00030696 [17:40:06]NVStorageDeleteData [17:40:06]Write to MH i2c: 01 00 00 4D 57 A4 [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 07 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: 01 07 00 4D 57 00 00 00 00 00 F7 0C AE [17:40:06]RasterBufferAndPrint [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]line [17:40:06]written 0, free lines is 3326 [17:40:06]MH_Cut [17:40:06]Write to MH i2c: D1 01 00 54 57 01 7D [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 01 00 [17:40:06]MH_I2C_Read... [17:40:06]Read from MH i2c: D1 01 00 54 57 00 7C [17:40:06]Write to MH i2c: 01 00 00 55 57 AC [17:40:06]Write i2c OK [17:40:06]MH_I2C_Read... [17:40:06]OFD Sender: No OFD packet to send [17:40:06]*** Cut start [17:40:06]*** Partial cut [17:40:06]*** CUTSNS_PIN = 1 [17:40:06]*** CUTSNS_PIN = 0 [17:40:07]*** Brake cut motor [17:40:07]Read from MH i2c: 01 [17:40:07]MH_I2C_Read... [17:40:07]*** Stop cut motor [17:40:07]*** Cut end [17:40:07]Read from MH i2c: 01 07 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: 01 07 00 55 57 00 00 00 00 00 FF 0F C1 [17:40:07]process_action close_receipt done [17:40:07]requested_data is exist [17:40:07]produce_requested_data [17:40:07]requested_item fm.sn is exist - process it [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 11 00 00 [17:40:07]Write to MH i2c: E2 08 00 56 57 80 11 00 00 00 00 00 00 27 [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 17 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 17 00 56 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 75 [17:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:40:07]wFMCommunicate OK [17:40:07]requested_item fd.num is exist - process it [17:40:07]SAM_PROTO_GetFieldsCounters [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 13 00 00 [17:40:07]Write to MH i2c: E2 08 00 57 57 80 13 00 00 00 00 00 00 2A [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 62 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 62 00 57 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [17:40:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:07]wFMCommunicate OK [17:40:07]SAM_PROTO_GetFieldsCounters done [17:40:07]requested_item shift.num is exist - process it [17:40:07]requested_item shift.opened is exist - process it [17:40:07]req_shift_opened [17:40:07]FM_GetShiftState [17:40:07]SAM_PROTO_GetShiftState [17:40:07]wFMCommunicate request_size=4 [17:40:07]MH_SAM_APDU [17:40:07]CAPDU: 80 13 01 00 [17:40:07]Write to MH i2c: E2 08 00 58 57 80 13 01 00 00 00 00 00 2C [17:40:07]Write i2c OK [17:40:07]MH_I2C_Read... [17:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:07]Read from MH i2c: E2 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 0E 00 [17:40:07]MH_I2C_Read... [17:40:07]Read from MH i2c: E2 0E 00 58 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A8 [17:40:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:40:07]wFMCommunicate OK [17:40:07]SAM_PROTO_GetShiftState done [17:40:07]FM_GetShiftState done [17:40:07]req_shift_opened done [17:40:07]requested_item shift.open_date is exist - process it [17:40:07]req_shift_open_date [17:40:07]req_shift_open_date done [17:40:07]produce_requested_data done [17:40:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30696,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:40:07]process_action_free close_receipt [17:40:07]json_value_free [17:40:07]json_value_free done [17:40:07]process_json_proto returns [17:40:07]Send response to host [17:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30696,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:40:07]free response buf [17:40:07]execute_script done [17:40:07]execute_script returns [17:40:07]free content buf [17:40:07]Sock 7.Close socket [17:40:07]Sock 7.Thread stoped [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:21]OFD Sender: No OFD packet to send [17:48:26]OFD Sender: No OFD packet to send [17:48:31]OFD Sender: No OFD packet to send [17:48:36]OFD Sender: No OFD packet to send [17:48:41]OFD Sender: No OFD packet to send [17:48:46]OFD Sender: No OFD packet to send [17:48:51]OFD Sender: No OFD packet to send [17:48:56]OFD Sender: No OFD packet to send [17:49:01]OFD Sender: No OFD packet to send [17:49:06]OFD Sender: No OFD packet to send [17:49:11]OFD Sender: No OFD packet to send [17:49:16]OFD Sender: No OFD packet to send [17:49:21]OFD Sender: No OFD packet to send [17:49:26]OFD Sender: No OFD packet to send [17:49:31]OFD Sender: No OFD packet to send [17:49:36]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:22]OFD Sender: No OFD packet to send [17:51:27]OFD Sender: No OFD packet to send [17:51:32]OFD Sender: No OFD packet to send [17:51:37]OFD Sender: No OFD packet to send [17:51:42]OFD Sender: No OFD packet to send [17:51:47]OFD Sender: No OFD packet to send [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:23]accept exits with 9 [17:54:23]New connection [17:54:23]New thread 3067489636 created [17:54:23]Thread 3067346276 joined [17:54:23]Waiting for new connection... [17:54:23] Sock 9.Parse request [17:54:23]Sock 9.Check first char [17:54:23]Sock 9.First char is OK [17:54:23]request: POST /json_proto HTTP/1.0 [17:54:23]Method: POST [17:54:23]URL: /json_proto [17:54:23]Method is POST - this is cgi request [17:54:23]url: /json_proto [17:54:23]query_string will be loaded in cgi processing [17:54:23]execute_cgi json_proto POST (null) [17:54:23]execute_cgi path=json_proto method=POST [17:54:23]POST find Content-Length [17:54:23]Host: 172.17.51.3:8080 [17:54:23]Content-Length: 688 [17:54:23]Content-Type: application/json [17:54:23] [17:54:23]POST finish read [17:54:23]Found Content-Length = 688 [17:54:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:23]execute_script... [17:54:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:23]POST & json_proto [17:54:23]process_json_proto [17:54:23]json parsed OK: [17:54:23]protocol is kg_v1.0 [17:54:23]action value=close_receipt [17:54:23]process_action close_receipt [17:54:23]cmd_close_receipt [17:54:23]MH_GetDate [17:54:23]Write to MH i2c: F0 00 00 59 57 9F [17:54:23]Write i2c OK [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 09 00 [17:54:23]MH_I2C_Read... [17:54:23]Read from MH i2c: F0 09 00 59 57 00 56 95 16 67 04 C1 95 66 D0 [17:54:23]GetLastDocTimeStamp 1729532409 [17:54:23]current date 1729533270 [17:54:23]FM_GetShiftState [17:54:23]SAM_PROTO_GetShiftState [17:54:23]wFMCommunicate request_size=4 [17:54:23]MH_SAM_APDU [17:54:23]CAPDU: 80 13 01 00 [17:54:23]Write to MH i2c: E2 08 00 5A 57 80 13 01 00 00 00 00 00 2E [17:54:23]Write i2c OK [17:54:23]MH_I2C_Read... [17:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:24]Read from MH i2c: E2 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 0E 00 [17:54:24]MH_I2C_Read... [17:54:24]Read from MH i2c: E2 0E 00 5A 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AA [17:54:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:54:24]wFMCommunicate OK [17:54:24]SAM_PROTO_GetShiftState done [17:54:24]FM_GetShiftState done [17:54:24]opened in 1729471058 [17:54:24]opened+sec_in_day 1729557458 [17:54:24]quantity*price = 300076 [17:54:24]sum+1 = 300077 [17:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 194 21.10.2024 17:54 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30697 ФПД: 168588268171886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175430&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30697&fm=168588268171886&tin=02508201610067®Number=0000000000186857&sum=300000 [17:54:25]StoreToDocumentArchive [17:54:25]shift 115 fd 30697 [17:54:25]save to /storage/0115/doc_00030697 [17:54:25]save last doc name /storage/0115/doc_00030697 to /storage/kkm_last_doc_name [17:54:25]save OK [17:54:25]Clear old archive folders... [17:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:54:25]tlvbuf is 01DEA330 [17:54:25]SAM_PROTO_ClearQueue [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 09 00 00 [17:54:25]Write to MH i2c: E2 08 00 67 57 80 09 00 00 00 00 00 00 30 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 67 57 00 90 00 32 [17:54:25]RAPDU: 90 00 [17:54:25]wFMCommunicate OK [17:54:25]SAM_PROTO_ClearQueue done [17:54:25]KKMCreateOFDPacket [17:54:25]OFDProtocolAddRootSTLVToBuf [17:54:25]FM_MakeSignedData [17:54:25]FM_MakeSignedData [17:54:25]SAM_PROTO_SignData [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 0D 01 02 [17:54:25]Write to MH i2c: E2 08 00 68 57 80 0D 01 02 00 00 00 00 38 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 68 57 00 90 00 33 [17:54:25]RAPDU: 90 00 [17:54:25]wFMCommunicate OK [17:54:25]wFMCommunicate request_size=255 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 56 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 77 00 [17:54:25]Write to MH i2c: E2 02 01 69 57 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 56 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 77 00 00 00 71 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 69 57 00 90 00 34 [17:54:25]RAPDU: 90 00 [17:54:25]wFMCommunicate OK [17:54:25]wFMCommunicate request_size=16 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 99 54 83 D6 72 6E [17:54:25]Write to MH i2c: E2 13 00 6A 57 80 0D 02 02 0B 00 00 35 04 06 00 99 54 83 D6 72 6E 00 00 B6 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 03 00 6A 57 00 90 00 35 [17:54:25]RAPDU: 90 00 [17:54:25]wFMCommunicate OK [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 0D 03 02 [17:54:25]Write to MH i2c: E2 08 00 6B 57 80 0D 03 02 00 00 00 00 3D [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 0B 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 0B 00 6B 57 00 F7 FD 17 7F 87 1D 82 09 90 00 F7 [17:54:25]RAPDU: F7 FD 17 7F 87 1D 82 09 90 00 [17:54:25]wFMCommunicate OK [17:54:25]SAM_PROTO_SignData done [17:54:25]FM_MakeSignedData done [17:54:25]CreateOFDProtocolMessage [17:54:25]wFMCommunicate request_size=4 [17:54:25]MH_SAM_APDU [17:54:25]CAPDU: 80 11 00 00 [17:54:25]Write to MH i2c: E2 08 00 6C 57 80 11 00 00 00 00 00 00 3D [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:25]Read from MH i2c: E2 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 17 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: E2 17 00 6C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8B [17:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:54:25]wFMCommunicate OK [17:54:25]CreateOFDProtocolMessage done [17:54:25]OFDSenderStorePacket 30697 [17:54:25]StoreOFDPacket docnum=30697 [17:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 EE 76 0D 01 80 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 56 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 77 00 00 35 04 06 00 99 54 83 D6 72 6E F7 FD 17 7F 87 1D 82 09 [17:54:25]CheckFolder [17:54:25]dirname=/storage/ofd_packets [17:54:25]CheckFolder done [17:54:25]ProducePacketName [17:54:25]name=ofd_packets/00030697 [17:54:25]NVStorageSaveData ofd_packets/00030697 [17:54:25]File name is /storage/ofd_packets/00030697 [17:54:25]Write 307 bytes [17:54:25]NVStorageSaveData done [17:54:25]OFDSenderStorePacket done [17:54:25]KKMCreateOFDPacket done [17:54:25]NVStorageSaveData kkm_last_timestamp [17:54:25]File name is /storage/kkm_last_timestamp [17:54:25]Write 4 bytes [17:54:25]NVStorageSaveData done [17:54:25]ExternCall_PrintAddStr [17:54:25]wPrintStart [17:54:25]Write to MH i2c: 01 00 00 6D 57 C4 [17:54:25]Write i2c OK [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: 01 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: 01 07 00 [17:54:25]MH_I2C_Read... [17:54:25]Read from MH i2c: 01 07 00 6D 57 00 00 00 00 00 FF 0F D9 [17:54:25]RasterBufferAndPrint [17:54:25]line Счет N : (1)343108 [17:54:25]line ИНН: 02508201610067 [17:54:25]line Контрольно-Кассовый Чек [17:54:25]line ПРОДАЖА [17:54:25]line ТРК (МРК, ГНК) : 61 [17:54:25]line Товар: 2710194210 [17:54:25]line D-ENERGY Дт-К-2 [17:54:25]line 38.870 * 77.20 [17:54:25]line = 3000.76 [17:54:25]line НДС 12% НСП 1% [17:54:25]line > о реализуемом товаре [17:54:25]line ОКРУГЛЕНИЕ: -0.76 [17:54:25]line ИТОГО: 3000.00 [17:54:25]line Внесено: 3000.00 [17:54:25]line СДАЧА: 0.00 [17:54:25]line НСП 1% : 26.55 [17:54:25]line НДС 12% : 318.66 [17:54:25]line Наличными: 3000.00 [17:54:25]line Безнал.: 0.00 [17:54:25]line Место: АЗС № 78 "Партнер Нефть" [17:54:25]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:54:25]line СНО: Общий режим [17:54:25]line Чек 194 21.10.2024 17:54 [17:54:25]line Смена: 115 ФФД: 1.0 [17:54:25]line ЗНМ: 0300000137 [17:54:25]line РНМ: 0000000000186857 [17:54:25]line Версия ККМ: v1.0 [17:54:25]line ФМ: 0000000002094219 [17:54:25]line ФД: 30697 [17:54:25]line ФПД: 168588268171886 [17:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175430&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30697&fm=168588268171886&tin=02508201610067®Number=0000000000186857&sum=300000 [17:54:26]OFD Sender: Processing packet 30697 [packets to send 10, broken 9] [17:54:26]ProducePacketName [17:54:26]name=ofd_packets/00030697 [17:54:26]OFD Sender: To server: pG, [17:54:26]CommunicateWithHost lk.salyk.kg:30040 [17:54:26]ConnectInit lk.salyk.kg [17:54:26]written 0, free lines is 4095 [17:54:26]Connected sock=10 [17:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 EE 76 0D 01 80 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 56 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 77 00 00 35 04 06 00 99 54 83 D6 72 6E F7 FD 17 7F 87 1D 82 09 [17:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CB A8 47 00 09 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 E9 77 00 00 F4 03 04 00 D6 3F 16 67 B6 04 01 00 00 C0 F2 76 EF E0 B5 4A 2F [17:54:26]CommunicateWithHost err = 0 [17:54:26]CheckOFDResponse [17:54:26]1017 (14) - 77093643461234 [17:54:26]1041 (16) - 0000000002094219 [17:54:26]1040 (4) - 30697 [17:54:26]1012 (4) - 21.10.2024 11:49 [17:54:26]1206 (1) - 0 [17:54:26]OFD Sender: Remove packet 30697 [17:54:26]ProducePacketName [17:54:26]name=ofd_packets/00030697 [17:54:26]NVStorageDeleteData [17:54:26]Write to MH i2c: 01 00 00 98 57 EF [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 07 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: 01 07 00 98 57 00 00 00 00 00 F9 0C FB [17:54:26]RasterBufferAndPrint [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]line [17:54:26]written 0, free lines is 3327 [17:54:26]MH_Cut [17:54:26]Write to MH i2c: D1 01 00 9F 57 01 C8 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 01 00 [17:54:26]MH_I2C_Read... [17:54:26]Read from MH i2c: D1 01 00 9F 57 00 C7 [17:54:26]Write to MH i2c: 01 00 00 A0 57 F7 [17:54:26]Write i2c OK [17:54:26]MH_I2C_Read... [17:54:26]OFD Sender: No OFD packet to send [17:54:27]*** Cut start [17:54:27]*** Partial cut [17:54:27]*** CUTSNS_PIN = 1 [17:54:27]*** CUTSNS_PIN = 0 [17:54:27]*** Brake cut motor [17:54:27]Read from MH i2c: 01 [17:54:27]MH_I2C_Read... [17:54:27]*** Stop cut motor [17:54:27]*** Cut end [17:54:27]Read from MH i2c: 01 07 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: 01 07 00 A0 57 00 00 00 00 00 FF 0F 0C [17:54:27]process_action close_receipt done [17:54:27]requested_data is exist [17:54:27]produce_requested_data [17:54:27]requested_item fm.sn is exist - process it [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 11 00 00 [17:54:27]Write to MH i2c: E2 08 00 A1 57 80 11 00 00 00 00 00 00 72 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 17 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 17 00 A1 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C0 [17:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:54:27]wFMCommunicate OK [17:54:27]requested_item fd.num is exist - process it [17:54:27]SAM_PROTO_GetFieldsCounters [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 13 00 00 [17:54:27]Write to MH i2c: E2 08 00 A2 57 80 13 00 00 00 00 00 00 75 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 62 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 62 00 A2 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [17:54:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 E9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:27]wFMCommunicate OK [17:54:27]SAM_PROTO_GetFieldsCounters done [17:54:27]requested_item shift.num is exist - process it [17:54:27]requested_item shift.opened is exist - process it [17:54:27]req_shift_opened [17:54:27]FM_GetShiftState [17:54:27]SAM_PROTO_GetShiftState [17:54:27]wFMCommunicate request_size=4 [17:54:27]MH_SAM_APDU [17:54:27]CAPDU: 80 13 01 00 [17:54:27]Write to MH i2c: E2 08 00 A3 57 80 13 01 00 00 00 00 00 77 [17:54:27]Write i2c OK [17:54:27]MH_I2C_Read... [17:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:27]Read from MH i2c: E2 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 0E 00 [17:54:27]MH_I2C_Read... [17:54:27]Read from MH i2c: E2 0E 00 A3 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F3 [17:54:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:54:27]wFMCommunicate OK [17:54:27]SAM_PROTO_GetShiftState done [17:54:27]FM_GetShiftState done [17:54:27]req_shift_opened done [17:54:27]requested_item shift.open_date is exist - process it [17:54:27]req_shift_open_date [17:54:27]req_shift_open_date done [17:54:27]produce_requested_data done [17:54:27]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30697,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:54:27]process_action_free close_receipt [17:54:27]json_value_free [17:54:27]json_value_free done [17:54:27]process_json_proto returns [17:54:27]Send response to host [17:54:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30697,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:54:27]free response buf [17:54:27]execute_script done [17:54:27]execute_script returns [17:54:27]free content buf [17:54:27]Sock 9.Close socket [17:54:27]Sock 9.Thread stoped [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:24]accept exits with 7 [17:56:24]New connection [17:56:24]New thread 3067346276 created [17:56:24]Thread 3067489636 joined [17:56:24]Waiting for new connection... [17:56:24] Sock 7.Parse request [17:56:24]Sock 7.Check first char [17:56:24]Sock 7.First char is OK [17:56:24]request: POST /json_proto HTTP/1.0 [17:56:24]Method: POST [17:56:24]URL: /json_proto [17:56:24]Method is POST - this is cgi request [17:56:24]url: /json_proto [17:56:24]query_string will be loaded in cgi processing [17:56:24]execute_cgi json_proto POST (null) [17:56:24]execute_cgi path=json_proto method=POST [17:56:24]POST find Content-Length [17:56:24]Host: 172.17.51.3:8080 [17:56:24]Content-Length: 683 [17:56:24]Content-Type: application/json [17:56:24] [17:56:24]POST finish read [17:56:24]Found Content-Length = 683 [17:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:24]execute_script... [17:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:24]POST & json_proto [17:56:24]process_json_proto [17:56:24]json parsed OK: [17:56:24]protocol is kg_v1.0 [17:56:24]action value=close_receipt [17:56:24]process_action close_receipt [17:56:24]cmd_close_receipt [17:56:24]MH_GetDate [17:56:24]Write to MH i2c: F0 00 00 A4 57 EA [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 09 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: F0 09 00 A4 57 00 CE 95 16 67 04 C1 95 66 93 [17:56:24]GetLastDocTimeStamp 1729533270 [17:56:24]current date 1729533390 [17:56:24]FM_GetShiftState [17:56:24]SAM_PROTO_GetShiftState [17:56:24]wFMCommunicate request_size=4 [17:56:24]MH_SAM_APDU [17:56:24]CAPDU: 80 13 01 00 [17:56:24]Write to MH i2c: E2 08 00 A5 57 80 13 01 00 00 00 00 00 79 [17:56:24]Write i2c OK [17:56:24]MH_I2C_Read... [17:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:24]Read from MH i2c: E2 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 [17:56:24]MH_I2C_Read... [17:56:24]Read from MH i2c: E2 0E 00 A5 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F5 [17:56:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:56:24]wFMCommunicate OK [17:56:24]SAM_PROTO_GetShiftState done [17:56:24]FM_GetShiftState done [17:56:24]opened in 1729471058 [17:56:24]opened+sec_in_day 1729557458 [17:56:24]quantity*price = 50025 [17:56:24]sum+1 = 50027 [17:56:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 195 21.10.2024 17:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30698 ФПД: 188846088495767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175630&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30698&fm=188846088495767&tin=02508201610067®Number=0000000000186857&sum=50000 [17:56:25]StoreToDocumentArchive [17:56:25]shift 115 fd 30698 [17:56:25]save to /storage/0115/doc_00030698 [17:56:25]save last doc name /storage/0115/doc_00030698 to /storage/kkm_last_doc_name [17:56:25]save OK [17:56:25]Clear old archive folders... [17:56:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:56:25]tlvbuf is 01E061E0 [17:56:25]SAM_PROTO_ClearQueue [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 09 00 00 [17:56:25]Write to MH i2c: E2 08 00 B2 57 80 09 00 00 00 00 00 00 7B [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 03 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 03 00 B2 57 00 90 00 7D [17:56:25]RAPDU: 90 00 [17:56:25]wFMCommunicate OK [17:56:25]SAM_PROTO_ClearQueue done [17:56:25]KKMCreateOFDPacket [17:56:25]OFDProtocolAddRootSTLVToBuf [17:56:25]FM_MakeSignedData [17:56:25]FM_MakeSignedData [17:56:25]SAM_PROTO_SignData [17:56:25]wFMCommunicate request_size=4 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 0D 01 02 [17:56:25]Write to MH i2c: E2 08 00 B3 57 80 0D 01 02 00 00 00 00 83 [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:25]Read from MH i2c: E2 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 03 00 [17:56:25]MH_I2C_Read... [17:56:25]Read from MH i2c: E2 03 00 B3 57 00 90 00 7E [17:56:25]RAPDU: 90 00 [17:56:25]wFMCommunicate OK [17:56:25]wFMCommunicate request_size=255 [17:56:25]MH_SAM_APDU [17:56:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 CE 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 77 00 [17:56:25]Write to MH i2c: E2 02 01 B4 57 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 CE 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 77 00 00 00 04 [17:56:25]Write i2c OK [17:56:25]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 B4 57 00 90 00 7F [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=16 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AB C1 28 05 A2 97 [17:56:26]Write to MH i2c: E2 13 00 B5 57 80 0D 02 02 0B 00 00 35 04 06 00 AB C1 28 05 A2 97 00 00 AD [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 03 00 B5 57 00 90 00 80 [17:56:26]RAPDU: 90 00 [17:56:26]wFMCommunicate OK [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 0D 03 02 [17:56:26]Write to MH i2c: E2 08 00 B6 57 80 0D 03 02 00 00 00 00 88 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 0B 00 B6 57 00 A0 E4 CA D9 25 BA E8 AF 90 00 26 [17:56:26]RAPDU: A0 E4 CA D9 25 BA E8 AF 90 00 [17:56:26]wFMCommunicate OK [17:56:26]SAM_PROTO_SignData done [17:56:26]FM_MakeSignedData done [17:56:26]CreateOFDProtocolMessage [17:56:26]wFMCommunicate request_size=4 [17:56:26]MH_SAM_APDU [17:56:26]CAPDU: 80 11 00 00 [17:56:26]Write to MH i2c: E2 08 00 B7 57 80 11 00 00 00 00 00 00 88 [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:26]Read from MH i2c: E2 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: E2 17 00 B7 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D6 [17:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:56:26]wFMCommunicate OK [17:56:26]CreateOFDProtocolMessage done [17:56:26]OFDSenderStorePacket 30698 [17:56:26]StoreOFDPacket docnum=30698 [17:56:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 26 41 0D 01 63 68 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 CE 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 77 00 00 35 04 06 00 AB C1 28 05 A2 97 A0 E4 CA D9 25 BA E8 AF [17:56:26]CheckFolder [17:56:26]dirname=/storage/ofd_packets [17:56:26]CheckFolder done [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00030698 [17:56:26]NVStorageSaveData ofd_packets/00030698 [17:56:26]File name is /storage/ofd_packets/00030698 [17:56:26]Write 307 bytes [17:56:26]NVStorageSaveData done [17:56:26]OFDSenderStorePacket done [17:56:26]KKMCreateOFDPacket done [17:56:26]NVStorageSaveData kkm_last_timestamp [17:56:26]File name is /storage/kkm_last_timestamp [17:56:26]Write 4 bytes [17:56:26]NVStorageSaveData done [17:56:26]ExternCall_PrintAddStr [17:56:26]wPrintStart [17:56:26]Write to MH i2c: 01 00 00 B8 57 0F [17:56:26]Write i2c OK [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 [17:56:26]MH_I2C_Read... [17:56:26]Read from MH i2c: 01 07 00 B8 57 00 00 00 00 00 FF 0F 24 [17:56:26]RasterBufferAndPrint [17:56:26]line Счет N : (1)343110 [17:56:26]line ИНН: 02508201610067 [17:56:26]line Контрольно-Кассовый Чек [17:56:26]line ПРОДАЖА [17:56:26]line ТРК (МРК, ГНК) : 61 [17:56:26]line Товар: 2710194210 [17:56:26]line D-ENERGY Дт-К-2 [17:56:26]line 6.480 * 77.20 [17:56:26]line = 500.26 [17:56:26]line НДС 12% НСП 1% [17:56:26]line > о реализуемом товаре [17:56:26]line ОКРУГЛЕНИЕ: -0.26 [17:56:26]line ИТОГО: 500.00 [17:56:26]line Внесено: 500.00 [17:56:26]line СДАЧА: 0.00 [17:56:26]line НСП 1% : 4.43 [17:56:26]line НДС 12% : 53.12 [17:56:26]line Наличными: 500.00 [17:56:26]line Безнал.: 0.00 [17:56:26]line Место: АЗС № 78 "Партнер Нефть" [17:56:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:56:26]line СНО: Общий режим [17:56:26]line Чек 195 21.10.2024 17:56 [17:56:26]line Смена: 115 ФФД: 1.0 [17:56:26]line ЗНМ: 0300000137 [17:56:26]line РНМ: 0000000000186857 [17:56:26]line Версия ККМ: v1.0 [17:56:26]line ФМ: 0000000002094219 [17:56:26]line ФД: 30698 [17:56:26]line ФПД: 188846088495767 [17:56:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175630&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30698&fm=188846088495767&tin=02508201610067®Number=0000000000186857&sum=50000 [17:56:26]OFD Sender: Processing packet 30698 [packets to send 10, broken 9] [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00030698 [17:56:26]OFD Sender: To server: pG, [17:56:26]CommunicateWithHost lk.salyk.kg:30040 [17:56:26]ConnectInit lk.salyk.kg [17:56:26]written 0, free lines is 4095 [17:56:26]Connected sock=10 [17:56:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 26 41 0D 01 63 68 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 CE 95 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EA 77 00 00 35 04 06 00 AB C1 28 05 A2 97 A0 E4 CA D9 25 BA E8 AF [17:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F9 39 47 00 A2 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 32 30 39 34 32 31 39 10 04 04 00 EA 77 00 00 F4 03 04 00 4E 40 16 67 B6 04 01 00 00 24 17 38 0F 28 8C B6 78 [17:56:26]CommunicateWithHost err = 0 [17:56:26]CheckOFDResponse [17:56:26]1017 (14) - 77093643461234 [17:56:26]1041 (16) - 0000000002094219 [17:56:26]1040 (4) - 30698 [17:56:26]1012 (4) - 21.10.2024 11:51 [17:56:26]1206 (1) - 0 [17:56:26]OFD Sender: Remove packet 30698 [17:56:26]ProducePacketName [17:56:26]name=ofd_packets/00030698 [17:56:26]NVStorageDeleteData [17:56:27]Write to MH i2c: 01 00 00 E3 57 3A [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: 01 07 00 E3 57 00 00 00 00 00 FD 0C 4A [17:56:27]RasterBufferAndPrint [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]line [17:56:27]written 0, free lines is 3331 [17:56:27]MH_Cut [17:56:27]Write to MH i2c: D1 01 00 EA 57 01 13 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 [17:56:27]MH_I2C_Read... [17:56:27]Read from MH i2c: D1 01 00 EA 57 00 12 [17:56:27]Write to MH i2c: 01 00 00 EB 57 42 [17:56:27]Write i2c OK [17:56:27]MH_I2C_Read... [17:56:27]OFD Sender: No OFD packet to send [17:56:27]*** Cut start [17:56:27]*** Partial cut [17:56:27]*** CUTSNS_PIN = 1 [17:56:27]*** CUTSNS_PIN = 0 [17:56:27]*** Brake cut motor [17:56:28]Read from MH i2c: 01 [17:56:28]MH_I2C_Read... [17:56:28]*** Stop cut motor [17:56:28]*** Cut end [17:56:28]Read from MH i2c: 01 07 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: 01 07 00 EB 57 00 00 00 00 00 FF 0F 57 [17:56:28]process_action close_receipt done [17:56:28]requested_data is exist [17:56:28]produce_requested_data [17:56:28]requested_item fm.sn is exist - process it [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 11 00 00 [17:56:28]Write to MH i2c: E2 08 00 EC 57 80 11 00 00 00 00 00 00 BD [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 17 00 EC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0B [17:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:56:28]wFMCommunicate OK [17:56:28]requested_item fd.num is exist - process it [17:56:28]SAM_PROTO_GetFieldsCounters [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 00 00 [17:56:28]Write to MH i2c: E2 08 00 ED 57 80 13 00 00 00 00 00 00 C0 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 62 00 ED 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [17:56:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetFieldsCounters done [17:56:28]requested_item shift.num is exist - process it [17:56:28]requested_item shift.opened is exist - process it [17:56:28]req_shift_opened [17:56:28]FM_GetShiftState [17:56:28]SAM_PROTO_GetShiftState [17:56:28]wFMCommunicate request_size=4 [17:56:28]MH_SAM_APDU [17:56:28]CAPDU: 80 13 01 00 [17:56:28]Write to MH i2c: E2 08 00 EE 57 80 13 01 00 00 00 00 00 C2 [17:56:28]Write i2c OK [17:56:28]MH_I2C_Read... [17:56:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:28]Read from MH i2c: E2 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 [17:56:28]MH_I2C_Read... [17:56:28]Read from MH i2c: E2 0E 00 EE 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3E [17:56:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:56:28]wFMCommunicate OK [17:56:28]SAM_PROTO_GetShiftState done [17:56:28]FM_GetShiftState done [17:56:28]req_shift_opened done [17:56:28]requested_item shift.open_date is exist - process it [17:56:28]req_shift_open_date [17:56:28]req_shift_open_date done [17:56:28]produce_requested_data done [17:56:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30698,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:56:28]process_action_free close_receipt [17:56:28]json_value_free [17:56:28]json_value_free done [17:56:28]process_json_proto returns [17:56:28]Send response to host [17:56:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30698,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:56:28]free response buf [17:56:28]execute_script done [17:56:28]execute_script returns [17:56:28]free content buf [17:56:28]Sock 7.Close socket [17:56:28]Sock 7.Thread stoped [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: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:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [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: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: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:03]accept exits with 9 [17:59:03]New connection [17:59:03]New thread 3067489636 created [17:59:03]Thread 3067346276 joined [17:59:03]Waiting for new connection... [17:59:03] Sock 9.Parse request [17:59:03]Sock 9.Check first char [17:59:03]Sock 9.First char is OK [17:59:03]request: POST /json_proto HTTP/1.0 [17:59:03]Method: POST [17:59:03]URL: /json_proto [17:59:03]Method is POST - this is cgi request [17:59:03]url: /json_proto [17:59:03]query_string will be loaded in cgi processing [17:59:03]execute_cgi json_proto POST (null) [17:59:03]execute_cgi path=json_proto method=POST [17:59:03]POST find Content-Length [17:59:03]Host: 172.17.51.3:8080 [17:59:03]Content-Length: 843 [17:59:03]Content-Type: application/json [17:59:03] [17:59:03]POST finish read [17:59:03]Found Content-Length = 843 [17:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:03]execute_script... [17:59:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:03]POST & json_proto [17:59:03]process_json_proto [17:59:03]json parsed OK: [17:59:03]protocol is kg_v1.0 [17:59:03]action value=close_receipt [17:59:03]process_action close_receipt [17:59:03]cmd_close_receipt [17:59:03]MH_GetDate [17:59:03]Write to MH i2c: F0 00 00 EF 57 35 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 09 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: F0 09 00 EF 57 00 6D 96 16 67 04 C1 95 66 7E [17:59:03]GetLastDocTimeStamp 1729533390 [17:59:03]current date 1729533549 [17:59:03]FM_GetShiftState [17:59:03]SAM_PROTO_GetShiftState [17:59:03]wFMCommunicate request_size=4 [17:59:03]MH_SAM_APDU [17:59:03]CAPDU: 80 13 01 00 [17:59:03]Write to MH i2c: E2 08 00 F0 57 80 13 01 00 00 00 00 00 C4 [17:59:03]Write i2c OK [17:59:03]MH_I2C_Read... [17:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:03]Read from MH i2c: E2 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: E2 0E 00 [17:59:03]MH_I2C_Read... [17:59:03]Read from MH i2c: E2 0E 00 F0 57 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 40 [17:59:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:59:03]wFMCommunicate OK [17:59:03]SAM_PROTO_GetShiftState done [17:59:03]FM_GetShiftState done [17:59:03]opened in 1729471058 [17:59:03]opened+sec_in_day 1729557458 [17:59:03]quantity*price = 300046 [17:59:03]sum+1 = 300048 [17:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 196 21.10.2024 17:59 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30699 ФПД: 194589623666900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175910&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30699&fm=194589623666900&tin=02508201610067®Number=0000000000186857&sum=300047 [17:59:05]StoreToDocumentArchive [17:59:05]shift 115 fd 30699 [17:59:05]save to /storage/0115/doc_00030699 [17:59:05]save last doc name /storage/0115/doc_00030699 to /storage/kkm_last_doc_name [17:59:05]save OK [17:59:05]Clear old archive folders... [17:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:59:05]tlvbuf is B6FD89E0 [17:59:05]SAM_PROTO_ClearQueue [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 09 00 00 [17:59:05]Write to MH i2c: E2 08 00 FD 57 80 09 00 00 00 00 00 00 C6 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 FD 57 00 90 00 C8 [17:59:05]RAPDU: 90 00 [17:59:05]wFMCommunicate OK [17:59:05]SAM_PROTO_ClearQueue done [17:59:05]KKMCreateOFDPacket [17:59:05]OFDProtocolAddRootSTLVToBuf [17:59:05]FM_MakeSignedData [17:59:05]FM_MakeSignedData [17:59:05]SAM_PROTO_SignData [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 0D 01 02 [17:59:05]Write to MH i2c: E2 08 00 FE 57 80 0D 01 02 00 00 00 00 CE [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 FE 57 00 90 00 C9 [17:59:05]RAPDU: 90 00 [17:59:05]wFMCommunicate OK [17:59:05]wFMCommunicate request_size=255 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6E 96 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 77 00 00 35 04 06 00 B0 [17:59:05]Write to MH i2c: E2 02 01 FF 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6E 96 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 77 00 00 35 04 06 00 B0 00 00 12 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 FF 57 00 90 00 CA [17:59:05]RAPDU: 90 00 [17:59:05]wFMCommunicate OK [17:59:05]wFMCommunicate request_size=10 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 0D 02 02 05 FA 6D 65 48 D4 [17:59:05]Write to MH i2c: E2 0D 00 00 58 80 0D 02 02 05 00 FA 6D 65 48 D4 00 00 C4 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:05]Read from MH i2c: E2 03 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 03 00 00 58 00 90 00 CC [17:59:05]RAPDU: 90 00 [17:59:05]wFMCommunicate OK [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 0D 03 02 [17:59:05]Write to MH i2c: E2 08 00 01 58 80 0D 03 02 00 00 00 00 D4 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0B 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 0B 00 01 58 00 97 C0 14 0C 1E 6C C9 3E 90 00 DD [17:59:05]RAPDU: 97 C0 14 0C 1E 6C C9 3E 90 00 [17:59:05]wFMCommunicate OK [17:59:05]SAM_PROTO_SignData done [17:59:05]FM_MakeSignedData done [17:59:05]CreateOFDProtocolMessage [17:59:05]wFMCommunicate request_size=4 [17:59:05]MH_SAM_APDU [17:59:05]CAPDU: 80 11 00 00 [17:59:05]Write to MH i2c: E2 08 00 02 58 80 11 00 00 00 00 00 00 D4 [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:05]Read from MH i2c: E2 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 17 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: E2 17 00 02 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 22 [17:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:59:05]wFMCommunicate OK [17:59:05]CreateOFDProtocolMessage done [17:59:05]OFDSenderStorePacket 30699 [17:59:05]StoreOFDPacket docnum=30699 [17:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 62 07 01 53 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6E 96 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 77 00 00 35 04 06 00 B0 FA 6D 65 48 D4 97 C0 14 0C 1E 6C C9 3E [17:59:05]CheckFolder [17:59:05]dirname=/storage/ofd_packets [17:59:05]CheckFolder done [17:59:05]ProducePacketName [17:59:05]name=ofd_packets/00030699 [17:59:05]NVStorageSaveData ofd_packets/00030699 [17:59:05]File name is /storage/ofd_packets/00030699 [17:59:05]Write 301 bytes [17:59:05]NVStorageSaveData done [17:59:05]OFDSenderStorePacket done [17:59:05]KKMCreateOFDPacket done [17:59:05]NVStorageSaveData kkm_last_timestamp [17:59:05]File name is /storage/kkm_last_timestamp [17:59:05]Write 4 bytes [17:59:05]NVStorageSaveData done [17:59:05]ExternCall_PrintAddStr [17:59:05]wPrintStart [17:59:05]Write to MH i2c: 01 00 00 03 58 5B [17:59:05]Write i2c OK [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 07 00 [17:59:05]MH_I2C_Read... [17:59:05]Read from MH i2c: 01 07 00 03 58 00 00 00 00 00 FF 0F 70 [17:59:05]RasterBufferAndPrint [17:59:05]line Счет N : (1)343111 [17:59:05]line ИНН: 02508201610067 [17:59:05]line Контрольно-Кассовый Чек [17:59:05]line ПРОДАЖА [17:59:05]line ТРК (МРК, ГНК) : 53 [17:59:05]line Товар: 2710124130 [17:59:05]line Аи-92-К-2 [17:59:05]line 44.850 * 66.90 [17:59:05]line = 3000.47 [17:59:05]line НДС 12% НСП 1% [17:59:05]line > о реализуемом товаре [17:59:05]line ИТОГО: 3000.47 [17:59:05]line НСП 1% : 26.55 [17:59:05]line НДС 12% : 318.63 [17:59:05]line Наличными: 0.00 [17:59:05]line Безнал.: 3000.47 [17:59:05]line Место: АЗС № 78 "Партнер Нефть" [17:59:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [17:59:05]line СНО: Общий режим [17:59:05]line Чек 196 21.10.2024 17:59 [17:59:05]line Смена: 115 ФФД: 1.0 [17:59:05]line ЗНМ: 0300000137 [17:59:05]line РНМ: 0000000000186857 [17:59:05]line Версия ККМ: v1.0 [17:59:05]line Платежная система: АКБ Кыргызстан [17:59:05]line ФМ: 0000000002094219 [17:59:05]line ФД: 30699 [17:59:05]line ФПД: 194589623666900 [17:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175910&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30699&fm=194589623666900&tin=02508201610067®Number=0000000000186857&sum=300047 [17:59:05]OFD Sender: Processing packet 30699 [packets to send 10, broken 9] [17:59:05]ProducePacketName [17:59:05]name=ofd_packets/00030699 [17:59:05]OFD Sender: To server: pG, [17:59:05]CommunicateWithHost lk.salyk.kg:30040 [17:59:05]ConnectInit lk.salyk.kg [17:59:05]written 0, free lines is 4095 [17:59:06]Connected sock=10 [17:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 52 62 07 01 53 BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 6E 96 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 77 00 00 35 04 06 00 B0 FA 6D 65 48 D4 97 C0 14 0C 1E 6C C9 3E [17:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CC 8B 47 00 D8 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EB 77 00 00 F4 03 04 00 ED 40 16 67 B6 04 01 00 00 74 34 4F BD 42 B2 FC 34 [17:59:06]CommunicateWithHost err = 0 [17:59:06]CheckOFDResponse [17:59:06]1017 (14) - 77093643461234 [17:59:06]1041 (16) - 0000000002094219 [17:59:06]1040 (4) - 30699 [17:59:06]1012 (4) - 21.10.2024 11:54 [17:59:06]1206 (1) - 0 [17:59:06]OFD Sender: Remove packet 30699 [17:59:06]ProducePacketName [17:59:06]name=ofd_packets/00030699 [17:59:06]NVStorageDeleteData [17:59:06]Write to MH i2c: 01 00 00 2D 58 85 [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 07 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: 01 07 00 2D 58 00 00 00 00 00 11 0D AA [17:59:06]RasterBufferAndPrint [17:59:06]line [17:59:06]line [17:59:06]line [17:59:06]line [17:59:06]line [17:59:06]written 0, free lines is 3352 [17:59:06]MH_Cut [17:59:06]Write to MH i2c: D1 01 00 34 58 01 5E [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: D1 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: D1 01 00 [17:59:06]MH_I2C_Read... [17:59:06]Read from MH i2c: D1 01 00 34 58 00 5D [17:59:06]Write to MH i2c: 01 00 00 35 58 8D [17:59:06]Write i2c OK [17:59:06]MH_I2C_Read... [17:59:06]OFD Sender: No OFD packet to send [17:59:07]*** Cut start [17:59:07]*** Partial cut [17:59:07]*** CUTSNS_PIN = 1 [17:59:07]*** CUTSNS_PIN = 0 [17:59:07]*** Brake cut motor [17:59:07]Read from MH i2c: 01 [17:59:07]MH_I2C_Read... [17:59:07]*** Stop cut motor [17:59:07]*** Cut end [17:59:07]Read from MH i2c: 01 07 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: 01 07 00 35 58 00 00 00 00 00 FF 0F A2 [17:59:07]process_action close_receipt done [17:59:07]requested_data is exist [17:59:07]produce_requested_data [17:59:07]requested_item fm.sn is exist - process it [17:59:07]wFMCommunicate request_size=4 [17:59:07]MH_SAM_APDU [17:59:07]CAPDU: 80 11 00 00 [17:59:07]Write to MH i2c: E2 08 00 36 58 80 11 00 00 00 00 00 00 08 [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:07]Read from MH i2c: E2 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 17 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 17 00 36 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 56 [17:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [17:59:07]wFMCommunicate OK [17:59:07]requested_item fd.num is exist - process it [17:59:07]SAM_PROTO_GetFieldsCounters [17:59:07]wFMCommunicate request_size=4 [17:59:07]MH_SAM_APDU [17:59:07]CAPDU: 80 13 00 00 [17:59:07]Write to MH i2c: E2 08 00 37 58 80 13 00 00 00 00 00 00 0B [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:07]Read from MH i2c: E2 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 62 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 62 00 37 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [17:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:07]wFMCommunicate OK [17:59:07]SAM_PROTO_GetFieldsCounters done [17:59:07]requested_item shift.num is exist - process it [17:59:07]requested_item shift.opened is exist - process it [17:59:07]req_shift_opened [17:59:07]FM_GetShiftState [17:59:07]SAM_PROTO_GetShiftState [17:59:07]wFMCommunicate request_size=4 [17:59:07]MH_SAM_APDU [17:59:07]CAPDU: 80 13 01 00 [17:59:07]Write to MH i2c: E2 08 00 38 58 80 13 01 00 00 00 00 00 0D [17:59:07]Write i2c OK [17:59:07]MH_I2C_Read... [17:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:07]Read from MH i2c: E2 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 0E 00 [17:59:07]MH_I2C_Read... [17:59:07]Read from MH i2c: E2 0E 00 38 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 89 [17:59:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [17:59:07]wFMCommunicate OK [17:59:07]SAM_PROTO_GetShiftState done [17:59:07]FM_GetShiftState done [17:59:07]req_shift_opened done [17:59:07]requested_item shift.open_date is exist - process it [17:59:07]req_shift_open_date [17:59:07]req_shift_open_date done [17:59:07]produce_requested_data done [17:59:07]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30699,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [17:59:07]process_action_free close_receipt [17:59:07]json_value_free [17:59:07]json_value_free done [17:59:07]process_json_proto returns [17:59:07]Send response to host [17:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30699,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [17:59:07]free response buf [17:59:07]execute_script done [17:59:07]execute_script returns [17:59:07]free content buf [17:59:07]Sock 9.Close socket [17:59:07]Sock 9.Thread stoped [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:43]accept exits with 7 [18:01:43]New connection [18:01:43]New thread 3067346276 created [18:01:43]Thread 3067489636 joined [18:01:43]Waiting for new connection... [18:01:43] Sock 7.Parse request [18:01:43]Sock 7.Check first char [18:01:43]Sock 7.First char is OK [18:01:43]request: POST /json_proto HTTP/1.0 [18:01:43]Method: POST [18:01:43]URL: /json_proto [18:01:43]Method is POST - this is cgi request [18:01:43]url: /json_proto [18:01:43]query_string will be loaded in cgi processing [18:01:43]execute_cgi json_proto POST (null) [18:01:43]execute_cgi path=json_proto method=POST [18:01:43]POST find Content-Length [18:01:43]Host: 172.17.51.3:8080 [18:01:43]Content-Length: 682 [18:01:43]Content-Type: application/json [18:01:43] [18:01:43]POST finish read [18:01:43]Found Content-Length = 682 [18:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:43]execute_script... [18:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:43]POST & json_proto [18:01:43]process_json_proto [18:01:43]json parsed OK: [18:01:43]protocol is kg_v1.0 [18:01:43]action value=close_receipt [18:01:43]process_action close_receipt [18:01:43]cmd_close_receipt [18:01:43]MH_GetDate [18:01:43]Write to MH i2c: F0 00 00 39 58 80 [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: F0 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: F0 09 00 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: F0 09 00 39 58 00 0D 97 16 67 04 C1 95 66 6A [18:01:43]GetLastDocTimeStamp 1729533550 [18:01:43]current date 1729533709 [18:01:43]FM_GetShiftState [18:01:43]SAM_PROTO_GetShiftState [18:01:43]wFMCommunicate request_size=4 [18:01:43]MH_SAM_APDU [18:01:43]CAPDU: 80 13 01 00 [18:01:43]Write to MH i2c: E2 08 00 3A 58 80 13 01 00 00 00 00 00 0F [18:01:43]Write i2c OK [18:01:43]MH_I2C_Read... [18:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:43]Read from MH i2c: E2 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: E2 0E 00 [18:01:43]MH_I2C_Read... [18:01:43]Read from MH i2c: E2 0E 00 3A 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8B [18:01:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:01:43]wFMCommunicate OK [18:01:43]SAM_PROTO_GetShiftState done [18:01:43]FM_GetShiftState done [18:01:43]opened in 1729471058 [18:01:43]opened+sec_in_day 1729557458 [18:01:43]quantity*price = 300064 [18:01:43]sum+1 = 300066 [18:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 197 21.10.2024 18:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30700 ФПД: 155770198110388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180149&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30700&fm=155770198110388&tin=02508201610067®Number=0000000000186857&sum=300000 [18:01:44]StoreToDocumentArchive [18:01:44]shift 115 fd 30700 [18:01:44]save to /storage/0115/doc_00030700 [18:01:44]save last doc name /storage/0115/doc_00030700 to /storage/kkm_last_doc_name [18:01:44]save OK [18:01:44]Clear old archive folders... [18:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:44]tlvbuf is 01E0BF50 [18:01:44]SAM_PROTO_ClearQueue [18:01:44]wFMCommunicate request_size=4 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 09 00 00 [18:01:44]Write to MH i2c: E2 08 00 47 58 80 09 00 00 00 00 00 00 11 [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 47 58 00 90 00 13 [18:01:44]RAPDU: 90 00 [18:01:44]wFMCommunicate OK [18:01:44]SAM_PROTO_ClearQueue done [18:01:44]KKMCreateOFDPacket [18:01:44]OFDProtocolAddRootSTLVToBuf [18:01:44]FM_MakeSignedData [18:01:44]FM_MakeSignedData [18:01:44]SAM_PROTO_SignData [18:01:44]wFMCommunicate request_size=4 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 0D 01 02 [18:01:44]Write to MH i2c: E2 08 00 48 58 80 0D 01 02 00 00 00 00 19 [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 48 58 00 90 00 14 [18:01:44]RAPDU: 90 00 [18:01:44]wFMCommunicate OK [18:01:44]wFMCommunicate request_size=255 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 0D 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 77 00 00 35 04 06 00 8D [18:01:44]Write to MH i2c: E2 02 01 49 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 0D 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 77 00 00 35 04 06 00 8D 00 00 25 [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 49 58 00 90 00 15 [18:01:44]RAPDU: 90 00 [18:01:44]wFMCommunicate OK [18:01:44]wFMCommunicate request_size=10 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 0D 02 02 05 AC 13 53 30 B4 [18:01:44]Write to MH i2c: E2 0D 00 4A 58 80 0D 02 02 05 00 AC 13 53 30 B4 00 00 1C [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 03 00 4A 58 00 90 00 16 [18:01:44]RAPDU: 90 00 [18:01:44]wFMCommunicate OK [18:01:44]wFMCommunicate request_size=4 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 0D 03 02 [18:01:44]Write to MH i2c: E2 08 00 4B 58 80 0D 03 02 00 00 00 00 1E [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 0B 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 0B 00 4B 58 00 DC 0C F8 34 46 F0 5C E8 90 00 AD [18:01:44]RAPDU: DC 0C F8 34 46 F0 5C E8 90 00 [18:01:44]wFMCommunicate OK [18:01:44]SAM_PROTO_SignData done [18:01:44]FM_MakeSignedData done [18:01:44]CreateOFDProtocolMessage [18:01:44]wFMCommunicate request_size=4 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 11 00 00 [18:01:44]Write to MH i2c: E2 08 00 4C 58 80 11 00 00 00 00 00 00 1E [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 17 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 17 00 4C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6C [18:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:01:44]wFMCommunicate OK [18:01:44]CreateOFDProtocolMessage done [18:01:44]OFDSenderStorePacket 30700 [18:01:44]StoreOFDPacket docnum=30700 [18:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 81 42 07 01 E4 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 0D 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 77 00 00 35 04 06 00 8D AC 13 53 30 B4 DC 0C F8 34 46 F0 5C E8 [18:01:44]CheckFolder [18:01:44]dirname=/storage/ofd_packets [18:01:44]CheckFolder done [18:01:44]ProducePacketName [18:01:44]name=ofd_packets/00030700 [18:01:44]NVStorageSaveData ofd_packets/00030700 [18:01:44]File name is /storage/ofd_packets/00030700 [18:01:44]Write 301 bytes [18:01:44]NVStorageSaveData done [18:01:44]OFDSenderStorePacket done [18:01:44]KKMCreateOFDPacket done [18:01:44]NVStorageSaveData kkm_last_timestamp [18:01:44]File name is /storage/kkm_last_timestamp [18:01:44]Write 4 bytes [18:01:44]NVStorageSaveData done [18:01:44]ExternCall_PrintAddStr [18:01:44]wPrintStart [18:01:44]Write to MH i2c: 01 00 00 4D 58 A5 [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: 01 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: 01 07 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: 01 07 00 4D 58 00 00 00 00 00 FF 0F BA [18:01:44]RasterBufferAndPrint [18:01:44]line Счет N : (1)343112 [18:01:44]line ИНН: 02508201610067 [18:01:44]line Контрольно-Кассовый Чек [18:01:44]line ПРОДАЖА [18:01:44]line ТРК (МРК, ГНК) : 52 [18:01:44]line Товар: 2710124500 [18:01:44]line Аи-95-К-3 [18:01:44]line 40.440 * 74.20 [18:01:44]line = 3000.65 [18:01:44]line НДС 12% НСП 1% [18:01:44]line > о реализуемом товаре [18:01:44]line ОКРУГЛЕНИЕ: -0.65 [18:01:44]line ИТОГО: 3000.00 [18:01:44]line Внесено: 3000.00 [18:01:44]line СДАЧА: 0.00 [18:01:44]line НСП 1% : 26.55 [18:01:44]line НДС 12% : 318.65 [18:01:44]line Наличными: 3000.00 [18:01:44]line Безнал.: 0.00 [18:01:44]line Место: АЗС № 78 "Партнер Нефть" [18:01:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:01:44]line СНО: Общий режим [18:01:44]line Чек 197 21.10.2024 18:01 [18:01:44]line Смена: 115 ФФД: 1.0 [18:01:44]line ЗНМ: 0300000137 [18:01:44]line РНМ: 0000000000186857 [18:01:44]line Версия ККМ: v1.0 [18:01:44]line ФМ: 0000000002094219 [18:01:44]line ФД: 30700 [18:01:44]line ФПД: 155770198110388 [18:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180149&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30700&fm=155770198110388&tin=02508201610067®Number=0000000000186857&sum=300000 [18:01:45]OFD Sender: Processing packet 30700 [packets to send 10, broken 9] [18:01:45]ProducePacketName [18:01:45]name=ofd_packets/00030700 [18:01:45]OFD Sender: To server: pG, [18:01:45]CommunicateWithHost lk.salyk.kg:30040 [18:01:45]ConnectInit lk.salyk.kg [18:01:45]written 0, free lines is 4095 [18:01:45]Connected sock=10 [18:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 81 42 07 01 E4 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 0D 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EC 77 00 00 35 04 06 00 8D AC 13 53 30 B4 DC 0C F8 34 46 F0 5C E8 [18:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 53 27 47 00 40 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 32 30 39 34 32 31 39 10 04 04 00 EC 77 00 00 F4 03 04 00 8D 41 16 67 B6 04 01 00 00 14 6F E2 EB E5 3D 3B 87 [18:01:45]CommunicateWithHost err = 0 [18:01:45]CheckOFDResponse [18:01:45]1017 (14) - 77093643461234 [18:01:45]1041 (16) - 0000000002094219 [18:01:45]1040 (4) - 30700 [18:01:45]1012 (4) - 21.10.2024 11:57 [18:01:45]1206 (1) - 0 [18:01:45]OFD Sender: Remove packet 30700 [18:01:45]ProducePacketName [18:01:45]name=ofd_packets/00030700 [18:01:45]NVStorageDeleteData [18:01:45]Write to MH i2c: 01 00 00 78 58 D0 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: 01 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: 01 07 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: 01 07 00 78 58 00 00 00 00 00 F3 0C D6 [18:01:45]RasterBufferAndPrint [18:01:45]line [18:01:45]line [18:01:45]line [18:01:45]line [18:01:45]line [18:01:45]written 0, free lines is 3321 [18:01:45]MH_Cut [18:01:45]Write to MH i2c: D1 01 00 7F 58 01 A9 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: D1 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: D1 01 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: D1 01 00 7F 58 00 A8 [18:01:45]Write to MH i2c: 01 00 00 80 58 D8 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:46]OFD Sender: No OFD packet to send [18:01:46]*** Cut start [18:01:46]*** Partial cut [18:01:46]*** CUTSNS_PIN = 1 [18:01:46]*** CUTSNS_PIN = 0 [18:01:46]*** Brake cut motor [18:01:47]Read from MH i2c: 01 [18:01:47]MH_I2C_Read... [18:01:47]*** Stop cut motor [18:01:47]*** Cut end [18:01:47]Read from MH i2c: 01 07 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: 01 07 00 80 58 00 00 00 00 00 FF 0F ED [18:01:47]process_action close_receipt done [18:01:47]requested_data is exist [18:01:47]produce_requested_data [18:01:47]requested_item fm.sn is exist - process it [18:01:47]wFMCommunicate request_size=4 [18:01:47]MH_SAM_APDU [18:01:47]CAPDU: 80 11 00 00 [18:01:47]Write to MH i2c: E2 08 00 81 58 80 11 00 00 00 00 00 00 53 [18:01:47]Write i2c OK [18:01:47]MH_I2C_Read... [18:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:47]Read from MH i2c: E2 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 17 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 17 00 81 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A1 [18:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:01:47]wFMCommunicate OK [18:01:47]requested_item fd.num is exist - process it [18:01:47]SAM_PROTO_GetFieldsCounters [18:01:47]wFMCommunicate request_size=4 [18:01:47]MH_SAM_APDU [18:01:47]CAPDU: 80 13 00 00 [18:01:47]Write to MH i2c: E2 08 00 82 58 80 13 00 00 00 00 00 00 56 [18:01:47]Write i2c OK [18:01:47]MH_I2C_Read... [18:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:47]Read from MH i2c: E2 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 62 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 62 00 82 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:47]wFMCommunicate OK [18:01:47]SAM_PROTO_GetFieldsCounters done [18:01:47]requested_item shift.num is exist - process it [18:01:47]requested_item shift.opened is exist - process it [18:01:47]req_shift_opened [18:01:47]FM_GetShiftState [18:01:47]SAM_PROTO_GetShiftState [18:01:47]wFMCommunicate request_size=4 [18:01:47]MH_SAM_APDU [18:01:47]CAPDU: 80 13 01 00 [18:01:47]Write to MH i2c: E2 08 00 83 58 80 13 01 00 00 00 00 00 58 [18:01:47]Write i2c OK [18:01:47]MH_I2C_Read... [18:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:47]Read from MH i2c: E2 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 0E 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 0E 00 83 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D4 [18:01:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:01:47]wFMCommunicate OK [18:01:47]SAM_PROTO_GetShiftState done [18:01:47]FM_GetShiftState done [18:01:47]req_shift_opened done [18:01:47]requested_item shift.open_date is exist - process it [18:01:47]req_shift_open_date [18:01:47]req_shift_open_date done [18:01:47]produce_requested_data done [18:01:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30700,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:01:47]process_action_free close_receipt [18:01:47]json_value_free [18:01:47]json_value_free done [18:01:47]process_json_proto returns [18:01:47]Send response to host [18:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30700,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:01:47]free response buf [18:01:47]execute_script done [18:01:47]execute_script returns [18:01:47]free content buf [18:01:47]Sock 7.Close socket [18:01:47]Sock 7.Thread stoped [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:37]accept exits with 9 [18:03:37]New connection [18:03:37]New thread 3067489636 created [18:03:37]Thread 3067346276 joined [18:03:37]Waiting for new connection... [18:03:37] Sock 9.Parse request [18:03:37]Sock 9.Check first char [18:03:37]Sock 9.First char is OK [18:03:37]request: POST /json_proto HTTP/1.0 [18:03:37]Method: POST [18:03:37]URL: /json_proto [18:03:37]Method is POST - this is cgi request [18:03:37]url: /json_proto [18:03:37]query_string will be loaded in cgi processing [18:03:37]execute_cgi json_proto POST (null) [18:03:37]execute_cgi path=json_proto method=POST [18:03:37]POST find Content-Length [18:03:37]Host: 172.17.51.3:8080 [18:03:37]Content-Length: 688 [18:03:37]Content-Type: application/json [18:03:37] [18:03:37]POST finish read [18:03:37]Found Content-Length = 688 [18:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:37]execute_script... [18:03:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 25.910, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:37]POST & json_proto [18:03:37]process_json_proto [18:03:37]json parsed OK: [18:03:37]protocol is kg_v1.0 [18:03:37]action value=close_receipt [18:03:37]process_action close_receipt [18:03:37]cmd_close_receipt [18:03:37]MH_GetDate [18:03:37]Write to MH i2c: F0 00 00 84 58 CB [18:03:37]Write i2c OK [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: F0 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: F0 09 00 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: F0 09 00 84 58 00 7F 97 16 67 04 C1 95 66 27 [18:03:37]GetLastDocTimeStamp 1729533709 [18:03:37]current date 1729533823 [18:03:37]FM_GetShiftState [18:03:37]SAM_PROTO_GetShiftState [18:03:37]wFMCommunicate request_size=4 [18:03:37]MH_SAM_APDU [18:03:37]CAPDU: 80 13 01 00 [18:03:37]Write to MH i2c: E2 08 00 85 58 80 13 01 00 00 00 00 00 5A [18:03:37]Write i2c OK [18:03:37]MH_I2C_Read... [18:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:37]Read from MH i2c: E2 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: E2 0E 00 [18:03:37]MH_I2C_Read... [18:03:37]Read from MH i2c: E2 0E 00 85 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D6 [18:03:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:03:37]wFMCommunicate OK [18:03:37]SAM_PROTO_GetShiftState done [18:03:37]FM_GetShiftState done [18:03:37]opened in 1729471058 [18:03:37]opened+sec_in_day 1729557458 [18:03:37]quantity*price = 200025 [18:03:37]sum+1 = 200026 [18:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 198 21.10.2024 18:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30701 ФПД: 45977788157605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30701&fm=45977788157605&tin=02508201610067®Number=0000000000186857&sum=200000 [18:03:38]StoreToDocumentArchive [18:03:38]shift 115 fd 30701 [18:03:38]save to /storage/0115/doc_00030701 [18:03:38]save last doc name /storage/0115/doc_00030701 to /storage/kkm_last_doc_name [18:03:38]save OK [18:03:38]Clear old archive folders... [18:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:03:38]tlvbuf is 01E85B70 [18:03:38]SAM_PROTO_ClearQueue [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 09 00 00 [18:03:38]Write to MH i2c: E2 08 00 92 58 80 09 00 00 00 00 00 00 5C [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 92 58 00 90 00 5E [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]SAM_PROTO_ClearQueue done [18:03:38]KKMCreateOFDPacket [18:03:38]OFDProtocolAddRootSTLVToBuf [18:03:38]FM_MakeSignedData [18:03:38]FM_MakeSignedData [18:03:38]SAM_PROTO_SignData [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 01 02 [18:03:38]Write to MH i2c: E2 08 00 93 58 80 0D 01 02 00 00 00 00 64 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 93 58 00 90 00 5F [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=255 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 77 00 [18:03:38]Write to MH i2c: E2 02 01 94 58 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 77 00 00 00 32 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 94 58 00 90 00 60 [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=16 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 29 D1 09 BB 0E A5 [18:03:38]Write to MH i2c: E2 13 00 95 58 80 0D 02 02 0B 00 00 35 04 06 00 29 D1 09 BB 0E A5 00 00 2D [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 03 00 95 58 00 90 00 61 [18:03:38]RAPDU: 90 00 [18:03:38]wFMCommunicate OK [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 0D 03 02 [18:03:38]Write to MH i2c: E2 08 00 96 58 80 0D 03 02 00 00 00 00 69 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:38]Read from MH i2c: E2 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 0B 00 [18:03:38]MH_I2C_Read... [18:03:38]Read from MH i2c: E2 0B 00 96 58 00 1F FE 7B 81 16 37 2E F4 90 00 F2 [18:03:38]RAPDU: 1F FE 7B 81 16 37 2E F4 90 00 [18:03:38]wFMCommunicate OK [18:03:38]SAM_PROTO_SignData done [18:03:38]FM_MakeSignedData done [18:03:38]CreateOFDProtocolMessage [18:03:38]wFMCommunicate request_size=4 [18:03:38]MH_SAM_APDU [18:03:38]CAPDU: 80 11 00 00 [18:03:38]Write to MH i2c: E2 08 00 97 58 80 11 00 00 00 00 00 00 69 [18:03:38]Write i2c OK [18:03:38]MH_I2C_Read... [18:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:39]Read from MH i2c: E2 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 17 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: E2 17 00 97 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B7 [18:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:39]wFMCommunicate OK [18:03:39]CreateOFDProtocolMessage done [18:03:39]OFDSenderStorePacket 30701 [18:03:39]StoreOFDPacket docnum=30701 [18:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D0 06 0D 01 C8 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 77 00 00 35 04 06 00 29 D1 09 BB 0E A5 1F FE 7B 81 16 37 2E F4 [18:03:39]CheckFolder [18:03:39]dirname=/storage/ofd_packets [18:03:39]CheckFolder done [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00030701 [18:03:39]NVStorageSaveData ofd_packets/00030701 [18:03:39]File name is /storage/ofd_packets/00030701 [18:03:39]Write 307 bytes [18:03:39]NVStorageSaveData done [18:03:39]OFDSenderStorePacket done [18:03:39]KKMCreateOFDPacket done [18:03:39]NVStorageSaveData kkm_last_timestamp [18:03:39]File name is /storage/kkm_last_timestamp [18:03:39]Write 4 bytes [18:03:39]NVStorageSaveData done [18:03:39]ExternCall_PrintAddStr [18:03:39]wPrintStart [18:03:39]Write to MH i2c: 01 00 00 98 58 F0 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 98 58 00 00 00 00 00 FF 0F 05 [18:03:39]RasterBufferAndPrint [18:03:39]line Счет N : (1)343113 [18:03:39]line ИНН: 02508201610067 [18:03:39]line Контрольно-Кассовый Чек [18:03:39]line ПРОДАЖА [18:03:39]line ТРК (МРК, ГНК) : 61 [18:03:39]line Товар: 2710194210 [18:03:39]line D-ENERGY Дт-К-2 [18:03:39]line 25.910 * 77.20 [18:03:39]line = 2000.25 [18:03:39]line НДС 12% НСП 1% [18:03:39]line > о реализуемом товаре [18:03:39]line ОКРУГЛЕНИЕ: -0.25 [18:03:39]line ИТОГО: 2000.00 [18:03:39]line Внесено: 2000.00 [18:03:39]line СДАЧА: 0.00 [18:03:39]line НСП 1% : 17.70 [18:03:39]line НДС 12% : 212.42 [18:03:39]line Наличными: 2000.00 [18:03:39]line Безнал.: 0.00 [18:03:39]line Место: АЗС № 78 "Партнер Нефть" [18:03:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:03:39]line СНО: Общий режим [18:03:39]line Чек 198 21.10.2024 18:03 [18:03:39]line Смена: 115 ФФД: 1.0 [18:03:39]line ЗНМ: 0300000137 [18:03:39]line РНМ: 0000000000186857 [18:03:39]line Версия ККМ: v1.0 [18:03:39]line ФМ: 0000000002094219 [18:03:39]line ФД: 30701 [18:03:39]line ФПД: 45977788157605 [18:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180343&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30701&fm=45977788157605&tin=02508201610067®Number=0000000000186857&sum=200000 [18:03:39]OFD Sender: Processing packet 30701 [packets to send 10, broken 9] [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00030701 [18:03:39]OFD Sender: To server: pG, [18:03:39]CommunicateWithHost lk.salyk.kg:30040 [18:03:39]ConnectInit lk.salyk.kg [18:03:39]written 0, free lines is 4095 [18:03:39]Connected sock=10 [18:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D0 06 0D 01 C8 34 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 7F 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 ED 77 00 00 35 04 06 00 29 D1 09 BB 0E A5 1F FE 7B 81 16 37 2E F4 [18:03:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 51 C7 47 00 39 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 32 30 39 34 32 31 39 10 04 04 00 ED 77 00 00 F4 03 04 00 FF 41 16 67 B6 04 01 00 00 2C 0F 0E 29 53 51 DB C1 [18:03:39]CommunicateWithHost err = 0 [18:03:39]CheckOFDResponse [18:03:39]1017 (14) - 77093643461234 [18:03:39]1041 (16) - 0000000002094219 [18:03:39]1040 (4) - 30701 [18:03:39]1012 (4) - 21.10.2024 11:58 [18:03:39]1206 (1) - 0 [18:03:39]OFD Sender: Remove packet 30701 [18:03:39]ProducePacketName [18:03:39]name=ofd_packets/00030701 [18:03:39]NVStorageDeleteData [18:03:39]Write to MH i2c: 01 00 00 C3 58 1B [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: 01 07 00 C3 58 00 00 00 00 00 F1 0C 1F [18:03:39]RasterBufferAndPrint [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]line [18:03:39]written 0, free lines is 3319 [18:03:39]MH_Cut [18:03:39]Write to MH i2c: D1 01 00 CA 58 01 F4 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 01 00 [18:03:39]MH_I2C_Read... [18:03:39]Read from MH i2c: D1 01 00 CA 58 00 F3 [18:03:39]Write to MH i2c: 01 00 00 CB 58 23 [18:03:39]Write i2c OK [18:03:39]MH_I2C_Read... [18:03:40]OFD Sender: No OFD packet to send [18:03:40]*** Cut start [18:03:40]*** Partial cut [18:03:40]*** CUTSNS_PIN = 1 [18:03:40]*** CUTSNS_PIN = 0 [18:03:40]*** Brake cut motor [18:03:41]Read from MH i2c: 01 [18:03:41]MH_I2C_Read... [18:03:41]*** Stop cut motor [18:03:41]*** Cut end [18:03:41]Read from MH i2c: 01 07 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: 01 07 00 CB 58 00 00 00 00 00 FF 0F 38 [18:03:41]process_action close_receipt done [18:03:41]requested_data is exist [18:03:41]produce_requested_data [18:03:41]requested_item fm.sn is exist - process it [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 11 00 00 [18:03:41]Write to MH i2c: E2 08 00 CC 58 80 11 00 00 00 00 00 00 9E [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 17 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 17 00 CC 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EC [18:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:03:41]wFMCommunicate OK [18:03:41]requested_item fd.num is exist - process it [18:03:41]SAM_PROTO_GetFieldsCounters [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 13 00 00 [18:03:41]Write to MH i2c: E2 08 00 CD 58 80 13 00 00 00 00 00 00 A1 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 62 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 62 00 CD 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 ED 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [18:03:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 ED 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:41]wFMCommunicate OK [18:03:41]SAM_PROTO_GetFieldsCounters done [18:03:41]requested_item shift.num is exist - process it [18:03:41]requested_item shift.opened is exist - process it [18:03:41]req_shift_opened [18:03:41]FM_GetShiftState [18:03:41]SAM_PROTO_GetShiftState [18:03:41]wFMCommunicate request_size=4 [18:03:41]MH_SAM_APDU [18:03:41]CAPDU: 80 13 01 00 [18:03:41]Write to MH i2c: E2 08 00 CE 58 80 13 01 00 00 00 00 00 A3 [18:03:41]Write i2c OK [18:03:41]MH_I2C_Read... [18:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:41]Read from MH i2c: E2 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 [18:03:41]MH_I2C_Read... [18:03:41]Read from MH i2c: E2 0E 00 CE 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1F [18:03:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:03:41]wFMCommunicate OK [18:03:41]SAM_PROTO_GetShiftState done [18:03:41]FM_GetShiftState done [18:03:41]req_shift_opened done [18:03:41]requested_item shift.open_date is exist - process it [18:03:41]req_shift_open_date [18:03:41]req_shift_open_date done [18:03:41]produce_requested_data done [18:03:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30701,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:03:41]process_action_free close_receipt [18:03:41]json_value_free [18:03:41]json_value_free done [18:03:41]process_json_proto returns [18:03:41]Send response to host [18:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30701,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:03:41]free response buf [18:03:41]execute_script done [18:03:41]execute_script returns [18:03:41]free content buf [18:03:41]Sock 9.Close socket [18:03:41]Sock 9.Thread stoped [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:47]accept exits with 7 [18:04:47]New connection [18:04:47]New thread 3067346276 created [18:04:47]Thread 3067489636 joined [18:04:47]Waiting for new connection... [18:04:47] Sock 7.Parse request [18:04:47]Sock 7.Check first char [18:04:47]Sock 7.First char is OK [18:04:47]request: POST /json_proto HTTP/1.0 [18:04:47]Method: POST [18:04:47]URL: /json_proto [18:04:47]Method is POST - this is cgi request [18:04:47]url: /json_proto [18:04:47]query_string will be loaded in cgi processing [18:04:47]execute_cgi json_proto POST (null) [18:04:47]execute_cgi path=json_proto method=POST [18:04:47]POST find Content-Length [18:04:47]Host: 172.17.51.3:8080 [18:04:47]Content-Length: 678 [18:04:47]Content-Type: application/json [18:04:47] [18:04:47]POST finish read [18:04:47]Found Content-Length = 678 [18:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.370, "sum" : 760.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:47]execute_script... [18:04:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.370, "sum" : 760.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:47]POST & json_proto [18:04:47]process_json_proto [18:04:47]json parsed OK: [18:04:47]protocol is kg_v1.0 [18:04:47]action value=close_receipt [18:04:47]process_action close_receipt [18:04:47]cmd_close_receipt [18:04:47]MH_GetDate [18:04:47]Write to MH i2c: F0 00 00 CF 58 16 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: F0 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: F0 09 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: F0 09 00 CF 58 00 C5 97 16 67 04 C1 95 66 B8 [18:04:47]GetLastDocTimeStamp 1729533823 [18:04:47]current date 1729533893 [18:04:47]FM_GetShiftState [18:04:47]SAM_PROTO_GetShiftState [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 13 01 00 [18:04:47]Write to MH i2c: E2 08 00 D0 58 80 13 01 00 00 00 00 00 A5 [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0E 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0E 00 D0 58 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 21 [18:04:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:04:47]wFMCommunicate OK [18:04:47]SAM_PROTO_GetShiftState done [18:04:47]FM_GetShiftState done [18:04:47]opened in 1729471058 [18:04:47]opened+sec_in_day 1729557458 [18:04:47]quantity*price = 76065 [18:04:47]sum+1 = 76066 [18:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.78 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 199 21.10.2024 18:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30702 ФПД: 75922968678213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180453&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30702&fm=75922968678213&tin=02508201610067®Number=0000000000186857&sum=76000 [18:04:48]StoreToDocumentArchive [18:04:48]shift 115 fd 30702 [18:04:48]save to /storage/0115/doc_00030702 [18:04:48]save last doc name /storage/0115/doc_00030702 to /storage/kkm_last_doc_name [18:04:48]save OK [18:04:48]Clear old archive folders... [18:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:48]tlvbuf is 01E85B70 [18:04:48]SAM_PROTO_ClearQueue [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 09 00 00 [18:04:48]Write to MH i2c: E2 08 00 DD 58 80 09 00 00 00 00 00 00 A7 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 DD 58 00 90 00 A9 [18:04:48]RAPDU: 90 00 [18:04:48]wFMCommunicate OK [18:04:48]SAM_PROTO_ClearQueue done [18:04:48]KKMCreateOFDPacket [18:04:48]OFDProtocolAddRootSTLVToBuf [18:04:48]FM_MakeSignedData [18:04:48]FM_MakeSignedData [18:04:48]SAM_PROTO_SignData [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 0D 01 02 [18:04:48]Write to MH i2c: E2 08 00 DE 58 80 0D 01 02 00 00 00 00 AF [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 DE 58 00 90 00 AA [18:04:48]RAPDU: 90 00 [18:04:48]wFMCommunicate OK [18:04:48]wFMCommunicate request_size=255 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 77 00 00 35 04 06 00 45 [18:04:48]Write to MH i2c: E2 02 01 DF 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 77 00 00 35 04 06 00 45 00 00 F7 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 DF 58 00 90 00 AB [18:04:48]RAPDU: 90 00 [18:04:48]wFMCommunicate OK [18:04:48]wFMCommunicate request_size=10 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 0D 02 02 05 0D 31 94 0F 45 [18:04:48]Write to MH i2c: E2 0D 00 E0 58 80 0D 02 02 05 00 0D 31 94 0F 45 00 00 E2 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 03 00 E0 58 00 90 00 AC [18:04:48]RAPDU: 90 00 [18:04:48]wFMCommunicate OK [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 0D 03 02 [18:04:48]Write to MH i2c: E2 08 00 E1 58 80 0D 03 02 00 00 00 00 B4 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 0B 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 0B 00 E1 58 00 7A 40 68 6A 67 8E E9 61 90 00 80 [18:04:48]RAPDU: 7A 40 68 6A 67 8E E9 61 90 00 [18:04:48]wFMCommunicate OK [18:04:48]SAM_PROTO_SignData done [18:04:48]FM_MakeSignedData done [18:04:48]CreateOFDProtocolMessage [18:04:48]wFMCommunicate request_size=4 [18:04:48]MH_SAM_APDU [18:04:48]CAPDU: 80 11 00 00 [18:04:48]Write to MH i2c: E2 08 00 E2 58 80 11 00 00 00 00 00 00 B4 [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:48]Read from MH i2c: E2 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 17 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: E2 17 00 E2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 02 [18:04:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:04:48]wFMCommunicate OK [18:04:48]CreateOFDProtocolMessage done [18:04:48]OFDSenderStorePacket 30702 [18:04:48]StoreOFDPacket docnum=30702 [18:04:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 7E 07 01 08 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 77 00 00 35 04 06 00 45 0D 31 94 0F 45 7A 40 68 6A 67 8E E9 61 [18:04:48]CheckFolder [18:04:48]dirname=/storage/ofd_packets [18:04:48]CheckFolder done [18:04:48]ProducePacketName [18:04:48]name=ofd_packets/00030702 [18:04:48]NVStorageSaveData ofd_packets/00030702 [18:04:48]File name is /storage/ofd_packets/00030702 [18:04:48]Write 301 bytes [18:04:48]NVStorageSaveData done [18:04:48]OFDSenderStorePacket done [18:04:48]KKMCreateOFDPacket done [18:04:48]NVStorageSaveData kkm_last_timestamp [18:04:48]File name is /storage/kkm_last_timestamp [18:04:48]Write 4 bytes [18:04:48]NVStorageSaveData done [18:04:48]ExternCall_PrintAddStr [18:04:48]wPrintStart [18:04:48]Write to MH i2c: 01 00 00 E3 58 3B [18:04:48]Write i2c OK [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: 01 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: 01 07 00 [18:04:48]MH_I2C_Read... [18:04:48]Read from MH i2c: 01 07 00 E3 58 00 00 00 00 00 FF 0F 50 [18:04:48]RasterBufferAndPrint [18:04:48]line Счет N : (1)343114 [18:04:48]line ИНН: 02508201610067 [18:04:48]line Контрольно-Кассовый Чек [18:04:48]line ПРОДАЖА [18:04:48]line ТРК (МРК, ГНК) : 43 [18:04:48]line Товар: 2710124130 [18:04:48]line Аи-92-К-2 [18:04:48]line 11.370 * 66.90 [18:04:48]line = 760.65 [18:04:48]line НДС 12% НСП 1% [18:04:48]line > о реализуемом товаре [18:04:48]line ОКРУГЛЕНИЕ: -0.65 [18:04:48]line ИТОГО: 760.00 [18:04:48]line Внесено: 760.00 [18:04:48]line СДАЧА: 0.00 [18:04:48]line НСП 1% : 6.73 [18:04:48]line НДС 12% : 80.78 [18:04:48]line Наличными: 760.00 [18:04:48]line Безнал.: 0.00 [18:04:48]line Место: АЗС № 78 "Партнер Нефть" [18:04:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:04:48]line СНО: Общий режим [18:04:48]line Чек 199 21.10.2024 18:04 [18:04:48]line Смена: 115 ФФД: 1.0 [18:04:48]line ЗНМ: 0300000137 [18:04:48]line РНМ: 0000000000186857 [18:04:48]line Версия ККМ: v1.0 [18:04:48]line ФМ: 0000000002094219 [18:04:48]line ФД: 30702 [18:04:48]line ФПД: 75922968678213 [18:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180453&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30702&fm=75922968678213&tin=02508201610067®Number=0000000000186857&sum=76000 [18:04:49]OFD Sender: Processing packet 30702 [packets to send 10, broken 9] [18:04:49]ProducePacketName [18:04:49]name=ofd_packets/00030702 [18:04:49]OFD Sender: To server: pG, [18:04:49]CommunicateWithHost lk.salyk.kg:30040 [18:04:49]ConnectInit lk.salyk.kg [18:04:49]written 0, free lines is 4095 [18:04:49]Connected sock=11 [18:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 7E 07 01 08 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 C5 97 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 77 00 00 35 04 06 00 45 0D 31 94 0F 45 7A 40 68 6A 67 8E E9 61 [18:04:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 81 4B 47 00 EB F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EE 77 00 00 F4 03 04 00 45 42 16 67 B6 04 01 00 00 3D 12 2B A4 5E 18 87 A6 [18:04:49]CommunicateWithHost err = 0 [18:04:49]CheckOFDResponse [18:04:49]1017 (14) - 77093643461234 [18:04:49]1041 (16) - 0000000002094219 [18:04:49]1040 (4) - 30702 [18:04:49]1012 (4) - 21.10.2024 12:00 [18:04:49]1206 (1) - 0 [18:04:49]OFD Sender: Remove packet 30702 [18:04:49]ProducePacketName [18:04:49]name=ofd_packets/00030702 [18:04:49]NVStorageDeleteData [18:04:49]Write to MH i2c: 01 00 00 0E 59 67 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: 01 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: 01 07 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: 01 07 00 0E 59 00 00 00 00 00 F1 0C 6B [18:04:49]RasterBufferAndPrint [18:04:49]line [18:04:49]line [18:04:49]line [18:04:49]line [18:04:49]line [18:04:49]written 0, free lines is 3319 [18:04:49]MH_Cut [18:04:49]Write to MH i2c: D1 01 00 15 59 01 40 [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: D1 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: D1 01 00 [18:04:49]MH_I2C_Read... [18:04:49]Read from MH i2c: D1 01 00 15 59 00 3F [18:04:49]Write to MH i2c: 01 00 00 16 59 6F [18:04:49]Write i2c OK [18:04:49]MH_I2C_Read... [18:04:49]OFD Sender: No OFD packet to send [18:04:50]*** Cut start [18:04:50]*** Partial cut [18:04:50]*** CUTSNS_PIN = 1 [18:04:50]*** CUTSNS_PIN = 0 [18:04:50]*** Brake cut motor [18:04:50]Read from MH i2c: 01 [18:04:50]MH_I2C_Read... [18:04:50]*** Stop cut motor [18:04:50]*** Cut end [18:04:50]Read from MH i2c: 01 07 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: 01 07 00 16 59 00 00 00 00 00 FF 0F 84 [18:04:50]process_action close_receipt done [18:04:50]requested_data is exist [18:04:50]produce_requested_data [18:04:50]requested_item fm.sn is exist - process it [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 11 00 00 [18:04:50]Write to MH i2c: E2 08 00 17 59 80 11 00 00 00 00 00 00 EA [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 17 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 17 00 17 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 38 [18:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:04:50]wFMCommunicate OK [18:04:50]requested_item fd.num is exist - process it [18:04:50]SAM_PROTO_GetFieldsCounters [18:04:50]wFMCommunicate request_size=4 [18:04:50]MH_SAM_APDU [18:04:50]CAPDU: 80 13 00 00 [18:04:50]Write to MH i2c: E2 08 00 18 59 80 13 00 00 00 00 00 00 ED [18:04:50]Write i2c OK [18:04:50]MH_I2C_Read... [18:04:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:50]Read from MH i2c: E2 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 62 00 [18:04:50]MH_I2C_Read... [18:04:50]Read from MH i2c: E2 62 00 18 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [18:04:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_GetFieldsCounters done [18:04:51]requested_item shift.num is exist - process it [18:04:51]requested_item shift.opened is exist - process it [18:04:51]req_shift_opened [18:04:51]FM_GetShiftState [18:04:51]SAM_PROTO_GetShiftState [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 13 01 00 [18:04:51]Write to MH i2c: E2 08 00 19 59 80 13 01 00 00 00 00 00 EF [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0E 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0E 00 19 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6B [18:04:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_GetShiftState done [18:04:51]FM_GetShiftState done [18:04:51]req_shift_opened done [18:04:51]requested_item shift.open_date is exist - process it [18:04:51]req_shift_open_date [18:04:51]req_shift_open_date done [18:04:51]produce_requested_data done [18:04:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30702,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:04:51]process_action_free close_receipt [18:04:51]json_value_free [18:04:51]json_value_free done [18:04:51]process_json_proto returns [18:04:51]Send response to host [18:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30702,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:04:51]free response buf [18:04:51]execute_script done [18:04:51]execute_script returns [18:04:51]free content buf [18:04:51]Sock 7.Close socket [18:04:51]Sock 7.Thread stoped [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:46]accept exits with 9 [18:05:46]New connection [18:05:46]New thread 3067489636 created [18:05:46]Thread 3067346276 joined [18:05:46]Waiting for new connection... [18:05:46] Sock 9.Parse request [18:05:46]Sock 9.Check first char [18:05:46]Sock 9.First char is OK [18:05:46]request: POST /json_proto HTTP/1.0 [18:05:46]Method: POST [18:05:46]URL: /json_proto [18:05:46]Method is POST - this is cgi request [18:05:46]url: /json_proto [18:05:46]query_string will be loaded in cgi processing [18:05:46]execute_cgi json_proto POST (null) [18:05:46]execute_cgi path=json_proto method=POST [18:05:46]POST find Content-Length [18:05:46]Host: 172.17.51.3:8080 [18:05:46]Content-Length: 677 [18:05:46]Content-Type: application/json [18:05:46] [18:05:46]POST finish read [18:05:46]Found Content-Length = 677 [18:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:46]execute_script... [18:05:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:46]POST & json_proto [18:05:46]process_json_proto [18:05:46]json parsed OK: [18:05:46]protocol is kg_v1.0 [18:05:46]action value=close_receipt [18:05:46]process_action close_receipt [18:05:46]cmd_close_receipt [18:05:46]MH_GetDate [18:05:46]Write to MH i2c: F0 00 00 1A 59 62 [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: F0 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: F0 09 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: F0 09 00 1A 59 00 00 98 16 67 04 C1 95 66 40 [18:05:46]GetLastDocTimeStamp 1729533893 [18:05:46]current date 1729533952 [18:05:46]FM_GetShiftState [18:05:46]SAM_PROTO_GetShiftState [18:05:46]wFMCommunicate request_size=4 [18:05:46]MH_SAM_APDU [18:05:46]CAPDU: 80 13 01 00 [18:05:46]Write to MH i2c: E2 08 00 1B 59 80 13 01 00 00 00 00 00 F1 [18:05:46]Write i2c OK [18:05:46]MH_I2C_Read... [18:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:46]Read from MH i2c: E2 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 0E 00 [18:05:46]MH_I2C_Read... [18:05:46]Read from MH i2c: E2 0E 00 1B 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6D [18:05:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:05:46]wFMCommunicate OK [18:05:46]SAM_PROTO_GetShiftState done [18:05:46]FM_GetShiftState done [18:05:46]opened in 1729471058 [18:05:46]opened+sec_in_day 1729557458 [18:05:46]quantity*price = 50041 [18:05:46]sum+1 = 50042 [18:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 200 21.10.2024 18:05 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30703 ФПД: 180040262188986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30703&fm=180040262188986&tin=02508201610067®Number=0000000000186857&sum=50000 [18:05:47]StoreToDocumentArchive [18:05:47]shift 115 fd 30703 [18:05:47]save to /storage/0115/doc_00030703 [18:05:47]save last doc name /storage/0115/doc_00030703 to /storage/kkm_last_doc_name [18:05:47]save OK [18:05:47]Clear old archive folders... [18:05:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:47]tlvbuf is 01F3CC60 [18:05:47]SAM_PROTO_ClearQueue [18:05:47]wFMCommunicate request_size=4 [18:05:47]MH_SAM_APDU [18:05:47]CAPDU: 80 09 00 00 [18:05:47]Write to MH i2c: E2 08 00 28 59 80 09 00 00 00 00 00 00 F3 [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:47]Read from MH i2c: E2 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 03 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 03 00 28 59 00 90 00 F5 [18:05:47]RAPDU: 90 00 [18:05:47]wFMCommunicate OK [18:05:47]SAM_PROTO_ClearQueue done [18:05:47]KKMCreateOFDPacket [18:05:47]OFDProtocolAddRootSTLVToBuf [18:05:47]FM_MakeSignedData [18:05:47]FM_MakeSignedData [18:05:47]SAM_PROTO_SignData [18:05:47]wFMCommunicate request_size=4 [18:05:47]MH_SAM_APDU [18:05:47]CAPDU: 80 0D 01 02 [18:05:47]Write to MH i2c: E2 08 00 29 59 80 0D 01 02 00 00 00 00 FB [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:47]Read from MH i2c: E2 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 03 00 [18:05:47]MH_I2C_Read... [18:05:47]Read from MH i2c: E2 03 00 29 59 00 90 00 F6 [18:05:47]RAPDU: 90 00 [18:05:47]wFMCommunicate OK [18:05:47]wFMCommunicate request_size=255 [18:05:47]MH_SAM_APDU [18:05:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 00 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 77 00 00 35 04 06 00 A3 [18:05:47]Write to MH i2c: E2 02 01 2A 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 00 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 77 00 00 35 04 06 00 A3 00 00 E5 [18:05:47]Write i2c OK [18:05:47]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 2A 59 00 90 00 F7 [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=10 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 02 02 05 BE E3 DF 7F BA [18:05:48]Write to MH i2c: E2 0D 00 2B 59 80 0D 02 02 05 00 BE E3 DF 7F BA 00 00 C1 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 03 00 2B 59 00 90 00 F8 [18:05:48]RAPDU: 90 00 [18:05:48]wFMCommunicate OK [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 0D 03 02 [18:05:48]Write to MH i2c: E2 08 00 2C 59 80 0D 03 02 00 00 00 00 00 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0B 00 2C 59 00 B9 89 C9 B2 EF 85 42 DA 90 00 4E [18:05:48]RAPDU: B9 89 C9 B2 EF 85 42 DA 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_SignData done [18:05:48]FM_MakeSignedData done [18:05:48]CreateOFDProtocolMessage [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 11 00 00 [18:05:48]Write to MH i2c: E2 08 00 2D 59 80 11 00 00 00 00 00 00 00 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 17 00 2D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4E [18:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:05:48]wFMCommunicate OK [18:05:48]CreateOFDProtocolMessage done [18:05:48]OFDSenderStorePacket 30703 [18:05:48]StoreOFDPacket docnum=30703 [18:05:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 80 A4 07 01 7B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 00 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 77 00 00 35 04 06 00 A3 BE E3 DF 7F BA B9 89 C9 B2 EF 85 42 DA [18:05:48]CheckFolder [18:05:48]dirname=/storage/ofd_packets [18:05:48]CheckFolder done [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00030703 [18:05:48]NVStorageSaveData ofd_packets/00030703 [18:05:48]File name is /storage/ofd_packets/00030703 [18:05:48]Write 301 bytes [18:05:48]NVStorageSaveData done [18:05:48]OFDSenderStorePacket done [18:05:48]KKMCreateOFDPacket done [18:05:48]NVStorageSaveData kkm_last_timestamp [18:05:48]File name is /storage/kkm_last_timestamp [18:05:48]Write 4 bytes [18:05:48]NVStorageSaveData done [18:05:48]ExternCall_PrintAddStr [18:05:48]wPrintStart [18:05:48]Write to MH i2c: 01 00 00 2E 59 87 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: 01 07 00 2E 59 00 00 00 00 00 FF 0F 9C [18:05:48]RasterBufferAndPrint [18:05:48]line Счет N : (1)343116 [18:05:48]line ИНН: 02508201610067 [18:05:48]line Контрольно-Кассовый Чек [18:05:48]line ПРОДАЖА [18:05:48]line ТРК (МРК, ГНК) : 33 [18:05:48]line Товар: 2710124130 [18:05:48]line Аи-92-К-2 [18:05:48]line 7.480 * 66.90 [18:05:48]line = 500.41 [18:05:48]line НДС 12% НСП 1% [18:05:48]line > о реализуемом товаре [18:05:48]line ОКРУГЛЕНИЕ: -0.41 [18:05:48]line ИТОГО: 500.00 [18:05:48]line Внесено: 500.00 [18:05:48]line СДАЧА: 0.00 [18:05:48]line НСП 1% : 4.43 [18:05:48]line НДС 12% : 53.14 [18:05:48]line Наличными: 500.00 [18:05:48]line Безнал.: 0.00 [18:05:48]line Место: АЗС № 78 "Партнер Нефть" [18:05:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:05:48]line СНО: Общий режим [18:05:48]line Чек 200 21.10.2024 18:05 [18:05:48]line Смена: 115 ФФД: 1.0 [18:05:48]line ЗНМ: 0300000137 [18:05:48]line РНМ: 0000000000186857 [18:05:48]line Версия ККМ: v1.0 [18:05:48]line ФМ: 0000000002094219 [18:05:48]line ФД: 30703 [18:05:48]line ФПД: 180040262188986 [18:05:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180552&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30703&fm=180040262188986&tin=02508201610067®Number=0000000000186857&sum=50000 [18:05:48]OFD Sender: Processing packet 30703 [packets to send 10, broken 9] [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00030703 [18:05:48]OFD Sender: To server: pG, [18:05:48]CommunicateWithHost lk.salyk.kg:30040 [18:05:48]ConnectInit lk.salyk.kg [18:05:48]written 0, free lines is 4095 [18:05:48]Connected sock=10 [18:05:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 80 A4 07 01 7B D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 00 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 EF 77 00 00 35 04 06 00 A3 BE E3 DF 7F BA B9 89 C9 B2 EF 85 42 DA [18:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CF FF 47 00 AA 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 32 30 39 34 32 31 39 10 04 04 00 EF 77 00 00 F4 03 04 00 80 42 16 67 B6 04 01 00 00 21 9E 5E ED 1F 3A 7A 37 [18:05:49]CommunicateWithHost err = 0 [18:05:49]CheckOFDResponse [18:05:49]1017 (14) - 77093643461234 [18:05:49]1041 (16) - 0000000002094219 [18:05:49]1040 (4) - 30703 [18:05:49]1012 (4) - 21.10.2024 12:01 [18:05:49]1206 (1) - 0 [18:05:49]OFD Sender: Remove packet 30703 [18:05:49]ProducePacketName [18:05:49]name=ofd_packets/00030703 [18:05:49]NVStorageDeleteData [18:05:49]Write to MH i2c: 01 00 00 59 59 B2 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 59 59 00 00 00 00 00 F7 0C BC [18:05:49]RasterBufferAndPrint [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]line [18:05:49]written 0, free lines is 3325 [18:05:49]MH_Cut [18:05:49]Write to MH i2c: D1 01 00 60 59 01 8B [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: D1 01 00 60 59 00 8A [18:05:49]Write to MH i2c: 01 00 00 61 59 BA [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]OFD Sender: No OFD packet to send [18:05:49]*** Cut start [18:05:49]*** Partial cut [18:05:49]*** CUTSNS_PIN = 1 [18:05:49]*** CUTSNS_PIN = 0 [18:05:50]*** Brake cut motor [18:05:50]Read from MH i2c: 01 [18:05:50]MH_I2C_Read... [18:05:50]*** Stop cut motor [18:05:50]*** Cut end [18:05:50]Read from MH i2c: 01 07 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 07 00 61 59 00 00 00 00 00 FF 0F CF [18:05:50]process_action close_receipt done [18:05:50]requested_data is exist [18:05:50]produce_requested_data [18:05:50]requested_item fm.sn is exist - process it [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 11 00 00 [18:05:50]Write to MH i2c: E2 08 00 62 59 80 11 00 00 00 00 00 00 35 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 17 00 62 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 83 [18:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:05:50]wFMCommunicate OK [18:05:50]requested_item fd.num is exist - process it [18:05:50]SAM_PROTO_GetFieldsCounters [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 13 00 00 [18:05:50]Write to MH i2c: E2 08 00 63 59 80 13 00 00 00 00 00 00 38 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 62 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 62 00 63 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [18:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 EF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:50]wFMCommunicate OK [18:05:50]SAM_PROTO_GetFieldsCounters done [18:05:50]requested_item shift.num is exist - process it [18:05:50]requested_item shift.opened is exist - process it [18:05:50]req_shift_opened [18:05:50]FM_GetShiftState [18:05:50]SAM_PROTO_GetShiftState [18:05:50]wFMCommunicate request_size=4 [18:05:50]MH_SAM_APDU [18:05:50]CAPDU: 80 13 01 00 [18:05:50]Write to MH i2c: E2 08 00 64 59 80 13 01 00 00 00 00 00 3A [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:50]Read from MH i2c: E2 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 0E 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: E2 0E 00 64 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B6 [18:05:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:05:50]wFMCommunicate OK [18:05:50]SAM_PROTO_GetShiftState done [18:05:50]FM_GetShiftState done [18:05:50]req_shift_opened done [18:05:50]requested_item shift.open_date is exist - process it [18:05:50]req_shift_open_date [18:05:50]req_shift_open_date done [18:05:50]produce_requested_data done [18:05:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30703,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:05:50]process_action_free close_receipt [18:05:50]json_value_free [18:05:50]json_value_free done [18:05:50]process_json_proto returns [18:05:50]Send response to host [18:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30703,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:05:50]free response buf [18:05:50]execute_script done [18:05:50]execute_script returns [18:05:50]free content buf [18:05:50]Sock 9.Close socket [18:05:50]Sock 9.Thread stoped [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:37]accept exits with 7 [18:08:37]New connection [18:08:37]New thread 3067346276 created [18:08:37]Thread 3067489636 joined [18:08:37]Waiting for new connection... [18:08:37] Sock 7.Parse request [18:08:37]Sock 7.Check first char [18:08:37]Sock 7.First char is OK [18:08:37]request: POST /json_proto HTTP/1.0 [18:08:37]Method: POST [18:08:37]URL: /json_proto [18:08:37]Method is POST - this is cgi request [18:08:37]url: /json_proto [18:08:37]query_string will be loaded in cgi processing [18:08:37]execute_cgi json_proto POST (null) [18:08:37]execute_cgi path=json_proto method=POST [18:08:37]POST find Content-Length [18:08:37]Host: 172.17.51.3:8080 [18:08:37]Content-Length: 677 [18:08:37]Content-Type: application/json [18:08:37] [18:08:37]POST finish read [18:08:37]Found Content-Length = 677 [18:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:37]execute_script... [18:08:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:37]POST & json_proto [18:08:37]process_json_proto [18:08:37]json parsed OK: [18:08:37]protocol is kg_v1.0 [18:08:37]action value=close_receipt [18:08:37]process_action close_receipt [18:08:37]cmd_close_receipt [18:08:37]MH_GetDate [18:08:37]Write to MH i2c: F0 00 00 65 59 AD [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 09 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: F0 09 00 65 59 00 AB 98 16 67 04 C1 95 66 36 [18:08:37]GetLastDocTimeStamp 1729533952 [18:08:37]current date 1729534123 [18:08:37]FM_GetShiftState [18:08:37]SAM_PROTO_GetShiftState [18:08:37]wFMCommunicate request_size=4 [18:08:37]MH_SAM_APDU [18:08:37]CAPDU: 80 13 01 00 [18:08:37]Write to MH i2c: E2 08 00 66 59 80 13 01 00 00 00 00 00 3C [18:08:37]Write i2c OK [18:08:37]MH_I2C_Read... [18:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:37]Read from MH i2c: E2 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 [18:08:37]MH_I2C_Read... [18:08:37]Read from MH i2c: E2 0E 00 66 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B8 [18:08:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:08:37]wFMCommunicate OK [18:08:37]SAM_PROTO_GetShiftState done [18:08:37]FM_GetShiftState done [18:08:37]opened in 1729471058 [18:08:37]opened+sec_in_day 1729557458 [18:08:37]quantity*price = 60009 [18:08:37]sum+1 = 60010 [18:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 201 21.10.2024 18:08 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30704 ФПД: 229235650940628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30704&fm=229235650940628&tin=02508201610067®Number=0000000000186857&sum=60000 [18:08:38]StoreToDocumentArchive [18:08:38]shift 115 fd 30704 [18:08:38]save to /storage/0115/doc_00030704 [18:08:38]save last doc name /storage/0115/doc_00030704 to /storage/kkm_last_doc_name [18:08:38]save OK [18:08:38]Clear old archive folders... [18:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:38]tlvbuf is 01E10BC0 [18:08:38]SAM_PROTO_ClearQueue [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 09 00 00 [18:08:38]Write to MH i2c: E2 08 00 73 59 80 09 00 00 00 00 00 00 3E [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 73 59 00 90 00 40 [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_ClearQueue done [18:08:38]KKMCreateOFDPacket [18:08:38]OFDProtocolAddRootSTLVToBuf [18:08:38]FM_MakeSignedData [18:08:38]FM_MakeSignedData [18:08:38]SAM_PROTO_SignData [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 01 02 [18:08:38]Write to MH i2c: E2 08 00 74 59 80 0D 01 02 00 00 00 00 46 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 74 59 00 90 00 41 [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=255 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AB 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 77 00 00 35 04 06 00 D0 [18:08:38]Write to MH i2c: E2 02 01 75 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AB 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 77 00 00 35 04 06 00 D0 00 00 E7 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 75 59 00 90 00 42 [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=10 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 02 02 05 7D 15 8B 4E D4 [18:08:38]Write to MH i2c: E2 0D 00 76 59 80 0D 02 02 05 00 7D 15 8B 4E D4 00 00 92 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 03 00 76 59 00 90 00 43 [18:08:38]RAPDU: 90 00 [18:08:38]wFMCommunicate OK [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 0D 03 02 [18:08:38]Write to MH i2c: E2 08 00 77 59 80 0D 03 02 00 00 00 00 4B [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0B 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0B 00 77 59 00 18 18 76 1B 3C 1C 1A EF 90 00 6E [18:08:38]RAPDU: 18 18 76 1B 3C 1C 1A EF 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_SignData done [18:08:38]FM_MakeSignedData done [18:08:38]CreateOFDProtocolMessage [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 11 00 00 [18:08:38]Write to MH i2c: E2 08 00 78 59 80 11 00 00 00 00 00 00 4B [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 78 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 99 [18:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:08:38]wFMCommunicate OK [18:08:38]CreateOFDProtocolMessage done [18:08:38]OFDSenderStorePacket 30704 [18:08:38]StoreOFDPacket docnum=30704 [18:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 8B 07 01 63 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AB 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 77 00 00 35 04 06 00 D0 7D 15 8B 4E D4 18 18 76 1B 3C 1C 1A EF [18:08:38]CheckFolder [18:08:38]dirname=/storage/ofd_packets [18:08:38]CheckFolder done [18:08:38]ProducePacketName [18:08:38]name=ofd_packets/00030704 [18:08:38]NVStorageSaveData ofd_packets/00030704 [18:08:38]File name is /storage/ofd_packets/00030704 [18:08:38]Write 301 bytes [18:08:38]NVStorageSaveData done [18:08:38]OFDSenderStorePacket done [18:08:38]KKMCreateOFDPacket done [18:08:38]NVStorageSaveData kkm_last_timestamp [18:08:38]File name is /storage/kkm_last_timestamp [18:08:38]Write 4 bytes [18:08:38]NVStorageSaveData done [18:08:38]ExternCall_PrintAddStr [18:08:38]wPrintStart [18:08:38]Write to MH i2c: 01 00 00 79 59 D2 [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 07 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 07 00 79 59 00 00 00 00 00 FF 0F E7 [18:08:38]RasterBufferAndPrint [18:08:38]line Счет N : (1)343117 [18:08:38]line ИНН: 02508201610067 [18:08:38]line Контрольно-Кассовый Чек [18:08:38]line ПРОДАЖА [18:08:38]line ТРК (МРК, ГНК) : 33 [18:08:38]line Товар: 2710124130 [18:08:38]line Аи-92-К-2 [18:08:38]line 8.970 * 66.90 [18:08:38]line = 600.09 [18:08:38]line НДС 12% НСП 1% [18:08:38]line > о реализуемом товаре [18:08:38]line ОКРУГЛЕНИЕ: -0.09 [18:08:38]line ИТОГО: 600.00 [18:08:38]line Внесено: 600.00 [18:08:38]line СДАЧА: 0.00 [18:08:38]line НСП 1% : 5.31 [18:08:38]line НДС 12% : 63.73 [18:08:38]line Наличными: 600.00 [18:08:38]line Безнал.: 0.00 [18:08:38]line Место: АЗС № 78 "Партнер Нефть" [18:08:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:08:38]line СНО: Общий режим [18:08:38]line Чек 201 21.10.2024 18:08 [18:08:38]line Смена: 115 ФФД: 1.0 [18:08:38]line ЗНМ: 0300000137 [18:08:38]line РНМ: 0000000000186857 [18:08:38]line Версия ККМ: v1.0 [18:08:38]line ФМ: 0000000002094219 [18:08:38]line ФД: 30704 [18:08:38]line ФПД: 229235650940628 [18:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180843&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30704&fm=229235650940628&tin=02508201610067®Number=0000000000186857&sum=60000 [18:08:39]OFD Sender: Processing packet 30704 [packets to send 10, broken 9] [18:08:39]ProducePacketName [18:08:39]name=ofd_packets/00030704 [18:08:39]OFD Sender: To server: pG, [18:08:39]CommunicateWithHost lk.salyk.kg:30040 [18:08:39]ConnectInit lk.salyk.kg [18:08:39]written 0, free lines is 4095 [18:08:39]Connected sock=10 [18:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1D 8B 07 01 63 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AB 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F0 77 00 00 35 04 06 00 D0 7D 15 8B 4E D4 18 18 76 1B 3C 1C 1A EF [18:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 78 2E 47 00 77 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 32 30 39 34 32 31 39 10 04 04 00 F0 77 00 00 F4 03 04 00 2B 43 16 67 B6 04 01 00 00 8F 54 DA 74 1C 99 8D E6 [18:08:39]CommunicateWithHost err = 0 [18:08:39]CheckOFDResponse [18:08:39]1017 (14) - 77093643461234 [18:08:39]1041 (16) - 0000000002094219 [18:08:39]1040 (4) - 30704 [18:08:39]1012 (4) - 21.10.2024 12:03 [18:08:39]1206 (1) - 0 [18:08:39]OFD Sender: Remove packet 30704 [18:08:39]ProducePacketName [18:08:39]name=ofd_packets/00030704 [18:08:39]NVStorageDeleteData [18:08:39]Write to MH i2c: 01 00 00 A4 59 FD [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: 01 07 00 A4 59 00 00 00 00 00 F6 0C 06 [18:08:39]RasterBufferAndPrint [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]line [18:08:39]written 0, free lines is 3324 [18:08:39]MH_Cut [18:08:39]Write to MH i2c: D1 01 00 AB 59 01 D6 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 01 00 [18:08:39]MH_I2C_Read... [18:08:39]Read from MH i2c: D1 01 00 AB 59 00 D5 [18:08:39]Write to MH i2c: 01 00 00 AC 59 05 [18:08:39]Write i2c OK [18:08:39]MH_I2C_Read... [18:08:40]OFD Sender: No OFD packet to send [18:08:40]*** Cut start [18:08:40]*** Partial cut [18:08:40]*** CUTSNS_PIN = 1 [18:08:40]*** CUTSNS_PIN = 0 [18:08:40]*** Brake cut motor [18:08:40]Read from MH i2c: 01 [18:08:40]MH_I2C_Read... [18:08:40]*** Stop cut motor [18:08:40]*** Cut end [18:08:40]Read from MH i2c: 01 07 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: 01 07 00 AC 59 00 00 00 00 00 FF 0F 1A [18:08:40]process_action close_receipt done [18:08:40]requested_data is exist [18:08:40]produce_requested_data [18:08:40]requested_item fm.sn is exist - process it [18:08:40]wFMCommunicate request_size=4 [18:08:40]MH_SAM_APDU [18:08:40]CAPDU: 80 11 00 00 [18:08:40]Write to MH i2c: E2 08 00 AD 59 80 11 00 00 00 00 00 00 80 [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:40]Read from MH i2c: E2 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 17 00 [18:08:40]MH_I2C_Read... [18:08:40]Read from MH i2c: E2 17 00 AD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CE [18:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:08:40]wFMCommunicate OK [18:08:40]requested_item fd.num is exist - process it [18:08:40]SAM_PROTO_GetFieldsCounters [18:08:40]wFMCommunicate request_size=4 [18:08:40]MH_SAM_APDU [18:08:40]CAPDU: 80 13 00 00 [18:08:40]Write to MH i2c: E2 08 00 AE 59 80 13 00 00 00 00 00 00 83 [18:08:40]Write i2c OK [18:08:40]MH_I2C_Read... [18:08:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:41]Read from MH i2c: E2 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 62 00 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 62 00 AE 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [18:08:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F0 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:41]wFMCommunicate OK [18:08:41]SAM_PROTO_GetFieldsCounters done [18:08:41]requested_item shift.num is exist - process it [18:08:41]requested_item shift.opened is exist - process it [18:08:41]req_shift_opened [18:08:41]FM_GetShiftState [18:08:41]SAM_PROTO_GetShiftState [18:08:41]wFMCommunicate request_size=4 [18:08:41]MH_SAM_APDU [18:08:41]CAPDU: 80 13 01 00 [18:08:41]Write to MH i2c: E2 08 00 AF 59 80 13 01 00 00 00 00 00 85 [18:08:41]Write i2c OK [18:08:41]MH_I2C_Read... [18:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:41]Read from MH i2c: E2 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 0E 00 [18:08:41]MH_I2C_Read... [18:08:41]Read from MH i2c: E2 0E 00 AF 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 01 [18:08:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:08:41]wFMCommunicate OK [18:08:41]SAM_PROTO_GetShiftState done [18:08:41]FM_GetShiftState done [18:08:41]req_shift_opened done [18:08:41]requested_item shift.open_date is exist - process it [18:08:41]req_shift_open_date [18:08:41]req_shift_open_date done [18:08:41]produce_requested_data done [18:08:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30704,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:08:41]process_action_free close_receipt [18:08:41]json_value_free [18:08:41]json_value_free done [18:08:41]process_json_proto returns [18:08:41]Send response to host [18:08:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30704,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:08:41]free response buf [18:08:41]execute_script done [18:08:41]execute_script returns [18:08:41]free content buf [18:08:41]Sock 7.Close socket [18:08:41]Sock 7.Thread stoped [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:07]accept exits with 9 [18:09:07]New connection [18:09:07]New thread 3067489636 created [18:09:07]Thread 3067346276 joined [18:09:07]Waiting for new connection... [18:09:07] Sock 9.Parse request [18:09:07]Sock 9.Check first char [18:09:07]Sock 9.First char is OK [18:09:07]request: POST /json_proto HTTP/1.0 [18:09:07]Method: POST [18:09:07]URL: /json_proto [18:09:07]Method is POST - this is cgi request [18:09:07]url: /json_proto [18:09:07]query_string will be loaded in cgi processing [18:09:07]execute_cgi json_proto POST (null) [18:09:07]execute_cgi path=json_proto method=POST [18:09:07]POST find Content-Length [18:09:07]Host: 172.17.51.3:8080 [18:09:07]Content-Length: 678 [18:09:07]Content-Type: application/json [18:09:07] [18:09:07]POST finish read [18:09:07]Found Content-Length = 678 [18:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:07]execute_script... [18:09:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:07]POST & json_proto [18:09:07]process_json_proto [18:09:07]json parsed OK: [18:09:07]protocol is kg_v1.0 [18:09:07]action value=close_receipt [18:09:07]process_action close_receipt [18:09:07]cmd_close_receipt [18:09:07]MH_GetDate [18:09:07]Write to MH i2c: F0 00 00 B0 59 F8 [18:09:07]Write i2c OK [18:09:07]MH_I2C_Read... [18:09:07]Read from MH i2c: F0 [18:09:07]MH_I2C_Read... [18:09:07]Read from MH i2c: F0 09 00 [18:09:07]MH_I2C_Read... [18:09:07]Read from MH i2c: F0 09 00 B0 59 00 C9 98 16 67 04 C1 95 66 9F [18:09:07]GetLastDocTimeStamp 1729534123 [18:09:07]current date 1729534153 [18:09:07]FM_GetShiftState [18:09:07]SAM_PROTO_GetShiftState [18:09:07]wFMCommunicate request_size=4 [18:09:07]MH_SAM_APDU [18:09:07]CAPDU: 80 13 01 00 [18:09:07]Write to MH i2c: E2 08 00 B1 59 80 13 01 00 00 00 00 00 87 [18:09:07]Write i2c OK [18:09:07]MH_I2C_Read... [18:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:07]Read from MH i2c: E2 [18:09:07]MH_I2C_Read... [18:09:07]Read from MH i2c: E2 0E 00 [18:09:07]MH_I2C_Read... [18:09:07]Read from MH i2c: E2 0E 00 B1 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 03 [18:09:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:09:07]wFMCommunicate OK [18:09:07]SAM_PROTO_GetShiftState done [18:09:07]FM_GetShiftState done [18:09:07]opened in 1729471058 [18:09:07]opened+sec_in_day 1729557458 [18:09:07]quantity*price = 70044 [18:09:07]sum+1 = 70045 [18:09:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 202 21.10.2024 18:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30705 ФПД: 28492915046653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30705&fm=28492915046653&tin=02508201610067®Number=0000000000186857&sum=70000 [18:09:08]StoreToDocumentArchive [18:09:08]shift 115 fd 30705 [18:09:08]save to /storage/0115/doc_00030705 [18:09:08]save last doc name /storage/0115/doc_00030705 to /storage/kkm_last_doc_name [18:09:08]save OK [18:09:08]Clear old archive folders... [18:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:09:08]tlvbuf is 01DAFD80 [18:09:08]SAM_PROTO_ClearQueue [18:09:08]wFMCommunicate request_size=4 [18:09:08]MH_SAM_APDU [18:09:08]CAPDU: 80 09 00 00 [18:09:08]Write to MH i2c: E2 08 00 BE 59 80 09 00 00 00 00 00 00 89 [18:09:08]Write i2c OK [18:09:08]MH_I2C_Read... [18:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:08]Read from MH i2c: E2 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 BE 59 00 90 00 8B [18:09:08]RAPDU: 90 00 [18:09:08]wFMCommunicate OK [18:09:08]SAM_PROTO_ClearQueue done [18:09:08]KKMCreateOFDPacket [18:09:08]OFDProtocolAddRootSTLVToBuf [18:09:08]FM_MakeSignedData [18:09:08]FM_MakeSignedData [18:09:08]SAM_PROTO_SignData [18:09:08]wFMCommunicate request_size=4 [18:09:08]MH_SAM_APDU [18:09:08]CAPDU: 80 0D 01 02 [18:09:08]Write to MH i2c: E2 08 00 BF 59 80 0D 01 02 00 00 00 00 91 [18:09:08]Write i2c OK [18:09:08]MH_I2C_Read... [18:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:08]Read from MH i2c: E2 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 BF 59 00 90 00 8C [18:09:08]RAPDU: 90 00 [18:09:08]wFMCommunicate OK [18:09:08]wFMCommunicate request_size=255 [18:09:08]MH_SAM_APDU [18:09:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C9 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 77 00 00 35 04 06 00 19 [18:09:08]Write to MH i2c: E2 02 01 C0 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C9 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 77 00 00 35 04 06 00 19 00 00 CE [18:09:08]Write i2c OK [18:09:08]MH_I2C_Read... [18:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:08]Read from MH i2c: E2 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 C0 59 00 90 00 8D [18:09:08]RAPDU: 90 00 [18:09:08]wFMCommunicate OK [18:09:08]wFMCommunicate request_size=10 [18:09:08]MH_SAM_APDU [18:09:08]CAPDU: 80 0D 02 02 05 EA 06 14 78 FD [18:09:08]Write to MH i2c: E2 0D 00 C1 59 80 0D 02 02 05 00 EA 06 14 78 FD 00 00 17 [18:09:08]Write i2c OK [18:09:08]MH_I2C_Read... [18:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:08]Read from MH i2c: E2 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 [18:09:08]MH_I2C_Read... [18:09:08]Read from MH i2c: E2 03 00 C1 59 00 90 00 8E [18:09:08]RAPDU: 90 00 [18:09:08]wFMCommunicate OK [18:09:08]wFMCommunicate request_size=4 [18:09:08]MH_SAM_APDU [18:09:08]CAPDU: 80 0D 03 02 [18:09:08]Write to MH i2c: E2 08 00 C2 59 80 0D 03 02 00 00 00 00 96 [18:09:08]Write i2c OK [18:09:08]MH_I2C_Read... [18:09:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:09]Read from MH i2c: E2 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 0B 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 0B 00 C2 59 00 15 7D 14 5C FC 70 6D 31 90 00 A3 [18:09:09]RAPDU: 15 7D 14 5C FC 70 6D 31 90 00 [18:09:09]wFMCommunicate OK [18:09:09]SAM_PROTO_SignData done [18:09:09]FM_MakeSignedData done [18:09:09]CreateOFDProtocolMessage [18:09:09]wFMCommunicate request_size=4 [18:09:09]MH_SAM_APDU [18:09:09]CAPDU: 80 11 00 00 [18:09:09]Write to MH i2c: E2 08 00 C3 59 80 11 00 00 00 00 00 00 96 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:09]Read from MH i2c: E2 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 17 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: E2 17 00 C3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E4 [18:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:09:09]wFMCommunicate OK [18:09:09]CreateOFDProtocolMessage done [18:09:09]OFDSenderStorePacket 30705 [18:09:09]StoreOFDPacket docnum=30705 [18:09:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E F1 07 01 FA A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C9 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 77 00 00 35 04 06 00 19 EA 06 14 78 FD 15 7D 14 5C FC 70 6D 31 [18:09:09]CheckFolder [18:09:09]dirname=/storage/ofd_packets [18:09:09]CheckFolder done [18:09:09]ProducePacketName [18:09:09]name=ofd_packets/00030705 [18:09:09]NVStorageSaveData ofd_packets/00030705 [18:09:09]File name is /storage/ofd_packets/00030705 [18:09:09]Write 301 bytes [18:09:09]NVStorageSaveData done [18:09:09]OFDSenderStorePacket done [18:09:09]KKMCreateOFDPacket done [18:09:09]NVStorageSaveData kkm_last_timestamp [18:09:09]File name is /storage/kkm_last_timestamp [18:09:09]Write 4 bytes [18:09:09]NVStorageSaveData done [18:09:09]ExternCall_PrintAddStr [18:09:09]wPrintStart [18:09:09]Write to MH i2c: 01 00 00 C4 59 1D [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 07 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 07 00 C4 59 00 00 00 00 00 FF 0F 32 [18:09:09]RasterBufferAndPrint [18:09:09]line Счет N : (1)343118 [18:09:09]line ИНН: 02508201610067 [18:09:09]line Контрольно-Кассовый Чек [18:09:09]line ПРОДАЖА [18:09:09]line ТРК (МРК, ГНК) : 53 [18:09:09]line Товар: 2710124130 [18:09:09]line Аи-92-К-2 [18:09:09]line 10.470 * 66.90 [18:09:09]line = 700.44 [18:09:09]line НДС 12% НСП 1% [18:09:09]line > о реализуемом товаре [18:09:09]line ОКРУГЛЕНИЕ: -0.44 [18:09:09]line ИТОГО: 700.00 [18:09:09]line Внесено: 700.00 [18:09:09]line СДАЧА: 0.00 [18:09:09]line НСП 1% : 6.20 [18:09:09]line НДС 12% : 74.38 [18:09:09]line Наличными: 700.00 [18:09:09]line Безнал.: 0.00 [18:09:09]line Место: АЗС № 78 "Партнер Нефть" [18:09:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:09:09]line СНО: Общий режим [18:09:09]line Чек 202 21.10.2024 18:09 [18:09:09]line Смена: 115 ФФД: 1.0 [18:09:09]line ЗНМ: 0300000137 [18:09:09]line РНМ: 0000000000186857 [18:09:09]line Версия ККМ: v1.0 [18:09:09]line ФМ: 0000000002094219 [18:09:09]line ФД: 30705 [18:09:09]line ФПД: 28492915046653 [18:09:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180913&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30705&fm=28492915046653&tin=02508201610067®Number=0000000000186857&sum=70000 [18:09:09]written 0, free lines is 4095 [18:09:09]OFD Sender: Processing packet 30705 [packets to send 10, broken 9] [18:09:09]ProducePacketName [18:09:09]name=ofd_packets/00030705 [18:09:09]OFD Sender: To server: pG, [18:09:09]CommunicateWithHost lk.salyk.kg:30040 [18:09:09]ConnectInit lk.salyk.kg [18:09:09]Connected sock=10 [18:09:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6E F1 07 01 FA A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 C9 98 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F1 77 00 00 35 04 06 00 19 EA 06 14 78 FD 15 7D 14 5C FC 70 6D 31 [18:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 46 07 47 00 76 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 32 30 39 34 32 31 39 10 04 04 00 F1 77 00 00 F4 03 04 00 49 43 16 67 B6 04 01 00 00 FF C9 29 0B 1F CC 5D 58 [18:09:09]CommunicateWithHost err = 0 [18:09:09]CheckOFDResponse [18:09:09]1017 (14) - 77093643461234 [18:09:09]1041 (16) - 0000000002094219 [18:09:09]1040 (4) - 30705 [18:09:09]1012 (4) - 21.10.2024 12:04 [18:09:09]1206 (1) - 0 [18:09:09]OFD Sender: Remove packet 30705 [18:09:09]ProducePacketName [18:09:09]name=ofd_packets/00030705 [18:09:09]NVStorageDeleteData [18:09:09]Write to MH i2c: 01 00 00 EF 59 48 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 07 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: 01 07 00 EF 59 00 00 00 00 00 FA 0C 55 [18:09:09]RasterBufferAndPrint [18:09:09]line [18:09:09]line [18:09:09]line [18:09:09]line [18:09:09]line [18:09:09]written 0, free lines is 3328 [18:09:09]MH_Cut [18:09:09]Write to MH i2c: D1 01 00 F6 59 01 21 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: D1 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: D1 01 00 [18:09:09]MH_I2C_Read... [18:09:09]Read from MH i2c: D1 01 00 F6 59 00 20 [18:09:09]Write to MH i2c: 01 00 00 F7 59 50 [18:09:09]Write i2c OK [18:09:09]MH_I2C_Read... [18:09:10]OFD Sender: No OFD packet to send [18:09:10]*** Cut start [18:09:10]*** Partial cut [18:09:10]*** CUTSNS_PIN = 1 [18:09:10]*** CUTSNS_PIN = 0 [18:09:10]*** Brake cut motor [18:09:11]Read from MH i2c: 01 [18:09:11]MH_I2C_Read... [18:09:11]*** Stop cut motor [18:09:11]*** Cut end [18:09:11]Read from MH i2c: 01 07 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: 01 07 00 F7 59 00 00 00 00 00 FF 0F 65 [18:09:11]process_action close_receipt done [18:09:11]requested_data is exist [18:09:11]produce_requested_data [18:09:11]requested_item fm.sn is exist - process it [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 11 00 00 [18:09:11]Write to MH i2c: E2 08 00 F8 59 80 11 00 00 00 00 00 00 CB [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 17 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 17 00 F8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 19 [18:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:09:11]wFMCommunicate OK [18:09:11]requested_item fd.num is exist - process it [18:09:11]SAM_PROTO_GetFieldsCounters [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 13 00 00 [18:09:11]Write to MH i2c: E2 08 00 F9 59 80 13 00 00 00 00 00 00 CE [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 62 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 62 00 F9 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [18:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F1 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:11]wFMCommunicate OK [18:09:11]SAM_PROTO_GetFieldsCounters done [18:09:11]requested_item shift.num is exist - process it [18:09:11]requested_item shift.opened is exist - process it [18:09:11]req_shift_opened [18:09:11]FM_GetShiftState [18:09:11]SAM_PROTO_GetShiftState [18:09:11]wFMCommunicate request_size=4 [18:09:11]MH_SAM_APDU [18:09:11]CAPDU: 80 13 01 00 [18:09:11]Write to MH i2c: E2 08 00 FA 59 80 13 01 00 00 00 00 00 D0 [18:09:11]Write i2c OK [18:09:11]MH_I2C_Read... [18:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:11]Read from MH i2c: E2 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 0E 00 [18:09:11]MH_I2C_Read... [18:09:11]Read from MH i2c: E2 0E 00 FA 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4C [18:09:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:09:11]wFMCommunicate OK [18:09:11]SAM_PROTO_GetShiftState done [18:09:11]FM_GetShiftState done [18:09:11]req_shift_opened done [18:09:11]requested_item shift.open_date is exist - process it [18:09:11]req_shift_open_date [18:09:11]req_shift_open_date done [18:09:11]produce_requested_data done [18:09:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30705,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:09:11]process_action_free close_receipt [18:09:11]json_value_free [18:09:11]json_value_free done [18:09:11]process_json_proto returns [18:09:11]Send response to host [18:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30705,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:09:11]free response buf [18:09:11]execute_script done [18:09:11]execute_script returns [18:09:11]free content buf [18:09:11]Sock 9.Close socket [18:09:11]Sock 9.Thread stoped [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:51]accept exits with 7 [18:10:51]New connection [18:10:51]New thread 3067346276 created [18:10:51]Thread 3067489636 joined [18:10:51]Waiting for new connection... [18:10:51] Sock 7.Parse request [18:10:51]Sock 7.Check first char [18:10:51]Sock 7.First char is OK [18:10:51]request: POST /json_proto HTTP/1.0 [18:10:51]Method: POST [18:10:51]URL: /json_proto [18:10:51]Method is POST - this is cgi request [18:10:51]url: /json_proto [18:10:51]query_string will be loaded in cgi processing [18:10:51]execute_cgi json_proto POST (null) [18:10:51]execute_cgi path=json_proto method=POST [18:10:51]POST find Content-Length [18:10:51]Host: 172.17.51.3:8080 [18:10:51]Content-Length: 792 [18:10:51]Content-Type: application/json [18:10:51] [18:10:51]POST finish read [18:10:51]Found Content-Length = 792 [18:10:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 37.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31174", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:51]execute_script... [18:10:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 37.370, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A31174", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:51]POST & json_proto [18:10:51]process_json_proto [18:10:51]json parsed OK: [18:10:51]protocol is kg_v1.0 [18:10:51]action value=close_receipt [18:10:51]process_action close_receipt [18:10:51]cmd_close_receipt [18:10:51]MH_GetDate [18:10:51]Write to MH i2c: F0 00 00 FB 59 43 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: F0 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: F0 09 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: F0 09 00 FB 59 00 31 99 16 67 04 C1 95 66 53 [18:10:51]GetLastDocTimeStamp 1729534153 [18:10:51]current date 1729534257 [18:10:51]FM_GetShiftState [18:10:51]SAM_PROTO_GetShiftState [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 13 01 00 [18:10:51]Write to MH i2c: E2 08 00 FC 59 80 13 01 00 00 00 00 00 D2 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0E 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0E 00 FC 59 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4E [18:10:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:10:51]wFMCommunicate OK [18:10:51]SAM_PROTO_GetShiftState done [18:10:51]FM_GetShiftState done [18:10:51]opened in 1729471058 [18:10:51]opened+sec_in_day 1729557458 [18:10:51]quantity*price = 0 [18:10:51]sum+1 = 1 [18:10:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 203 21.10.2024 18:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: Топливная Карта 31174 ФМ: 0000000002094219 ФД: 30706 ФПД: 102460826391454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30706&fm=102460826391454&tin=02508201610067®Number=0000000000186857&sum=0 [18:10:52]StoreToDocumentArchive [18:10:52]shift 115 fd 30706 [18:10:52]save to /storage/0115/doc_00030706 [18:10:52]save last doc name /storage/0115/doc_00030706 to /storage/kkm_last_doc_name [18:10:52]save OK [18:10:52]Clear old archive folders... [18:10:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:52]tlvbuf is B6FDB230 [18:10:52]SAM_PROTO_ClearQueue [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 09 00 00 [18:10:52]Write to MH i2c: E2 08 00 09 5A 80 09 00 00 00 00 00 00 D5 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 09 5A 00 90 00 D7 [18:10:52]RAPDU: 90 00 [18:10:52]wFMCommunicate OK [18:10:52]SAM_PROTO_ClearQueue done [18:10:52]KKMCreateOFDPacket [18:10:52]OFDProtocolAddRootSTLVToBuf [18:10:52]FM_MakeSignedData [18:10:52]FM_MakeSignedData [18:10:52]SAM_PROTO_SignData [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 0D 01 02 [18:10:52]Write to MH i2c: E2 08 00 0A 5A 80 0D 01 02 00 00 00 00 DD [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 0A 5A 00 90 00 D8 [18:10:52]RAPDU: 90 00 [18:10:52]wFMCommunicate OK [18:10:52]wFMCommunicate request_size=255 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 31 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 77 00 00 35 04 06 00 5D [18:10:52]Write to MH i2c: E2 02 01 0B 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 31 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 77 00 00 35 04 06 00 5D 00 00 BF [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 0B 5A 00 90 00 D9 [18:10:52]RAPDU: 90 00 [18:10:52]wFMCommunicate OK [18:10:52]wFMCommunicate request_size=10 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 0D 02 02 05 30 05 29 13 9E [18:10:52]Write to MH i2c: E2 0D 00 0C 5A 80 0D 02 02 05 00 30 05 29 13 9E 00 00 F9 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 03 00 0C 5A 00 90 00 DA [18:10:52]RAPDU: 90 00 [18:10:52]wFMCommunicate OK [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 0D 03 02 [18:10:52]Write to MH i2c: E2 08 00 0D 5A 80 0D 03 02 00 00 00 00 E2 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0B 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0B 00 0D 5A 00 EB DD 40 18 1D 31 C4 39 90 00 4E [18:10:52]RAPDU: EB DD 40 18 1D 31 C4 39 90 00 [18:10:52]wFMCommunicate OK [18:10:52]SAM_PROTO_SignData done [18:10:52]FM_MakeSignedData done [18:10:52]CreateOFDProtocolMessage [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 11 00 00 [18:10:52]Write to MH i2c: E2 08 00 0E 5A 80 11 00 00 00 00 00 00 E2 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:53]Read from MH i2c: E2 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 17 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: E2 17 00 0E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 30 [18:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:10:53]wFMCommunicate OK [18:10:53]CreateOFDProtocolMessage done [18:10:53]OFDSenderStorePacket 30706 [18:10:53]StoreOFDPacket docnum=30706 [18:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 B4 07 01 F0 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 31 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 77 00 00 35 04 06 00 5D 30 05 29 13 9E EB DD 40 18 1D 31 C4 39 [18:10:53]CheckFolder [18:10:53]dirname=/storage/ofd_packets [18:10:53]CheckFolder done [18:10:53]ProducePacketName [18:10:53]name=ofd_packets/00030706 [18:10:53]NVStorageSaveData ofd_packets/00030706 [18:10:53]File name is /storage/ofd_packets/00030706 [18:10:53]Write 301 bytes [18:10:53]NVStorageSaveData done [18:10:53]OFDSenderStorePacket done [18:10:53]KKMCreateOFDPacket done [18:10:53]NVStorageSaveData kkm_last_timestamp [18:10:53]File name is /storage/kkm_last_timestamp [18:10:53]Write 4 bytes [18:10:53]NVStorageSaveData done [18:10:53]ExternCall_PrintAddStr [18:10:53]wPrintStart [18:10:53]Write to MH i2c: 01 00 00 0F 5A 69 [18:10:53]OFD Sender: Processing packet 30706 [packets to send 10, broken 9] [18:10:53]ProducePacketName [18:10:53]name=ofd_packets/00030706 [18:10:53]OFD Sender: To server: pG, [18:10:53]CommunicateWithHost lk.salyk.kg:30040 [18:10:53]ConnectInit lk.salyk.kg [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 07 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 07 00 0F 5A 00 00 00 00 00 FF 0F 7E [18:10:53]RasterBufferAndPrint [18:10:53]line Счет N : (1)343119 [18:10:53]line ИНН: 02508201610067 [18:10:53]line Контрольно-Кассовый Чек [18:10:53]line ПРОДАЖА [18:10:53]line ТРК (МРК, ГНК) : 63 [18:10:53]line Товар: 2710124130 [18:10:53]line Аи-92-К-2 [18:10:53]line 37.370 * 0.00 [18:10:53]line = 0.00 [18:10:53]line НДС 12% НСП 1% [18:10:53]line > о реализуемом товаре [18:10:53]line ИТОГО: 0.00 [18:10:53]line НСП 1% : 0.00 [18:10:53]line НДС 12% : 0.00 [18:10:53]line Наличными: 0.00 [18:10:53]line Безнал.: 0.00 [18:10:53]line Место: АЗС № 78 "Партнер Нефть" [18:10:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:10:53]line СНО: Общий режим [18:10:53]line Чек 203 21.10.2024 18:10 [18:10:53]line Смена: 115 ФФД: 1.0 [18:10:53]line ЗНМ: 0300000137 [18:10:53]line РНМ: 0000000000186857 [18:10:53]line Версия ККМ: v1.0 [18:10:53]line Талоны: Топливная Карта [18:10:53]line 31174 [18:10:53]line ФМ: 0000000002094219 [18:10:53]line ФД: 30706 [18:10:53]line ФПД: 102460826391454 [18:10:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30706&fm=102460826391454&tin=02508201610067®Number=0000000000186857&sum=0 [18:10:53]Connected sock=10 [18:10:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 72 B4 07 01 F0 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 31 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 77 00 00 35 04 06 00 5D 30 05 29 13 9E EB DD 40 18 1D 31 C4 39 [18:10:53]written 0, free lines is 4095 [18:10:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C9 6F 47 00 83 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F2 77 00 00 F4 03 04 00 B1 43 16 67 B6 04 01 00 00 A0 74 CB C2 09 FA 53 F4 [18:10:53]CommunicateWithHost err = 0 [18:10:53]CheckOFDResponse [18:10:53]1017 (14) - 77093643461234 [18:10:53]1041 (16) - 0000000002094219 [18:10:53]1040 (4) - 30706 [18:10:53]1012 (4) - 21.10.2024 12:06 [18:10:53]1206 (1) - 0 [18:10:53]OFD Sender: Remove packet 30706 [18:10:53]ProducePacketName [18:10:53]name=ofd_packets/00030706 [18:10:53]NVStorageDeleteData [18:10:53]Write to MH i2c: 01 00 00 39 5A 93 [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 07 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: 01 07 00 39 5A 00 00 00 00 00 04 0D AB [18:10:53]RasterBufferAndPrint [18:10:53]line [18:10:53]line [18:10:53]line [18:10:53]line [18:10:53]line [18:10:53]written 0, free lines is 3338 [18:10:53]MH_Cut [18:10:53]Write to MH i2c: D1 01 00 40 5A 01 6C [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: D1 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: D1 01 00 [18:10:53]MH_I2C_Read... [18:10:53]Read from MH i2c: D1 01 00 40 5A 00 6B [18:10:53]Write to MH i2c: 01 00 00 41 5A 9B [18:10:53]Write i2c OK [18:10:53]MH_I2C_Read... [18:10:54]OFD Sender: No OFD packet to send [18:10:54]*** Cut start [18:10:54]*** Partial cut [18:10:54]*** CUTSNS_PIN = 1 [18:10:54]*** CUTSNS_PIN = 0 [18:10:54]*** Brake cut motor [18:10:55]Read from MH i2c: 01 [18:10:55]MH_I2C_Read... [18:10:55]*** Stop cut motor [18:10:55]*** Cut end [18:10:55]Read from MH i2c: 01 07 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: 01 07 00 41 5A 00 00 00 00 00 FF 0F B0 [18:10:55]process_action close_receipt done [18:10:55]requested_data is exist [18:10:55]produce_requested_data [18:10:55]requested_item fm.sn is exist - process it [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 11 00 00 [18:10:55]Write to MH i2c: E2 08 00 42 5A 80 11 00 00 00 00 00 00 16 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 17 00 42 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 64 [18:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:10:55]wFMCommunicate OK [18:10:55]requested_item fd.num is exist - process it [18:10:55]SAM_PROTO_GetFieldsCounters [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 13 00 00 [18:10:55]Write to MH i2c: E2 08 00 43 5A 80 13 00 00 00 00 00 00 19 [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 62 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 62 00 43 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:10:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F2 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:55]wFMCommunicate OK [18:10:55]SAM_PROTO_GetFieldsCounters done [18:10:55]requested_item shift.num is exist - process it [18:10:55]requested_item shift.opened is exist - process it [18:10:55]req_shift_opened [18:10:55]FM_GetShiftState [18:10:55]SAM_PROTO_GetShiftState [18:10:55]wFMCommunicate request_size=4 [18:10:55]MH_SAM_APDU [18:10:55]CAPDU: 80 13 01 00 [18:10:55]Write to MH i2c: E2 08 00 44 5A 80 13 01 00 00 00 00 00 1B [18:10:55]Write i2c OK [18:10:55]MH_I2C_Read... [18:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:55]Read from MH i2c: E2 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0E 00 [18:10:55]MH_I2C_Read... [18:10:55]Read from MH i2c: E2 0E 00 44 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 97 [18:10:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:10:55]wFMCommunicate OK [18:10:55]SAM_PROTO_GetShiftState done [18:10:55]FM_GetShiftState done [18:10:55]req_shift_opened done [18:10:55]requested_item shift.open_date is exist - process it [18:10:55]req_shift_open_date [18:10:55]req_shift_open_date done [18:10:55]produce_requested_data done [18:10:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30706,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:10:55]process_action_free close_receipt [18:10:55]json_value_free [18:10:55]json_value_free done [18:10:55]process_json_proto returns [18:10:55]Send response to host [18:10:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30706,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:10:55]free response buf [18:10:55]execute_script done [18:10:55]execute_script returns [18:10:55]free content buf [18:10:55]Sock 7.Close socket [18:10:55]Sock 7.Thread stoped [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:31]accept exits with 9 [18:13:31]New connection [18:13:31]New thread 3067489636 created [18:13:31]Thread 3067346276 joined [18:13:31]Waiting for new connection... [18:13:31] Sock 9.Parse request [18:13:31]Sock 9.Check first char [18:13:31]Sock 9.First char is OK [18:13:31]request: POST /json_proto HTTP/1.0 [18:13:31]Method: POST [18:13:31]URL: /json_proto [18:13:31]Method is POST - this is cgi request [18:13:31]url: /json_proto [18:13:31]query_string will be loaded in cgi processing [18:13:31]execute_cgi json_proto POST (null) [18:13:31]execute_cgi path=json_proto method=POST [18:13:31]POST find Content-Length [18:13:31]Host: 172.17.51.3:8080 [18:13:31]Content-Length: 678 [18:13:31]Content-Type: application/json [18:13:31] [18:13:31]POST finish read [18:13:31]Found Content-Length = 678 [18:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:31]execute_script... [18:13:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:31]POST & json_proto [18:13:31]process_json_proto [18:13:31]json parsed OK: [18:13:31]protocol is kg_v1.0 [18:13:31]action value=close_receipt [18:13:31]process_action close_receipt [18:13:31]cmd_close_receipt [18:13:31]MH_GetDate [18:13:31]Write to MH i2c: F0 00 00 45 5A 8E [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 45 5A 00 D2 99 16 67 04 C1 95 66 3F [18:13:31]GetLastDocTimeStamp 1729534257 [18:13:31]current date 1729534418 [18:13:31]FM_GetShiftState [18:13:31]SAM_PROTO_GetShiftState [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 13 01 00 [18:13:31]Write to MH i2c: E2 08 00 46 5A 80 13 01 00 00 00 00 00 1D [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0E 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 0E 00 46 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 99 [18:13:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:13:32]wFMCommunicate OK [18:13:32]SAM_PROTO_GetShiftState done [18:13:32]FM_GetShiftState done [18:13:32]opened in 1729471058 [18:13:32]opened+sec_in_day 1729557458 [18:13:32]quantity*price = 70044 [18:13:32]sum+1 = 70045 [18:13:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 204 21.10.2024 18:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30707 ФПД: 67263453163716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181338&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30707&fm=67263453163716&tin=02508201610067®Number=0000000000186857&sum=70000 [18:13:33]StoreToDocumentArchive [18:13:33]shift 115 fd 30707 [18:13:33]save to /storage/0115/doc_00030707 [18:13:33]save last doc name /storage/0115/doc_00030707 to /storage/kkm_last_doc_name [18:13:33]save OK [18:13:33]Clear old archive folders... [18:13:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:33]tlvbuf is B6F5DBB0 [18:13:33]SAM_PROTO_ClearQueue [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 09 00 00 [18:13:33]Write to MH i2c: E2 08 00 53 5A 80 09 00 00 00 00 00 00 1F [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 53 5A 00 90 00 21 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_ClearQueue done [18:13:33]KKMCreateOFDPacket [18:13:33]OFDProtocolAddRootSTLVToBuf [18:13:33]FM_MakeSignedData [18:13:33]FM_MakeSignedData [18:13:33]SAM_PROTO_SignData [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 01 02 [18:13:33]Write to MH i2c: E2 08 00 54 5A 80 0D 01 02 00 00 00 00 27 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 54 5A 00 90 00 22 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=255 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D2 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 77 00 00 35 04 06 00 3D [18:13:33]Write to MH i2c: E2 02 01 55 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D2 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 77 00 00 35 04 06 00 3D 00 00 96 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 55 5A 00 90 00 23 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=10 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 05 2C FE 3B 70 C4 [18:13:33]Write to MH i2c: E2 0D 00 56 5A 80 0D 02 02 05 00 2C FE 3B 70 C4 00 00 CD [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 56 5A 00 90 00 24 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 03 02 [18:13:33]Write to MH i2c: E2 08 00 57 5A 80 0D 03 02 00 00 00 00 2C [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 57 5A 00 1E 27 A1 84 63 B2 8D F0 90 00 29 [18:13:33]RAPDU: 1E 27 A1 84 63 B2 8D F0 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_SignData done [18:13:33]FM_MakeSignedData done [18:13:33]CreateOFDProtocolMessage [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 11 00 00 [18:13:33]Write to MH i2c: E2 08 00 58 5A 80 11 00 00 00 00 00 00 2C [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 58 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7A [18:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:13:33]wFMCommunicate OK [18:13:33]CreateOFDProtocolMessage done [18:13:33]OFDSenderStorePacket 30707 [18:13:33]StoreOFDPacket docnum=30707 [18:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E0 79 07 01 ED 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D2 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 77 00 00 35 04 06 00 3D 2C FE 3B 70 C4 1E 27 A1 84 63 B2 8D F0 [18:13:33]CheckFolder [18:13:33]dirname=/storage/ofd_packets [18:13:33]CheckFolder done [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00030707 [18:13:33]NVStorageSaveData ofd_packets/00030707 [18:13:33]File name is /storage/ofd_packets/00030707 [18:13:33]Write 301 bytes [18:13:33]NVStorageSaveData done [18:13:33]OFDSenderStorePacket done [18:13:33]KKMCreateOFDPacket done [18:13:33]NVStorageSaveData kkm_last_timestamp [18:13:33]File name is /storage/kkm_last_timestamp [18:13:33]Write 4 bytes [18:13:33]NVStorageSaveData done [18:13:33]ExternCall_PrintAddStr [18:13:33]wPrintStart [18:13:33]Write to MH i2c: 01 00 00 59 5A B3 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 59 5A 00 00 00 00 00 FF 0F C8 [18:13:33]RasterBufferAndPrint [18:13:33]line Счет N : (1)343121 [18:13:33]line ИНН: 02508201610067 [18:13:33]line Контрольно-Кассовый Чек [18:13:33]line ПРОДАЖА [18:13:33]line ТРК (МРК, ГНК) : 33 [18:13:33]line Товар: 2710124130 [18:13:33]line Аи-92-К-2 [18:13:33]line 10.470 * 66.90 [18:13:33]line = 700.44 [18:13:33]line НДС 12% НСП 1% [18:13:33]line > о реализуемом товаре [18:13:33]line ОКРУГЛЕНИЕ: -0.44 [18:13:33]line ИТОГО: 700.00 [18:13:33]line Внесено: 700.00 [18:13:33]line СДАЧА: 0.00 [18:13:33]line НСП 1% : 6.20 [18:13:33]line НДС 12% : 74.38 [18:13:33]line Наличными: 700.00 [18:13:33]line Безнал.: 0.00 [18:13:33]line Место: АЗС № 78 "Партнер Нефть" [18:13:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:13:33]line СНО: Общий режим [18:13:33]line Чек 204 21.10.2024 18:13 [18:13:33]line Смена: 115 ФФД: 1.0 [18:13:33]line ЗНМ: 0300000137 [18:13:33]line РНМ: 0000000000186857 [18:13:33]line Версия ККМ: v1.0 [18:13:33]line ФМ: 0000000002094219 [18:13:33]line ФД: 30707 [18:13:33]line ФПД: 67263453163716 [18:13:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181338&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30707&fm=67263453163716&tin=02508201610067®Number=0000000000186857&sum=70000 [18:13:34]OFD Sender: Processing packet 30707 [packets to send 10, broken 9] [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00030707 [18:13:34]OFD Sender: To server: pG, [18:13:34]CommunicateWithHost lk.salyk.kg:30040 [18:13:34]ConnectInit lk.salyk.kg [18:13:34]written 0, free lines is 4095 [18:13:34]Connected sock=7 [18:13:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E0 79 07 01 ED 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 D2 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 77 00 00 35 04 06 00 3D 2C FE 3B 70 C4 1E 27 A1 84 63 B2 8D F0 [18:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 97 6B 47 00 79 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F3 77 00 00 F4 03 04 00 52 44 16 67 B6 04 01 00 00 80 C2 1C BC D4 5C 99 60 [18:13:34]CommunicateWithHost err = 0 [18:13:34]CheckOFDResponse [18:13:34]1017 (14) - 77093643461234 [18:13:34]1041 (16) - 0000000002094219 [18:13:34]1040 (4) - 30707 [18:13:34]1012 (4) - 21.10.2024 12:08 [18:13:34]1206 (1) - 0 [18:13:34]OFD Sender: Remove packet 30707 [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00030707 [18:13:34]NVStorageDeleteData [18:13:34]Write to MH i2c: 01 00 00 84 5A DE [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 84 5A 00 00 00 00 00 F6 0C E7 [18:13:34]RasterBufferAndPrint [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]written 0, free lines is 3324 [18:13:34]MH_Cut [18:13:34]Write to MH i2c: D1 01 00 8B 5A 01 B7 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 8B 5A 00 B6 [18:13:34]Write to MH i2c: 01 00 00 8C 5A E6 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]OFD Sender: No OFD packet to send [18:13:35]*** Cut start [18:13:35]*** Partial cut [18:13:35]*** CUTSNS_PIN = 1 [18:13:35]*** CUTSNS_PIN = 0 [18:13:35]*** Brake cut motor [18:13:35]Read from MH i2c: 01 [18:13:35]MH_I2C_Read... [18:13:35]*** Stop cut motor [18:13:35]*** Cut end [18:13:35]Read from MH i2c: 01 07 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 8C 5A 00 00 00 00 00 FF 0F FB [18:13:35]process_action close_receipt done [18:13:35]requested_data is exist [18:13:35]produce_requested_data [18:13:35]requested_item fm.sn is exist - process it [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 11 00 00 [18:13:35]Write to MH i2c: E2 08 00 8D 5A 80 11 00 00 00 00 00 00 61 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 8D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AF [18:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:13:35]wFMCommunicate OK [18:13:35]requested_item fd.num is exist - process it [18:13:35]SAM_PROTO_GetFieldsCounters [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 00 00 [18:13:35]Write to MH i2c: E2 08 00 8E 5A 80 13 00 00 00 00 00 00 64 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 8E 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [18:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F3 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetFieldsCounters done [18:13:35]requested_item shift.num is exist - process it [18:13:35]requested_item shift.opened is exist - process it [18:13:35]req_shift_opened [18:13:35]FM_GetShiftState [18:13:35]SAM_PROTO_GetShiftState [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 01 00 [18:13:35]Write to MH i2c: E2 08 00 8F 5A 80 13 01 00 00 00 00 00 66 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:36]Read from MH i2c: E2 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 [18:13:36]MH_I2C_Read... [18:13:36]Read from MH i2c: E2 0E 00 8F 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E2 [18:13:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:13:36]wFMCommunicate OK [18:13:36]SAM_PROTO_GetShiftState done [18:13:36]FM_GetShiftState done [18:13:36]req_shift_opened done [18:13:36]requested_item shift.open_date is exist - process it [18:13:36]req_shift_open_date [18:13:36]req_shift_open_date done [18:13:36]produce_requested_data done [18:13:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30707,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:13:36]process_action_free close_receipt [18:13:36]json_value_free [18:13:36]json_value_free done [18:13:36]process_json_proto returns [18:13:36]Send response to host [18:13:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30707,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:13:36]free response buf [18:13:36]execute_script done [18:13:36]execute_script returns [18:13:36]free content buf [18:13:36]Sock 9.Close socket [18:13:36]Sock 9.Thread stoped [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:01]accept exits with 10 [18:14:01]New connection [18:14:01]New thread 3067346276 created [18:14:01]Thread 3067489636 joined [18:14:01]Waiting for new connection... [18:14:01] Sock 10.Parse request [18:14:01]Sock 10.Check first char [18:14:01]Sock 10.First char is OK [18:14:01]request: POST /json_proto HTTP/1.0 [18:14:01]Method: POST [18:14:01]URL: /json_proto [18:14:01]Method is POST - this is cgi request [18:14:01]url: /json_proto [18:14:01]query_string will be loaded in cgi processing [18:14:01]execute_cgi json_proto POST (null) [18:14:01]execute_cgi path=json_proto method=POST [18:14:01]POST find Content-Length [18:14:01]Host: 172.17.51.3:8080 [18:14:01]Content-Length: 751 [18:14:01]Content-Type: application/json [18:14:01] [18:14:01]POST finish read [18:14:01]Found Content-Length = 751 [18:14:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047932", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:01]execute_script... [18:14:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 90.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30047932", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:01]POST & json_proto [18:14:01]process_json_proto [18:14:01]json parsed OK: [18:14:01]protocol is kg_v1.0 [18:14:01]action value=close_receipt [18:14:01]process_action close_receipt [18:14:01]cmd_close_receipt [18:14:01]MH_GetDate [18:14:01]Write to MH i2c: F0 00 00 90 5A D9 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: F0 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: F0 09 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: F0 09 00 90 5A 00 EF 99 16 67 04 C1 95 66 A7 [18:14:01]GetLastDocTimeStamp 1729534418 [18:14:01]current date 1729534447 [18:14:01]FM_GetShiftState [18:14:01]SAM_PROTO_GetShiftState [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 13 01 00 [18:14:01]Write to MH i2c: E2 08 00 91 5A 80 13 01 00 00 00 00 00 68 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 91 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E4 [18:14:01]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:14:01]wFMCommunicate OK [18:14:01]SAM_PROTO_GetShiftState done [18:14:01]FM_GetShiftState done [18:14:01]opened in 1729471058 [18:14:01]opened+sec_in_day 1729557458 [18:14:01]quantity*price = 0 [18:14:01]sum+1 = 1 [18:14:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 205 21.10.2024 18:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30047932 ФМ: 0000000002094219 ФД: 30708 ФПД: 266020277933503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30708&fm=266020277933503&tin=02508201610067®Number=0000000000186857&sum=0 [18:14:02]StoreToDocumentArchive [18:14:02]shift 115 fd 30708 [18:14:02]save to /storage/0115/doc_00030708 [18:14:02]save last doc name /storage/0115/doc_00030708 to /storage/kkm_last_doc_name [18:14:02]save OK [18:14:02]Clear old archive folders... [18:14:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:14:02]tlvbuf is 01E565B0 [18:14:02]SAM_PROTO_ClearQueue [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 09 00 00 [18:14:02]Write to MH i2c: E2 08 00 9E 5A 80 09 00 00 00 00 00 00 6A [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 03 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 03 00 9E 5A 00 90 00 6C [18:14:02]RAPDU: 90 00 [18:14:02]wFMCommunicate OK [18:14:02]SAM_PROTO_ClearQueue done [18:14:02]KKMCreateOFDPacket [18:14:02]OFDProtocolAddRootSTLVToBuf [18:14:02]FM_MakeSignedData [18:14:02]FM_MakeSignedData [18:14:02]SAM_PROTO_SignData [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 0D 01 02 [18:14:02]Write to MH i2c: E2 08 00 9F 5A 80 0D 01 02 00 00 00 00 72 [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 03 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 03 00 9F 5A 00 90 00 6D [18:14:02]RAPDU: 90 00 [18:14:02]wFMCommunicate OK [18:14:02]wFMCommunicate request_size=255 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 EF 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 77 00 00 35 04 06 00 F1 F1 AC 2B [18:14:02]Write to MH i2c: E2 02 01 A0 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 EF 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 77 00 00 35 04 06 00 F1 F1 AC 2B 00 00 2A [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 03 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 03 00 A0 5A 00 90 00 6E [18:14:03]RAPDU: 90 00 [18:14:03]wFMCommunicate OK [18:14:03]wFMCommunicate request_size=7 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 0D 02 02 02 55 BF [18:14:03]Write to MH i2c: E2 0A 00 A1 5A 80 0D 02 02 02 00 55 BF 00 00 8D [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 03 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 03 00 A1 5A 00 90 00 6F [18:14:03]RAPDU: 90 00 [18:14:03]wFMCommunicate OK [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 0D 03 02 [18:14:03]Write to MH i2c: E2 08 00 A2 5A 80 0D 03 02 00 00 00 00 77 [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 0B 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 0B 00 A2 5A 00 67 98 61 A4 0A 4D 0B 80 90 00 5E [18:14:03]RAPDU: 67 98 61 A4 0A 4D 0B 80 90 00 [18:14:03]wFMCommunicate OK [18:14:03]SAM_PROTO_SignData done [18:14:03]FM_MakeSignedData done [18:14:03]CreateOFDProtocolMessage [18:14:03]wFMCommunicate request_size=4 [18:14:03]MH_SAM_APDU [18:14:03]CAPDU: 80 11 00 00 [18:14:03]Write to MH i2c: E2 08 00 A3 5A 80 11 00 00 00 00 00 00 77 [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:03]Read from MH i2c: E2 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 17 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: E2 17 00 A3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [18:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:03]wFMCommunicate OK [18:14:03]CreateOFDProtocolMessage done [18:14:03]OFDSenderStorePacket 30708 [18:14:03]StoreOFDPacket docnum=30708 [18:14:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 0D 04 01 FD 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 EF 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 77 00 00 35 04 06 00 F1 F1 AC 2B 55 BF 67 98 61 A4 0A 4D 0B 80 [18:14:03]CheckFolder [18:14:03]dirname=/storage/ofd_packets [18:14:03]CheckFolder done [18:14:03]ProducePacketName [18:14:03]name=ofd_packets/00030708 [18:14:03]NVStorageSaveData ofd_packets/00030708 [18:14:03]File name is /storage/ofd_packets/00030708 [18:14:03]Write 298 bytes [18:14:03]NVStorageSaveData done [18:14:03]OFDSenderStorePacket done [18:14:03]KKMCreateOFDPacket done [18:14:03]NVStorageSaveData kkm_last_timestamp [18:14:03]File name is /storage/kkm_last_timestamp [18:14:03]Write 4 bytes [18:14:03]NVStorageSaveData done [18:14:03]ExternCall_PrintAddStr [18:14:03]wPrintStart [18:14:03]Write to MH i2c: 01 00 00 A4 5A FE [18:14:03]Write i2c OK [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 07 00 [18:14:03]MH_I2C_Read... [18:14:03]Read from MH i2c: 01 07 00 A4 5A 00 00 00 00 00 FF 0F 13 [18:14:03]RasterBufferAndPrint [18:14:03]line Счет N : (1)343120 [18:14:03]line ИНН: 02508201610067 [18:14:03]line Контрольно-Кассовый Чек [18:14:03]line ПРОДАЖА [18:14:03]line ТРК (МРК, ГНК) : 44 [18:14:03]line Товар: 2710194210 [18:14:03]line ДТ-К-2 [18:14:03]line 90.000 * 0.00 [18:14:03]line = 0.00 [18:14:03]line НДС 12% НСП 1% [18:14:03]line > о реализуемом товаре [18:14:03]line ИТОГО: 0.00 [18:14:03]line НСП 1% : 0.00 [18:14:03]line НДС 12% : 0.00 [18:14:03]line Наличными: 0.00 [18:14:03]line Безнал.: 0.00 [18:14:03]line Место: АЗС № 78 "Партнер Нефть" [18:14:03]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:14:03]line СНО: Общий режим [18:14:03]line Чек 205 21.10.2024 18:14 [18:14:03]line Смена: 115 ФФД: 1.0 [18:14:03]line ЗНМ: 0300000137 [18:14:03]line РНМ: 0000000000186857 [18:14:03]line Версия ККМ: v1.0 [18:14:03]line Талоны: ТК ГПНА Online [18:14:03]line 30047932 [18:14:03]line ФМ: 0000000002094219 [18:14:03]line ФД: 30708 [18:14:03]line ФПД: 266020277933503 [18:14:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181407&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30708&fm=266020277933503&tin=02508201610067®Number=0000000000186857&sum=0 [18:14:03]OFD Sender: Processing packet 30708 [packets to send 10, broken 9] [18:14:03]ProducePacketName [18:14:03]name=ofd_packets/00030708 [18:14:03]OFD Sender: To server: pG, [18:14:03]CommunicateWithHost lk.salyk.kg:30040 [18:14:03]ConnectInit lk.salyk.kg [18:14:03]written 0, free lines is 4095 [18:14:03]Connected sock=11 [18:14:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 B3 0D 04 01 FD 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 90 5F 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 EF 99 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 77 00 00 35 04 06 00 F1 F1 AC 2B 55 BF 67 98 61 A4 0A 4D 0B 80 [18:14:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AC 30 47 00 EC A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F4 77 00 00 F4 03 04 00 6F 44 16 67 B6 04 01 00 00 D2 F6 28 92 54 2D 56 14 [18:14:03]CommunicateWithHost err = 0 [18:14:03]CheckOFDResponse [18:14:03]1017 (14) - 77093643461234 [18:14:03]1041 (16) - 0000000002094219 [18:14:03]1040 (4) - 30708 [18:14:03]1012 (4) - 21.10.2024 12:09 [18:14:03]1206 (1) - 0 [18:14:03]OFD Sender: Remove packet 30708 [18:14:03]ProducePacketName [18:14:03]name=ofd_packets/00030708 [18:14:03]NVStorageDeleteData [18:14:04]Write to MH i2c: 01 00 00 CE 5A 28 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: 01 07 00 CE 5A 00 00 00 00 00 02 0D 3E [18:14:04]RasterBufferAndPrint [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]line [18:14:04]written 0, free lines is 3336 [18:14:04]MH_Cut [18:14:04]Write to MH i2c: D1 01 00 D5 5A 01 01 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 01 00 [18:14:04]MH_I2C_Read... [18:14:04]Read from MH i2c: D1 01 00 D5 5A 00 00 [18:14:04]Write to MH i2c: 01 00 00 D6 5A 30 [18:14:04]Write i2c OK [18:14:04]MH_I2C_Read... [18:14:04]OFD Sender: No OFD packet to send [18:14:04]*** Cut start [18:14:04]*** Partial cut [18:14:04]*** CUTSNS_PIN = 1 [18:14:04]*** CUTSNS_PIN = 0 [18:14:04]*** Brake cut motor [18:14:05]Read from MH i2c: 01 [18:14:05]MH_I2C_Read... [18:14:05]*** Stop cut motor [18:14:05]*** Cut end [18:14:05]Read from MH i2c: 01 07 00 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: 01 07 00 D6 5A 00 00 00 00 00 FF 0F 45 [18:14:05]process_action close_receipt done [18:14:05]requested_data is exist [18:14:05]produce_requested_data [18:14:05]requested_item fm.sn is exist - process it [18:14:05]wFMCommunicate request_size=4 [18:14:05]MH_SAM_APDU [18:14:05]CAPDU: 80 11 00 00 [18:14:05]Write to MH i2c: E2 08 00 D7 5A 80 11 00 00 00 00 00 00 AB [18:14:05]Write i2c OK [18:14:05]MH_I2C_Read... [18:14:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:05]Read from MH i2c: E2 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 17 00 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 17 00 D7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F9 [18:14:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:14:05]wFMCommunicate OK [18:14:05]requested_item fd.num is exist - process it [18:14:05]SAM_PROTO_GetFieldsCounters [18:14:05]wFMCommunicate request_size=4 [18:14:05]MH_SAM_APDU [18:14:05]CAPDU: 80 13 00 00 [18:14:05]Write to MH i2c: E2 08 00 D8 5A 80 13 00 00 00 00 00 00 AE [18:14:05]Write i2c OK [18:14:05]MH_I2C_Read... [18:14:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:05]Read from MH i2c: E2 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 62 00 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 62 00 D8 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:14:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F4 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:05]wFMCommunicate OK [18:14:05]SAM_PROTO_GetFieldsCounters done [18:14:05]requested_item shift.num is exist - process it [18:14:05]requested_item shift.opened is exist - process it [18:14:05]req_shift_opened [18:14:05]FM_GetShiftState [18:14:05]SAM_PROTO_GetShiftState [18:14:05]wFMCommunicate request_size=4 [18:14:05]MH_SAM_APDU [18:14:05]CAPDU: 80 13 01 00 [18:14:05]Write to MH i2c: E2 08 00 D9 5A 80 13 01 00 00 00 00 00 B0 [18:14:05]Write i2c OK [18:14:05]MH_I2C_Read... [18:14:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:05]Read from MH i2c: E2 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 0E 00 [18:14:05]MH_I2C_Read... [18:14:05]Read from MH i2c: E2 0E 00 D9 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2C [18:14:05]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:14:05]wFMCommunicate OK [18:14:05]SAM_PROTO_GetShiftState done [18:14:05]FM_GetShiftState done [18:14:05]req_shift_opened done [18:14:05]requested_item shift.open_date is exist - process it [18:14:05]req_shift_open_date [18:14:05]req_shift_open_date done [18:14:05]produce_requested_data done [18:14:05]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30708,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:14:05]process_action_free close_receipt [18:14:05]json_value_free [18:14:05]json_value_free done [18:14:05]process_json_proto returns [18:14:05]Send response to host [18:14:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30708,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:14:05]free response buf [18:14:05]execute_script done [18:14:05]execute_script returns [18:14:05]free content buf [18:14:05]Sock 10.Close socket [18:14:05]Sock 10.Thread stoped [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:07]accept exits with 7 [18:16:07]New connection [18:16:07]New thread 3067489636 created [18:16:07]Thread 3067346276 joined [18:16:07]Waiting for new connection... [18:16:07] Sock 7.Parse request [18:16:07]Sock 7.Check first char [18:16:07]Sock 7.First char is OK [18:16:07]request: POST /json_proto HTTP/1.0 [18:16:07]Method: POST [18:16:07]URL: /json_proto [18:16:07]Method is POST - this is cgi request [18:16:07]url: /json_proto [18:16:07]query_string will be loaded in cgi processing [18:16:07]execute_cgi json_proto POST (null) [18:16:07]execute_cgi path=json_proto method=POST [18:16:07]POST find Content-Length [18:16:07]Host: 172.17.51.3:8080 [18:16:07]Content-Length: 677 [18:16:07]Content-Type: application/json [18:16:07] [18:16:07]POST finish read [18:16:07]Found Content-Length = 677 [18:16:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:07]execute_script... [18:16:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:16:07]POST & json_proto [18:16:07]process_json_proto [18:16:07]json parsed OK: [18:16:07]protocol is kg_v1.0 [18:16:07]action value=close_receipt [18:16:07]process_action close_receipt [18:16:07]cmd_close_receipt [18:16:07]MH_GetDate [18:16:07]Write to MH i2c: F0 00 00 DA 5A 23 [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: F0 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: F0 09 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: F0 09 00 DA 5A 00 6D 9A 16 67 04 C1 95 66 70 [18:16:07]GetLastDocTimeStamp 1729534447 [18:16:07]current date 1729534573 [18:16:07]FM_GetShiftState [18:16:07]SAM_PROTO_GetShiftState [18:16:07]wFMCommunicate request_size=4 [18:16:07]MH_SAM_APDU [18:16:07]CAPDU: 80 13 01 00 [18:16:07]Write to MH i2c: E2 08 00 DB 5A 80 13 01 00 00 00 00 00 B2 [18:16:07]Write i2c OK [18:16:07]MH_I2C_Read... [18:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:07]Read from MH i2c: E2 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 0E 00 [18:16:07]MH_I2C_Read... [18:16:07]Read from MH i2c: E2 0E 00 DB 5A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 2E [18:16:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:16:07]wFMCommunicate OK [18:16:07]SAM_PROTO_GetShiftState done [18:16:07]FM_GetShiftState done [18:16:07]opened in 1729471058 [18:16:07]opened+sec_in_day 1729557458 [18:16:07]quantity*price = 40006 [18:16:07]sum+1 = 40007 [18:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 206 21.10.2024 18:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30709 ФПД: 247124266468339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30709&fm=247124266468339&tin=02508201610067®Number=0000000000186857&sum=40000 [18:16:08]StoreToDocumentArchive [18:16:08]shift 115 fd 30709 [18:16:08]save to /storage/0115/doc_00030709 [18:16:08]save last doc name /storage/0115/doc_00030709 to /storage/kkm_last_doc_name [18:16:08]save OK [18:16:08]Clear old archive folders... [18:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:08]tlvbuf is 01F8B590 [18:16:08]SAM_PROTO_ClearQueue [18:16:08]wFMCommunicate request_size=4 [18:16:08]MH_SAM_APDU [18:16:08]CAPDU: 80 09 00 00 [18:16:08]Write to MH i2c: E2 08 00 E8 5A 80 09 00 00 00 00 00 00 B4 [18:16:08]Write i2c OK [18:16:08]MH_I2C_Read... [18:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:08]Read from MH i2c: E2 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 E8 5A 00 90 00 B6 [18:16:08]RAPDU: 90 00 [18:16:08]wFMCommunicate OK [18:16:08]SAM_PROTO_ClearQueue done [18:16:08]KKMCreateOFDPacket [18:16:08]OFDProtocolAddRootSTLVToBuf [18:16:08]FM_MakeSignedData [18:16:08]FM_MakeSignedData [18:16:08]SAM_PROTO_SignData [18:16:08]wFMCommunicate request_size=4 [18:16:08]MH_SAM_APDU [18:16:08]CAPDU: 80 0D 01 02 [18:16:08]Write to MH i2c: E2 08 00 E9 5A 80 0D 01 02 00 00 00 00 BC [18:16:08]Write i2c OK [18:16:08]MH_I2C_Read... [18:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:08]Read from MH i2c: E2 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 E9 5A 00 90 00 B7 [18:16:08]RAPDU: 90 00 [18:16:08]wFMCommunicate OK [18:16:08]wFMCommunicate request_size=255 [18:16:08]MH_SAM_APDU [18:16:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6D 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 77 00 00 35 04 06 00 E0 [18:16:08]Write to MH i2c: E2 02 01 EA 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6D 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 77 00 00 35 04 06 00 E0 00 00 2D [18:16:08]Write i2c OK [18:16:08]MH_I2C_Read... [18:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:08]Read from MH i2c: E2 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 EA 5A 00 90 00 B8 [18:16:08]RAPDU: 90 00 [18:16:08]wFMCommunicate OK [18:16:08]wFMCommunicate request_size=10 [18:16:08]MH_SAM_APDU [18:16:08]CAPDU: 80 0D 02 02 05 C2 1A 1E 43 F3 [18:16:08]Write to MH i2c: E2 0D 00 EB 5A 80 0D 02 02 05 00 C2 1A 1E 43 F3 00 00 F9 [18:16:08]Write i2c OK [18:16:08]MH_I2C_Read... [18:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:08]Read from MH i2c: E2 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 [18:16:08]MH_I2C_Read... [18:16:08]Read from MH i2c: E2 03 00 EB 5A 00 90 00 B9 [18:16:08]RAPDU: 90 00 [18:16:08]wFMCommunicate OK [18:16:08]wFMCommunicate request_size=4 [18:16:08]MH_SAM_APDU [18:16:08]CAPDU: 80 0D 03 02 [18:16:08]Write to MH i2c: E2 08 00 EC 5A 80 0D 03 02 00 00 00 00 C1 [18:16:08]Write i2c OK [18:16:08]MH_I2C_Read... [18:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:09]Read from MH i2c: E2 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 0B 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 0B 00 EC 5A 00 E9 07 D9 D3 4B 91 E8 1E 90 00 40 [18:16:09]RAPDU: E9 07 D9 D3 4B 91 E8 1E 90 00 [18:16:09]wFMCommunicate OK [18:16:09]SAM_PROTO_SignData done [18:16:09]FM_MakeSignedData done [18:16:09]CreateOFDProtocolMessage [18:16:09]wFMCommunicate request_size=4 [18:16:09]MH_SAM_APDU [18:16:09]CAPDU: 80 11 00 00 [18:16:09]Write to MH i2c: E2 08 00 ED 5A 80 11 00 00 00 00 00 00 C1 [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:09]Read from MH i2c: E2 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 17 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: E2 17 00 ED 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [18:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:16:09]wFMCommunicate OK [18:16:09]CreateOFDProtocolMessage done [18:16:09]OFDSenderStorePacket 30709 [18:16:09]StoreOFDPacket docnum=30709 [18:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C 39 07 01 BE 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6D 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 77 00 00 35 04 06 00 E0 C2 1A 1E 43 F3 E9 07 D9 D3 4B 91 E8 1E [18:16:09]CheckFolder [18:16:09]dirname=/storage/ofd_packets [18:16:09]CheckFolder done [18:16:09]ProducePacketName [18:16:09]name=ofd_packets/00030709 [18:16:09]NVStorageSaveData ofd_packets/00030709 [18:16:09]File name is /storage/ofd_packets/00030709 [18:16:09]Write 301 bytes [18:16:09]NVStorageSaveData done [18:16:09]OFDSenderStorePacket done [18:16:09]KKMCreateOFDPacket done [18:16:09]NVStorageSaveData kkm_last_timestamp [18:16:09]File name is /storage/kkm_last_timestamp [18:16:09]Write 4 bytes [18:16:09]NVStorageSaveData done [18:16:09]ExternCall_PrintAddStr [18:16:09]wPrintStart [18:16:09]Write to MH i2c: 01 00 00 EE 5A 48 [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 07 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 07 00 EE 5A 00 00 00 00 00 FF 0F 5D [18:16:09]RasterBufferAndPrint [18:16:09]line Счет N : (1)343122 [18:16:09]line ИНН: 02508201610067 [18:16:09]line Контрольно-Кассовый Чек [18:16:09]line ПРОДАЖА [18:16:09]line ТРК (МРК, ГНК) : 63 [18:16:09]line Товар: 2710124130 [18:16:09]line Аи-92-К-2 [18:16:09]line 5.980 * 66.90 [18:16:09]line = 400.06 [18:16:09]line НДС 12% НСП 1% [18:16:09]line > о реализуемом товаре [18:16:09]line ОКРУГЛЕНИЕ: -0.06 [18:16:09]line ИТОГО: 400.00 [18:16:09]line Внесено: 400.00 [18:16:09]line СДАЧА: 0.00 [18:16:09]line НСП 1% : 3.54 [18:16:09]line НДС 12% : 42.48 [18:16:09]line Наличными: 400.00 [18:16:09]line Безнал.: 0.00 [18:16:09]line Место: АЗС № 78 "Партнер Нефть" [18:16:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:16:09]line СНО: Общий режим [18:16:09]line Чек 206 21.10.2024 18:16 [18:16:09]line Смена: 115 ФФД: 1.0 [18:16:09]line ЗНМ: 0300000137 [18:16:09]line РНМ: 0000000000186857 [18:16:09]line Версия ККМ: v1.0 [18:16:09]line ФМ: 0000000002094219 [18:16:09]line ФД: 30709 [18:16:09]line ФПД: 247124266468339 [18:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30709&fm=247124266468339&tin=02508201610067®Number=0000000000186857&sum=40000 [18:16:09]OFD Sender: Processing packet 30709 [packets to send 10, broken 9] [18:16:09]ProducePacketName [18:16:09]name=ofd_packets/00030709 [18:16:09]OFD Sender: To server: pG, [18:16:09]CommunicateWithHost lk.salyk.kg:30040 [18:16:09]ConnectInit lk.salyk.kg [18:16:09]written 0, free lines is 4095 [18:16:09]Connected sock=10 [18:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 5C 39 07 01 BE 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 6D 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 77 00 00 35 04 06 00 E0 C2 1A 1E 43 F3 E9 07 D9 D3 4B 91 E8 1E [18:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 33 47 00 C3 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F5 77 00 00 F4 03 04 00 ED 44 16 67 B6 04 01 00 00 FD 9C 05 68 FE 7E 08 D1 [18:16:09]CommunicateWithHost err = 0 [18:16:09]CheckOFDResponse [18:16:09]1017 (14) - 77093643461234 [18:16:09]1041 (16) - 0000000002094219 [18:16:09]1040 (4) - 30709 [18:16:09]1012 (4) - 21.10.2024 12:11 [18:16:09]1206 (1) - 0 [18:16:09]OFD Sender: Remove packet 30709 [18:16:09]ProducePacketName [18:16:09]name=ofd_packets/00030709 [18:16:09]NVStorageDeleteData [18:16:09]Write to MH i2c: 01 00 00 19 5B 74 [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 07 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: 01 07 00 19 5B 00 00 00 00 00 F5 0C 7C [18:16:09]RasterBufferAndPrint [18:16:09]line [18:16:09]line [18:16:09]line [18:16:09]line [18:16:09]line [18:16:09]written 0, free lines is 3328 [18:16:09]MH_Cut [18:16:09]Write to MH i2c: D1 01 00 20 5B 01 4D [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: D1 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: D1 01 00 [18:16:09]MH_I2C_Read... [18:16:09]Read from MH i2c: D1 01 00 20 5B 00 4C [18:16:09]Write to MH i2c: 01 00 00 21 5B 7C [18:16:09]Write i2c OK [18:16:09]MH_I2C_Read... [18:16:10]OFD Sender: No OFD packet to send [18:16:10]*** Cut start [18:16:10]*** Partial cut [18:16:10]*** CUTSNS_PIN = 1 [18:16:10]*** CUTSNS_PIN = 0 [18:16:10]*** Brake cut motor [18:16:11]Read from MH i2c: 01 [18:16:11]MH_I2C_Read... [18:16:11]*** Stop cut motor [18:16:11]*** Cut end [18:16:11]Read from MH i2c: 01 07 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: 01 07 00 21 5B 00 00 00 00 00 FF 0F 91 [18:16:11]process_action close_receipt done [18:16:11]requested_data is exist [18:16:11]produce_requested_data [18:16:11]requested_item fm.sn is exist - process it [18:16:11]wFMCommunicate request_size=4 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 11 00 00 [18:16:11]Write to MH i2c: E2 08 00 22 5B 80 11 00 00 00 00 00 00 F7 [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:11]Read from MH i2c: E2 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 17 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 17 00 22 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 45 [18:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:16:11]wFMCommunicate OK [18:16:11]requested_item fd.num is exist - process it [18:16:11]SAM_PROTO_GetFieldsCounters [18:16:11]wFMCommunicate request_size=4 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 13 00 00 [18:16:11]Write to MH i2c: E2 08 00 23 5B 80 13 00 00 00 00 00 00 FA [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:11]Read from MH i2c: E2 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 62 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 62 00 23 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [18:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F5 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:11]wFMCommunicate OK [18:16:11]SAM_PROTO_GetFieldsCounters done [18:16:11]requested_item shift.num is exist - process it [18:16:11]requested_item shift.opened is exist - process it [18:16:11]req_shift_opened [18:16:11]FM_GetShiftState [18:16:11]SAM_PROTO_GetShiftState [18:16:11]wFMCommunicate request_size=4 [18:16:11]MH_SAM_APDU [18:16:11]CAPDU: 80 13 01 00 [18:16:11]Write to MH i2c: E2 08 00 24 5B 80 13 01 00 00 00 00 00 FC [18:16:11]Write i2c OK [18:16:11]MH_I2C_Read... [18:16:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:11]Read from MH i2c: E2 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 0E 00 [18:16:11]MH_I2C_Read... [18:16:11]Read from MH i2c: E2 0E 00 24 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 78 [18:16:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:16:11]wFMCommunicate OK [18:16:11]SAM_PROTO_GetShiftState done [18:16:11]FM_GetShiftState done [18:16:11]req_shift_opened done [18:16:11]requested_item shift.open_date is exist - process it [18:16:11]req_shift_open_date [18:16:11]req_shift_open_date done [18:16:11]produce_requested_data done [18:16:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30709,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:16:11]process_action_free close_receipt [18:16:11]json_value_free [18:16:11]json_value_free done [18:16:11]process_json_proto returns [18:16:11]Send response to host [18:16:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30709,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:16:11]free response buf [18:16:11]execute_script done [18:16:11]execute_script returns [18:16:11]free content buf [18:16:11]Sock 7.Close socket [18:16:11]Sock 7.Thread stoped [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:38]accept exits with 9 [18:17:38]New connection [18:17:38]New thread 3067346276 created [18:17:38]Thread 3067489636 joined [18:17:38]Waiting for new connection... [18:17:38] Sock 9.Parse request [18:17:38]Sock 9.Check first char [18:17:38]Sock 9.First char is OK [18:17:38]request: POST /json_proto HTTP/1.0 [18:17:38]Method: POST [18:17:38]URL: /json_proto [18:17:38]Method is POST - this is cgi request [18:17:38]url: /json_proto [18:17:38]query_string will be loaded in cgi processing [18:17:38]execute_cgi json_proto POST (null) [18:17:38]execute_cgi path=json_proto method=POST [18:17:38]POST find Content-Length [18:17:38]Host: 172.17.51.3:8080 [18:17:38]Content-Length: 682 [18:17:38]Content-Type: application/json [18:17:38] [18:17:38]POST finish read [18:17:38]Found Content-Length = 682 [18:17:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:38]execute_script... [18:17:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:38]POST & json_proto [18:17:38]process_json_proto [18:17:38]json parsed OK: [18:17:38]protocol is kg_v1.0 [18:17:38]action value=close_receipt [18:17:38]process_action close_receipt [18:17:38]cmd_close_receipt [18:17:38]MH_GetDate [18:17:38]Write to MH i2c: F0 00 00 25 5B 6F [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 09 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: F0 09 00 25 5B 00 C8 9A 16 67 04 C1 95 66 17 [18:17:38]GetLastDocTimeStamp 1729534573 [18:17:38]current date 1729534664 [18:17:38]FM_GetShiftState [18:17:38]SAM_PROTO_GetShiftState [18:17:38]wFMCommunicate request_size=4 [18:17:38]MH_SAM_APDU [18:17:38]CAPDU: 80 13 01 00 [18:17:38]Write to MH i2c: E2 08 00 26 5B 80 13 01 00 00 00 00 00 FE [18:17:38]Write i2c OK [18:17:38]MH_I2C_Read... [18:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:38]Read from MH i2c: E2 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0E 00 [18:17:38]MH_I2C_Read... [18:17:38]Read from MH i2c: E2 0E 00 26 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7A [18:17:38]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:17:38]wFMCommunicate OK [18:17:38]SAM_PROTO_GetShiftState done [18:17:38]FM_GetShiftState done [18:17:38]opened in 1729471058 [18:17:38]opened+sec_in_day 1729557458 [18:17:38]quantity*price = 120055 [18:17:38]sum+1 = 120057 [18:17:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 207 21.10.2024 18:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30710 ФПД: 187143255017984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30710&fm=187143255017984&tin=02508201610067®Number=0000000000186857&sum=120000 [18:17:39]StoreToDocumentArchive [18:17:39]shift 115 fd 30710 [18:17:39]save to /storage/0115/doc_00030710 [18:17:39]save last doc name /storage/0115/doc_00030710 to /storage/kkm_last_doc_name [18:17:39]save OK [18:17:39]Clear old archive folders... [18:17:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:17:39]tlvbuf is 01DB6760 [18:17:39]SAM_PROTO_ClearQueue [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 09 00 00 [18:17:39]Write to MH i2c: E2 08 00 33 5B 80 09 00 00 00 00 00 00 00 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:39]Read from MH i2c: E2 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 03 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 03 00 33 5B 00 90 00 02 [18:17:39]RAPDU: 90 00 [18:17:39]wFMCommunicate OK [18:17:39]SAM_PROTO_ClearQueue done [18:17:39]KKMCreateOFDPacket [18:17:39]OFDProtocolAddRootSTLVToBuf [18:17:39]FM_MakeSignedData [18:17:39]FM_MakeSignedData [18:17:39]SAM_PROTO_SignData [18:17:39]wFMCommunicate request_size=4 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 0D 01 02 [18:17:39]Write to MH i2c: E2 08 00 34 5B 80 0D 01 02 00 00 00 00 08 [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:39]Read from MH i2c: E2 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 03 00 [18:17:39]MH_I2C_Read... [18:17:39]Read from MH i2c: E2 03 00 34 5B 00 90 00 03 [18:17:39]RAPDU: 90 00 [18:17:39]wFMCommunicate OK [18:17:39]wFMCommunicate request_size=255 [18:17:39]MH_SAM_APDU [18:17:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C8 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 77 00 00 35 04 06 00 AA [18:17:39]Write to MH i2c: E2 02 01 35 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C8 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 77 00 00 35 04 06 00 AA 00 00 FB [18:17:39]Write i2c OK [18:17:39]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 35 5B 00 90 00 04 [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]wFMCommunicate request_size=10 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 02 02 05 34 AF 3C CA 00 [18:17:40]Write to MH i2c: E2 0D 00 36 5B 80 0D 02 02 05 00 34 AF 3C CA 00 00 00 FE [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 03 00 36 5B 00 90 00 05 [18:17:40]RAPDU: 90 00 [18:17:40]wFMCommunicate OK [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 0D 03 02 [18:17:40]Write to MH i2c: E2 08 00 37 5B 80 0D 03 02 00 00 00 00 0D [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0B 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 0B 00 37 5B 00 6D E4 BE F6 96 42 A8 D0 90 00 63 [18:17:40]RAPDU: 6D E4 BE F6 96 42 A8 D0 90 00 [18:17:40]wFMCommunicate OK [18:17:40]SAM_PROTO_SignData done [18:17:40]FM_MakeSignedData done [18:17:40]CreateOFDProtocolMessage [18:17:40]wFMCommunicate request_size=4 [18:17:40]MH_SAM_APDU [18:17:40]CAPDU: 80 11 00 00 [18:17:40]Write to MH i2c: E2 08 00 38 5B 80 11 00 00 00 00 00 00 0D [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:40]Read from MH i2c: E2 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: E2 17 00 38 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [18:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:17:40]wFMCommunicate OK [18:17:40]CreateOFDProtocolMessage done [18:17:40]OFDSenderStorePacket 30710 [18:17:40]StoreOFDPacket docnum=30710 [18:17:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 4B 07 01 5D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C8 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 77 00 00 35 04 06 00 AA 34 AF 3C CA 00 6D E4 BE F6 96 42 A8 D0 [18:17:40]CheckFolder [18:17:40]dirname=/storage/ofd_packets [18:17:40]CheckFolder done [18:17:40]ProducePacketName [18:17:40]name=ofd_packets/00030710 [18:17:40]NVStorageSaveData ofd_packets/00030710 [18:17:40]File name is /storage/ofd_packets/00030710 [18:17:40]Write 301 bytes [18:17:40]NVStorageSaveData done [18:17:40]OFDSenderStorePacket done [18:17:40]KKMCreateOFDPacket done [18:17:40]NVStorageSaveData kkm_last_timestamp [18:17:40]File name is /storage/kkm_last_timestamp [18:17:40]Write 4 bytes [18:17:40]NVStorageSaveData done [18:17:40]ExternCall_PrintAddStr [18:17:40]wPrintStart [18:17:40]Write to MH i2c: 01 00 00 39 5B 94 [18:17:40]Write i2c OK [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 07 00 [18:17:40]MH_I2C_Read... [18:17:40]Read from MH i2c: 01 07 00 39 5B 00 00 00 00 00 FF 0F A9 [18:17:40]RasterBufferAndPrint [18:17:40]line Счет N : (1)343123 [18:17:40]line ИНН: 02508201610067 [18:17:40]line Контрольно-Кассовый Чек [18:17:40]line ПРОДАЖА [18:17:40]line ТРК (МРК, ГНК) : 52 [18:17:40]line Товар: 2710124500 [18:17:40]line Аи-95-К-3 [18:17:40]line 16.180 * 74.20 [18:17:40]line = 1200.56 [18:17:40]line НДС 12% НСП 1% [18:17:40]line > о реализуемом товаре [18:17:40]line ОКРУГЛЕНИЕ: -0.56 [18:17:40]line ИТОГО: 1200.00 [18:17:40]line Внесено: 1200.00 [18:17:40]line СДАЧА: 0.00 [18:17:40]line НСП 1% : 10.62 [18:17:40]line НДС 12% : 127.49 [18:17:40]line Наличными: 1200.00 [18:17:40]line Безнал.: 0.00 [18:17:40]line Место: АЗС № 78 "Партнер Нефть" [18:17:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:17:40]line СНО: Общий режим [18:17:40]line Чек 207 21.10.2024 18:17 [18:17:40]line Смена: 115 ФФД: 1.0 [18:17:40]line ЗНМ: 0300000137 [18:17:40]line РНМ: 0000000000186857 [18:17:40]line Версия ККМ: v1.0 [18:17:40]line ФМ: 0000000002094219 [18:17:40]line ФД: 30710 [18:17:40]line ФПД: 187143255017984 [18:17:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181744&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30710&fm=187143255017984&tin=02508201610067®Number=0000000000186857&sum=120000 [18:17:40]OFD Sender: Processing packet 30710 [packets to send 10, broken 9] [18:17:40]ProducePacketName [18:17:40]name=ofd_packets/00030710 [18:17:40]OFD Sender: To server: pG, [18:17:40]CommunicateWithHost lk.salyk.kg:30040 [18:17:40]ConnectInit lk.salyk.kg [18:17:40]written 0, free lines is 4095 [18:17:40]Connected sock=10 [18:17:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 AA 4B 07 01 5D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 C8 9A 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 77 00 00 35 04 06 00 AA 34 AF 3C CA 00 6D E4 BE F6 96 42 A8 D0 [18:17:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8E 90 47 00 8F CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F6 77 00 00 F4 03 04 00 48 45 16 67 B6 04 01 00 00 2C 13 16 51 14 27 6E 82 [18:17:40]CommunicateWithHost err = 0 [18:17:40]CheckOFDResponse [18:17:40]1017 (14) - 77093643461234 [18:17:40]1041 (16) - 0000000002094219 [18:17:40]1040 (4) - 30710 [18:17:40]1012 (4) - 21.10.2024 12:12 [18:17:40]1206 (1) - 0 [18:17:40]OFD Sender: Remove packet 30710 [18:17:40]ProducePacketName [18:17:40]name=ofd_packets/00030710 [18:17:40]NVStorageDeleteData [18:17:41]Write to MH i2c: 01 00 00 64 5B BF [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 07 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: 01 07 00 64 5B 00 00 00 00 00 F6 0C C8 [18:17:41]RasterBufferAndPrint [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]line [18:17:41]written 0, free lines is 3324 [18:17:41]MH_Cut [18:17:41]Write to MH i2c: D1 01 00 6B 5B 01 98 [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 01 00 [18:17:41]MH_I2C_Read... [18:17:41]Read from MH i2c: D1 01 00 6B 5B 00 97 [18:17:41]Write to MH i2c: 01 00 00 6C 5B C7 [18:17:41]Write i2c OK [18:17:41]MH_I2C_Read... [18:17:41]OFD Sender: No OFD packet to send [18:17:41]*** Cut start [18:17:41]*** Partial cut [18:17:41]*** CUTSNS_PIN = 1 [18:17:41]*** CUTSNS_PIN = 0 [18:17:41]*** Brake cut motor [18:17:42]Read from MH i2c: 01 [18:17:42]MH_I2C_Read... [18:17:42]*** Stop cut motor [18:17:42]*** Cut end [18:17:42]Read from MH i2c: 01 07 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: 01 07 00 6C 5B 00 00 00 00 00 FF 0F DC [18:17:42]process_action close_receipt done [18:17:42]requested_data is exist [18:17:42]produce_requested_data [18:17:42]requested_item fm.sn is exist - process it [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 11 00 00 [18:17:42]Write to MH i2c: E2 08 00 6D 5B 80 11 00 00 00 00 00 00 42 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 17 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 17 00 6D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [18:17:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:17:42]wFMCommunicate OK [18:17:42]requested_item fd.num is exist - process it [18:17:42]SAM_PROTO_GetFieldsCounters [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 13 00 00 [18:17:42]Write to MH i2c: E2 08 00 6E 5B 80 13 00 00 00 00 00 00 45 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 62 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 62 00 6E 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [18:17:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F6 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_GetFieldsCounters done [18:17:42]requested_item shift.num is exist - process it [18:17:42]requested_item shift.opened is exist - process it [18:17:42]req_shift_opened [18:17:42]FM_GetShiftState [18:17:42]SAM_PROTO_GetShiftState [18:17:42]wFMCommunicate request_size=4 [18:17:42]MH_SAM_APDU [18:17:42]CAPDU: 80 13 01 00 [18:17:42]Write to MH i2c: E2 08 00 6F 5B 80 13 01 00 00 00 00 00 47 [18:17:42]Write i2c OK [18:17:42]MH_I2C_Read... [18:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:42]Read from MH i2c: E2 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 [18:17:42]MH_I2C_Read... [18:17:42]Read from MH i2c: E2 0E 00 6F 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C3 [18:17:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:17:42]wFMCommunicate OK [18:17:42]SAM_PROTO_GetShiftState done [18:17:42]FM_GetShiftState done [18:17:42]req_shift_opened done [18:17:42]requested_item shift.open_date is exist - process it [18:17:42]req_shift_open_date [18:17:42]req_shift_open_date done [18:17:42]produce_requested_data done [18:17:42]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30710,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:17:42]process_action_free close_receipt [18:17:42]json_value_free [18:17:42]json_value_free done [18:17:42]process_json_proto returns [18:17:42]Send response to host [18:17:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30710,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:17:42]free response buf [18:17:42]execute_script done [18:17:42]execute_script returns [18:17:42]free content buf [18:17:42]Sock 9.Close socket [18:17:42]Sock 9.Thread stoped [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]accept exits with 7 [18:21:46]New connection [18:21:46]New thread 3067489636 created [18:21:46]Thread 3067346276 joined [18:21:46]Waiting for new connection... [18:21:46] Sock 7.Parse request [18:21:46]Sock 7.Check first char [18:21:46]Sock 7.First char is OK [18:21:46]request: POST /json_proto HTTP/1.0 [18:21:46]Method: POST [18:21:46]URL: /json_proto [18:21:46]Method is POST - this is cgi request [18:21:46]url: /json_proto [18:21:46]query_string will be loaded in cgi processing [18:21:46]execute_cgi json_proto POST (null) [18:21:46]execute_cgi path=json_proto method=POST [18:21:46]POST find Content-Length [18:21:46]Host: 172.17.51.3:8080 [18:21:46]Content-Length: 683 [18:21:46]Content-Type: application/json [18:21:46] [18:21:46]POST finish read [18:21:46]Found Content-Length = 683 [18:21:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:46]execute_script... [18:21:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:46]POST & json_proto [18:21:46]process_json_proto [18:21:46]json parsed OK: [18:21:46]protocol is kg_v1.0 [18:21:46]action value=close_receipt [18:21:46]process_action close_receipt [18:21:46]cmd_close_receipt [18:21:46]MH_GetDate [18:21:46]Write to MH i2c: F0 00 00 70 5B BA [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: F0 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: F0 09 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: F0 09 00 70 5B 00 C0 9B 16 67 04 C1 95 66 5B [18:21:46]GetLastDocTimeStamp 1729534664 [18:21:46]current date 1729534912 [18:21:46]FM_GetShiftState [18:21:46]SAM_PROTO_GetShiftState [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 13 01 00 [18:21:46]Write to MH i2c: E2 08 00 71 5B 80 13 01 00 00 00 00 00 49 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0E 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0E 00 71 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C5 [18:21:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:21:46]wFMCommunicate OK [18:21:46]SAM_PROTO_GetShiftState done [18:21:46]FM_GetShiftState done [18:21:46]opened in 1729471058 [18:21:46]opened+sec_in_day 1729557458 [18:21:46]quantity*price = 70020 [18:21:46]sum+1 = 70021 [18:21:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 208 21.10.2024 18:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30711 ФПД: 252912600260583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30711&fm=252912600260583&tin=02508201610067®Number=0000000000186857&sum=70000 [18:21:47]StoreToDocumentArchive [18:21:47]shift 115 fd 30711 [18:21:47]save to /storage/0115/doc_00030711 [18:21:47]save last doc name /storage/0115/doc_00030711 to /storage/kkm_last_doc_name [18:21:47]save OK [18:21:47]Clear old archive folders... [18:21:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:21:47]tlvbuf is 01F0A220 [18:21:47]SAM_PROTO_ClearQueue [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 09 00 00 [18:21:47]Write to MH i2c: E2 08 00 7E 5B 80 09 00 00 00 00 00 00 4B [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 7E 5B 00 90 00 4D [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]SAM_PROTO_ClearQueue done [18:21:47]KKMCreateOFDPacket [18:21:47]OFDProtocolAddRootSTLVToBuf [18:21:47]FM_MakeSignedData [18:21:47]FM_MakeSignedData [18:21:47]SAM_PROTO_SignData [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 01 02 [18:21:47]Write to MH i2c: E2 08 00 7F 5B 80 0D 01 02 00 00 00 00 53 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 7F 5B 00 90 00 4E [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]wFMCommunicate request_size=255 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C0 9B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 77 00 [18:21:47]Write to MH i2c: E2 02 01 80 5B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C0 9B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 77 00 00 00 5C [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 80 5B 00 90 00 4F [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]wFMCommunicate request_size=16 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 05 CD B2 9F E7 [18:21:47]Write to MH i2c: E2 13 00 81 5B 80 0D 02 02 0B 00 00 35 04 06 00 E6 05 CD B2 9F E7 00 00 9B [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 03 00 81 5B 00 90 00 50 [18:21:47]RAPDU: 90 00 [18:21:47]wFMCommunicate OK [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 0D 03 02 [18:21:47]Write to MH i2c: E2 08 00 82 5B 80 0D 03 02 00 00 00 00 58 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:47]Read from MH i2c: E2 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 0B 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: E2 0B 00 82 5B 00 40 2F B9 A8 91 A8 86 57 90 00 3F [18:21:47]RAPDU: 40 2F B9 A8 91 A8 86 57 90 00 [18:21:47]wFMCommunicate OK [18:21:47]SAM_PROTO_SignData done [18:21:47]FM_MakeSignedData done [18:21:47]CreateOFDProtocolMessage [18:21:47]wFMCommunicate request_size=4 [18:21:47]MH_SAM_APDU [18:21:47]CAPDU: 80 11 00 00 [18:21:47]Write to MH i2c: E2 08 00 83 5B 80 11 00 00 00 00 00 00 58 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 83 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [18:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:21:48]wFMCommunicate OK [18:21:48]CreateOFDProtocolMessage done [18:21:48]OFDSenderStorePacket 30711 [18:21:48]StoreOFDPacket docnum=30711 [18:21:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 CE CC 0D 01 A4 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C0 9B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 77 00 00 35 04 06 00 E6 05 CD B2 9F E7 40 2F B9 A8 91 A8 86 57 [18:21:48]CheckFolder [18:21:48]dirname=/storage/ofd_packets [18:21:48]CheckFolder done [18:21:48]ProducePacketName [18:21:48]name=ofd_packets/00030711 [18:21:48]NVStorageSaveData ofd_packets/00030711 [18:21:48]File name is /storage/ofd_packets/00030711 [18:21:48]Write 307 bytes [18:21:48]NVStorageSaveData done [18:21:48]OFDSenderStorePacket done [18:21:48]KKMCreateOFDPacket done [18:21:48]NVStorageSaveData kkm_last_timestamp [18:21:48]File name is /storage/kkm_last_timestamp [18:21:48]Write 4 bytes [18:21:48]NVStorageSaveData done [18:21:48]ExternCall_PrintAddStr [18:21:48]wPrintStart [18:21:48]Write to MH i2c: 01 00 00 84 5B DF [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 84 5B 00 00 00 00 00 FF 0F F4 [18:21:48]RasterBufferAndPrint [18:21:48]line Счет N : (1)343124 [18:21:48]line ИНН: 02508201610067 [18:21:48]line Контрольно-Кассовый Чек [18:21:48]line ПРОДАЖА [18:21:48]line ТРК (МРК, ГНК) : 51 [18:21:48]line Товар: 2710194210 [18:21:48]line D-ENERGY Дт-К-2 [18:21:48]line 9.070 * 77.20 [18:21:48]line = 700.20 [18:21:48]line НДС 12% НСП 1% [18:21:48]line > о реализуемом товаре [18:21:48]line ОКРУГЛЕНИЕ: -0.20 [18:21:48]line ИТОГО: 700.00 [18:21:48]line Внесено: 700.00 [18:21:48]line СДАЧА: 0.00 [18:21:48]line НСП 1% : 6.20 [18:21:48]line НДС 12% : 74.36 [18:21:48]line Наличными: 700.00 [18:21:48]line Безнал.: 0.00 [18:21:48]line Место: АЗС № 78 "Партнер Нефть" [18:21:48]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:21:48]line СНО: Общий режим [18:21:48]line Чек 208 21.10.2024 18:21 [18:21:48]line Смена: 115 ФФД: 1.0 [18:21:48]line ЗНМ: 0300000137 [18:21:48]line РНМ: 0000000000186857 [18:21:48]line Версия ККМ: v1.0 [18:21:48]line ФМ: 0000000002094219 [18:21:48]line ФД: 30711 [18:21:48]line ФПД: 252912600260583 [18:21:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30711&fm=252912600260583&tin=02508201610067®Number=0000000000186857&sum=70000 [18:21:48]OFD Sender: Processing packet 30711 [packets to send 10, broken 9] [18:21:48]ProducePacketName [18:21:48]name=ofd_packets/00030711 [18:21:48]OFD Sender: To server: pG, [18:21:48]CommunicateWithHost lk.salyk.kg:30040 [18:21:48]ConnectInit lk.salyk.kg [18:21:48]written 0, free lines is 4095 [18:21:48]Connected sock=10 [18:21:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 CE CC 0D 01 A4 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 C0 9B 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F7 77 00 00 35 04 06 00 E6 05 CD B2 9F E7 40 2F B9 A8 91 A8 86 57 [18:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 8D 9F 47 00 E7 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 32 30 39 34 32 31 39 10 04 04 00 F7 77 00 00 F4 03 04 00 40 46 16 67 B6 04 01 00 00 5C F7 17 5D FA 61 DC 5E [18:21:48]CommunicateWithHost err = 0 [18:21:48]CheckOFDResponse [18:21:48]1017 (14) - 77093643461234 [18:21:48]1041 (16) - 0000000002094219 [18:21:48]1040 (4) - 30711 [18:21:48]1012 (4) - 21.10.2024 12:17 [18:21:48]1206 (1) - 0 [18:21:48]OFD Sender: Remove packet 30711 [18:21:48]ProducePacketName [18:21:48]name=ofd_packets/00030711 [18:21:48]NVStorageDeleteData [18:21:48]Write to MH i2c: 01 00 00 AF 5B 0A [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 AF 5B 00 00 00 00 00 ED 0C 0A [18:21:48]RasterBufferAndPrint [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]line [18:21:48]written 0, free lines is 3315 [18:21:48]MH_Cut [18:21:48]Write to MH i2c: D1 01 00 B6 5B 01 E3 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 01 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: D1 01 00 B6 5B 00 E2 [18:21:48]Write to MH i2c: 01 00 00 B7 5B 12 [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:49]OFD Sender: No OFD packet to send [18:21:49]*** Cut start [18:21:49]*** Partial cut [18:21:49]*** CUTSNS_PIN = 1 [18:21:49]*** CUTSNS_PIN = 0 [18:21:49]*** Brake cut motor [18:21:50]Read from MH i2c: 01 [18:21:50]MH_I2C_Read... [18:21:50]*** Stop cut motor [18:21:50]*** Cut end [18:21:50]Read from MH i2c: 01 07 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: 01 07 00 B7 5B 00 00 00 00 00 FF 0F 27 [18:21:50]process_action close_receipt done [18:21:50]requested_data is exist [18:21:50]produce_requested_data [18:21:50]requested_item fm.sn is exist - process it [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 11 00 00 [18:21:50]Write to MH i2c: E2 08 00 B8 5B 80 11 00 00 00 00 00 00 8D [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 17 00 B8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [18:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:21:50]wFMCommunicate OK [18:21:50]requested_item fd.num is exist - process it [18:21:50]SAM_PROTO_GetFieldsCounters [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 13 00 00 [18:21:50]Write to MH i2c: E2 08 00 B9 5B 80 13 00 00 00 00 00 00 90 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 62 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 62 00 B9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [18:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F7 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_GetFieldsCounters done [18:21:50]requested_item shift.num is exist - process it [18:21:50]requested_item shift.opened is exist - process it [18:21:50]req_shift_opened [18:21:50]FM_GetShiftState [18:21:50]SAM_PROTO_GetShiftState [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 13 01 00 [18:21:50]Write to MH i2c: E2 08 00 BA 5B 80 13 01 00 00 00 00 00 92 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0E 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 0E 00 BA 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 0E [18:21:50]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_GetShiftState done [18:21:50]FM_GetShiftState done [18:21:50]req_shift_opened done [18:21:50]requested_item shift.open_date is exist - process it [18:21:50]req_shift_open_date [18:21:50]req_shift_open_date done [18:21:50]produce_requested_data done [18:21:50]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30711,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:21:50]process_action_free close_receipt [18:21:50]json_value_free [18:21:50]json_value_free done [18:21:50]process_json_proto returns [18:21:50]Send response to host [18:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30711,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:21:50]free response buf [18:21:50]execute_script done [18:21:50]execute_script returns [18:21:50]free content buf [18:21:50]Sock 7.Close socket [18:21:50]Sock 7.Thread stoped [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:27]accept exits with 9 [18:23:27]New connection [18:23:27]New thread 3067346276 created [18:23:27]Thread 3067489636 joined [18:23:27]Waiting for new connection... [18:23:27] Sock 9.Parse request [18:23:27]Sock 9.Check first char [18:23:27]Sock 9.First char is OK [18:23:27]request: POST /json_proto HTTP/1.0 [18:23:27]Method: POST [18:23:27]URL: /json_proto [18:23:27]Method is POST - this is cgi request [18:23:27]url: /json_proto [18:23:27]query_string will be loaded in cgi processing [18:23:27]execute_cgi json_proto POST (null) [18:23:27]execute_cgi path=json_proto method=POST [18:23:27]POST find Content-Length [18:23:27]Host: 172.17.51.3:8080 [18:23:27]Content-Length: 677 [18:23:27]Content-Type: application/json [18:23:27] [18:23:27]POST finish read [18:23:27]Found Content-Length = 677 [18:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:27]execute_script... [18:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:23:27]POST & json_proto [18:23:27]process_json_proto [18:23:27]json parsed OK: [18:23:27]protocol is kg_v1.0 [18:23:27]action value=close_receipt [18:23:27]process_action close_receipt [18:23:27]cmd_close_receipt [18:23:27]MH_GetDate [18:23:27]Write to MH i2c: F0 00 00 BB 5B 05 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 09 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: F0 09 00 BB 5B 00 25 9C 16 67 04 C1 95 66 0C [18:23:27]GetLastDocTimeStamp 1729534912 [18:23:27]current date 1729535013 [18:23:27]FM_GetShiftState [18:23:27]SAM_PROTO_GetShiftState [18:23:27]wFMCommunicate request_size=4 [18:23:27]MH_SAM_APDU [18:23:27]CAPDU: 80 13 01 00 [18:23:27]Write to MH i2c: E2 08 00 BC 5B 80 13 01 00 00 00 00 00 94 [18:23:27]Write i2c OK [18:23:27]MH_I2C_Read... [18:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:27]Read from MH i2c: E2 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 [18:23:27]MH_I2C_Read... [18:23:27]Read from MH i2c: E2 0E 00 BC 5B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 10 [18:23:27]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:23:27]wFMCommunicate OK [18:23:27]SAM_PROTO_GetShiftState done [18:23:27]FM_GetShiftState done [18:23:27]opened in 1729471058 [18:23:27]opened+sec_in_day 1729557458 [18:23:27]quantity*price = 30038 [18:23:27]sum+1 = 30039 [18:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 209 21.10.2024 18:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30712 ФПД: 254583498468678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182333&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30712&fm=254583498468678&tin=02508201610067®Number=0000000000186857&sum=30000 [18:23:28]StoreToDocumentArchive [18:23:28]shift 115 fd 30712 [18:23:28]save to /storage/0115/doc_00030712 [18:23:28]save last doc name /storage/0115/doc_00030712 to /storage/kkm_last_doc_name [18:23:28]save OK [18:23:28]Clear old archive folders... [18:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:28]tlvbuf is 01DD6EB0 [18:23:28]SAM_PROTO_ClearQueue [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 09 00 00 [18:23:28]Write to MH i2c: E2 08 00 C9 5B 80 09 00 00 00 00 00 00 96 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 C9 5B 00 90 00 98 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_ClearQueue done [18:23:28]KKMCreateOFDPacket [18:23:28]OFDProtocolAddRootSTLVToBuf [18:23:28]FM_MakeSignedData [18:23:28]FM_MakeSignedData [18:23:28]SAM_PROTO_SignData [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 01 02 [18:23:28]Write to MH i2c: E2 08 00 CA 5B 80 0D 01 02 00 00 00 00 9E [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 CA 5B 00 90 00 99 [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=255 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 25 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 77 00 00 35 04 06 00 E7 [18:23:28]Write to MH i2c: E2 02 01 CB 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 25 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 77 00 00 35 04 06 00 E7 00 00 FB [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 CB 5B 00 90 00 9A [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=10 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 02 02 05 8A D6 FD ED 46 [18:23:28]Write to MH i2c: E2 0D 00 CC 5B 80 0D 02 02 05 00 8A D6 FD ED 46 00 00 3B [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 03 00 CC 5B 00 90 00 9B [18:23:28]RAPDU: 90 00 [18:23:28]wFMCommunicate OK [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 0D 03 02 [18:23:28]Write to MH i2c: E2 08 00 CD 5B 80 0D 03 02 00 00 00 00 A3 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 0B 00 CD 5B 00 63 1C 38 73 5A 50 0F 79 90 00 00 [18:23:28]RAPDU: 63 1C 38 73 5A 50 0F 79 90 00 [18:23:28]wFMCommunicate OK [18:23:28]SAM_PROTO_SignData done [18:23:28]FM_MakeSignedData done [18:23:28]CreateOFDProtocolMessage [18:23:28]wFMCommunicate request_size=4 [18:23:28]MH_SAM_APDU [18:23:28]CAPDU: 80 11 00 00 [18:23:28]Write to MH i2c: E2 08 00 CE 5B 80 11 00 00 00 00 00 00 A3 [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:28]Read from MH i2c: E2 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: E2 17 00 CE 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F1 [18:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:23:28]wFMCommunicate OK [18:23:28]CreateOFDProtocolMessage done [18:23:28]OFDSenderStorePacket 30712 [18:23:28]StoreOFDPacket docnum=30712 [18:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F7 98 07 01 83 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 25 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 77 00 00 35 04 06 00 E7 8A D6 FD ED 46 63 1C 38 73 5A 50 0F 79 [18:23:28]CheckFolder [18:23:28]dirname=/storage/ofd_packets [18:23:28]CheckFolder done [18:23:28]ProducePacketName [18:23:28]name=ofd_packets/00030712 [18:23:28]NVStorageSaveData ofd_packets/00030712 [18:23:28]File name is /storage/ofd_packets/00030712 [18:23:28]Write 301 bytes [18:23:28]NVStorageSaveData done [18:23:28]OFDSenderStorePacket done [18:23:28]KKMCreateOFDPacket done [18:23:28]NVStorageSaveData kkm_last_timestamp [18:23:28]File name is /storage/kkm_last_timestamp [18:23:28]Write 4 bytes [18:23:28]NVStorageSaveData done [18:23:28]ExternCall_PrintAddStr [18:23:28]wPrintStart [18:23:28]Write to MH i2c: 01 00 00 CF 5B 2A [18:23:28]Write i2c OK [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 [18:23:28]MH_I2C_Read... [18:23:28]Read from MH i2c: 01 07 00 CF 5B 00 00 00 00 00 FF 0F 3F [18:23:28]RasterBufferAndPrint [18:23:28]line Счет N : (1)343125 [18:23:28]line ИНН: 02508201610067 [18:23:28]line Контрольно-Кассовый Чек [18:23:28]line ПРОДАЖА [18:23:28]line ТРК (МРК, ГНК) : 63 [18:23:28]line Товар: 2710124130 [18:23:28]line Аи-92-К-2 [18:23:28]line 4.490 * 66.90 [18:23:28]line = 300.38 [18:23:28]line НДС 12% НСП 1% [18:23:28]line > о реализуемом товаре [18:23:28]line ОКРУГЛЕНИЕ: -0.38 [18:23:28]line ИТОГО: 300.00 [18:23:28]line Внесено: 300.00 [18:23:28]line СДАЧА: 0.00 [18:23:28]line НСП 1% : 2.66 [18:23:28]line НДС 12% : 31.90 [18:23:28]line Наличными: 300.00 [18:23:28]line Безнал.: 0.00 [18:23:28]line Место: АЗС № 78 "Партнер Нефть" [18:23:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:23:28]line СНО: Общий режим [18:23:28]line Чек 209 21.10.2024 18:23 [18:23:28]line Смена: 115 ФФД: 1.0 [18:23:28]line ЗНМ: 0300000137 [18:23:28]line РНМ: 0000000000186857 [18:23:28]line Версия ККМ: v1.0 [18:23:28]line ФМ: 0000000002094219 [18:23:28]line ФД: 30712 [18:23:28]line ФПД: 254583498468678 [18:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182333&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30712&fm=254583498468678&tin=02508201610067®Number=0000000000186857&sum=30000 [18:23:29]OFD Sender: Processing packet 30712 [packets to send 10, broken 9] [18:23:29]ProducePacketName [18:23:29]name=ofd_packets/00030712 [18:23:29]OFD Sender: To server: pG, [18:23:29]CommunicateWithHost lk.salyk.kg:30040 [18:23:29]ConnectInit lk.salyk.kg [18:23:29]written 0, free lines is 4095 [18:23:29]Connected sock=10 [18:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F7 98 07 01 83 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 25 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F8 77 00 00 35 04 06 00 E7 8A D6 FD ED 46 63 1C 38 73 5A 50 0F 79 [18:23:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 44 1E 47 00 F7 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 32 30 39 34 32 31 39 10 04 04 00 F8 77 00 00 F4 03 04 00 A5 46 16 67 B6 04 01 00 00 E4 24 49 22 6E 54 C1 52 [18:23:29]CommunicateWithHost err = 0 [18:23:29]CheckOFDResponse [18:23:29]1017 (14) - 77093643461234 [18:23:29]1041 (16) - 0000000002094219 [18:23:29]1040 (4) - 30712 [18:23:29]1012 (4) - 21.10.2024 12:18 [18:23:29]1206 (1) - 0 [18:23:29]OFD Sender: Remove packet 30712 [18:23:29]ProducePacketName [18:23:29]name=ofd_packets/00030712 [18:23:29]NVStorageDeleteData [18:23:29]Write to MH i2c: 01 00 00 FA 5B 55 [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 07 00 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: 01 07 00 FA 5B 00 00 00 00 00 F2 0C 5A [18:23:29]RasterBufferAndPrint [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]line [18:23:29]written 0, free lines is 3320 [18:23:29]MH_Cut [18:23:29]Write to MH i2c: D1 01 00 01 5C 01 2F [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 01 00 [18:23:29]MH_I2C_Read... [18:23:29]Read from MH i2c: D1 01 00 01 5C 00 2E [18:23:29]Write to MH i2c: 01 00 00 02 5C 5E [18:23:29]Write i2c OK [18:23:29]MH_I2C_Read... [18:23:29]OFD Sender: No OFD packet to send [18:23:30]*** Cut start [18:23:30]*** Partial cut [18:23:30]*** CUTSNS_PIN = 1 [18:23:30]*** CUTSNS_PIN = 0 [18:23:30]*** Brake cut motor [18:23:30]Read from MH i2c: 01 [18:23:30]MH_I2C_Read... [18:23:30]*** Stop cut motor [18:23:30]*** Cut end [18:23:30]Read from MH i2c: 01 07 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: 01 07 00 02 5C 00 00 00 00 00 FF 0F 73 [18:23:30]process_action close_receipt done [18:23:30]requested_data is exist [18:23:30]produce_requested_data [18:23:30]requested_item fm.sn is exist - process it [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 11 00 00 [18:23:30]Write to MH i2c: E2 08 00 03 5C 80 11 00 00 00 00 00 00 D9 [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:30]Read from MH i2c: E2 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 [18:23:30]MH_I2C_Read... [18:23:30]Read from MH i2c: E2 17 00 03 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 27 [18:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:23:30]wFMCommunicate OK [18:23:30]requested_item fd.num is exist - process it [18:23:30]SAM_PROTO_GetFieldsCounters [18:23:30]wFMCommunicate request_size=4 [18:23:30]MH_SAM_APDU [18:23:30]CAPDU: 80 13 00 00 [18:23:30]Write to MH i2c: E2 08 00 04 5C 80 13 00 00 00 00 00 00 DC [18:23:30]Write i2c OK [18:23:30]MH_I2C_Read... [18:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:31]Read from MH i2c: E2 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 62 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 62 00 04 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [18:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F8 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:31]wFMCommunicate OK [18:23:31]SAM_PROTO_GetFieldsCounters done [18:23:31]requested_item shift.num is exist - process it [18:23:31]requested_item shift.opened is exist - process it [18:23:31]req_shift_opened [18:23:31]FM_GetShiftState [18:23:31]SAM_PROTO_GetShiftState [18:23:31]wFMCommunicate request_size=4 [18:23:31]MH_SAM_APDU [18:23:31]CAPDU: 80 13 01 00 [18:23:31]Write to MH i2c: E2 08 00 05 5C 80 13 01 00 00 00 00 00 DE [18:23:31]Write i2c OK [18:23:31]MH_I2C_Read... [18:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:31]Read from MH i2c: E2 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 0E 00 [18:23:31]MH_I2C_Read... [18:23:31]Read from MH i2c: E2 0E 00 05 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5A [18:23:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:23:31]wFMCommunicate OK [18:23:31]SAM_PROTO_GetShiftState done [18:23:31]FM_GetShiftState done [18:23:31]req_shift_opened done [18:23:31]requested_item shift.open_date is exist - process it [18:23:31]req_shift_open_date [18:23:31]req_shift_open_date done [18:23:31]produce_requested_data done [18:23:31]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30712,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:23:31]process_action_free close_receipt [18:23:31]json_value_free [18:23:31]json_value_free done [18:23:31]process_json_proto returns [18:23:31]Send response to host [18:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30712,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:23:31]free response buf [18:23:31]execute_script done [18:23:31]execute_script returns [18:23:31]free content buf [18:23:31]Sock 9.Close socket [18:23:31]Sock 9.Thread stoped [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:22]accept exits with 7 [18:24:22]New connection [18:24:22]New thread 3067489636 created [18:24:22]Thread 3067346276 joined [18:24:22]Waiting for new connection... [18:24:22] Sock 7.Parse request [18:24:22]Sock 7.Check first char [18:24:22]Sock 7.First char is OK [18:24:22]request: POST /json_proto HTTP/1.0 [18:24:22]Method: POST [18:24:22]URL: /json_proto [18:24:22]Method is POST - this is cgi request [18:24:22]url: /json_proto [18:24:22]query_string will be loaded in cgi processing [18:24:22]execute_cgi json_proto POST (null) [18:24:22]execute_cgi path=json_proto method=POST [18:24:22]POST find Content-Length [18:24:22]Host: 172.17.51.3:8080 [18:24:22]Content-Length: 677 [18:24:22]Content-Type: application/json [18:24:22] [18:24:22]POST finish read [18:24:22]Found Content-Length = 677 [18:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:22]execute_script... [18:24:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:22]POST & json_proto [18:24:22]process_json_proto [18:24:22]json parsed OK: [18:24:22]protocol is kg_v1.0 [18:24:22]action value=close_receipt [18:24:22]process_action close_receipt [18:24:22]cmd_close_receipt [18:24:22]MH_GetDate [18:24:22]Write to MH i2c: F0 00 00 06 5C 51 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: F0 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: F0 09 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: F0 09 00 06 5C 00 5C 9C 16 67 04 C1 95 66 8F [18:24:22]GetLastDocTimeStamp 1729535013 [18:24:22]current date 1729535068 [18:24:22]FM_GetShiftState [18:24:22]SAM_PROTO_GetShiftState [18:24:22]wFMCommunicate request_size=4 [18:24:22]MH_SAM_APDU [18:24:22]CAPDU: 80 13 01 00 [18:24:22]Write to MH i2c: E2 08 00 07 5C 80 13 01 00 00 00 00 00 E0 [18:24:22]Write i2c OK [18:24:22]MH_I2C_Read... [18:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:22]Read from MH i2c: E2 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0E 00 [18:24:22]MH_I2C_Read... [18:24:22]Read from MH i2c: E2 0E 00 07 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 5C [18:24:22]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:24:22]wFMCommunicate OK [18:24:22]SAM_PROTO_GetShiftState done [18:24:22]FM_GetShiftState done [18:24:22]opened in 1729471058 [18:24:22]opened+sec_in_day 1729557458 [18:24:22]quantity*price = 32045 [18:24:22]sum+1 = 32046 [18:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 210 21.10.2024 18:24 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30713 ФПД: 210601916918733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30713&fm=210601916918733&tin=02508201610067®Number=0000000000186857&sum=32000 [18:24:23]StoreToDocumentArchive [18:24:23]shift 115 fd 30713 [18:24:23]save to /storage/0115/doc_00030713 [18:24:23]save last doc name /storage/0115/doc_00030713 to /storage/kkm_last_doc_name [18:24:23]save OK [18:24:23]Clear old archive folders... [18:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:23]tlvbuf is B6FD8150 [18:24:23]SAM_PROTO_ClearQueue [18:24:23]wFMCommunicate request_size=4 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 09 00 00 [18:24:23]Write to MH i2c: E2 08 00 14 5C 80 09 00 00 00 00 00 00 E2 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 14 5C 00 90 00 E4 [18:24:23]RAPDU: 90 00 [18:24:23]wFMCommunicate OK [18:24:23]SAM_PROTO_ClearQueue done [18:24:23]KKMCreateOFDPacket [18:24:23]OFDProtocolAddRootSTLVToBuf [18:24:23]FM_MakeSignedData [18:24:23]FM_MakeSignedData [18:24:23]SAM_PROTO_SignData [18:24:23]wFMCommunicate request_size=4 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 0D 01 02 [18:24:23]Write to MH i2c: E2 08 00 15 5C 80 0D 01 02 00 00 00 00 EA [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 15 5C 00 90 00 E5 [18:24:23]RAPDU: 90 00 [18:24:23]wFMCommunicate OK [18:24:23]wFMCommunicate request_size=255 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 77 00 00 35 04 06 00 BF [18:24:23]Write to MH i2c: E2 02 01 16 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 77 00 00 35 04 06 00 BF 00 00 FC [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 16 5C 00 90 00 E6 [18:24:23]RAPDU: 90 00 [18:24:23]wFMCommunicate OK [18:24:23]wFMCommunicate request_size=10 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 0D 02 02 05 8A 94 72 6B CD [18:24:23]Write to MH i2c: E2 0D 00 17 5C 80 0D 02 02 05 00 8A 94 72 6B CD 00 00 BF [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 03 00 17 5C 00 90 00 E7 [18:24:23]RAPDU: 90 00 [18:24:23]wFMCommunicate OK [18:24:23]wFMCommunicate request_size=4 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 0D 03 02 [18:24:23]Write to MH i2c: E2 08 00 18 5C 80 0D 03 02 00 00 00 00 EF [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 0B 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 0B 00 18 5C 00 67 50 FB 1B FB 63 A5 78 90 00 38 [18:24:23]RAPDU: 67 50 FB 1B FB 63 A5 78 90 00 [18:24:23]wFMCommunicate OK [18:24:23]SAM_PROTO_SignData done [18:24:23]FM_MakeSignedData done [18:24:23]CreateOFDProtocolMessage [18:24:23]wFMCommunicate request_size=4 [18:24:23]MH_SAM_APDU [18:24:23]CAPDU: 80 11 00 00 [18:24:23]Write to MH i2c: E2 08 00 19 5C 80 11 00 00 00 00 00 00 EF [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:23]Read from MH i2c: E2 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 17 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: E2 17 00 19 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3D [18:24:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:24:23]wFMCommunicate OK [18:24:23]CreateOFDProtocolMessage done [18:24:23]OFDSenderStorePacket 30713 [18:24:23]StoreOFDPacket docnum=30713 [18:24:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D 6B 07 01 F5 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 77 00 00 35 04 06 00 BF 8A 94 72 6B CD 67 50 FB 1B FB 63 A5 78 [18:24:23]CheckFolder [18:24:23]dirname=/storage/ofd_packets [18:24:23]CheckFolder done [18:24:23]ProducePacketName [18:24:23]name=ofd_packets/00030713 [18:24:23]NVStorageSaveData ofd_packets/00030713 [18:24:23]File name is /storage/ofd_packets/00030713 [18:24:23]Write 301 bytes [18:24:23]NVStorageSaveData done [18:24:23]OFDSenderStorePacket done [18:24:23]KKMCreateOFDPacket done [18:24:23]NVStorageSaveData kkm_last_timestamp [18:24:23]File name is /storage/kkm_last_timestamp [18:24:23]Write 4 bytes [18:24:23]NVStorageSaveData done [18:24:23]ExternCall_PrintAddStr [18:24:23]wPrintStart [18:24:23]Write to MH i2c: 01 00 00 1A 5C 76 [18:24:23]Write i2c OK [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 07 00 [18:24:23]MH_I2C_Read... [18:24:23]Read from MH i2c: 01 07 00 1A 5C 00 00 00 00 00 FF 0F 8B [18:24:23]RasterBufferAndPrint [18:24:23]line Счет N : (1)343126 [18:24:23]line ИНН: 02508201610067 [18:24:23]line Контрольно-Кассовый Чек [18:24:23]line ПРОДАЖА [18:24:23]line ТРК (МРК, ГНК) : 43 [18:24:23]line Товар: 2710124130 [18:24:23]line Аи-92-К-2 [18:24:23]line 4.790 * 66.90 [18:24:23]line = 320.45 [18:24:23]line НДС 12% НСП 1% [18:24:23]line > о реализуемом товаре [18:24:23]line ОКРУГЛЕНИЕ: -0.45 [18:24:23]line ИТОГО: 320.00 [18:24:23]line Внесено: 320.00 [18:24:23]line СДАЧА: 0.00 [18:24:23]line НСП 1% : 2.84 [18:24:23]line НДС 12% : 34.03 [18:24:23]line Наличными: 320.00 [18:24:23]line Безнал.: 0.00 [18:24:23]line Место: АЗС № 78 "Партнер Нефть" [18:24:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:24:23]line СНО: Общий режим [18:24:23]line Чек 210 21.10.2024 18:24 [18:24:23]line Смена: 115 ФФД: 1.0 [18:24:23]line ЗНМ: 0300000137 [18:24:23]line РНМ: 0000000000186857 [18:24:23]line Версия ККМ: v1.0 [18:24:23]line ФМ: 0000000002094219 [18:24:23]line ФД: 30713 [18:24:23]line ФПД: 210601916918733 [18:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30713&fm=210601916918733&tin=02508201610067®Number=0000000000186857&sum=32000 [18:24:24]OFD Sender: Processing packet 30713 [packets to send 10, broken 9] [18:24:24]ProducePacketName [18:24:24]name=ofd_packets/00030713 [18:24:24]OFD Sender: To server: pG, [18:24:24]CommunicateWithHost lk.salyk.kg:30040 [18:24:24]ConnectInit lk.salyk.kg [18:24:24]written 0, free lines is 4095 [18:24:24]Connected sock=10 [18:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9D 6B 07 01 F5 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5C 9C 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 77 00 00 35 04 06 00 BF 8A 94 72 6B CD 67 50 FB 1B FB 63 A5 78 [18:24:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D5 1C 47 00 AB 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 F9 77 00 00 F4 03 04 00 DC 46 16 67 B6 04 01 00 00 8B DA 0D 3F 5A 81 16 3E [18:24:24]CommunicateWithHost err = 0 [18:24:24]CheckOFDResponse [18:24:24]1017 (14) - 77093643461234 [18:24:24]1041 (16) - 0000000002094219 [18:24:24]1040 (4) - 30713 [18:24:24]1012 (4) - 21.10.2024 12:19 [18:24:24]1206 (1) - 0 [18:24:24]OFD Sender: Remove packet 30713 [18:24:24]ProducePacketName [18:24:24]name=ofd_packets/00030713 [18:24:24]NVStorageDeleteData [18:24:24]Write to MH i2c: 01 00 00 45 5C A1 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: 01 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: 01 07 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: 01 07 00 45 5C 00 00 00 00 00 F8 0C AC [18:24:24]RasterBufferAndPrint [18:24:24]line [18:24:24]line [18:24:24]line [18:24:24]line [18:24:24]line [18:24:24]written 0, free lines is 3330 [18:24:24]MH_Cut [18:24:24]Write to MH i2c: D1 01 00 4C 5C 01 7A [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: D1 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: D1 01 00 [18:24:24]MH_I2C_Read... [18:24:24]Read from MH i2c: D1 01 00 4C 5C 00 79 [18:24:24]Write to MH i2c: 01 00 00 4D 5C A9 [18:24:24]Write i2c OK [18:24:24]MH_I2C_Read... [18:24:24]OFD Sender: No OFD packet to send [18:24:25]*** Cut start [18:24:25]*** Partial cut [18:24:25]*** CUTSNS_PIN = 1 [18:24:25]*** CUTSNS_PIN = 0 [18:24:25]*** Brake cut motor [18:24:25]Read from MH i2c: 01 [18:24:25]MH_I2C_Read... [18:24:25]*** Stop cut motor [18:24:25]*** Cut end [18:24:25]Read from MH i2c: 01 07 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: 01 07 00 4D 5C 00 00 00 00 00 FF 0F BE [18:24:25]process_action close_receipt done [18:24:25]requested_data is exist [18:24:25]produce_requested_data [18:24:25]requested_item fm.sn is exist - process it [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 11 00 00 [18:24:25]Write to MH i2c: E2 08 00 4E 5C 80 11 00 00 00 00 00 00 24 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:25]Read from MH i2c: E2 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 17 00 [18:24:25]MH_I2C_Read... [18:24:25]Read from MH i2c: E2 17 00 4E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 72 [18:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:24:25]wFMCommunicate OK [18:24:25]requested_item fd.num is exist - process it [18:24:25]SAM_PROTO_GetFieldsCounters [18:24:25]wFMCommunicate request_size=4 [18:24:25]MH_SAM_APDU [18:24:25]CAPDU: 80 13 00 00 [18:24:25]Write to MH i2c: E2 08 00 4F 5C 80 13 00 00 00 00 00 00 27 [18:24:25]Write i2c OK [18:24:25]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 62 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 62 00 4F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [18:24:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 F9 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:26]wFMCommunicate OK [18:24:26]SAM_PROTO_GetFieldsCounters done [18:24:26]requested_item shift.num is exist - process it [18:24:26]requested_item shift.opened is exist - process it [18:24:26]req_shift_opened [18:24:26]FM_GetShiftState [18:24:26]SAM_PROTO_GetShiftState [18:24:26]wFMCommunicate request_size=4 [18:24:26]MH_SAM_APDU [18:24:26]CAPDU: 80 13 01 00 [18:24:26]Write to MH i2c: E2 08 00 50 5C 80 13 01 00 00 00 00 00 29 [18:24:26]Write i2c OK [18:24:26]MH_I2C_Read... [18:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:26]Read from MH i2c: E2 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 0E 00 [18:24:26]MH_I2C_Read... [18:24:26]Read from MH i2c: E2 0E 00 50 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A5 [18:24:26]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:24:26]wFMCommunicate OK [18:24:26]SAM_PROTO_GetShiftState done [18:24:26]FM_GetShiftState done [18:24:26]req_shift_opened done [18:24:26]requested_item shift.open_date is exist - process it [18:24:26]req_shift_open_date [18:24:26]req_shift_open_date done [18:24:26]produce_requested_data done [18:24:26]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30713,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:24:26]process_action_free close_receipt [18:24:26]json_value_free [18:24:26]json_value_free done [18:24:26]process_json_proto returns [18:24:26]Send response to host [18:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30713,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:24:26]free response buf [18:24:26]execute_script done [18:24:26]execute_script returns [18:24:26]free content buf [18:24:26]Sock 7.Close socket [18:24:26]Sock 7.Thread stoped [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:02]accept exits with 9 [18:29:02]New connection [18:29:02]New thread 3067346276 created [18:29:02]Thread 3067489636 joined [18:29:02]Waiting for new connection... [18:29:02] Sock 9.Parse request [18:29:02]Sock 9.Check first char [18:29:02]Sock 9.First char is OK [18:29:02]request: POST /json_proto HTTP/1.0 [18:29:02]Method: POST [18:29:02]URL: /json_proto [18:29:02]Method is POST - this is cgi request [18:29:02]url: /json_proto [18:29:02]query_string will be loaded in cgi processing [18:29:02]execute_cgi json_proto POST (null) [18:29:02]execute_cgi path=json_proto method=POST [18:29:02]POST find Content-Length [18:29:02]Host: 172.17.51.3:8080 [18:29:02]Content-Length: 843 [18:29:02]Content-Type: application/json [18:29:02] [18:29:02]POST finish read [18:29:02]Found Content-Length = 843 [18:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:02]execute_script... [18:29:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:29:02]POST & json_proto [18:29:02]process_json_proto [18:29:02]json parsed OK: [18:29:02]protocol is kg_v1.0 [18:29:02]action value=close_receipt [18:29:02]process_action close_receipt [18:29:02]cmd_close_receipt [18:29:02]MH_GetDate [18:29:02]Write to MH i2c: F0 00 00 51 5C 9C [18:29:02]Write i2c OK [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: F0 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: F0 09 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: F0 09 00 51 5C 00 74 9D 16 67 04 C1 95 66 F3 [18:29:02]GetLastDocTimeStamp 1729535068 [18:29:02]current date 1729535348 [18:29:02]FM_GetShiftState [18:29:02]SAM_PROTO_GetShiftState [18:29:02]wFMCommunicate request_size=4 [18:29:02]MH_SAM_APDU [18:29:02]CAPDU: 80 13 01 00 [18:29:02]Write to MH i2c: E2 08 00 52 5C 80 13 01 00 00 00 00 00 2B [18:29:02]Write i2c OK [18:29:02]MH_I2C_Read... [18:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:02]Read from MH i2c: E2 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 0E 00 [18:29:02]MH_I2C_Read... [18:29:02]Read from MH i2c: E2 0E 00 52 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 A7 [18:29:02]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:29:02]wFMCommunicate OK [18:29:02]SAM_PROTO_GetShiftState done [18:29:02]FM_GetShiftState done [18:29:02]opened in 1729471058 [18:29:02]opened+sec_in_day 1729557458 [18:29:02]quantity*price = 100021 [18:29:02]sum+1 = 100023 [18:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 211 21.10.2024 18:29 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30714 ФПД: 60590102671167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30714&fm=60590102671167&tin=02508201610067®Number=0000000000186857&sum=100022 [18:29:03]StoreToDocumentArchive [18:29:03]shift 115 fd 30714 [18:29:03]save to /storage/0115/doc_00030714 [18:29:03]save last doc name /storage/0115/doc_00030714 to /storage/kkm_last_doc_name [18:29:03]save OK [18:29:03]Clear old archive folders... [18:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:03]tlvbuf is B6F5D440 [18:29:03]SAM_PROTO_ClearQueue [18:29:03]wFMCommunicate request_size=4 [18:29:03]MH_SAM_APDU [18:29:03]CAPDU: 80 09 00 00 [18:29:03]Write to MH i2c: E2 08 00 5F 5C 80 09 00 00 00 00 00 00 2D [18:29:03]Write i2c OK [18:29:03]MH_I2C_Read... [18:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:03]Read from MH i2c: E2 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 03 00 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 03 00 5F 5C 00 90 00 2F [18:29:03]RAPDU: 90 00 [18:29:03]wFMCommunicate OK [18:29:03]SAM_PROTO_ClearQueue done [18:29:03]KKMCreateOFDPacket [18:29:03]OFDProtocolAddRootSTLVToBuf [18:29:03]FM_MakeSignedData [18:29:03]FM_MakeSignedData [18:29:03]SAM_PROTO_SignData [18:29:03]wFMCommunicate request_size=4 [18:29:03]MH_SAM_APDU [18:29:03]CAPDU: 80 0D 01 02 [18:29:03]Write to MH i2c: E2 08 00 60 5C 80 0D 01 02 00 00 00 00 35 [18:29:03]Write i2c OK [18:29:03]MH_I2C_Read... [18:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:03]Read from MH i2c: E2 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 03 00 [18:29:03]MH_I2C_Read... [18:29:03]Read from MH i2c: E2 03 00 60 5C 00 90 00 30 [18:29:03]RAPDU: 90 00 [18:29:03]wFMCommunicate OK [18:29:03]wFMCommunicate request_size=255 [18:29:03]MH_SAM_APDU [18:29:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 9D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 77 00 00 35 04 06 00 37 [18:29:03]Write to MH i2c: E2 02 01 61 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 9D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 77 00 00 35 04 06 00 37 00 00 8C [18:29:03]Write i2c OK [18:29:03]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 61 5C 00 90 00 31 [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]wFMCommunicate request_size=10 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 0D 02 02 05 1B 3B 8B EF 3F [18:29:04]Write to MH i2c: E2 0D 00 62 5C 80 0D 02 02 05 00 1B 3B 8B EF 3F 00 00 51 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 03 00 62 5C 00 90 00 32 [18:29:04]RAPDU: 90 00 [18:29:04]wFMCommunicate OK [18:29:04]wFMCommunicate request_size=4 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 0D 03 02 [18:29:04]Write to MH i2c: E2 08 00 63 5C 80 0D 03 02 00 00 00 00 3A [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 0B 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 0B 00 63 5C 00 CB 26 5E BA 8E F9 57 70 90 00 92 [18:29:04]RAPDU: CB 26 5E BA 8E F9 57 70 90 00 [18:29:04]wFMCommunicate OK [18:29:04]SAM_PROTO_SignData done [18:29:04]FM_MakeSignedData done [18:29:04]CreateOFDProtocolMessage [18:29:04]wFMCommunicate request_size=4 [18:29:04]MH_SAM_APDU [18:29:04]CAPDU: 80 11 00 00 [18:29:04]Write to MH i2c: E2 08 00 64 5C 80 11 00 00 00 00 00 00 3A [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:04]Read from MH i2c: E2 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 17 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: E2 17 00 64 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 88 [18:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:29:04]wFMCommunicate OK [18:29:04]CreateOFDProtocolMessage done [18:29:04]OFDSenderStorePacket 30714 [18:29:04]StoreOFDPacket docnum=30714 [18:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 D2 07 01 B2 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 9D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 77 00 00 35 04 06 00 37 1B 3B 8B EF 3F CB 26 5E BA 8E F9 57 70 [18:29:04]CheckFolder [18:29:04]dirname=/storage/ofd_packets [18:29:04]CheckFolder done [18:29:04]ProducePacketName [18:29:04]name=ofd_packets/00030714 [18:29:04]NVStorageSaveData ofd_packets/00030714 [18:29:04]File name is /storage/ofd_packets/00030714 [18:29:04]Write 301 bytes [18:29:04]NVStorageSaveData done [18:29:04]OFDSenderStorePacket done [18:29:04]KKMCreateOFDPacket done [18:29:04]NVStorageSaveData kkm_last_timestamp [18:29:04]File name is /storage/kkm_last_timestamp [18:29:04]Write 4 bytes [18:29:04]NVStorageSaveData done [18:29:04]ExternCall_PrintAddStr [18:29:04]wPrintStart [18:29:04]Write to MH i2c: 01 00 00 65 5C C1 [18:29:04]Write i2c OK [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 [18:29:04]MH_I2C_Read... [18:29:04]Read from MH i2c: 01 07 00 65 5C 00 00 00 00 00 FF 0F D6 [18:29:04]RasterBufferAndPrint [18:29:04]line Счет N : (1)343127 [18:29:04]line ИНН: 02508201610067 [18:29:04]line Контрольно-Кассовый Чек [18:29:04]line ПРОДАЖА [18:29:04]line ТРК (МРК, ГНК) : 52 [18:29:04]line Товар: 2710124500 [18:29:04]line Аи-95-К-3 [18:29:04]line 13.480 * 74.20 [18:29:04]line = 1000.22 [18:29:04]line НДС 12% НСП 1% [18:29:04]line > о реализуемом товаре [18:29:04]line ИТОГО: 1000.22 [18:29:04]line НСП 1% : 8.85 [18:29:04]line НДС 12% : 106.22 [18:29:04]line Наличными: 0.00 [18:29:04]line Безнал.: 1000.22 [18:29:04]line Место: АЗС № 78 "Партнер Нефть" [18:29:04]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:29:04]line СНО: Общий режим [18:29:04]line Чек 211 21.10.2024 18:29 [18:29:04]line Смена: 115 ФФД: 1.0 [18:29:04]line ЗНМ: 0300000137 [18:29:04]line РНМ: 0000000000186857 [18:29:04]line Версия ККМ: v1.0 [18:29:04]line Платежная система: АКБ Кыргызстан [18:29:04]line ФМ: 0000000002094219 [18:29:04]line ФД: 30714 [18:29:04]line ФПД: 60590102671167 [18:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182908&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30714&fm=60590102671167&tin=02508201610067®Number=0000000000186857&sum=100022 [18:29:04]OFD Sender: Processing packet 30714 [packets to send 10, broken 9] [18:29:04]ProducePacketName [18:29:04]name=ofd_packets/00030714 [18:29:04]OFD Sender: To server: pG, [18:29:04]CommunicateWithHost lk.salyk.kg:30040 [18:29:04]ConnectInit lk.salyk.kg [18:29:04]written 0, free lines is 4095 [18:29:04]Connected sock=10 [18:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 55 D2 07 01 B2 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 74 9D 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 77 00 00 35 04 06 00 37 1B 3B 8B EF 3F CB 26 5E BA 8E F9 57 70 [18:29:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 2D ED 47 00 1F 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FA 77 00 00 F4 03 04 00 F4 47 16 67 B6 04 01 00 00 73 8A 81 1D 37 3B 45 54 [18:29:05]CommunicateWithHost err = 0 [18:29:05]CheckOFDResponse [18:29:05]1017 (14) - 77093643461234 [18:29:05]1041 (16) - 0000000002094219 [18:29:05]1040 (4) - 30714 [18:29:05]1012 (4) - 21.10.2024 12:24 [18:29:05]1206 (1) - 0 [18:29:05]OFD Sender: Remove packet 30714 [18:29:05]ProducePacketName [18:29:05]name=ofd_packets/00030714 [18:29:05]NVStorageDeleteData [18:29:05]Write to MH i2c: 01 00 00 8F 5C EB [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: 01 07 00 8F 5C 00 00 00 00 00 10 0D 0F [18:29:05]RasterBufferAndPrint [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]line [18:29:05]written 0, free lines is 3351 [18:29:05]MH_Cut [18:29:05]Write to MH i2c: D1 01 00 96 5C 01 C4 [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 01 00 [18:29:05]MH_I2C_Read... [18:29:05]Read from MH i2c: D1 01 00 96 5C 00 C3 [18:29:05]Write to MH i2c: 01 00 00 97 5C F3 [18:29:05]Write i2c OK [18:29:05]MH_I2C_Read... [18:29:05]OFD Sender: No OFD packet to send [18:29:05]*** Cut start [18:29:05]*** Partial cut [18:29:05]*** CUTSNS_PIN = 1 [18:29:05]*** CUTSNS_PIN = 0 [18:29:06]*** Brake cut motor [18:29:06]Read from MH i2c: 01 [18:29:06]MH_I2C_Read... [18:29:06]*** Stop cut motor [18:29:06]*** Cut end [18:29:06]Read from MH i2c: 01 07 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: 01 07 00 97 5C 00 00 00 00 00 FF 0F 08 [18:29:06]process_action close_receipt done [18:29:06]requested_data is exist [18:29:06]produce_requested_data [18:29:06]requested_item fm.sn is exist - process it [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 11 00 00 [18:29:06]Write to MH i2c: E2 08 00 98 5C 80 11 00 00 00 00 00 00 6E [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 17 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 17 00 98 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [18:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:29:06]wFMCommunicate OK [18:29:06]requested_item fd.num is exist - process it [18:29:06]SAM_PROTO_GetFieldsCounters [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 13 00 00 [18:29:06]Write to MH i2c: E2 08 00 99 5C 80 13 00 00 00 00 00 00 71 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 62 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 62 00 99 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [18:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FA 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:06]wFMCommunicate OK [18:29:06]SAM_PROTO_GetFieldsCounters done [18:29:06]requested_item shift.num is exist - process it [18:29:06]requested_item shift.opened is exist - process it [18:29:06]req_shift_opened [18:29:06]FM_GetShiftState [18:29:06]SAM_PROTO_GetShiftState [18:29:06]wFMCommunicate request_size=4 [18:29:06]MH_SAM_APDU [18:29:06]CAPDU: 80 13 01 00 [18:29:06]Write to MH i2c: E2 08 00 9A 5C 80 13 01 00 00 00 00 00 73 [18:29:06]Write i2c OK [18:29:06]MH_I2C_Read... [18:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:06]Read from MH i2c: E2 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0E 00 [18:29:06]MH_I2C_Read... [18:29:06]Read from MH i2c: E2 0E 00 9A 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EF [18:29:06]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:29:06]wFMCommunicate OK [18:29:06]SAM_PROTO_GetShiftState done [18:29:06]FM_GetShiftState done [18:29:06]req_shift_opened done [18:29:06]requested_item shift.open_date is exist - process it [18:29:06]req_shift_open_date [18:29:06]req_shift_open_date done [18:29:06]produce_requested_data done [18:29:06]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30714,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:29:06]process_action_free close_receipt [18:29:06]json_value_free [18:29:06]json_value_free done [18:29:06]process_json_proto returns [18:29:06]Send response to host [18:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30714,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:29:06]free response buf [18:29:06]execute_script done [18:29:06]execute_script returns [18:29:06]free content buf [18:29:06]Sock 9.Close socket [18:29:06]Sock 9.Thread stoped [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]accept exits with 7 [18:32:15]New connection [18:32:15]New thread 3067489636 created [18:32:15]Thread 3067346276 joined [18:32:15]Waiting for new connection... [18:32:15] Sock 7.Parse request [18:32:15]Sock 7.Check first char [18:32:15]Sock 7.First char is OK [18:32:15]request: POST /json_proto HTTP/1.0 [18:32:15]Method: POST [18:32:15]URL: /json_proto [18:32:15]Method is POST - this is cgi request [18:32:15]url: /json_proto [18:32:15]query_string will be loaded in cgi processing [18:32:15]execute_cgi json_proto POST (null) [18:32:15]execute_cgi path=json_proto method=POST [18:32:15]POST find Content-Length [18:32:15]Host: 172.17.51.3:8080 [18:32:15]Content-Length: 677 [18:32:15]Content-Type: application/json [18:32:15] [18:32:15]POST finish read [18:32:15]Found Content-Length = 677 [18:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:15]execute_script... [18:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:15]POST & json_proto [18:32:15]process_json_proto [18:32:15]json parsed OK: [18:32:15]protocol is kg_v1.0 [18:32:15]action value=close_receipt [18:32:15]process_action close_receipt [18:32:15]cmd_close_receipt [18:32:15]MH_GetDate [18:32:15]Write to MH i2c: F0 00 00 9B 5C E6 [18:32:15]Write i2c OK [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 09 00 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 09 00 9B 5C 00 35 9E 16 67 04 C1 95 66 FF [18:32:15]GetLastDocTimeStamp 1729535348 [18:32:15]current date 1729535541 [18:32:15]FM_GetShiftState [18:32:15]SAM_PROTO_GetShiftState [18:32:15]wFMCommunicate request_size=4 [18:32:15]MH_SAM_APDU [18:32:15]CAPDU: 80 13 01 00 [18:32:15]Write to MH i2c: E2 08 00 9C 5C 80 13 01 00 00 00 00 00 75 [18:32:15]Write i2c OK [18:32:15]MH_I2C_Read... [18:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:15]Read from MH i2c: E2 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: E2 0E 00 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: E2 0E 00 9C 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F1 [18:32:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:32:15]wFMCommunicate OK [18:32:15]SAM_PROTO_GetShiftState done [18:32:15]FM_GetShiftState done [18:32:15]opened in 1729471058 [18:32:15]opened+sec_in_day 1729557458 [18:32:15]quantity*price = 70044 [18:32:15]sum+1 = 70046 [18:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 212 21.10.2024 18:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30715 ФПД: 180024259016108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183221&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30715&fm=180024259016108&tin=02508201610067®Number=0000000000186857&sum=70000 [18:32:16]StoreToDocumentArchive [18:32:16]shift 115 fd 30715 [18:32:16]save to /storage/0115/doc_00030715 [18:32:16]save last doc name /storage/0115/doc_00030715 to /storage/kkm_last_doc_name [18:32:16]save OK [18:32:16]Clear old archive folders... [18:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:16]tlvbuf is B6FDBAF0 [18:32:16]SAM_PROTO_ClearQueue [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 09 00 00 [18:32:16]Write to MH i2c: E2 08 00 A9 5C 80 09 00 00 00 00 00 00 77 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 A9 5C 00 90 00 79 [18:32:16]RAPDU: 90 00 [18:32:16]wFMCommunicate OK [18:32:16]SAM_PROTO_ClearQueue done [18:32:16]KKMCreateOFDPacket [18:32:16]OFDProtocolAddRootSTLVToBuf [18:32:16]FM_MakeSignedData [18:32:16]FM_MakeSignedData [18:32:16]SAM_PROTO_SignData [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 0D 01 02 [18:32:16]Write to MH i2c: E2 08 00 AA 5C 80 0D 01 02 00 00 00 00 7F [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 AA 5C 00 90 00 7A [18:32:16]RAPDU: 90 00 [18:32:16]wFMCommunicate OK [18:32:16]wFMCommunicate request_size=255 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 35 9E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 77 00 00 35 04 06 00 A3 [18:32:16]Write to MH i2c: E2 02 01 AB 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 35 9E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 77 00 00 35 04 06 00 A3 00 00 A4 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 AB 5C 00 90 00 7B [18:32:16]RAPDU: 90 00 [18:32:16]wFMCommunicate OK [18:32:16]wFMCommunicate request_size=10 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 0D 02 02 05 BB 2A 02 75 AC [18:32:16]Write to MH i2c: E2 0D 00 AC 5C 80 0D 02 02 05 00 BB 2A 02 75 AC 00 00 94 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 03 00 AC 5C 00 90 00 7C [18:32:16]RAPDU: 90 00 [18:32:16]wFMCommunicate OK [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 0D 03 02 [18:32:16]Write to MH i2c: E2 08 00 AD 5C 80 0D 03 02 00 00 00 00 84 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0B 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 0B 00 AD 5C 00 39 BC 8B 36 6E 3A 4B 07 90 00 35 [18:32:16]RAPDU: 39 BC 8B 36 6E 3A 4B 07 90 00 [18:32:16]wFMCommunicate OK [18:32:16]SAM_PROTO_SignData done [18:32:16]FM_MakeSignedData done [18:32:16]CreateOFDProtocolMessage [18:32:16]wFMCommunicate request_size=4 [18:32:16]MH_SAM_APDU [18:32:16]CAPDU: 80 11 00 00 [18:32:16]Write to MH i2c: E2 08 00 AE 5C 80 11 00 00 00 00 00 00 84 [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:16]Read from MH i2c: E2 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 17 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: E2 17 00 AE 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D2 [18:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:32:16]wFMCommunicate OK [18:32:16]CreateOFDProtocolMessage done [18:32:16]OFDSenderStorePacket 30715 [18:32:16]StoreOFDPacket docnum=30715 [18:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B 74 07 01 2B E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 35 9E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 77 00 00 35 04 06 00 A3 BB 2A 02 75 AC 39 BC 8B 36 6E 3A 4B 07 [18:32:16]CheckFolder [18:32:16]dirname=/storage/ofd_packets [18:32:16]CheckFolder done [18:32:16]ProducePacketName [18:32:16]name=ofd_packets/00030715 [18:32:16]NVStorageSaveData ofd_packets/00030715 [18:32:16]File name is /storage/ofd_packets/00030715 [18:32:16]Write 301 bytes [18:32:16]NVStorageSaveData done [18:32:16]OFDSenderStorePacket done [18:32:16]KKMCreateOFDPacket done [18:32:16]NVStorageSaveData kkm_last_timestamp [18:32:16]File name is /storage/kkm_last_timestamp [18:32:16]Write 4 bytes [18:32:16]NVStorageSaveData done [18:32:16]ExternCall_PrintAddStr [18:32:16]wPrintStart [18:32:16]Write to MH i2c: 01 00 00 AF 5C 0B [18:32:16]Write i2c OK [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: 01 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: 01 07 00 [18:32:16]MH_I2C_Read... [18:32:16]Read from MH i2c: 01 07 00 AF 5C 00 00 00 00 00 FF 0F 20 [18:32:16]RasterBufferAndPrint [18:32:16]line Счет N : (1)343128 [18:32:16]line ИНН: 02508201610067 [18:32:16]line Контрольно-Кассовый Чек [18:32:16]line ПРОДАЖА [18:32:16]line ТРК (МРК, ГНК) : 62 [18:32:16]line Товар: 2710124500 [18:32:16]line Аи-95-К-3 [18:32:16]line 9.440 * 74.20 [18:32:16]line = 700.45 [18:32:16]line НДС 12% НСП 1% [18:32:16]line > о реализуемом товаре [18:32:16]line ОКРУГЛЕНИЕ: -0.45 [18:32:16]line ИТОГО: 700.00 [18:32:16]line Внесено: 700.00 [18:32:16]line СДАЧА: 0.00 [18:32:16]line НСП 1% : 6.20 [18:32:16]line НДС 12% : 74.38 [18:32:16]line Наличными: 700.00 [18:32:16]line Безнал.: 0.00 [18:32:16]line Место: АЗС № 78 "Партнер Нефть" [18:32:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:32:16]line СНО: Общий режим [18:32:16]line Чек 212 21.10.2024 18:32 [18:32:16]line Смена: 115 ФФД: 1.0 [18:32:16]line ЗНМ: 0300000137 [18:32:16]line РНМ: 0000000000186857 [18:32:16]line Версия ККМ: v1.0 [18:32:16]line ФМ: 0000000002094219 [18:32:16]line ФД: 30715 [18:32:16]line ФПД: 180024259016108 [18:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183221&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30715&fm=180024259016108&tin=02508201610067®Number=0000000000186857&sum=70000 [18:32:17]OFD Sender: Processing packet 30715 [packets to send 10, broken 9] [18:32:17]ProducePacketName [18:32:17]name=ofd_packets/00030715 [18:32:17]OFD Sender: To server: pG, [18:32:17]CommunicateWithHost lk.salyk.kg:30040 [18:32:17]ConnectInit lk.salyk.kg [18:32:17]written 0, free lines is 4095 [18:32:17]Connected sock=10 [18:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8B 74 07 01 2B E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 35 9E 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 77 00 00 35 04 06 00 A3 BB 2A 02 75 AC 39 BC 8B 36 6E 3A 4B 07 [18:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F8 CE 47 00 A6 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FB 77 00 00 F4 03 04 00 B5 48 16 67 B6 04 01 00 00 A7 EC 38 23 76 A9 7C 21 [18:32:17]CommunicateWithHost err = 0 [18:32:17]CheckOFDResponse [18:32:17]1017 (14) - 77093643461234 [18:32:17]1041 (16) - 0000000002094219 [18:32:17]1040 (4) - 30715 [18:32:17]1012 (4) - 21.10.2024 12:27 [18:32:17]1206 (1) - 0 [18:32:17]OFD Sender: Remove packet 30715 [18:32:17]ProducePacketName [18:32:17]name=ofd_packets/00030715 [18:32:17]NVStorageDeleteData [18:32:17]Write to MH i2c: 01 00 00 DA 5C 36 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 DA 5C 00 00 00 00 00 E8 0C 31 [18:32:17]RasterBufferAndPrint [18:32:17]line [18:32:17]line [18:32:17]line [18:32:17]line [18:32:17]line [18:32:17]written 0, free lines is 3311 [18:32:17]MH_Cut [18:32:17]Write to MH i2c: D1 01 00 E1 5C 01 0F [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D1 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D1 01 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: D1 01 00 E1 5C 00 0E [18:32:17]Write to MH i2c: 01 00 00 E2 5C 3E [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]OFD Sender: No OFD packet to send [18:32:18]*** Cut start [18:32:18]*** Partial cut [18:32:18]*** CUTSNS_PIN = 1 [18:32:18]*** CUTSNS_PIN = 0 [18:32:18]*** Brake cut motor [18:32:18]Read from MH i2c: 01 [18:32:18]MH_I2C_Read... [18:32:18]*** Stop cut motor [18:32:18]*** Cut end [18:32:18]Read from MH i2c: 01 07 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 07 00 E2 5C 00 00 00 00 00 FF 0F 53 [18:32:18]process_action close_receipt done [18:32:18]requested_data is exist [18:32:18]produce_requested_data [18:32:18]requested_item fm.sn is exist - process it [18:32:18]wFMCommunicate request_size=4 [18:32:18]MH_SAM_APDU [18:32:18]CAPDU: 80 11 00 00 [18:32:18]Write to MH i2c: E2 08 00 E3 5C 80 11 00 00 00 00 00 00 B9 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:18]Read from MH i2c: E2 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 17 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 17 00 E3 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 07 [18:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:32:18]wFMCommunicate OK [18:32:18]requested_item fd.num is exist - process it [18:32:18]SAM_PROTO_GetFieldsCounters [18:32:18]wFMCommunicate request_size=4 [18:32:18]MH_SAM_APDU [18:32:18]CAPDU: 80 13 00 00 [18:32:18]Write to MH i2c: E2 08 00 E4 5C 80 13 00 00 00 00 00 00 BC [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:19]Read from MH i2c: E2 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 62 00 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 62 00 E4 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:32:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FB 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:19]wFMCommunicate OK [18:32:19]SAM_PROTO_GetFieldsCounters done [18:32:19]requested_item shift.num is exist - process it [18:32:19]requested_item shift.opened is exist - process it [18:32:19]req_shift_opened [18:32:19]FM_GetShiftState [18:32:19]SAM_PROTO_GetShiftState [18:32:19]wFMCommunicate request_size=4 [18:32:19]MH_SAM_APDU [18:32:19]CAPDU: 80 13 01 00 [18:32:19]Write to MH i2c: E2 08 00 E5 5C 80 13 01 00 00 00 00 00 BE [18:32:19]Write i2c OK [18:32:19]MH_I2C_Read... [18:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:19]Read from MH i2c: E2 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 0E 00 [18:32:19]MH_I2C_Read... [18:32:19]Read from MH i2c: E2 0E 00 E5 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3A [18:32:19]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:32:19]wFMCommunicate OK [18:32:19]SAM_PROTO_GetShiftState done [18:32:19]FM_GetShiftState done [18:32:19]req_shift_opened done [18:32:19]requested_item shift.open_date is exist - process it [18:32:19]req_shift_open_date [18:32:19]req_shift_open_date done [18:32:19]produce_requested_data done [18:32:19]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30715,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:32:19]process_action_free close_receipt [18:32:19]json_value_free [18:32:19]json_value_free done [18:32:19]process_json_proto returns [18:32:19]Send response to host [18:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30715,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:32:19]free response buf [18:32:19]execute_script done [18:32:19]execute_script returns [18:32:19]free content buf [18:32:19]Sock 7.Close socket [18:32:19]Sock 7.Thread stoped [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:38]OFD Sender: No OFD packet to send [18:36:43]OFD Sender: No OFD packet to send [18:36:48]OFD Sender: No OFD packet to send [18:36:53]OFD Sender: No OFD packet to send [18:36:58]OFD Sender: No OFD packet to send [18:37:03]OFD Sender: No OFD packet to send [18:37:08]OFD Sender: No OFD packet to send [18:37:13]OFD Sender: No OFD packet to send [18:37:18]OFD Sender: No OFD packet to send [18:37:23]OFD Sender: No OFD packet to send [18:37:28]OFD Sender: No OFD packet to send [18:37:33]OFD Sender: No OFD packet to send [18:37:38]OFD Sender: No OFD packet to send [18:37:43]OFD Sender: No OFD packet to send [18:37:48]OFD Sender: No OFD packet to send [18:37:53]OFD Sender: No OFD packet to send [18:37:58]OFD Sender: No OFD packet to send [18:38:03]OFD Sender: No OFD packet to send [18:38:08]OFD Sender: No OFD packet to send [18:38:13]OFD Sender: No OFD packet to send [18:38:18]OFD Sender: No OFD packet to send [18:38:23]OFD Sender: No OFD packet to send [18:38:28]OFD Sender: No OFD packet to send [18:38:33]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:03]OFD Sender: No OFD packet to send [18:39:08]OFD Sender: No OFD packet to send [18:39:13]OFD Sender: No OFD packet to send [18:39:18]OFD Sender: No OFD packet to send [18:39:23]OFD Sender: No OFD packet to send [18:39:28]OFD Sender: No OFD packet to send [18:39:33]OFD Sender: No OFD packet to send [18:39:38]OFD Sender: No OFD packet to send [18:39:43]OFD Sender: No OFD packet to send [18:39:48]OFD Sender: No OFD packet to send [18:39:53]OFD Sender: No OFD packet to send [18:39:58]OFD Sender: No OFD packet to send [18:40:03]OFD Sender: No OFD packet to send [18:40:08]OFD Sender: No OFD packet to send [18:40:13]OFD Sender: No OFD packet to send [18:40:18]OFD Sender: No OFD packet to send [18:40:23]OFD Sender: No OFD packet to send [18:40:28]OFD Sender: No OFD packet to send [18:40:33]OFD Sender: No OFD packet to send [18:40:38]OFD Sender: No OFD packet to send [18:40:43]OFD Sender: No OFD packet to send [18:40:48]OFD Sender: No OFD packet to send [18:40:51]accept exits with 9 [18:40:51]New connection [18:40:51]New thread 3067346276 created [18:40:51]Thread 3067489636 joined [18:40:51]Waiting for new connection... [18:40:51] Sock 9.Parse request [18:40:51]Sock 9.Check first char [18:40:51]Sock 9.First char is OK [18:40:51]request: POST /json_proto HTTP/1.0 [18:40:51]Method: POST [18:40:51]URL: /json_proto [18:40:51]Method is POST - this is cgi request [18:40:51]url: /json_proto [18:40:51]query_string will be loaded in cgi processing [18:40:51]execute_cgi json_proto POST (null) [18:40:51]execute_cgi path=json_proto method=POST [18:40:51]POST find Content-Length [18:40:51]Host: 172.17.51.3:8080 [18:40:51]Content-Length: 843 [18:40:51]Content-Type: application/json [18:40:51] [18:40:51]POST finish read [18:40:51]Found Content-Length = 843 [18:40:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:51]execute_script... [18:40:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:51]POST & json_proto [18:40:51]process_json_proto [18:40:51]json parsed OK: [18:40:51]protocol is kg_v1.0 [18:40:51]action value=close_receipt [18:40:51]process_action close_receipt [18:40:51]cmd_close_receipt [18:40:51]MH_GetDate [18:40:51]Write to MH i2c: F0 00 00 E6 5C 31 [18:40:51]Write i2c OK [18:40:51]MH_I2C_Read... [18:40:51]Read from MH i2c: F0 [18:40:51]MH_I2C_Read... [18:40:51]Read from MH i2c: F0 09 00 [18:40:51]MH_I2C_Read... [18:40:51]Read from MH i2c: F0 09 00 E6 5C 00 39 A0 16 67 04 C1 95 66 50 [18:40:51]GetLastDocTimeStamp 1729535541 [18:40:51]current date 1729536057 [18:40:51]FM_GetShiftState [18:40:51]SAM_PROTO_GetShiftState [18:40:51]wFMCommunicate request_size=4 [18:40:51]MH_SAM_APDU [18:40:51]CAPDU: 80 13 01 00 [18:40:51]Write to MH i2c: E2 08 00 E7 5C 80 13 01 00 00 00 00 00 C0 [18:40:51]Write i2c OK [18:40:51]MH_I2C_Read... [18:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:51]Read from MH i2c: E2 [18:40:51]MH_I2C_Read... [18:40:51]Read from MH i2c: E2 0E 00 [18:40:51]MH_I2C_Read... [18:40:51]Read from MH i2c: E2 0E 00 E7 5C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 3C [18:40:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:40:51]wFMCommunicate OK [18:40:51]SAM_PROTO_GetShiftState done [18:40:51]FM_GetShiftState done [18:40:51]opened in 1729471058 [18:40:51]opened+sec_in_day 1729557458 [18:40:51]quantity*price = 100015 [18:40:51]sum+1 = 100017 [18:40:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 213 21.10.2024 18:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30716 ФПД: 71483002192384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30716&fm=71483002192384&tin=02508201610067®Number=0000000000186857&sum=100016 [18:40:52]StoreToDocumentArchive [18:40:52]shift 115 fd 30716 [18:40:52]save to /storage/0115/doc_00030716 [18:40:52]save last doc name /storage/0115/doc_00030716 to /storage/kkm_last_doc_name [18:40:52]save OK [18:40:52]Clear old archive folders... [18:40:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:52]tlvbuf is 01E490F0 [18:40:52]SAM_PROTO_ClearQueue [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 09 00 00 [18:40:52]Write to MH i2c: E2 08 00 F4 5C 80 09 00 00 00 00 00 00 C2 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 F4 5C 00 90 00 C4 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]SAM_PROTO_ClearQueue done [18:40:52]KKMCreateOFDPacket [18:40:52]OFDProtocolAddRootSTLVToBuf [18:40:52]FM_MakeSignedData [18:40:52]FM_MakeSignedData [18:40:52]SAM_PROTO_SignData [18:40:52]wFMCommunicate request_size=4 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 01 02 [18:40:52]Write to MH i2c: E2 08 00 F5 5C 80 0D 01 02 00 00 00 00 CA [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 F5 5C 00 90 00 C5 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]wFMCommunicate request_size=255 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 39 A0 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 77 00 00 35 04 06 00 41 [18:40:52]Write to MH i2c: E2 02 01 F6 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 39 A0 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 77 00 00 35 04 06 00 41 00 00 C7 [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:52]Read from MH i2c: E2 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 [18:40:52]MH_I2C_Read... [18:40:52]Read from MH i2c: E2 03 00 F6 5C 00 90 00 C6 [18:40:52]RAPDU: 90 00 [18:40:52]wFMCommunicate OK [18:40:52]wFMCommunicate request_size=10 [18:40:52]MH_SAM_APDU [18:40:52]CAPDU: 80 0D 02 02 05 03 6E F4 02 00 [18:40:52]Write to MH i2c: E2 0D 00 F7 5C 80 0D 02 02 05 00 03 6E F4 02 00 00 00 3E [18:40:52]Write i2c OK [18:40:52]MH_I2C_Read... [18:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:53]Read from MH i2c: E2 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 03 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 03 00 F7 5C 00 90 00 C7 [18:40:53]RAPDU: 90 00 [18:40:53]wFMCommunicate OK [18:40:53]wFMCommunicate request_size=4 [18:40:53]MH_SAM_APDU [18:40:53]CAPDU: 80 0D 03 02 [18:40:53]Write to MH i2c: E2 08 00 F8 5C 80 0D 03 02 00 00 00 00 CF [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:53]Read from MH i2c: E2 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 0B 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 0B 00 F8 5C 00 F5 3C 44 33 8C BF E0 55 90 00 F8 [18:40:53]RAPDU: F5 3C 44 33 8C BF E0 55 90 00 [18:40:53]wFMCommunicate OK [18:40:53]SAM_PROTO_SignData done [18:40:53]FM_MakeSignedData done [18:40:53]CreateOFDProtocolMessage [18:40:53]wFMCommunicate request_size=4 [18:40:53]MH_SAM_APDU [18:40:53]CAPDU: 80 11 00 00 [18:40:53]Write to MH i2c: E2 08 00 F9 5C 80 11 00 00 00 00 00 00 CF [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:53]Read from MH i2c: E2 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 17 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: E2 17 00 F9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1D [18:40:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:40:53]wFMCommunicate OK [18:40:53]CreateOFDProtocolMessage done [18:40:53]OFDSenderStorePacket 30716 [18:40:53]StoreOFDPacket docnum=30716 [18:40:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 21 07 01 D2 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 39 A0 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 77 00 00 35 04 06 00 41 03 6E F4 02 00 F5 3C 44 33 8C BF E0 55 [18:40:53]CheckFolder [18:40:53]dirname=/storage/ofd_packets [18:40:53]CheckFolder done [18:40:53]ProducePacketName [18:40:53]name=ofd_packets/00030716 [18:40:53]NVStorageSaveData ofd_packets/00030716 [18:40:53]File name is /storage/ofd_packets/00030716 [18:40:53]Write 301 bytes [18:40:53]NVStorageSaveData done [18:40:53]OFDSenderStorePacket done [18:40:53]KKMCreateOFDPacket done [18:40:53]NVStorageSaveData kkm_last_timestamp [18:40:53]File name is /storage/kkm_last_timestamp [18:40:53]Write 4 bytes [18:40:53]NVStorageSaveData done [18:40:53]ExternCall_PrintAddStr [18:40:53]wPrintStart [18:40:53]Write to MH i2c: 01 00 00 FA 5C 56 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 FA 5C 00 00 00 00 00 FF 0F 6B [18:40:53]RasterBufferAndPrint [18:40:53]line Счет N : (1)343129 [18:40:53]line ИНН: 02508201610067 [18:40:53]line Контрольно-Кассовый Чек [18:40:53]line ПРОДАЖА [18:40:53]line ТРК (МРК, ГНК) : 53 [18:40:53]line Товар: 2710124130 [18:40:53]line Аи-92-К-2 [18:40:53]line 14.950 * 66.90 [18:40:53]line = 1000.16 [18:40:53]line НДС 12% НСП 1% [18:40:53]line > о реализуемом товаре [18:40:53]line ИТОГО: 1000.16 [18:40:53]line НСП 1% : 8.85 [18:40:53]line НДС 12% : 106.21 [18:40:53]line Наличными: 0.00 [18:40:53]line Безнал.: 1000.16 [18:40:53]line Место: АЗС № 78 "Партнер Нефть" [18:40:53]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:40:53]line СНО: Общий режим [18:40:53]line Чек 213 21.10.2024 18:40 [18:40:53]line Смена: 115 ФФД: 1.0 [18:40:53]line ЗНМ: 0300000137 [18:40:53]line РНМ: 0000000000186857 [18:40:53]line Версия ККМ: v1.0 [18:40:53]line Платежная система: АКБ Кыргызстан [18:40:53]line ФМ: 0000000002094219 [18:40:53]line ФД: 30716 [18:40:53]line ФПД: 71483002192384 [18:40:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184057&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30716&fm=71483002192384&tin=02508201610067®Number=0000000000186857&sum=100016 [18:40:53]OFD Sender: Processing packet 30716 [packets to send 10, broken 9] [18:40:53]ProducePacketName [18:40:53]name=ofd_packets/00030716 [18:40:53]OFD Sender: To server: pG, [18:40:53]CommunicateWithHost lk.salyk.kg:30040 [18:40:53]ConnectInit lk.salyk.kg [18:40:53]written 0, free lines is 4095 [18:40:53]Connected sock=10 [18:40:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C0 21 07 01 D2 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 39 A0 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 77 00 00 35 04 06 00 41 03 6E F4 02 00 F5 3C 44 33 8C BF E0 55 [18:40:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EA 89 47 00 D8 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FC 77 00 00 F4 03 04 00 B9 4A 16 67 B6 04 01 00 00 64 0C 57 7B 87 91 5F 28 [18:40:53]CommunicateWithHost err = 0 [18:40:53]CheckOFDResponse [18:40:53]1017 (14) - 77093643461234 [18:40:53]1041 (16) - 0000000002094219 [18:40:53]1040 (4) - 30716 [18:40:53]1012 (4) - 21.10.2024 12:36 [18:40:53]1206 (1) - 0 [18:40:53]OFD Sender: Remove packet 30716 [18:40:53]ProducePacketName [18:40:53]name=ofd_packets/00030716 [18:40:53]NVStorageDeleteData [18:40:53]Write to MH i2c: 01 00 00 24 5D 81 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: 01 07 00 24 5D 00 00 00 00 00 FB 0C 8F [18:40:53]RasterBufferAndPrint [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]line [18:40:53]written 0, free lines is 3329 [18:40:53]MH_Cut [18:40:53]Write to MH i2c: D1 01 00 2B 5D 01 5A [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 01 00 [18:40:53]MH_I2C_Read... [18:40:53]Read from MH i2c: D1 01 00 2B 5D 00 59 [18:40:53]Write to MH i2c: 01 00 00 2C 5D 89 [18:40:53]Write i2c OK [18:40:53]MH_I2C_Read... [18:40:54]OFD Sender: No OFD packet to send [18:40:54]*** Cut start [18:40:54]*** Partial cut [18:40:54]*** CUTSNS_PIN = 1 [18:40:54]*** CUTSNS_PIN = 0 [18:40:54]*** Brake cut motor [18:40:55]Read from MH i2c: 01 [18:40:55]MH_I2C_Read... [18:40:55]*** Stop cut motor [18:40:55]*** Cut end [18:40:55]Read from MH i2c: 01 07 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: 01 07 00 2C 5D 00 00 00 00 00 FF 0F 9E [18:40:55]process_action close_receipt done [18:40:55]requested_data is exist [18:40:55]produce_requested_data [18:40:55]requested_item fm.sn is exist - process it [18:40:55]wFMCommunicate request_size=4 [18:40:55]MH_SAM_APDU [18:40:55]CAPDU: 80 11 00 00 [18:40:55]Write to MH i2c: E2 08 00 2D 5D 80 11 00 00 00 00 00 00 04 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:55]Read from MH i2c: E2 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 17 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 17 00 2D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [18:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:40:55]wFMCommunicate OK [18:40:55]requested_item fd.num is exist - process it [18:40:55]SAM_PROTO_GetFieldsCounters [18:40:55]wFMCommunicate request_size=4 [18:40:55]MH_SAM_APDU [18:40:55]CAPDU: 80 13 00 00 [18:40:55]Write to MH i2c: E2 08 00 2E 5D 80 13 00 00 00 00 00 00 07 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:55]Read from MH i2c: E2 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 62 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 62 00 2E 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FC 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:55]wFMCommunicate OK [18:40:55]SAM_PROTO_GetFieldsCounters done [18:40:55]requested_item shift.num is exist - process it [18:40:55]requested_item shift.opened is exist - process it [18:40:55]req_shift_opened [18:40:55]FM_GetShiftState [18:40:55]SAM_PROTO_GetShiftState [18:40:55]wFMCommunicate request_size=4 [18:40:55]MH_SAM_APDU [18:40:55]CAPDU: 80 13 01 00 [18:40:55]Write to MH i2c: E2 08 00 2F 5D 80 13 01 00 00 00 00 00 09 [18:40:55]Write i2c OK [18:40:55]MH_I2C_Read... [18:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:55]Read from MH i2c: E2 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 0E 00 [18:40:55]MH_I2C_Read... [18:40:55]Read from MH i2c: E2 0E 00 2F 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 85 [18:40:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:40:55]wFMCommunicate OK [18:40:55]SAM_PROTO_GetShiftState done [18:40:55]FM_GetShiftState done [18:40:55]req_shift_opened done [18:40:55]requested_item shift.open_date is exist - process it [18:40:55]req_shift_open_date [18:40:55]req_shift_open_date done [18:40:55]produce_requested_data done [18:40:55]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30716,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:40:55]process_action_free close_receipt [18:40:55]json_value_free [18:40:55]json_value_free done [18:40:55]process_json_proto returns [18:40:55]Send response to host [18:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30716,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:40:55]free response buf [18:40:55]execute_script done [18:40:55]execute_script returns [18:40:55]free content buf [18:40:55]Sock 9.Close socket [18:40:55]Sock 9.Thread stoped [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:39]OFD Sender: No OFD packet to send [18:45:44]OFD Sender: No OFD packet to send [18:45:49]OFD Sender: No OFD packet to send [18:45:54]OFD Sender: No OFD packet to send [18:45:59]OFD Sender: No OFD packet to send [18:46:04]OFD Sender: No OFD packet to send [18:46:09]OFD Sender: No OFD packet to send [18:46:14]OFD Sender: No OFD packet to send [18:46:19]OFD Sender: No OFD packet to send [18:46:24]OFD Sender: No OFD packet to send [18:46:29]OFD Sender: No OFD packet to send [18:46:34]OFD Sender: No OFD packet to send [18:46:39]OFD Sender: No OFD packet to send [18:46:44]OFD Sender: No OFD packet to send [18:46:49]OFD Sender: No OFD packet to send [18:46:54]OFD Sender: No OFD packet to send [18:46:59]OFD Sender: No OFD packet to send [18:47:04]OFD Sender: No OFD packet to send [18:47:09]OFD Sender: No OFD packet to send [18:47:14]OFD Sender: No OFD packet to send [18:47:19]OFD Sender: No OFD packet to send [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]accept exits with 7 [18:51:04]New connection [18:51:04]New thread 3067489636 created [18:51:04]Thread 3067346276 joined [18:51:04]Waiting for new connection... [18:51:04] Sock 7.Parse request [18:51:04]Sock 7.Check first char [18:51:04]Sock 7.First char is OK [18:51:04]request: POST /json_proto HTTP/1.0 [18:51:04]Method: POST [18:51:04]URL: /json_proto [18:51:04]Method is POST - this is cgi request [18:51:04]url: /json_proto [18:51:04]query_string will be loaded in cgi processing [18:51:04]execute_cgi json_proto POST (null) [18:51:04]execute_cgi path=json_proto method=POST [18:51:04]POST find Content-Length [18:51:04]Host: 172.17.51.3:8080 [18:51:04]Content-Length: 849 [18:51:04]Content-Type: application/json [18:51:04] [18:51:04]POST finish read [18:51:04]Found Content-Length = 849 [18:51:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:04]execute_script... [18:51:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:04]POST & json_proto [18:51:04]process_json_proto [18:51:04]json parsed OK: [18:51:04]protocol is kg_v1.0 [18:51:04]action value=close_receipt [18:51:04]process_action close_receipt [18:51:04]cmd_close_receipt [18:51:04]MH_GetDate [18:51:04]Write to MH i2c: F0 00 00 30 5D 7C [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: F0 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: F0 09 00 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: F0 09 00 30 5D 00 9E A2 16 67 04 C1 95 66 02 [18:51:04]GetLastDocTimeStamp 1729536057 [18:51:04]current date 1729536670 [18:51:04]FM_GetShiftState [18:51:04]SAM_PROTO_GetShiftState [18:51:04]wFMCommunicate request_size=4 [18:51:04]MH_SAM_APDU [18:51:04]CAPDU: 80 13 01 00 [18:51:04]Write to MH i2c: E2 08 00 31 5D 80 13 01 00 00 00 00 00 0B [18:51:04]Write i2c OK [18:51:04]MH_I2C_Read... [18:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:04]Read from MH i2c: E2 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 0E 00 [18:51:04]MH_I2C_Read... [18:51:04]Read from MH i2c: E2 0E 00 31 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 87 [18:51:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:04]wFMCommunicate OK [18:51:04]SAM_PROTO_GetShiftState done [18:51:04]FM_GetShiftState done [18:51:04]opened in 1729471058 [18:51:04]opened+sec_in_day 1729557458 [18:51:04]quantity*price = 150076 [18:51:04]sum+1 = 150078 [18:51:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 214 21.10.2024 18:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30717 ФПД: 238471174425201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185110&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30717&fm=238471174425201&tin=02508201610067®Number=0000000000186857&sum=150077 [18:51:05]StoreToDocumentArchive [18:51:05]shift 115 fd 30717 [18:51:05]save to /storage/0115/doc_00030717 [18:51:05]save last doc name /storage/0115/doc_00030717 to /storage/kkm_last_doc_name [18:51:05]save OK [18:51:05]Clear old archive folders... [18:51:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:51:05]tlvbuf is 01F559E0 [18:51:05]SAM_PROTO_ClearQueue [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 09 00 00 [18:51:05]Write to MH i2c: E2 08 00 3E 5D 80 09 00 00 00 00 00 00 0D [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 3E 5D 00 90 00 0F [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]SAM_PROTO_ClearQueue done [18:51:05]KKMCreateOFDPacket [18:51:05]OFDProtocolAddRootSTLVToBuf [18:51:05]FM_MakeSignedData [18:51:05]FM_MakeSignedData [18:51:05]SAM_PROTO_SignData [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 01 02 [18:51:05]Write to MH i2c: E2 08 00 3F 5D 80 0D 01 02 00 00 00 00 15 [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 3F 5D 00 90 00 10 [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]wFMCommunicate request_size=255 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9E A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 77 00 [18:51:05]Write to MH i2c: E2 02 01 40 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9E A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 77 00 00 00 D7 [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 40 5D 00 90 00 11 [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]wFMCommunicate request_size=16 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D8 E3 65 A4 0A 71 [18:51:05]Write to MH i2c: E2 13 00 41 5D 80 0D 02 02 0B 00 00 35 04 06 00 D8 E3 65 A4 0A 71 00 00 AC [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 03 00 41 5D 00 90 00 12 [18:51:05]RAPDU: 90 00 [18:51:05]wFMCommunicate OK [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 0D 03 02 [18:51:05]Write to MH i2c: E2 08 00 42 5D 80 0D 03 02 00 00 00 00 1A [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 0B 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 0B 00 42 5D 00 24 00 1A FE 1A 24 92 CD 90 00 F4 [18:51:05]RAPDU: 24 00 1A FE 1A 24 92 CD 90 00 [18:51:05]wFMCommunicate OK [18:51:05]SAM_PROTO_SignData done [18:51:05]FM_MakeSignedData done [18:51:05]CreateOFDProtocolMessage [18:51:05]wFMCommunicate request_size=4 [18:51:05]MH_SAM_APDU [18:51:05]CAPDU: 80 11 00 00 [18:51:05]Write to MH i2c: E2 08 00 43 5D 80 11 00 00 00 00 00 00 1A [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:05]Read from MH i2c: E2 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 17 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: E2 17 00 43 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [18:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:05]wFMCommunicate OK [18:51:05]CreateOFDProtocolMessage done [18:51:05]OFDSenderStorePacket 30717 [18:51:05]StoreOFDPacket docnum=30717 [18:51:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 02 4D 0D 01 F8 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9E A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 77 00 00 35 04 06 00 D8 E3 65 A4 0A 71 24 00 1A FE 1A 24 92 CD [18:51:05]CheckFolder [18:51:05]dirname=/storage/ofd_packets [18:51:05]CheckFolder done [18:51:05]ProducePacketName [18:51:05]name=ofd_packets/00030717 [18:51:05]NVStorageSaveData ofd_packets/00030717 [18:51:05]File name is /storage/ofd_packets/00030717 [18:51:05]Write 307 bytes [18:51:05]NVStorageSaveData done [18:51:05]OFDSenderStorePacket done [18:51:05]KKMCreateOFDPacket done [18:51:05]NVStorageSaveData kkm_last_timestamp [18:51:05]File name is /storage/kkm_last_timestamp [18:51:05]Write 4 bytes [18:51:05]NVStorageSaveData done [18:51:05]ExternCall_PrintAddStr [18:51:05]wPrintStart [18:51:05]Write to MH i2c: 01 00 00 44 5D A1 [18:51:05]Write i2c OK [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 07 00 [18:51:05]MH_I2C_Read... [18:51:05]Read from MH i2c: 01 07 00 44 5D 00 00 00 00 00 FF 0F B6 [18:51:05]RasterBufferAndPrint [18:51:05]line Счет N : (1)343130 [18:51:05]line ИНН: 02508201610067 [18:51:05]line Контрольно-Кассовый Чек [18:51:05]line ПРОДАЖА [18:51:05]line ТРК (МРК, ГНК) : 51 [18:51:05]line Товар: 2710194210 [18:51:05]line D-ENERGY Дт-К-2 [18:51:05]line 19.440 * 77.20 [18:51:05]line = 1500.77 [18:51:05]line НДС 12% НСП 1% [18:51:05]line > о реализуемом товаре [18:51:05]line ИТОГО: 1500.77 [18:51:05]line НСП 1% : 13.28 [18:51:05]line НДС 12% : 159.37 [18:51:05]line Наличными: 0.00 [18:51:05]line Безнал.: 1500.77 [18:51:05]line Место: АЗС № 78 "Партнер Нефть" [18:51:05]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:05]line СНО: Общий режим [18:51:05]line Чек 214 21.10.2024 18:51 [18:51:05]line Смена: 115 ФФД: 1.0 [18:51:05]line ЗНМ: 0300000137 [18:51:05]line РНМ: 0000000000186857 [18:51:05]line Версия ККМ: v1.0 [18:51:05]line Платежная система: АКБ Кыргызстан [18:51:05]line ФМ: 0000000002094219 [18:51:05]line ФД: 30717 [18:51:05]line ФПД: 238471174425201 [18:51:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185110&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30717&fm=238471174425201&tin=02508201610067®Number=0000000000186857&sum=150077 [18:51:06]OFD Sender: Processing packet 30717 [packets to send 10, broken 9] [18:51:06]ProducePacketName [18:51:06]name=ofd_packets/00030717 [18:51:06]OFD Sender: To server: pG, [18:51:06]CommunicateWithHost lk.salyk.kg:30040 [18:51:06]ConnectInit lk.salyk.kg [18:51:06]written 0, free lines is 4095 [18:51:06]Connected sock=10 [18:51:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 02 4D 0D 01 F8 69 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 9E A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FD 77 00 00 35 04 06 00 D8 E3 65 A4 0A 71 24 00 1A FE 1A 24 92 CD [18:51:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D5 6B 47 00 CF 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 32 30 39 34 32 31 39 10 04 04 00 FD 77 00 00 F4 03 04 00 1E 4D 16 67 B6 04 01 00 00 52 53 3B D5 57 FB C5 8D [18:51:06]CommunicateWithHost err = 0 [18:51:06]CheckOFDResponse [18:51:06]1017 (14) - 77093643461234 [18:51:06]1041 (16) - 0000000002094219 [18:51:06]1040 (4) - 30717 [18:51:06]1012 (4) - 21.10.2024 12:46 [18:51:06]1206 (1) - 0 [18:51:06]OFD Sender: Remove packet 30717 [18:51:06]ProducePacketName [18:51:06]name=ofd_packets/00030717 [18:51:06]NVStorageDeleteData [18:51:06]Write to MH i2c: 01 00 00 6E 5D CB [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 07 00 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: 01 07 00 6E 5D 00 00 00 00 00 01 0D E0 [18:51:06]RasterBufferAndPrint [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]line [18:51:06]written 0, free lines is 3335 [18:51:06]MH_Cut [18:51:06]Write to MH i2c: D1 01 00 75 5D 01 A4 [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 01 00 [18:51:06]MH_I2C_Read... [18:51:06]Read from MH i2c: D1 01 00 75 5D 00 A3 [18:51:06]Write to MH i2c: 01 00 00 76 5D D3 [18:51:06]Write i2c OK [18:51:06]MH_I2C_Read... [18:51:07]OFD Sender: No OFD packet to send [18:51:07]*** Cut start [18:51:07]*** Partial cut [18:51:07]*** CUTSNS_PIN = 1 [18:51:07]*** CUTSNS_PIN = 0 [18:51:07]*** Brake cut motor [18:51:07]Read from MH i2c: 01 [18:51:07]MH_I2C_Read... [18:51:07]*** Stop cut motor [18:51:07]*** Cut end [18:51:07]Read from MH i2c: 01 07 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: 01 07 00 76 5D 00 00 00 00 00 FF 0F E8 [18:51:07]process_action close_receipt done [18:51:07]requested_data is exist [18:51:07]produce_requested_data [18:51:07]requested_item fm.sn is exist - process it [18:51:07]wFMCommunicate request_size=4 [18:51:07]MH_SAM_APDU [18:51:07]CAPDU: 80 11 00 00 [18:51:07]Write to MH i2c: E2 08 00 77 5D 80 11 00 00 00 00 00 00 4E [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:07]Read from MH i2c: E2 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 17 00 [18:51:07]MH_I2C_Read... [18:51:07]Read from MH i2c: E2 17 00 77 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [18:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:07]wFMCommunicate OK [18:51:07]requested_item fd.num is exist - process it [18:51:07]SAM_PROTO_GetFieldsCounters [18:51:07]wFMCommunicate request_size=4 [18:51:07]MH_SAM_APDU [18:51:07]CAPDU: 80 13 00 00 [18:51:07]Write to MH i2c: E2 08 00 78 5D 80 13 00 00 00 00 00 00 51 [18:51:07]Write i2c OK [18:51:07]MH_I2C_Read... [18:51:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:08]Read from MH i2c: E2 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 62 00 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 62 00 78 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [18:51:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FD 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:08]wFMCommunicate OK [18:51:08]SAM_PROTO_GetFieldsCounters done [18:51:08]requested_item shift.num is exist - process it [18:51:08]requested_item shift.opened is exist - process it [18:51:08]req_shift_opened [18:51:08]FM_GetShiftState [18:51:08]SAM_PROTO_GetShiftState [18:51:08]wFMCommunicate request_size=4 [18:51:08]MH_SAM_APDU [18:51:08]CAPDU: 80 13 01 00 [18:51:08]Write to MH i2c: E2 08 00 79 5D 80 13 01 00 00 00 00 00 53 [18:51:08]Write i2c OK [18:51:08]MH_I2C_Read... [18:51:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:08]Read from MH i2c: E2 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 0E 00 [18:51:08]MH_I2C_Read... [18:51:08]Read from MH i2c: E2 0E 00 79 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CF [18:51:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:08]wFMCommunicate OK [18:51:08]SAM_PROTO_GetShiftState done [18:51:08]FM_GetShiftState done [18:51:08]req_shift_opened done [18:51:08]requested_item shift.open_date is exist - process it [18:51:08]req_shift_open_date [18:51:08]req_shift_open_date done [18:51:08]produce_requested_data done [18:51:08]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30717,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:51:08]process_action_free close_receipt [18:51:08]json_value_free [18:51:08]json_value_free done [18:51:08]process_json_proto returns [18:51:08]Send response to host [18:51:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30717,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:51:08]free response buf [18:51:08]execute_script done [18:51:08]execute_script returns [18:51:08]free content buf [18:51:08]Sock 7.Close socket [18:51:08]Sock 7.Thread stoped [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:21]accept exits with 9 [18:51:21]New connection [18:51:21]New thread 3067346276 created [18:51:21]Thread 3067489636 joined [18:51:21]Waiting for new connection... [18:51:21] Sock 9.Parse request [18:51:21]Sock 9.Check first char [18:51:21]Sock 9.First char is OK [18:51:21]request: POST /json_proto HTTP/1.0 [18:51:21]Method: POST [18:51:21]URL: /json_proto [18:51:21]Method is POST - this is cgi request [18:51:21]url: /json_proto [18:51:21]query_string will be loaded in cgi processing [18:51:21]execute_cgi json_proto POST (null) [18:51:21]execute_cgi path=json_proto method=POST [18:51:21]POST find Content-Length [18:51:21]Host: 172.17.51.3:8080 [18:51:21]Content-Length: 679 [18:51:21]Content-Type: application/json [18:51:21] [18:51:21]POST finish read [18:51:21]Found Content-Length = 679 [18:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:21]execute_script... [18:51:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:21]POST & json_proto [18:51:21]process_json_proto [18:51:21]json parsed OK: [18:51:21]protocol is kg_v1.0 [18:51:21]action value=close_receipt [18:51:21]process_action close_receipt [18:51:21]cmd_close_receipt [18:51:21]MH_GetDate [18:51:21]Write to MH i2c: F0 00 00 7A 5D C6 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: F0 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: F0 09 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: F0 09 00 7A 5D 00 AF A2 16 67 04 C1 95 66 5D [18:51:21]GetLastDocTimeStamp 1729536670 [18:51:21]current date 1729536687 [18:51:21]FM_GetShiftState [18:51:21]SAM_PROTO_GetShiftState [18:51:21]wFMCommunicate request_size=4 [18:51:21]MH_SAM_APDU [18:51:21]CAPDU: 80 13 01 00 [18:51:21]Write to MH i2c: E2 08 00 7B 5D 80 13 01 00 00 00 00 00 55 [18:51:21]Write i2c OK [18:51:21]MH_I2C_Read... [18:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:21]Read from MH i2c: E2 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 0E 00 [18:51:21]MH_I2C_Read... [18:51:21]Read from MH i2c: E2 0E 00 7B 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D1 [18:51:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:21]wFMCommunicate OK [18:51:21]SAM_PROTO_GetShiftState done [18:51:21]FM_GetShiftState done [18:51:21]opened in 1729471058 [18:51:21]opened+sec_in_day 1729557458 [18:51:21]quantity*price = 100050 [18:51:21]sum+1 = 100052 [18:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 215 21.10.2024 18:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30718 ФПД: 703295059519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30718&fm=703295059519&tin=02508201610067®Number=0000000000186857&sum=100000 [18:51:22]StoreToDocumentArchive [18:51:22]shift 115 fd 30718 [18:51:22]save to /storage/0115/doc_00030718 [18:51:22]save last doc name /storage/0115/doc_00030718 to /storage/kkm_last_doc_name [18:51:22]save OK [18:51:22]Clear old archive folders... [18:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:51:22]tlvbuf is 01F4B610 [18:51:22]SAM_PROTO_ClearQueue [18:51:22]wFMCommunicate request_size=4 [18:51:22]MH_SAM_APDU [18:51:22]CAPDU: 80 09 00 00 [18:51:22]Write to MH i2c: E2 08 00 88 5D 80 09 00 00 00 00 00 00 57 [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:22]Read from MH i2c: E2 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: E2 03 00 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: E2 03 00 88 5D 00 90 00 59 [18:51:22]RAPDU: 90 00 [18:51:22]wFMCommunicate OK [18:51:22]SAM_PROTO_ClearQueue done [18:51:22]KKMCreateOFDPacket [18:51:22]OFDProtocolAddRootSTLVToBuf [18:51:22]FM_MakeSignedData [18:51:22]FM_MakeSignedData [18:51:22]SAM_PROTO_SignData [18:51:22]wFMCommunicate request_size=4 [18:51:22]MH_SAM_APDU [18:51:22]CAPDU: 80 0D 01 02 [18:51:22]Write to MH i2c: E2 08 00 89 5D 80 0D 01 02 00 00 00 00 5F [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:22]Read from MH i2c: E2 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: E2 03 00 [18:51:22]MH_I2C_Read... [18:51:22]Read from MH i2c: E2 03 00 89 5D 00 90 00 5A [18:51:22]RAPDU: 90 00 [18:51:22]wFMCommunicate OK [18:51:22]wFMCommunicate request_size=255 [18:51:22]MH_SAM_APDU [18:51:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 77 00 00 35 04 06 00 00 A3 BF A6 [18:51:22]Write to MH i2c: E2 02 01 8A 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 77 00 00 35 04 06 00 00 A3 BF A6 00 00 7B [18:51:22]Write i2c OK [18:51:22]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 03 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 03 00 8A 5D 00 90 00 5B [18:51:23]RAPDU: 90 00 [18:51:23]wFMCommunicate OK [18:51:23]wFMCommunicate request_size=7 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 0D 02 02 02 F6 3F [18:51:23]Write to MH i2c: E2 0A 00 8B 5D 80 0D 02 02 02 00 F6 3F 00 00 9B [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 03 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 03 00 8B 5D 00 90 00 5C [18:51:23]RAPDU: 90 00 [18:51:23]wFMCommunicate OK [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 0D 03 02 [18:51:23]Write to MH i2c: E2 08 00 8C 5D 80 0D 03 02 00 00 00 00 64 [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0B 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 0B 00 8C 5D 00 F4 69 F8 77 0B DC 94 9B 90 00 47 [18:51:23]RAPDU: F4 69 F8 77 0B DC 94 9B 90 00 [18:51:23]wFMCommunicate OK [18:51:23]SAM_PROTO_SignData done [18:51:23]FM_MakeSignedData done [18:51:23]CreateOFDProtocolMessage [18:51:23]wFMCommunicate request_size=4 [18:51:23]MH_SAM_APDU [18:51:23]CAPDU: 80 11 00 00 [18:51:23]Write to MH i2c: E2 08 00 8D 5D 80 11 00 00 00 00 00 00 64 [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:23]Read from MH i2c: E2 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 17 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: E2 17 00 8D 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [18:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:23]wFMCommunicate OK [18:51:23]CreateOFDProtocolMessage done [18:51:23]OFDSenderStorePacket 30718 [18:51:23]StoreOFDPacket docnum=30718 [18:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F3 E2 04 01 C9 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 77 00 00 35 04 06 00 00 A3 BF A6 F6 3F F4 69 F8 77 0B DC 94 9B [18:51:23]CheckFolder [18:51:23]dirname=/storage/ofd_packets [18:51:23]CheckFolder done [18:51:23]ProducePacketName [18:51:23]name=ofd_packets/00030718 [18:51:23]NVStorageSaveData ofd_packets/00030718 [18:51:23]File name is /storage/ofd_packets/00030718 [18:51:23]Write 298 bytes [18:51:23]NVStorageSaveData done [18:51:23]OFDSenderStorePacket done [18:51:23]KKMCreateOFDPacket done [18:51:23]NVStorageSaveData kkm_last_timestamp [18:51:23]File name is /storage/kkm_last_timestamp [18:51:23]Write 4 bytes [18:51:23]NVStorageSaveData done [18:51:23]ExternCall_PrintAddStr [18:51:23]wPrintStart [18:51:23]Write to MH i2c: 01 00 00 8E 5D EB [18:51:23]Write i2c OK [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: 01 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: 01 07 00 [18:51:23]MH_I2C_Read... [18:51:23]Read from MH i2c: 01 07 00 8E 5D 00 00 00 00 00 FF 0F 00 [18:51:23]RasterBufferAndPrint [18:51:23]line Счет N : (1)343132 [18:51:23]line ИНН: 02508201610067 [18:51:23]line Контрольно-Кассовый Чек [18:51:23]line ПРОДАЖА [18:51:23]line ТРК (МРК, ГНК) : 44 [18:51:23]line Товар: 2710194210 [18:51:23]line ДТ-К-2 [18:51:23]line 13.130 * 76.20 [18:51:23]line = 1000.51 [18:51:23]line НДС 12% НСП 1% [18:51:23]line > о реализуемом товаре [18:51:23]line ОКРУГЛЕНИЕ: -0.51 [18:51:23]line ИТОГО: 1000.00 [18:51:23]line Внесено: 1000.00 [18:51:23]line СДАЧА: 0.00 [18:51:23]line НСП 1% : 8.85 [18:51:23]line НДС 12% : 106.25 [18:51:23]line Наличными: 1000.00 [18:51:23]line Безнал.: 0.00 [18:51:23]line Место: АЗС № 78 "Партнер Нефть" [18:51:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:23]line СНО: Общий режим [18:51:23]line Чек 215 21.10.2024 18:51 [18:51:23]line Смена: 115 ФФД: 1.0 [18:51:23]line ЗНМ: 0300000137 [18:51:23]line РНМ: 0000000000186857 [18:51:23]line Версия ККМ: v1.0 [18:51:23]line ФМ: 0000000002094219 [18:51:23]line ФД: 30718 [18:51:23]line ФПД: 703295059519 [18:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185127&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30718&fm=703295059519&tin=02508201610067®Number=0000000000186857&sum=100000 [18:51:23]OFD Sender: Processing packet 30718 [packets to send 10, broken 9] [18:51:23]ProducePacketName [18:51:23]name=ofd_packets/00030718 [18:51:23]OFD Sender: To server: pG, [18:51:23]CommunicateWithHost lk.salyk.kg:30040 [18:51:23]ConnectInit lk.salyk.kg [18:51:23]written 0, free lines is 4095 [18:51:23]Connected sock=10 [18:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 F3 E2 04 01 C9 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 AF A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FE 77 00 00 35 04 06 00 00 A3 BF A6 F6 3F F4 69 F8 77 0B DC 94 9B [18:51:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9D CE 47 00 D4 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 32 30 39 34 32 31 39 10 04 04 00 FE 77 00 00 F4 03 04 00 2F 4D 16 67 B6 04 01 00 00 99 4C AA 47 3F 3D C5 AE [18:51:23]CommunicateWithHost err = 0 [18:51:23]CheckOFDResponse [18:51:23]1017 (14) - 77093643461234 [18:51:23]1041 (16) - 0000000002094219 [18:51:23]1040 (4) - 30718 [18:51:23]1012 (4) - 21.10.2024 12:46 [18:51:23]1206 (1) - 0 [18:51:23]OFD Sender: Remove packet 30718 [18:51:23]ProducePacketName [18:51:23]name=ofd_packets/00030718 [18:51:23]NVStorageDeleteData [18:51:24]Write to MH i2c: 01 00 00 B9 5D 16 [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: 01 07 00 B9 5D 00 00 00 00 00 EF 0C 18 [18:51:24]RasterBufferAndPrint [18:51:24]line [18:51:24]line [18:51:24]line [18:51:24]line [18:51:24]line [18:51:24]written 0, free lines is 3317 [18:51:24]MH_Cut [18:51:24]Write to MH i2c: D1 01 00 C0 5D 01 EF [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: D1 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: D1 01 00 [18:51:24]MH_I2C_Read... [18:51:24]Read from MH i2c: D1 01 00 C0 5D 00 EE [18:51:24]Write to MH i2c: 01 00 00 C1 5D 1E [18:51:24]Write i2c OK [18:51:24]MH_I2C_Read... [18:51:24]OFD Sender: No OFD packet to send [18:51:24]*** Cut start [18:51:24]*** Partial cut [18:51:24]*** CUTSNS_PIN = 1 [18:51:24]*** CUTSNS_PIN = 0 [18:51:24]*** Brake cut motor [18:51:25]Read from MH i2c: 01 [18:51:25]MH_I2C_Read... [18:51:25]*** Stop cut motor [18:51:25]*** Cut end [18:51:25]Read from MH i2c: 01 07 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: 01 07 00 C1 5D 00 00 00 00 00 FF 0F 33 [18:51:25]process_action close_receipt done [18:51:25]requested_data is exist [18:51:25]produce_requested_data [18:51:25]requested_item fm.sn is exist - process it [18:51:25]wFMCommunicate request_size=4 [18:51:25]MH_SAM_APDU [18:51:25]CAPDU: 80 11 00 00 [18:51:25]Write to MH i2c: E2 08 00 C2 5D 80 11 00 00 00 00 00 00 99 [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:25]Read from MH i2c: E2 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 17 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 17 00 C2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [18:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:25]wFMCommunicate OK [18:51:25]requested_item fd.num is exist - process it [18:51:25]SAM_PROTO_GetFieldsCounters [18:51:25]wFMCommunicate request_size=4 [18:51:25]MH_SAM_APDU [18:51:25]CAPDU: 80 13 00 00 [18:51:25]Write to MH i2c: E2 08 00 C3 5D 80 13 00 00 00 00 00 00 9C [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:25]Read from MH i2c: E2 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 62 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 62 00 C3 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [18:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FE 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:25]wFMCommunicate OK [18:51:25]SAM_PROTO_GetFieldsCounters done [18:51:25]requested_item shift.num is exist - process it [18:51:25]requested_item shift.opened is exist - process it [18:51:25]req_shift_opened [18:51:25]FM_GetShiftState [18:51:25]SAM_PROTO_GetShiftState [18:51:25]wFMCommunicate request_size=4 [18:51:25]MH_SAM_APDU [18:51:25]CAPDU: 80 13 01 00 [18:51:25]Write to MH i2c: E2 08 00 C4 5D 80 13 01 00 00 00 00 00 9E [18:51:25]Write i2c OK [18:51:25]MH_I2C_Read... [18:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:25]Read from MH i2c: E2 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 [18:51:25]MH_I2C_Read... [18:51:25]Read from MH i2c: E2 0E 00 C4 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1A [18:51:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:25]wFMCommunicate OK [18:51:25]SAM_PROTO_GetShiftState done [18:51:25]FM_GetShiftState done [18:51:25]req_shift_opened done [18:51:25]requested_item shift.open_date is exist - process it [18:51:25]req_shift_open_date [18:51:25]req_shift_open_date done [18:51:25]produce_requested_data done [18:51:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30718,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:51:25]process_action_free close_receipt [18:51:25]json_value_free [18:51:25]json_value_free done [18:51:25]process_json_proto returns [18:51:25]Send response to host [18:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30718,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:51:25]free response buf [18:51:25]execute_script done [18:51:25]execute_script returns [18:51:25]free content buf [18:51:25]Sock 9.Close socket [18:51:25]Sock 9.Thread stoped [18:51:25]accept exits with 7 [18:51:25]New connection [18:51:25]New thread 3067489636 created [18:51:25]Thread 3067346276 joined [18:51:25]Waiting for new connection... [18:51:25] Sock 7.Parse request [18:51:25]Sock 7.Check first char [18:51:25]Sock 7.First char is OK [18:51:25]request: POST /json_proto HTTP/1.0 [18:51:25]Method: POST [18:51:25]URL: /json_proto [18:51:25]Method is POST - this is cgi request [18:51:25]url: /json_proto [18:51:25]query_string will be loaded in cgi processing [18:51:25]execute_cgi json_proto POST (null) [18:51:25]execute_cgi path=json_proto method=POST [18:51:25]POST find Content-Length [18:51:25]Host: 172.17.51.3:8080 [18:51:25]Content-Length: 847 [18:51:25]Content-Type: application/json [18:51:25] [18:51:25]POST finish read [18:51:25]Found Content-Length = 847 [18:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:25]execute_script... [18:51:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:25]POST & json_proto [18:51:25]process_json_proto [18:51:25]json parsed OK: [18:51:25]protocol is kg_v1.0 [18:51:25]action value=close_receipt [18:51:25]process_action close_receipt [18:51:25]cmd_close_receipt [18:51:25]MH_GetDate [18:51:25]Write to MH i2c: F0 00 00 C5 5D 11 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: F0 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: F0 09 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: F0 09 00 C5 5D 00 B4 A2 16 67 04 C1 95 66 AD [18:51:26]GetLastDocTimeStamp 1729536687 [18:51:26]current date 1729536692 [18:51:26]FM_GetShiftState [18:51:26]SAM_PROTO_GetShiftState [18:51:26]wFMCommunicate request_size=4 [18:51:26]MH_SAM_APDU [18:51:26]CAPDU: 80 13 01 00 [18:51:26]Write to MH i2c: E2 08 00 C6 5D 80 13 01 00 00 00 00 00 A0 [18:51:26]Write i2c OK [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 [18:51:26]MH_I2C_Read... [18:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:26]Read from MH i2c: E2 0E 00 [18:51:26]MH_I2C_Read... [18:51:26]Read from MH i2c: E2 0E 00 C6 5D 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 1C [18:51:26]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:26]wFMCommunicate OK [18:51:26]SAM_PROTO_GetShiftState done [18:51:26]FM_GetShiftState done [18:51:26]opened in 1729471058 [18:51:26]opened+sec_in_day 1729557458 [18:51:26]quantity*price = 80056 [18:51:26]sum+1 = 80057 [18:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 216 21.10.2024 18:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30719 ФПД: 17716361191186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30719&fm=17716361191186&tin=02508201610067®Number=0000000000186857&sum=80056 [18:51:27]StoreToDocumentArchive [18:51:27]shift 115 fd 30719 [18:51:27]save to /storage/0115/doc_00030719 [18:51:27]save last doc name /storage/0115/doc_00030719 to /storage/kkm_last_doc_name [18:51:27]save OK [18:51:27]Clear old archive folders... [18:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:51:27]tlvbuf is 01F559E0 [18:51:27]SAM_PROTO_ClearQueue [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 09 00 00 [18:51:27]Write to MH i2c: E2 08 00 D3 5D 80 09 00 00 00 00 00 00 A2 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 D3 5D 00 90 00 A4 [18:51:27]RAPDU: 90 00 [18:51:27]wFMCommunicate OK [18:51:27]SAM_PROTO_ClearQueue done [18:51:27]KKMCreateOFDPacket [18:51:27]OFDProtocolAddRootSTLVToBuf [18:51:27]FM_MakeSignedData [18:51:27]FM_MakeSignedData [18:51:27]SAM_PROTO_SignData [18:51:27]wFMCommunicate request_size=4 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 0D 01 02 [18:51:27]Write to MH i2c: E2 08 00 D4 5D 80 0D 01 02 00 00 00 00 AA [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 D4 5D 00 90 00 A5 [18:51:27]RAPDU: 90 00 [18:51:27]wFMCommunicate OK [18:51:27]wFMCommunicate request_size=255 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B4 A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 77 00 [18:51:27]Write to MH i2c: E2 02 01 D5 5D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B4 A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 77 00 00 00 95 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:27]Read from MH i2c: E2 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 [18:51:27]MH_I2C_Read... [18:51:27]Read from MH i2c: E2 03 00 D5 5D 00 90 00 A6 [18:51:27]RAPDU: 90 00 [18:51:27]wFMCommunicate OK [18:51:27]wFMCommunicate request_size=16 [18:51:27]MH_SAM_APDU [18:51:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 1C E9 6A 5F 12 [18:51:27]Write to MH i2c: E2 13 00 D6 5D 80 0D 02 02 0B 00 00 35 04 06 00 10 1C E9 6A 5F 12 00 00 F2 [18:51:27]Write i2c OK [18:51:27]MH_I2C_Read... [18:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:28]Read from MH i2c: E2 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 03 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 03 00 D6 5D 00 90 00 A7 [18:51:28]RAPDU: 90 00 [18:51:28]wFMCommunicate OK [18:51:28]wFMCommunicate request_size=4 [18:51:28]MH_SAM_APDU [18:51:28]CAPDU: 80 0D 03 02 [18:51:28]Write to MH i2c: E2 08 00 D7 5D 80 0D 03 02 00 00 00 00 AF [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:28]Read from MH i2c: E2 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 0B 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 0B 00 D7 5D 00 7B F1 8E 65 DA 53 B6 06 90 00 F8 [18:51:28]RAPDU: 7B F1 8E 65 DA 53 B6 06 90 00 [18:51:28]wFMCommunicate OK [18:51:28]SAM_PROTO_SignData done [18:51:28]FM_MakeSignedData done [18:51:28]CreateOFDProtocolMessage [18:51:28]wFMCommunicate request_size=4 [18:51:28]MH_SAM_APDU [18:51:28]CAPDU: 80 11 00 00 [18:51:28]Write to MH i2c: E2 08 00 D8 5D 80 11 00 00 00 00 00 00 AF [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:28]Read from MH i2c: E2 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 17 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: E2 17 00 D8 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [18:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:28]wFMCommunicate OK [18:51:28]CreateOFDProtocolMessage done [18:51:28]OFDSenderStorePacket 30719 [18:51:28]StoreOFDPacket docnum=30719 [18:51:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 52 BB 0D 01 FE 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B4 A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 77 00 00 35 04 06 00 10 1C E9 6A 5F 12 7B F1 8E 65 DA 53 B6 06 [18:51:28]CheckFolder [18:51:28]dirname=/storage/ofd_packets [18:51:28]CheckFolder done [18:51:28]ProducePacketName [18:51:28]name=ofd_packets/00030719 [18:51:28]NVStorageSaveData ofd_packets/00030719 [18:51:28]File name is /storage/ofd_packets/00030719 [18:51:28]Write 307 bytes [18:51:28]NVStorageSaveData done [18:51:28]OFDSenderStorePacket done [18:51:28]KKMCreateOFDPacket done [18:51:28]NVStorageSaveData kkm_last_timestamp [18:51:28]File name is /storage/kkm_last_timestamp [18:51:28]Write 4 bytes [18:51:28]NVStorageSaveData done [18:51:28]ExternCall_PrintAddStr [18:51:28]wPrintStart [18:51:28]Write to MH i2c: 01 00 00 D9 5D 36 [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 07 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 07 00 D9 5D 00 00 00 00 00 FF 0F 4B [18:51:28]RasterBufferAndPrint [18:51:28]line Счет N : (1)343131 [18:51:28]line ИНН: 02508201610067 [18:51:28]line Контрольно-Кассовый Чек [18:51:28]line ПРОДАЖА [18:51:28]line ТРК (МРК, ГНК) : 61 [18:51:28]line Товар: 2710194210 [18:51:28]line D-ENERGY Дт-К-2 [18:51:28]line 10.370 * 77.20 [18:51:28]line = 800.56 [18:51:28]line НДС 12% НСП 1% [18:51:28]line > о реализуемом товаре [18:51:28]line ИТОГО: 800.56 [18:51:28]line НСП 1% : 7.08 [18:51:28]line НДС 12% : 85.01 [18:51:28]line Наличными: 0.00 [18:51:28]line Безнал.: 800.56 [18:51:28]line Место: АЗС № 78 "Партнер Нефть" [18:51:28]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:51:28]line СНО: Общий режим [18:51:28]line Чек 216 21.10.2024 18:51 [18:51:28]line Смена: 115 ФФД: 1.0 [18:51:28]line ЗНМ: 0300000137 [18:51:28]line РНМ: 0000000000186857 [18:51:28]line Версия ККМ: v1.0 [18:51:28]line Платежная система: АКБ Кыргызстан [18:51:28]line ФМ: 0000000002094219 [18:51:28]line ФД: 30719 [18:51:28]line ФПД: 17716361191186 [18:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185132&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30719&fm=17716361191186&tin=02508201610067®Number=0000000000186857&sum=80056 [18:51:28]written 0, free lines is 4095 [18:51:28]OFD Sender: Processing packet 30719 [packets to send 10, broken 9] [18:51:28]ProducePacketName [18:51:28]name=ofd_packets/00030719 [18:51:28]OFD Sender: To server: pG, [18:51:28]CommunicateWithHost lk.salyk.kg:30040 [18:51:28]ConnectInit lk.salyk.kg [18:51:28]Connected sock=10 [18:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 52 BB 0D 01 FE 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 B4 A2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 FF 77 00 00 35 04 06 00 10 1C E9 6A 5F 12 7B F1 8E 65 DA 53 B6 06 [18:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 EA C1 47 00 3F 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 32 30 39 34 32 31 39 10 04 04 00 FF 77 00 00 F4 03 04 00 34 4D 16 67 B6 04 01 00 00 E8 89 09 EF EA 39 DA 0B [18:51:28]CommunicateWithHost err = 0 [18:51:28]CheckOFDResponse [18:51:28]1017 (14) - 77093643461234 [18:51:28]1041 (16) - 0000000002094219 [18:51:28]1040 (4) - 30719 [18:51:28]1012 (4) - 21.10.2024 12:46 [18:51:28]1206 (1) - 0 [18:51:28]OFD Sender: Remove packet 30719 [18:51:28]ProducePacketName [18:51:28]name=ofd_packets/00030719 [18:51:28]NVStorageDeleteData [18:51:28]Write to MH i2c: 01 00 00 03 5E 61 [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 07 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: 01 07 00 03 5E 00 00 00 00 00 0D 0D 82 [18:51:28]RasterBufferAndPrint [18:51:28]line [18:51:28]line [18:51:28]line [18:51:28]line [18:51:28]line [18:51:28]written 0, free lines is 3357 [18:51:28]MH_Cut [18:51:28]Write to MH i2c: D1 01 00 0A 5E 01 3A [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: D1 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: D1 01 00 [18:51:28]MH_I2C_Read... [18:51:28]Read from MH i2c: D1 01 00 0A 5E 00 39 [18:51:28]Write to MH i2c: 01 00 00 0B 5E 69 [18:51:28]Write i2c OK [18:51:28]MH_I2C_Read... [18:51:29]OFD Sender: No OFD packet to send [18:51:29]*** Cut start [18:51:29]*** Partial cut [18:51:29]*** CUTSNS_PIN = 1 [18:51:29]*** CUTSNS_PIN = 0 [18:51:29]*** Brake cut motor [18:51:29]Read from MH i2c: 01 [18:51:29]MH_I2C_Read... [18:51:29]*** Stop cut motor [18:51:29]*** Cut end [18:51:29]Read from MH i2c: 01 07 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: 01 07 00 0B 5E 00 00 00 00 00 FF 0F 7E [18:51:29]process_action close_receipt done [18:51:29]requested_data is exist [18:51:29]produce_requested_data [18:51:29]requested_item fm.sn is exist - process it [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 11 00 00 [18:51:29]Write to MH i2c: E2 08 00 0C 5E 80 11 00 00 00 00 00 00 E4 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:29]Read from MH i2c: E2 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 [18:51:29]MH_I2C_Read... [18:51:29]Read from MH i2c: E2 17 00 0C 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [18:51:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:51:29]wFMCommunicate OK [18:51:29]requested_item fd.num is exist - process it [18:51:29]SAM_PROTO_GetFieldsCounters [18:51:29]wFMCommunicate request_size=4 [18:51:29]MH_SAM_APDU [18:51:29]CAPDU: 80 13 00 00 [18:51:29]Write to MH i2c: E2 08 00 0D 5E 80 13 00 00 00 00 00 00 E7 [18:51:29]Write i2c OK [18:51:29]MH_I2C_Read... [18:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:30]Read from MH i2c: E2 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 62 00 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 62 00 0D 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [18:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 FF 77 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:30]wFMCommunicate OK [18:51:30]SAM_PROTO_GetFieldsCounters done [18:51:30]requested_item shift.num is exist - process it [18:51:30]requested_item shift.opened is exist - process it [18:51:30]req_shift_opened [18:51:30]FM_GetShiftState [18:51:30]SAM_PROTO_GetShiftState [18:51:30]wFMCommunicate request_size=4 [18:51:30]MH_SAM_APDU [18:51:30]CAPDU: 80 13 01 00 [18:51:30]Write to MH i2c: E2 08 00 0E 5E 80 13 01 00 00 00 00 00 E9 [18:51:30]Write i2c OK [18:51:30]MH_I2C_Read... [18:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:30]Read from MH i2c: E2 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 0E 00 [18:51:30]MH_I2C_Read... [18:51:30]Read from MH i2c: E2 0E 00 0E 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 65 [18:51:30]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:51:30]wFMCommunicate OK [18:51:30]SAM_PROTO_GetShiftState done [18:51:30]FM_GetShiftState done [18:51:30]req_shift_opened done [18:51:30]requested_item shift.open_date is exist - process it [18:51:30]req_shift_open_date [18:51:30]req_shift_open_date done [18:51:30]produce_requested_data done [18:51:30]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30719,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:51:30]process_action_free close_receipt [18:51:30]json_value_free [18:51:30]json_value_free done [18:51:30]process_json_proto returns [18:51:30]Send response to host [18:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30719,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:51:30]free response buf [18:51:30]execute_script done [18:51:30]execute_script returns [18:51:30]free content buf [18:51:30]Sock 7.Close socket [18:51:30]Sock 7.Thread stoped [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:08]accept exits with 9 [18:53:08]New connection [18:53:08]New thread 3067346276 created [18:53:08]Thread 3067489636 joined [18:53:08]Waiting for new connection... [18:53:08] Sock 9.Parse request [18:53:08]Sock 9.Check first char [18:53:08]Sock 9.First char is OK [18:53:08]request: POST /json_proto HTTP/1.0 [18:53:08]Method: POST [18:53:08]URL: /json_proto [18:53:08]Method is POST - this is cgi request [18:53:08]url: /json_proto [18:53:08]query_string will be loaded in cgi processing [18:53:08]execute_cgi json_proto POST (null) [18:53:08]execute_cgi path=json_proto method=POST [18:53:08]POST find Content-Length [18:53:08]Host: 172.17.51.3:8080 [18:53:08]Content-Length: 682 [18:53:08]Content-Type: application/json [18:53:08] [18:53:08]POST finish read [18:53:08]Found Content-Length = 682 [18:53:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:08]execute_script... [18:53:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:53:08]POST & json_proto [18:53:08]process_json_proto [18:53:08]json parsed OK: [18:53:08]protocol is kg_v1.0 [18:53:08]action value=close_receipt [18:53:08]process_action close_receipt [18:53:08]cmd_close_receipt [18:53:08]MH_GetDate [18:53:08]Write to MH i2c: F0 00 00 0F 5E 5C [18:53:08]Write i2c OK [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: F0 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: F0 09 00 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: F0 09 00 0F 5E 00 1A A3 16 67 04 C1 95 66 5F [18:53:08]GetLastDocTimeStamp 1729536692 [18:53:08]current date 1729536794 [18:53:08]FM_GetShiftState [18:53:08]SAM_PROTO_GetShiftState [18:53:08]wFMCommunicate request_size=4 [18:53:08]MH_SAM_APDU [18:53:08]CAPDU: 80 13 01 00 [18:53:08]Write to MH i2c: E2 08 00 10 5E 80 13 01 00 00 00 00 00 EB [18:53:08]Write i2c OK [18:53:08]MH_I2C_Read... [18:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:08]Read from MH i2c: E2 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 0E 00 [18:53:08]MH_I2C_Read... [18:53:08]Read from MH i2c: E2 0E 00 10 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 67 [18:53:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:53:08]wFMCommunicate OK [18:53:08]SAM_PROTO_GetShiftState done [18:53:08]FM_GetShiftState done [18:53:08]opened in 1729471058 [18:53:08]opened+sec_in_day 1729557458 [18:53:08]quantity*price = 100021 [18:53:08]sum+1 = 100023 [18:53:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 217 21.10.2024 18:53 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30720 ФПД: 188381360019703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185314&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30720&fm=188381360019703&tin=02508201610067®Number=0000000000186857&sum=100000 [18:53:09]StoreToDocumentArchive [18:53:09]shift 115 fd 30720 [18:53:09]save to /storage/0115/doc_00030720 [18:53:09]save last doc name /storage/0115/doc_00030720 to /storage/kkm_last_doc_name [18:53:09]save OK [18:53:09]Clear old archive folders... [18:53:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:53:09]tlvbuf is 01E6FB80 [18:53:09]SAM_PROTO_ClearQueue [18:53:09]wFMCommunicate request_size=4 [18:53:09]MH_SAM_APDU [18:53:09]CAPDU: 80 09 00 00 [18:53:09]Write to MH i2c: E2 08 00 1D 5E 80 09 00 00 00 00 00 00 ED [18:53:09]Write i2c OK [18:53:09]MH_I2C_Read... [18:53:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:09]Read from MH i2c: E2 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 03 00 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 03 00 1D 5E 00 90 00 EF [18:53:09]RAPDU: 90 00 [18:53:09]wFMCommunicate OK [18:53:09]SAM_PROTO_ClearQueue done [18:53:09]KKMCreateOFDPacket [18:53:09]OFDProtocolAddRootSTLVToBuf [18:53:09]FM_MakeSignedData [18:53:09]FM_MakeSignedData [18:53:09]SAM_PROTO_SignData [18:53:09]wFMCommunicate request_size=4 [18:53:09]MH_SAM_APDU [18:53:09]CAPDU: 80 0D 01 02 [18:53:09]Write to MH i2c: E2 08 00 1E 5E 80 0D 01 02 00 00 00 00 F5 [18:53:09]Write i2c OK [18:53:09]MH_I2C_Read... [18:53:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:09]Read from MH i2c: E2 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 03 00 [18:53:09]MH_I2C_Read... [18:53:09]Read from MH i2c: E2 03 00 1E 5E 00 90 00 F0 [18:53:09]RAPDU: 90 00 [18:53:09]wFMCommunicate OK [18:53:09]wFMCommunicate request_size=255 [18:53:09]MH_SAM_APDU [18:53:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 1A A3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 78 00 00 35 04 06 00 AB [18:53:09]Write to MH i2c: E2 02 01 1F 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 1A A3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 78 00 00 35 04 06 00 AB 00 00 4D [18:53:09]Write i2c OK [18:53:09]MH_I2C_Read... [18:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:10]Read from MH i2c: E2 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 03 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 03 00 1F 5E 00 90 00 F1 [18:53:10]RAPDU: 90 00 [18:53:10]wFMCommunicate OK [18:53:10]wFMCommunicate request_size=10 [18:53:10]MH_SAM_APDU [18:53:10]CAPDU: 80 0D 02 02 05 54 F4 0B D8 F7 [18:53:10]Write to MH i2c: E2 0D 00 20 5E 80 0D 02 02 05 00 54 F4 0B D8 F7 00 00 24 [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:10]Read from MH i2c: E2 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 03 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 03 00 20 5E 00 90 00 F2 [18:53:10]RAPDU: 90 00 [18:53:10]wFMCommunicate OK [18:53:10]wFMCommunicate request_size=4 [18:53:10]MH_SAM_APDU [18:53:10]CAPDU: 80 0D 03 02 [18:53:10]Write to MH i2c: E2 08 00 21 5E 80 0D 03 02 00 00 00 00 FA [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:10]Read from MH i2c: E2 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 0B 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 0B 00 21 5E 00 F2 AA B9 09 DF C0 AB 32 90 00 D5 [18:53:10]RAPDU: F2 AA B9 09 DF C0 AB 32 90 00 [18:53:10]wFMCommunicate OK [18:53:10]SAM_PROTO_SignData done [18:53:10]FM_MakeSignedData done [18:53:10]CreateOFDProtocolMessage [18:53:10]wFMCommunicate request_size=4 [18:53:10]MH_SAM_APDU [18:53:10]CAPDU: 80 11 00 00 [18:53:10]Write to MH i2c: E2 08 00 22 5E 80 11 00 00 00 00 00 00 FA [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:10]Read from MH i2c: E2 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 17 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: E2 17 00 22 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 48 [18:53:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:53:10]wFMCommunicate OK [18:53:10]CreateOFDProtocolMessage done [18:53:10]OFDSenderStorePacket 30720 [18:53:10]StoreOFDPacket docnum=30720 [18:53:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 14 07 01 7D FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 1A A3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 78 00 00 35 04 06 00 AB 54 F4 0B D8 F7 F2 AA B9 09 DF C0 AB 32 [18:53:10]CheckFolder [18:53:10]dirname=/storage/ofd_packets [18:53:10]CheckFolder done [18:53:10]ProducePacketName [18:53:10]name=ofd_packets/00030720 [18:53:10]NVStorageSaveData ofd_packets/00030720 [18:53:10]File name is /storage/ofd_packets/00030720 [18:53:10]Write 301 bytes [18:53:10]NVStorageSaveData done [18:53:10]OFDSenderStorePacket done [18:53:10]KKMCreateOFDPacket done [18:53:10]NVStorageSaveData kkm_last_timestamp [18:53:10]File name is /storage/kkm_last_timestamp [18:53:10]Write 4 bytes [18:53:10]NVStorageSaveData done [18:53:10]ExternCall_PrintAddStr [18:53:10]wPrintStart [18:53:10]Write to MH i2c: 01 00 00 23 5E 81 [18:53:10]Write i2c OK [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 07 00 [18:53:10]MH_I2C_Read... [18:53:10]Read from MH i2c: 01 07 00 23 5E 00 00 00 00 00 FF 0F 96 [18:53:10]RasterBufferAndPrint [18:53:10]line Счет N : (1)343133 [18:53:10]line ИНН: 02508201610067 [18:53:10]line Контрольно-Кассовый Чек [18:53:10]line ПРОДАЖА [18:53:10]line ТРК (МРК, ГНК) : 52 [18:53:10]line Товар: 2710124500 [18:53:10]line Аи-95-К-3 [18:53:10]line 13.480 * 74.20 [18:53:10]line = 1000.22 [18:53:10]line НДС 12% НСП 1% [18:53:10]line > о реализуемом товаре [18:53:10]line ОКРУГЛЕНИЕ: -0.22 [18:53:10]line ИТОГО: 1000.00 [18:53:10]line Внесено: 1000.00 [18:53:10]line СДАЧА: 0.00 [18:53:10]line НСП 1% : 8.85 [18:53:10]line НДС 12% : 106.22 [18:53:10]line Наличными: 1000.00 [18:53:10]line Безнал.: 0.00 [18:53:10]line Место: АЗС № 78 "Партнер Нефть" [18:53:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [18:53:10]line СНО: Общий режим [18:53:10]line Чек 217 21.10.2024 18:53 [18:53:10]line Смена: 115 ФФД: 1.0 [18:53:10]line ЗНМ: 0300000137 [18:53:10]line РНМ: 0000000000186857 [18:53:10]line Версия ККМ: v1.0 [18:53:10]line ФМ: 0000000002094219 [18:53:10]line ФД: 30720 [18:53:10]line ФПД: 188381360019703 [18:53:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185314&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30720&fm=188381360019703&tin=02508201610067®Number=0000000000186857&sum=100000 [18:53:10]OFD Sender: Processing packet 30720 [packets to send 10, broken 9] [18:53:10]ProducePacketName [18:53:10]name=ofd_packets/00030720 [18:53:10]OFD Sender: To server: pG, [18:53:10]CommunicateWithHost lk.salyk.kg:30040 [18:53:10]ConnectInit lk.salyk.kg [18:53:10]written 0, free lines is 4095 [18:53:10]Connected sock=10 [18:53:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 14 07 01 7D FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 1A A3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 78 00 00 35 04 06 00 AB 54 F4 0B D8 F7 F2 AA B9 09 DF C0 AB 32 [18:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 4D 1D 47 00 7E A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 00 78 00 00 F4 03 04 00 9A 4D 16 67 B6 04 01 00 00 5F 32 DC F8 EE 2D 74 D4 [18:53:10]CommunicateWithHost err = 0 [18:53:10]CheckOFDResponse [18:53:10]1017 (14) - 77093643461234 [18:53:10]1041 (16) - 0000000002094219 [18:53:10]1040 (4) - 30720 [18:53:10]1012 (4) - 21.10.2024 12:48 [18:53:10]1206 (1) - 0 [18:53:10]OFD Sender: Remove packet 30720 [18:53:10]ProducePacketName [18:53:10]name=ofd_packets/00030720 [18:53:10]NVStorageDeleteData [18:53:11]Write to MH i2c: 01 00 00 4E 5E AC [18:53:11]Write i2c OK [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: 01 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: 01 07 00 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: 01 07 00 4E 5E 00 00 00 00 00 F4 0C B3 [18:53:11]RasterBufferAndPrint [18:53:11]line [18:53:11]line [18:53:11]line [18:53:11]line [18:53:11]line [18:53:11]written 0, free lines is 3322 [18:53:11]MH_Cut [18:53:11]Write to MH i2c: D1 01 00 55 5E 01 85 [18:53:11]Write i2c OK [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: D1 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: D1 01 00 [18:53:11]MH_I2C_Read... [18:53:11]Read from MH i2c: D1 01 00 55 5E 00 84 [18:53:11]Write to MH i2c: 01 00 00 56 5E B4 [18:53:11]Write i2c OK [18:53:11]MH_I2C_Read... [18:53:11]OFD Sender: No OFD packet to send [18:53:11]*** Cut start [18:53:11]*** Partial cut [18:53:11]*** CUTSNS_PIN = 1 [18:53:11]*** CUTSNS_PIN = 0 [18:53:12]*** Brake cut motor [18:53:12]Read from MH i2c: 01 [18:53:12]MH_I2C_Read... [18:53:12]*** Stop cut motor [18:53:12]*** Cut end [18:53:12]Read from MH i2c: 01 07 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: 01 07 00 56 5E 00 00 00 00 00 FF 0F C9 [18:53:12]process_action close_receipt done [18:53:12]requested_data is exist [18:53:12]produce_requested_data [18:53:12]requested_item fm.sn is exist - process it [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 11 00 00 [18:53:12]Write to MH i2c: E2 08 00 57 5E 80 11 00 00 00 00 00 00 2F [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 17 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 17 00 57 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [18:53:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [18:53:12]wFMCommunicate OK [18:53:12]requested_item fd.num is exist - process it [18:53:12]SAM_PROTO_GetFieldsCounters [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 13 00 00 [18:53:12]Write to MH i2c: E2 08 00 58 5E 80 13 00 00 00 00 00 00 32 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 62 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 62 00 58 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [18:53:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 00 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:12]wFMCommunicate OK [18:53:12]SAM_PROTO_GetFieldsCounters done [18:53:12]requested_item shift.num is exist - process it [18:53:12]requested_item shift.opened is exist - process it [18:53:12]req_shift_opened [18:53:12]FM_GetShiftState [18:53:12]SAM_PROTO_GetShiftState [18:53:12]wFMCommunicate request_size=4 [18:53:12]MH_SAM_APDU [18:53:12]CAPDU: 80 13 01 00 [18:53:12]Write to MH i2c: E2 08 00 59 5E 80 13 01 00 00 00 00 00 34 [18:53:12]Write i2c OK [18:53:12]MH_I2C_Read... [18:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:12]Read from MH i2c: E2 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 0E 00 [18:53:12]MH_I2C_Read... [18:53:12]Read from MH i2c: E2 0E 00 59 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B0 [18:53:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [18:53:12]wFMCommunicate OK [18:53:12]SAM_PROTO_GetShiftState done [18:53:12]FM_GetShiftState done [18:53:12]req_shift_opened done [18:53:12]requested_item shift.open_date is exist - process it [18:53:12]req_shift_open_date [18:53:12]req_shift_open_date done [18:53:12]produce_requested_data done [18:53:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30720,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [18:53:12]process_action_free close_receipt [18:53:12]json_value_free [18:53:12]json_value_free done [18:53:12]process_json_proto returns [18:53:12]Send response to host [18:53:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30720,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [18:53:12]free response buf [18:53:12]execute_script done [18:53:12]execute_script returns [18:53:12]free content buf [18:53:12]Sock 9.Close socket [18:53:12]Sock 9.Thread stoped [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]accept exits with 7 [19:01:36]New connection [19:01:36]New thread 3067489636 created [19:01:36]Thread 3067346276 joined [19:01:36]Waiting for new connection... [19:01:36] Sock 7.Parse request [19:01:36]Sock 7.Check first char [19:01:36]Sock 7.First char is OK [19:01:36]request: POST /json_proto HTTP/1.0 [19:01:36]Method: POST [19:01:36]URL: /json_proto [19:01:36]Method is POST - this is cgi request [19:01:36]url: /json_proto [19:01:36]query_string will be loaded in cgi processing [19:01:36]execute_cgi json_proto POST (null) [19:01:36]execute_cgi path=json_proto method=POST [19:01:36]POST find Content-Length [19:01:36]Host: 172.17.51.3:8080 [19:01:36]Content-Length: 840 [19:01:36]Content-Type: application/json [19:01:36] [19:01:36]POST finish read [19:01:36]Found Content-Length = 840 [19:01:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:36]execute_script... [19:01:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:36]POST & json_proto [19:01:36]process_json_proto [19:01:36]json parsed OK: [19:01:36]protocol is kg_v1.0 [19:01:36]action value=close_receipt [19:01:36]process_action close_receipt [19:01:36]cmd_close_receipt [19:01:36]MH_GetDate [19:01:36]Write to MH i2c: F0 00 00 5A 5E A7 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: F0 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: F0 09 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: F0 09 00 5A 5E 00 16 A5 16 67 04 C1 95 66 A8 [19:01:36]GetLastDocTimeStamp 1729536794 [19:01:36]current date 1729537302 [19:01:36]FM_GetShiftState [19:01:36]SAM_PROTO_GetShiftState [19:01:36]wFMCommunicate request_size=4 [19:01:36]MH_SAM_APDU [19:01:36]CAPDU: 80 13 01 00 [19:01:36]Write to MH i2c: E2 08 00 5B 5E 80 13 01 00 00 00 00 00 36 [19:01:36]Write i2c OK [19:01:36]MH_I2C_Read... [19:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:36]Read from MH i2c: E2 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 0E 00 [19:01:36]MH_I2C_Read... [19:01:36]Read from MH i2c: E2 0E 00 5B 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B2 [19:01:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:01:36]wFMCommunicate OK [19:01:36]SAM_PROTO_GetShiftState done [19:01:36]FM_GetShiftState done [19:01:36]opened in 1729471058 [19:01:36]opened+sec_in_day 1729557458 [19:01:36]quantity*price = 40006 [19:01:36]sum+1 = 40007 [19:01:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 218 21.10.2024 19:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30721 ФПД: 131572135612075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190142&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30721&fm=131572135612075&tin=02508201610067®Number=0000000000186857&sum=40006 [19:01:37]StoreToDocumentArchive [19:01:37]shift 115 fd 30721 [19:01:37]save to /storage/0115/doc_00030721 [19:01:37]save last doc name /storage/0115/doc_00030721 to /storage/kkm_last_doc_name [19:01:37]save OK [19:01:37]Clear old archive folders... [19:01:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:37]tlvbuf is 01DB8750 [19:01:37]SAM_PROTO_ClearQueue [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 09 00 00 [19:01:37]Write to MH i2c: E2 08 00 68 5E 80 09 00 00 00 00 00 00 38 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 68 5E 00 90 00 3A [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_ClearQueue done [19:01:37]KKMCreateOFDPacket [19:01:37]OFDProtocolAddRootSTLVToBuf [19:01:37]FM_MakeSignedData [19:01:37]FM_MakeSignedData [19:01:37]SAM_PROTO_SignData [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 01 02 [19:01:37]Write to MH i2c: E2 08 00 69 5E 80 0D 01 02 00 00 00 00 40 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 69 5E 00 90 00 3B [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]wFMCommunicate request_size=255 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 16 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 78 00 00 35 04 06 00 77 [19:01:37]Write to MH i2c: E2 02 01 6A 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 16 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 78 00 00 35 04 06 00 77 00 00 21 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 6A 5E 00 90 00 3C [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]wFMCommunicate request_size=10 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 02 02 05 AA 06 67 CE AB [19:01:37]Write to MH i2c: E2 0D 00 6B 5E 80 0D 02 02 05 00 AA 06 67 CE AB 00 00 DD [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 03 00 6B 5E 00 90 00 3D [19:01:37]RAPDU: 90 00 [19:01:37]wFMCommunicate OK [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 0D 03 02 [19:01:37]Write to MH i2c: E2 08 00 6C 5E 80 0D 03 02 00 00 00 00 45 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0B 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 0B 00 6C 5E 00 7B E8 6D 13 F3 8D 42 11 90 00 FC [19:01:37]RAPDU: 7B E8 6D 13 F3 8D 42 11 90 00 [19:01:37]wFMCommunicate OK [19:01:37]SAM_PROTO_SignData done [19:01:37]FM_MakeSignedData done [19:01:37]CreateOFDProtocolMessage [19:01:37]wFMCommunicate request_size=4 [19:01:37]MH_SAM_APDU [19:01:37]CAPDU: 80 11 00 00 [19:01:37]Write to MH i2c: E2 08 00 6D 5E 80 11 00 00 00 00 00 00 45 [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:37]Read from MH i2c: E2 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: E2 17 00 6D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 93 [19:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:01:37]wFMCommunicate OK [19:01:37]CreateOFDProtocolMessage done [19:01:37]OFDSenderStorePacket 30721 [19:01:37]StoreOFDPacket docnum=30721 [19:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D4 90 07 01 FD 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 16 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 78 00 00 35 04 06 00 77 AA 06 67 CE AB 7B E8 6D 13 F3 8D 42 11 [19:01:37]CheckFolder [19:01:37]dirname=/storage/ofd_packets [19:01:37]CheckFolder done [19:01:37]ProducePacketName [19:01:37]name=ofd_packets/00030721 [19:01:37]NVStorageSaveData ofd_packets/00030721 [19:01:37]File name is /storage/ofd_packets/00030721 [19:01:37]Write 301 bytes [19:01:37]NVStorageSaveData done [19:01:37]OFDSenderStorePacket done [19:01:37]KKMCreateOFDPacket done [19:01:37]NVStorageSaveData kkm_last_timestamp [19:01:37]File name is /storage/kkm_last_timestamp [19:01:37]Write 4 bytes [19:01:37]NVStorageSaveData done [19:01:37]ExternCall_PrintAddStr [19:01:37]wPrintStart [19:01:37]Write to MH i2c: 01 00 00 6E 5E CC [19:01:37]Write i2c OK [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 [19:01:37]MH_I2C_Read... [19:01:37]Read from MH i2c: 01 07 00 6E 5E 00 00 00 00 00 FF 0F E1 [19:01:37]RasterBufferAndPrint [19:01:37]line Счет N : (1)343134 [19:01:37]line ИНН: 02508201610067 [19:01:37]line Контрольно-Кассовый Чек [19:01:37]line ПРОДАЖА [19:01:37]line ТРК (МРК, ГНК) : 63 [19:01:37]line Товар: 2710124130 [19:01:37]line Аи-92-К-2 [19:01:37]line 5.980 * 66.90 [19:01:37]line = 400.06 [19:01:37]line НДС 12% НСП 1% [19:01:37]line > о реализуемом товаре [19:01:37]line ИТОГО: 400.06 [19:01:37]line НСП 1% : 3.54 [19:01:37]line НДС 12% : 42.48 [19:01:37]line Наличными: 0.00 [19:01:37]line Безнал.: 400.06 [19:01:37]line Место: АЗС № 78 "Партнер Нефть" [19:01:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:01:37]line СНО: Общий режим [19:01:37]line Чек 218 21.10.2024 19:01 [19:01:37]line Смена: 115 ФФД: 1.0 [19:01:37]line ЗНМ: 0300000137 [19:01:37]line РНМ: 0000000000186857 [19:01:37]line Версия ККМ: v1.0 [19:01:37]line Платежная система: АКБ Кыргызстан [19:01:37]line ФМ: 0000000002094219 [19:01:37]line ФД: 30721 [19:01:37]line ФПД: 131572135612075 [19:01:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190142&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30721&fm=131572135612075&tin=02508201610067®Number=0000000000186857&sum=40006 [19:01:38]OFD Sender: Processing packet 30721 [packets to send 10, broken 9] [19:01:38]ProducePacketName [19:01:38]name=ofd_packets/00030721 [19:01:38]OFD Sender: To server: pG, [19:01:38]CommunicateWithHost lk.salyk.kg:30040 [19:01:38]ConnectInit lk.salyk.kg [19:01:38]written 0, free lines is 4095 [19:01:38]Connected sock=10 [19:01:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D4 90 07 01 FD 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 16 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 78 00 00 35 04 06 00 77 AA 06 67 CE AB 7B E8 6D 13 F3 8D 42 11 [19:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E5 49 47 00 1B BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 01 78 00 00 F4 03 04 00 96 4F 16 67 B6 04 01 00 00 91 FD CF A0 F1 A1 52 A6 [19:01:38]CommunicateWithHost err = 0 [19:01:38]CheckOFDResponse [19:01:38]1017 (14) - 77093643461234 [19:01:38]1041 (16) - 0000000002094219 [19:01:38]1040 (4) - 30721 [19:01:38]1012 (4) - 21.10.2024 12:56 [19:01:38]1206 (1) - 0 [19:01:38]OFD Sender: Remove packet 30721 [19:01:38]ProducePacketName [19:01:38]name=ofd_packets/00030721 [19:01:38]NVStorageDeleteData [19:01:38]Write to MH i2c: 01 00 00 98 5E F6 [19:01:38]Write i2c OK [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: 01 [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: 01 07 00 [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: 01 07 00 98 5E 00 00 00 00 00 F9 0C 02 [19:01:38]RasterBufferAndPrint [19:01:38]line [19:01:38]line [19:01:38]line [19:01:38]line [19:01:38]line [19:01:38]written 0, free lines is 3328 [19:01:38]MH_Cut [19:01:38]Write to MH i2c: D1 01 00 9F 5E 01 CF [19:01:38]Write i2c OK [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: D1 [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: D1 01 00 [19:01:38]MH_I2C_Read... [19:01:38]Read from MH i2c: D1 01 00 9F 5E 00 CE [19:01:38]Write to MH i2c: 01 00 00 A0 5E FE [19:01:38]Write i2c OK [19:01:38]MH_I2C_Read... [19:01:39]OFD Sender: No OFD packet to send [19:01:39]*** Cut start [19:01:39]*** Partial cut [19:01:39]*** CUTSNS_PIN = 1 [19:01:39]*** CUTSNS_PIN = 0 [19:01:39]*** Brake cut motor [19:01:39]Read from MH i2c: 01 [19:01:39]MH_I2C_Read... [19:01:39]*** Stop cut motor [19:01:39]*** Cut end [19:01:39]Read from MH i2c: 01 07 00 [19:01:39]MH_I2C_Read... [19:01:39]Read from MH i2c: 01 07 00 A0 5E 00 00 00 00 00 FF 0F 13 [19:01:39]process_action close_receipt done [19:01:39]requested_data is exist [19:01:39]produce_requested_data [19:01:39]requested_item fm.sn is exist - process it [19:01:39]wFMCommunicate request_size=4 [19:01:39]MH_SAM_APDU [19:01:39]CAPDU: 80 11 00 00 [19:01:39]Write to MH i2c: E2 08 00 A1 5E 80 11 00 00 00 00 00 00 79 [19:01:39]Write i2c OK [19:01:39]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 17 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 17 00 A1 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C7 [19:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:01:40]wFMCommunicate OK [19:01:40]requested_item fd.num is exist - process it [19:01:40]SAM_PROTO_GetFieldsCounters [19:01:40]wFMCommunicate request_size=4 [19:01:40]MH_SAM_APDU [19:01:40]CAPDU: 80 13 00 00 [19:01:40]Write to MH i2c: E2 08 00 A2 5E 80 13 00 00 00 00 00 00 7C [19:01:40]Write i2c OK [19:01:40]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 62 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 62 00 A2 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [19:01:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 01 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:40]wFMCommunicate OK [19:01:40]SAM_PROTO_GetFieldsCounters done [19:01:40]requested_item shift.num is exist - process it [19:01:40]requested_item shift.opened is exist - process it [19:01:40]req_shift_opened [19:01:40]FM_GetShiftState [19:01:40]SAM_PROTO_GetShiftState [19:01:40]wFMCommunicate request_size=4 [19:01:40]MH_SAM_APDU [19:01:40]CAPDU: 80 13 01 00 [19:01:40]Write to MH i2c: E2 08 00 A3 5E 80 13 01 00 00 00 00 00 7E [19:01:40]Write i2c OK [19:01:40]MH_I2C_Read... [19:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:40]Read from MH i2c: E2 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 [19:01:40]MH_I2C_Read... [19:01:40]Read from MH i2c: E2 0E 00 A3 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FA [19:01:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:01:40]wFMCommunicate OK [19:01:40]SAM_PROTO_GetShiftState done [19:01:40]FM_GetShiftState done [19:01:40]req_shift_opened done [19:01:40]requested_item shift.open_date is exist - process it [19:01:40]req_shift_open_date [19:01:40]req_shift_open_date done [19:01:40]produce_requested_data done [19:01:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30721,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:01:40]process_action_free close_receipt [19:01:40]json_value_free [19:01:40]json_value_free done [19:01:40]process_json_proto returns [19:01:40]Send response to host [19:01:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30721,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:01:40]free response buf [19:01:40]execute_script done [19:01:40]execute_script returns [19:01:40]free content buf [19:01:40]Sock 7.Close socket [19:01:40]Sock 7.Thread stoped [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:29]OFD Sender: No OFD packet to send [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:47]accept exits with 9 [19:04:47]New connection [19:04:47]New thread 3067346276 created [19:04:47]Thread 3067489636 joined [19:04:47]Waiting for new connection... [19:04:47] Sock 9.Parse request [19:04:47]Sock 9.Check first char [19:04:47]Sock 9.First char is OK [19:04:47]request: POST /json_proto HTTP/1.0 [19:04:47]Method: POST [19:04:47]URL: /json_proto [19:04:47]Method is POST - this is cgi request [19:04:47]url: /json_proto [19:04:47]query_string will be loaded in cgi processing [19:04:47]execute_cgi json_proto POST (null) [19:04:47]execute_cgi path=json_proto method=POST [19:04:47]POST find Content-Length [19:04:47]Host: 172.17.51.3:8080 [19:04:47]Content-Length: 677 [19:04:47]Content-Type: application/json [19:04:47] [19:04:47]POST finish read [19:04:47]Found Content-Length = 677 [19:04:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:47]execute_script... [19:04:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:47]POST & json_proto [19:04:47]process_json_proto [19:04:47]json parsed OK: [19:04:47]protocol is kg_v1.0 [19:04:47]action value=close_receipt [19:04:47]process_action close_receipt [19:04:47]cmd_close_receipt [19:04:47]MH_GetDate [19:04:47]Write to MH i2c: F0 00 00 A4 5E F1 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: F0 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: F0 09 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: F0 09 00 A4 5E 00 D6 A5 16 67 04 C1 95 66 B2 [19:04:47]GetLastDocTimeStamp 1729537302 [19:04:47]current date 1729537494 [19:04:47]FM_GetShiftState [19:04:47]SAM_PROTO_GetShiftState [19:04:47]wFMCommunicate request_size=4 [19:04:47]MH_SAM_APDU [19:04:47]CAPDU: 80 13 01 00 [19:04:47]Write to MH i2c: E2 08 00 A5 5E 80 13 01 00 00 00 00 00 80 [19:04:47]Write i2c OK [19:04:47]MH_I2C_Read... [19:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:47]Read from MH i2c: E2 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 0E 00 [19:04:47]MH_I2C_Read... [19:04:47]Read from MH i2c: E2 0E 00 A5 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FC [19:04:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:04:47]wFMCommunicate OK [19:04:47]SAM_PROTO_GetShiftState done [19:04:47]FM_GetShiftState done [19:04:47]opened in 1729471058 [19:04:47]opened+sec_in_day 1729557458 [19:04:47]quantity*price = 50041 [19:04:47]sum+1 = 50042 [19:04:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 219 21.10.2024 19:04 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30722 ФПД: 38242362937137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190454&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30722&fm=38242362937137&tin=02508201610067®Number=0000000000186857&sum=50000 [19:04:48]StoreToDocumentArchive [19:04:48]shift 115 fd 30722 [19:04:48]save to /storage/0115/doc_00030722 [19:04:48]save last doc name /storage/0115/doc_00030722 to /storage/kkm_last_doc_name [19:04:48]save OK [19:04:48]Clear old archive folders... [19:04:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:48]tlvbuf is 01DAF6F0 [19:04:48]SAM_PROTO_ClearQueue [19:04:48]wFMCommunicate request_size=4 [19:04:48]MH_SAM_APDU [19:04:48]CAPDU: 80 09 00 00 [19:04:48]Write to MH i2c: E2 08 00 B2 5E 80 09 00 00 00 00 00 00 82 [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:48]Read from MH i2c: E2 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: E2 03 00 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: E2 03 00 B2 5E 00 90 00 84 [19:04:48]RAPDU: 90 00 [19:04:48]wFMCommunicate OK [19:04:48]SAM_PROTO_ClearQueue done [19:04:48]KKMCreateOFDPacket [19:04:48]OFDProtocolAddRootSTLVToBuf [19:04:48]FM_MakeSignedData [19:04:48]FM_MakeSignedData [19:04:48]SAM_PROTO_SignData [19:04:48]wFMCommunicate request_size=4 [19:04:48]MH_SAM_APDU [19:04:48]CAPDU: 80 0D 01 02 [19:04:48]Write to MH i2c: E2 08 00 B3 5E 80 0D 01 02 00 00 00 00 8A [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:48]Read from MH i2c: E2 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: E2 03 00 [19:04:48]MH_I2C_Read... [19:04:48]Read from MH i2c: E2 03 00 B3 5E 00 90 00 85 [19:04:48]RAPDU: 90 00 [19:04:48]wFMCommunicate OK [19:04:48]wFMCommunicate request_size=255 [19:04:48]MH_SAM_APDU [19:04:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 78 00 00 35 04 06 00 22 [19:04:48]Write to MH i2c: E2 02 01 B4 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 78 00 00 35 04 06 00 22 00 00 FD [19:04:48]Write i2c OK [19:04:48]MH_I2C_Read... [19:04:49]OFD Sender: No OFD packet to send [19:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:49]Read from MH i2c: E2 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 03 00 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 03 00 B4 5E 00 90 00 86 [19:04:49]RAPDU: 90 00 [19:04:49]wFMCommunicate OK [19:04:49]wFMCommunicate request_size=10 [19:04:49]MH_SAM_APDU [19:04:49]CAPDU: 80 0D 02 02 05 C7 FE 75 4F 31 [19:04:49]Write to MH i2c: E2 0D 00 B5 5E 80 0D 02 02 05 00 C7 FE 75 4F 31 00 00 51 [19:04:49]Write i2c OK [19:04:49]MH_I2C_Read... [19:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:49]Read from MH i2c: E2 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 03 00 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 03 00 B5 5E 00 90 00 87 [19:04:49]RAPDU: 90 00 [19:04:49]wFMCommunicate OK [19:04:49]wFMCommunicate request_size=4 [19:04:49]MH_SAM_APDU [19:04:49]CAPDU: 80 0D 03 02 [19:04:49]Write to MH i2c: E2 08 00 B6 5E 80 0D 03 02 00 00 00 00 8F [19:04:49]Write i2c OK [19:04:49]MH_I2C_Read... [19:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:49]Read from MH i2c: E2 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 0B 00 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 0B 00 B6 5E 00 FB 75 F4 FF 32 3A 5B C2 90 00 7C [19:04:49]RAPDU: FB 75 F4 FF 32 3A 5B C2 90 00 [19:04:49]wFMCommunicate OK [19:04:49]SAM_PROTO_SignData done [19:04:49]FM_MakeSignedData done [19:04:49]CreateOFDProtocolMessage [19:04:49]wFMCommunicate request_size=4 [19:04:49]MH_SAM_APDU [19:04:49]CAPDU: 80 11 00 00 [19:04:49]Write to MH i2c: E2 08 00 B7 5E 80 11 00 00 00 00 00 00 8F [19:04:49]Write i2c OK [19:04:49]MH_I2C_Read... [19:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:49]Read from MH i2c: E2 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 17 00 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: E2 17 00 B7 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DD [19:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:04:49]wFMCommunicate OK [19:04:49]CreateOFDProtocolMessage done [19:04:49]OFDSenderStorePacket 30722 [19:04:49]StoreOFDPacket docnum=30722 [19:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 00 81 07 01 FA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 78 00 00 35 04 06 00 22 C7 FE 75 4F 31 FB 75 F4 FF 32 3A 5B C2 [19:04:49]CheckFolder [19:04:49]dirname=/storage/ofd_packets [19:04:49]CheckFolder done [19:04:49]ProducePacketName [19:04:49]name=ofd_packets/00030722 [19:04:49]NVStorageSaveData ofd_packets/00030722 [19:04:49]File name is /storage/ofd_packets/00030722 [19:04:49]Write 301 bytes [19:04:49]NVStorageSaveData done [19:04:49]OFDSenderStorePacket done [19:04:49]KKMCreateOFDPacket done [19:04:49]NVStorageSaveData kkm_last_timestamp [19:04:49]File name is /storage/kkm_last_timestamp [19:04:49]Write 4 bytes [19:04:49]NVStorageSaveData done [19:04:49]ExternCall_PrintAddStr [19:04:49]wPrintStart [19:04:49]Write to MH i2c: 01 00 00 B8 5E 16 [19:04:49]Write i2c OK [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: 01 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: 01 07 00 [19:04:49]MH_I2C_Read... [19:04:49]Read from MH i2c: 01 07 00 B8 5E 00 00 00 00 00 FF 0F 2B [19:04:49]RasterBufferAndPrint [19:04:49]line Счет N : (1)343135 [19:04:49]line ИНН: 02508201610067 [19:04:49]line Контрольно-Кассовый Чек [19:04:49]line ПРОДАЖА [19:04:49]line ТРК (МРК, ГНК) : 63 [19:04:49]line Товар: 2710124130 [19:04:49]line Аи-92-К-2 [19:04:49]line 7.480 * 66.90 [19:04:49]line = 500.41 [19:04:49]line НДС 12% НСП 1% [19:04:49]line > о реализуемом товаре [19:04:49]line ОКРУГЛЕНИЕ: -0.41 [19:04:49]line ИТОГО: 500.00 [19:04:49]line Внесено: 500.00 [19:04:49]line СДАЧА: 0.00 [19:04:49]line НСП 1% : 4.43 [19:04:49]line НДС 12% : 53.14 [19:04:49]line Наличными: 500.00 [19:04:49]line Безнал.: 0.00 [19:04:49]line Место: АЗС № 78 "Партнер Нефть" [19:04:49]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:04:49]line СНО: Общий режим [19:04:49]line Чек 219 21.10.2024 19:04 [19:04:49]line Смена: 115 ФФД: 1.0 [19:04:49]line ЗНМ: 0300000137 [19:04:49]line РНМ: 0000000000186857 [19:04:49]line Версия ККМ: v1.0 [19:04:49]line ФМ: 0000000002094219 [19:04:49]line ФД: 30722 [19:04:49]line ФПД: 38242362937137 [19:04:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190454&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30722&fm=38242362937137&tin=02508201610067®Number=0000000000186857&sum=50000 [19:04:49]OFD Sender: Processing packet 30722 [packets to send 10, broken 9] [19:04:49]ProducePacketName [19:04:49]name=ofd_packets/00030722 [19:04:49]OFD Sender: To server: pG, [19:04:49]CommunicateWithHost lk.salyk.kg:30040 [19:04:49]ConnectInit lk.salyk.kg [19:04:49]written 0, free lines is 4095 [19:04:49]Connected sock=10 [19:04:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 00 81 07 01 FA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 D6 A5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 78 00 00 35 04 06 00 22 C7 FE 75 4F 31 FB 75 F4 FF 32 3A 5B C2 [19:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 12 D1 47 00 20 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 02 78 00 00 F4 03 04 00 55 50 16 67 B6 04 01 00 00 68 BF 6B 90 3D 47 86 D4 [19:04:50]CommunicateWithHost err = 0 [19:04:50]CheckOFDResponse [19:04:50]1017 (14) - 77093643461234 [19:04:50]1041 (16) - 0000000002094219 [19:04:50]1040 (4) - 30722 [19:04:50]1012 (4) - 21.10.2024 13:00 [19:04:50]1206 (1) - 0 [19:04:50]OFD Sender: Remove packet 30722 [19:04:50]ProducePacketName [19:04:50]name=ofd_packets/00030722 [19:04:50]NVStorageDeleteData [19:04:50]Write to MH i2c: 01 00 00 E3 5E 41 [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: 01 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: 01 07 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: 01 07 00 E3 5E 00 00 00 00 00 E0 0C 34 [19:04:50]RasterBufferAndPrint [19:04:50]line [19:04:50]line [19:04:50]line [19:04:50]line [19:04:50]line [19:04:50]written 0, free lines is 3305 [19:04:50]MH_Cut [19:04:50]Write to MH i2c: D1 01 00 EA 5E 01 1A [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: D1 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: D1 01 00 [19:04:50]MH_I2C_Read... [19:04:50]Read from MH i2c: D1 01 00 EA 5E 00 19 [19:04:50]Write to MH i2c: 01 00 00 EB 5E 49 [19:04:50]Write i2c OK [19:04:50]MH_I2C_Read... [19:04:50]OFD Sender: No OFD packet to send [19:04:50]*** Cut start [19:04:50]*** Partial cut [19:04:50]*** CUTSNS_PIN = 1 [19:04:50]*** CUTSNS_PIN = 0 [19:04:51]*** Brake cut motor [19:04:51]Read from MH i2c: 01 [19:04:51]MH_I2C_Read... [19:04:51]*** Stop cut motor [19:04:51]*** Cut end [19:04:51]Read from MH i2c: 01 07 00 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: 01 07 00 EB 5E 00 00 00 00 00 FF 0F 5E [19:04:51]process_action close_receipt done [19:04:51]requested_data is exist [19:04:51]produce_requested_data [19:04:51]requested_item fm.sn is exist - process it [19:04:51]wFMCommunicate request_size=4 [19:04:51]MH_SAM_APDU [19:04:51]CAPDU: 80 11 00 00 [19:04:51]Write to MH i2c: E2 08 00 EC 5E 80 11 00 00 00 00 00 00 C4 [19:04:51]Write i2c OK [19:04:51]MH_I2C_Read... [19:04:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:51]Read from MH i2c: E2 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 17 00 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 17 00 EC 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 12 [19:04:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:04:51]wFMCommunicate OK [19:04:51]requested_item fd.num is exist - process it [19:04:51]SAM_PROTO_GetFieldsCounters [19:04:51]wFMCommunicate request_size=4 [19:04:51]MH_SAM_APDU [19:04:51]CAPDU: 80 13 00 00 [19:04:51]Write to MH i2c: E2 08 00 ED 5E 80 13 00 00 00 00 00 00 C7 [19:04:51]Write i2c OK [19:04:51]MH_I2C_Read... [19:04:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:51]Read from MH i2c: E2 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 62 00 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 62 00 ED 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [19:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 02 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:51]wFMCommunicate OK [19:04:51]SAM_PROTO_GetFieldsCounters done [19:04:51]requested_item shift.num is exist - process it [19:04:51]requested_item shift.opened is exist - process it [19:04:51]req_shift_opened [19:04:51]FM_GetShiftState [19:04:51]SAM_PROTO_GetShiftState [19:04:51]wFMCommunicate request_size=4 [19:04:51]MH_SAM_APDU [19:04:51]CAPDU: 80 13 01 00 [19:04:51]Write to MH i2c: E2 08 00 EE 5E 80 13 01 00 00 00 00 00 C9 [19:04:51]Write i2c OK [19:04:51]MH_I2C_Read... [19:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:51]Read from MH i2c: E2 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 0E 00 [19:04:51]MH_I2C_Read... [19:04:51]Read from MH i2c: E2 0E 00 EE 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 45 [19:04:51]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:04:51]wFMCommunicate OK [19:04:51]SAM_PROTO_GetShiftState done [19:04:51]FM_GetShiftState done [19:04:51]req_shift_opened done [19:04:51]requested_item shift.open_date is exist - process it [19:04:51]req_shift_open_date [19:04:51]req_shift_open_date done [19:04:51]produce_requested_data done [19:04:51]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30722,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:04:51]process_action_free close_receipt [19:04:51]json_value_free [19:04:51]json_value_free done [19:04:51]process_json_proto returns [19:04:51]Send response to host [19:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30722,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:04:51]free response buf [19:04:51]execute_script done [19:04:51]execute_script returns [19:04:51]free content buf [19:04:51]Sock 9.Close socket [19:04:51]Sock 9.Thread stoped [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]accept exits with 7 [19:05:55]New connection [19:05:55]New thread 3067489636 created [19:05:55]Thread 3067346276 joined [19:05:55]Waiting for new connection... [19:05:55] Sock 7.Parse request [19:05:55]Sock 7.Check first char [19:05:55]Sock 7.First char is OK [19:05:55]request: POST /json_proto HTTP/1.0 [19:05:55]Method: POST [19:05:55]URL: /json_proto [19:05:55]Method is POST - this is cgi request [19:05:55]url: /json_proto [19:05:55]query_string will be loaded in cgi processing [19:05:55]execute_cgi json_proto POST (null) [19:05:55]execute_cgi path=json_proto method=POST [19:05:55]POST find Content-Length [19:05:55]Host: 172.17.51.3:8080 [19:05:55]Content-Length: 673 [19:05:55]Content-Type: application/json [19:05:55] [19:05:55]POST finish read [19:05:55]Found Content-Length = 673 [19:05:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:55]execute_script... [19:05:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 1.050, "sum" : 70.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 70.00, "total" : 70.00, "payments": [ { "type": 0, "sum" : 70.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:55]POST & json_proto [19:05:55]process_json_proto [19:05:55]json parsed OK: [19:05:55]protocol is kg_v1.0 [19:05:55]action value=close_receipt [19:05:55]process_action close_receipt [19:05:55]cmd_close_receipt [19:05:55]MH_GetDate [19:05:55]Write to MH i2c: F0 00 00 EF 5E 3C [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: F0 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: F0 09 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: F0 09 00 EF 5E 00 19 A6 16 67 04 C1 95 66 41 [19:05:55]GetLastDocTimeStamp 1729537494 [19:05:55]current date 1729537561 [19:05:55]FM_GetShiftState [19:05:55]SAM_PROTO_GetShiftState [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 13 01 00 [19:05:55]Write to MH i2c: E2 08 00 F0 5E 80 13 01 00 00 00 00 00 CB [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 0E 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 0E 00 F0 5E 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 47 [19:05:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:05:55]wFMCommunicate OK [19:05:55]SAM_PROTO_GetShiftState done [19:05:55]FM_GetShiftState done [19:05:55]opened in 1729471058 [19:05:55]opened+sec_in_day 1729557458 [19:05:55]quantity*price = 7024 [19:05:55]sum+1 = 7026 [19:05:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 70.00 Внесено: 70.00 СДАЧА: 0.00 НСП 1% : 0.62 НДС 12% : 7.46 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 220 21.10.2024 19:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30723 ФПД: 53349781171162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30723&fm=53349781171162&tin=02508201610067®Number=0000000000186857&sum=7000 [19:05:56]StoreToDocumentArchive [19:05:56]shift 115 fd 30723 [19:05:56]save to /storage/0115/doc_00030723 [19:05:56]save last doc name /storage/0115/doc_00030723 to /storage/kkm_last_doc_name [19:05:56]save OK [19:05:56]Clear old archive folders... [19:05:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:56]tlvbuf is 01E24D20 [19:05:56]SAM_PROTO_ClearQueue [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 09 00 00 [19:05:56]Write to MH i2c: E2 08 00 FD 5E 80 09 00 00 00 00 00 00 CD [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 FD 5E 00 90 00 CF [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_ClearQueue done [19:05:56]KKMCreateOFDPacket [19:05:56]OFDProtocolAddRootSTLVToBuf [19:05:56]FM_MakeSignedData [19:05:56]FM_MakeSignedData [19:05:56]SAM_PROTO_SignData [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 01 02 [19:05:56]Write to MH i2c: E2 08 00 FE 5E 80 0D 01 02 00 00 00 00 D5 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 FE 5E 00 90 00 D0 [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]wFMCommunicate request_size=255 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 DC 00 00 00 F4 03 04 00 19 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 78 00 00 35 04 06 00 30 [19:05:56]Write to MH i2c: E2 02 01 FF 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 DC 00 00 00 F4 03 04 00 19 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 78 00 00 35 04 06 00 30 00 00 0D [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 FF 5E 00 90 00 D1 [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]wFMCommunicate request_size=10 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 02 02 05 85 76 C1 6B DA [19:05:56]Write to MH i2c: E2 0D 00 00 5F 80 0D 02 02 05 00 85 76 C1 6B DA 00 00 E4 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 00 5F 00 90 00 D3 [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 03 02 [19:05:56]Write to MH i2c: E2 08 00 01 5F 80 0D 03 02 00 00 00 00 DB [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 01 5F 00 F9 48 3E DF 69 9E 78 64 90 00 1D [19:05:56]RAPDU: F9 48 3E DF 69 9E 78 64 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_SignData done [19:05:56]FM_MakeSignedData done [19:05:56]CreateOFDProtocolMessage [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 11 00 00 [19:05:56]Write to MH i2c: E2 08 00 02 5F 80 11 00 00 00 00 00 00 DB [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:57]Read from MH i2c: E2 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 17 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: E2 17 00 02 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 29 [19:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:05:57]wFMCommunicate OK [19:05:57]CreateOFDProtocolMessage done [19:05:57]OFDSenderStorePacket 30723 [19:05:57]StoreOFDPacket docnum=30723 [19:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 E4 07 01 3E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 DC 00 00 00 F4 03 04 00 19 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 78 00 00 35 04 06 00 30 85 76 C1 6B DA F9 48 3E DF 69 9E 78 64 [19:05:57]CheckFolder [19:05:57]dirname=/storage/ofd_packets [19:05:57]CheckFolder done [19:05:57]ProducePacketName [19:05:57]name=ofd_packets/00030723 [19:05:57]NVStorageSaveData ofd_packets/00030723 [19:05:57]File name is /storage/ofd_packets/00030723 [19:05:57]Write 301 bytes [19:05:57]NVStorageSaveData done [19:05:57]OFDSenderStorePacket done [19:05:57]KKMCreateOFDPacket done [19:05:57]NVStorageSaveData kkm_last_timestamp [19:05:57]File name is /storage/kkm_last_timestamp [19:05:57]Write 4 bytes [19:05:57]NVStorageSaveData done [19:05:57]ExternCall_PrintAddStr [19:05:57]wPrintStart [19:05:57]Write to MH i2c: 01 00 00 03 5F 62 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 03 5F 00 00 00 00 00 FF 0F 77 [19:05:57]RasterBufferAndPrint [19:05:57]line Счет N : (1)343136 [19:05:57]line ИНН: 02508201610067 [19:05:57]line Контрольно-Кассовый Чек [19:05:57]line ПРОДАЖА [19:05:57]line ТРК (МРК, ГНК) : 63 [19:05:57]line Товар: 2710124130 [19:05:57]line Аи-92-К-2 [19:05:57]line 1.050 * 66.90 [19:05:57]line = 70.25 [19:05:57]line НДС 12% НСП 1% [19:05:57]line > о реализуемом товаре [19:05:57]line ОКРУГЛЕНИЕ: -0.25 [19:05:57]line ИТОГО: 70.00 [19:05:57]line Внесено: 70.00 [19:05:57]line СДАЧА: 0.00 [19:05:57]line НСП 1% : 0.62 [19:05:57]line НДС 12% : 7.46 [19:05:57]line Наличными: 70.00 [19:05:57]line Безнал.: 0.00 [19:05:57]line Место: АЗС № 78 "Партнер Нефть" [19:05:57]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:05:57]line СНО: Общий режим [19:05:57]line Чек 220 21.10.2024 19:06 [19:05:57]line Смена: 115 ФФД: 1.0 [19:05:57]line ЗНМ: 0300000137 [19:05:57]line РНМ: 0000000000186857 [19:05:57]line Версия ККМ: v1.0 [19:05:57]line ФМ: 0000000002094219 [19:05:57]line ФД: 30723 [19:05:57]line ФПД: 53349781171162 [19:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190601&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30723&fm=53349781171162&tin=02508201610067®Number=0000000000186857&sum=7000 [19:05:57]OFD Sender: Processing packet 30723 [packets to send 10, broken 9] [19:05:57]ProducePacketName [19:05:57]name=ofd_packets/00030723 [19:05:57]OFD Sender: To server: pG, [19:05:57]CommunicateWithHost lk.salyk.kg:30040 [19:05:57]ConnectInit lk.salyk.kg [19:05:57]written 0, free lines is 4095 [19:05:57]Connected sock=10 [19:05:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 C3 E4 07 01 3E 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1A 04 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 71 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 EA 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 DC 00 00 00 F4 03 04 00 19 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 78 00 00 35 04 06 00 30 85 76 C1 6B DA F9 48 3E DF 69 9E 78 64 [19:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 74 78 47 00 FC E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 03 78 00 00 F4 03 04 00 99 50 16 67 B6 04 01 00 00 C9 70 35 1F 93 1C 7C 40 [19:05:57]CommunicateWithHost err = 0 [19:05:57]CheckOFDResponse [19:05:57]1017 (14) - 77093643461234 [19:05:57]1041 (16) - 0000000002094219 [19:05:57]1040 (4) - 30723 [19:05:57]1012 (4) - 21.10.2024 13:01 [19:05:57]1206 (1) - 0 [19:05:57]OFD Sender: Remove packet 30723 [19:05:57]ProducePacketName [19:05:57]name=ofd_packets/00030723 [19:05:57]NVStorageDeleteData [19:05:57]Write to MH i2c: 01 00 00 2E 5F 8D [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 2E 5F 00 00 00 00 00 E0 0C 80 [19:05:57]RasterBufferAndPrint [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]written 0, free lines is 3301 [19:05:57]MH_Cut [19:05:57]Write to MH i2c: D1 01 00 35 5F 01 66 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 01 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 01 00 35 5F 00 65 [19:05:57]Write to MH i2c: 01 00 00 36 5F 95 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:58]OFD Sender: No OFD packet to send [19:05:58]*** Cut start [19:05:58]*** Partial cut [19:05:58]*** CUTSNS_PIN = 1 [19:05:58]*** CUTSNS_PIN = 0 [19:05:58]*** Brake cut motor [19:05:59]Read from MH i2c: 01 [19:05:59]MH_I2C_Read... [19:05:59]*** Stop cut motor [19:05:59]*** Cut end [19:05:59]Read from MH i2c: 01 07 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: 01 07 00 36 5F 00 00 00 00 00 FF 0F AA [19:05:59]process_action close_receipt done [19:05:59]requested_data is exist [19:05:59]produce_requested_data [19:05:59]requested_item fm.sn is exist - process it [19:05:59]wFMCommunicate request_size=4 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 11 00 00 [19:05:59]Write to MH i2c: E2 08 00 37 5F 80 11 00 00 00 00 00 00 10 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:59]Read from MH i2c: E2 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 17 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 17 00 37 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5E [19:05:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:05:59]wFMCommunicate OK [19:05:59]requested_item fd.num is exist - process it [19:05:59]SAM_PROTO_GetFieldsCounters [19:05:59]wFMCommunicate request_size=4 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 13 00 00 [19:05:59]Write to MH i2c: E2 08 00 38 5F 80 13 00 00 00 00 00 00 13 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:59]Read from MH i2c: E2 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 62 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 62 00 38 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:05:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 03 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:59]wFMCommunicate OK [19:05:59]SAM_PROTO_GetFieldsCounters done [19:05:59]requested_item shift.num is exist - process it [19:05:59]requested_item shift.opened is exist - process it [19:05:59]req_shift_opened [19:05:59]FM_GetShiftState [19:05:59]SAM_PROTO_GetShiftState [19:05:59]wFMCommunicate request_size=4 [19:05:59]MH_SAM_APDU [19:05:59]CAPDU: 80 13 01 00 [19:05:59]Write to MH i2c: E2 08 00 39 5F 80 13 01 00 00 00 00 00 15 [19:05:59]Write i2c OK [19:05:59]MH_I2C_Read... [19:05:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:59]Read from MH i2c: E2 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 0E 00 [19:05:59]MH_I2C_Read... [19:05:59]Read from MH i2c: E2 0E 00 39 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 91 [19:05:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:05:59]wFMCommunicate OK [19:05:59]SAM_PROTO_GetShiftState done [19:05:59]FM_GetShiftState done [19:05:59]req_shift_opened done [19:05:59]requested_item shift.open_date is exist - process it [19:05:59]req_shift_open_date [19:05:59]req_shift_open_date done [19:05:59]produce_requested_data done [19:05:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30723,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:05:59]process_action_free close_receipt [19:05:59]json_value_free [19:05:59]json_value_free done [19:05:59]process_json_proto returns [19:05:59]Send response to host [19:05:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30723,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:05:59]free response buf [19:05:59]execute_script done [19:05:59]execute_script returns [19:05:59]free content buf [19:05:59]Sock 7.Close socket [19:05:59]Sock 7.Thread stoped [19:06:03]OFD Sender: No OFD packet to send [19:06:06]accept exits with 9 [19:06:06]New connection [19:06:06]New thread 3067346276 created [19:06:06]Thread 3067489636 joined [19:06:06]Waiting for new connection... [19:06:06] Sock 9.Parse request [19:06:06]Sock 9.Check first char [19:06:06]Sock 9.First char is OK [19:06:06]request: POST /json_proto HTTP/1.0 [19:06:06]Method: POST [19:06:06]URL: /json_proto [19:06:06]Method is POST - this is cgi request [19:06:06]url: /json_proto [19:06:06]query_string will be loaded in cgi processing [19:06:06]execute_cgi json_proto POST (null) [19:06:06]execute_cgi path=json_proto method=POST [19:06:06]POST find Content-Length [19:06:06]Host: 172.17.51.3:8080 [19:06:06]Content-Length: 677 [19:06:06]Content-Type: application/json [19:06:06] [19:06:06]POST finish read [19:06:06]Found Content-Length = 677 [19:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:06]execute_script... [19:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:06]POST & json_proto [19:06:06]process_json_proto [19:06:06]json parsed OK: [19:06:06]protocol is kg_v1.0 [19:06:06]action value=close_receipt [19:06:06]process_action close_receipt [19:06:06]cmd_close_receipt [19:06:06]MH_GetDate [19:06:06]Write to MH i2c: F0 00 00 3A 5F 88 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: F0 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: F0 09 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: F0 09 00 3A 5F 00 25 A6 16 67 04 C1 95 66 99 [19:06:06]GetLastDocTimeStamp 1729537561 [19:06:06]current date 1729537573 [19:06:06]FM_GetShiftState [19:06:06]SAM_PROTO_GetShiftState [19:06:06]wFMCommunicate request_size=4 [19:06:06]MH_SAM_APDU [19:06:06]CAPDU: 80 13 01 00 [19:06:06]Write to MH i2c: E2 08 00 3B 5F 80 13 01 00 00 00 00 00 17 [19:06:06]Write i2c OK [19:06:06]MH_I2C_Read... [19:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:06]Read from MH i2c: E2 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 [19:06:06]MH_I2C_Read... [19:06:06]Read from MH i2c: E2 0E 00 3B 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 93 [19:06:06]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:06:06]wFMCommunicate OK [19:06:06]SAM_PROTO_GetShiftState done [19:06:06]FM_GetShiftState done [19:06:06]opened in 1729471058 [19:06:06]opened+sec_in_day 1729557458 [19:06:06]quantity*price = 50041 [19:06:06]sum+1 = 50042 [19:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 221 21.10.2024 19:06 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30724 ФПД: 215002356889794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30724&fm=215002356889794&tin=02508201610067®Number=0000000000186857&sum=50000 [19:06:08]StoreToDocumentArchive [19:06:08]shift 115 fd 30724 [19:06:08]save to /storage/0115/doc_00030724 [19:06:08]save last doc name /storage/0115/doc_00030724 to /storage/kkm_last_doc_name [19:06:08]save OK [19:06:08]Clear old archive folders... [19:06:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:08]tlvbuf is 01DD7130 [19:06:08]SAM_PROTO_ClearQueue [19:06:08]wFMCommunicate request_size=4 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 09 00 00 [19:06:08]Write to MH i2c: E2 08 00 48 5F 80 09 00 00 00 00 00 00 19 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 48 5F 00 90 00 1B [19:06:08]RAPDU: 90 00 [19:06:08]wFMCommunicate OK [19:06:08]SAM_PROTO_ClearQueue done [19:06:08]KKMCreateOFDPacket [19:06:08]OFDProtocolAddRootSTLVToBuf [19:06:08]FM_MakeSignedData [19:06:08]FM_MakeSignedData [19:06:08]SAM_PROTO_SignData [19:06:08]wFMCommunicate request_size=4 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 0D 01 02 [19:06:08]Write to MH i2c: E2 08 00 49 5F 80 0D 01 02 00 00 00 00 21 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 49 5F 00 90 00 1C [19:06:08]RAPDU: 90 00 [19:06:08]wFMCommunicate OK [19:06:08]wFMCommunicate request_size=255 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 25 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 78 00 00 35 04 06 00 C3 [19:06:08]Write to MH i2c: E2 02 01 4A 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 25 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 78 00 00 35 04 06 00 C3 00 00 89 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]OFD Sender: No OFD packet to send [19:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 4A 5F 00 90 00 1D [19:06:08]RAPDU: 90 00 [19:06:08]wFMCommunicate OK [19:06:08]wFMCommunicate request_size=10 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 0D 02 02 05 8B 23 1B B8 C2 [19:06:08]Write to MH i2c: E2 0D 00 4B 5F 80 0D 02 02 05 00 8B 23 1B B8 C2 00 00 71 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 03 00 4B 5F 00 90 00 1E [19:06:08]RAPDU: 90 00 [19:06:08]wFMCommunicate OK [19:06:08]wFMCommunicate request_size=4 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 0D 03 02 [19:06:08]Write to MH i2c: E2 08 00 4C 5F 80 0D 03 02 00 00 00 00 26 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 0B 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 0B 00 4C 5F 00 01 F1 3A 3B E1 F5 C2 40 90 00 66 [19:06:08]RAPDU: 01 F1 3A 3B E1 F5 C2 40 90 00 [19:06:08]wFMCommunicate OK [19:06:08]SAM_PROTO_SignData done [19:06:08]FM_MakeSignedData done [19:06:08]CreateOFDProtocolMessage [19:06:08]wFMCommunicate request_size=4 [19:06:08]MH_SAM_APDU [19:06:08]CAPDU: 80 11 00 00 [19:06:08]Write to MH i2c: E2 08 00 4D 5F 80 11 00 00 00 00 00 00 26 [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:08]Read from MH i2c: E2 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 17 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: E2 17 00 4D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 74 [19:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:06:08]wFMCommunicate OK [19:06:08]CreateOFDProtocolMessage done [19:06:08]OFDSenderStorePacket 30724 [19:06:08]StoreOFDPacket docnum=30724 [19:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 A6 07 01 40 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 25 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 78 00 00 35 04 06 00 C3 8B 23 1B B8 C2 01 F1 3A 3B E1 F5 C2 40 [19:06:08]CheckFolder [19:06:08]dirname=/storage/ofd_packets [19:06:08]CheckFolder done [19:06:08]ProducePacketName [19:06:08]name=ofd_packets/00030724 [19:06:08]NVStorageSaveData ofd_packets/00030724 [19:06:08]File name is /storage/ofd_packets/00030724 [19:06:08]Write 301 bytes [19:06:08]NVStorageSaveData done [19:06:08]OFDSenderStorePacket done [19:06:08]KKMCreateOFDPacket done [19:06:08]NVStorageSaveData kkm_last_timestamp [19:06:08]File name is /storage/kkm_last_timestamp [19:06:08]Write 4 bytes [19:06:08]NVStorageSaveData done [19:06:08]ExternCall_PrintAddStr [19:06:08]wPrintStart [19:06:08]Write to MH i2c: 01 00 00 4E 5F AD [19:06:08]Write i2c OK [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: 01 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: 01 07 00 [19:06:08]MH_I2C_Read... [19:06:08]Read from MH i2c: 01 07 00 4E 5F 00 00 00 00 00 FF 0F C2 [19:06:08]RasterBufferAndPrint [19:06:08]line Счет N : (1)343137 [19:06:08]line ИНН: 02508201610067 [19:06:08]line Контрольно-Кассовый Чек [19:06:08]line ПРОДАЖА [19:06:08]line ТРК (МРК, ГНК) : 33 [19:06:08]line Товар: 2710124130 [19:06:08]line Аи-92-К-2 [19:06:08]line 7.480 * 66.90 [19:06:08]line = 500.41 [19:06:08]line НДС 12% НСП 1% [19:06:08]line > о реализуемом товаре [19:06:08]line ОКРУГЛЕНИЕ: -0.41 [19:06:08]line ИТОГО: 500.00 [19:06:08]line Внесено: 500.00 [19:06:08]line СДАЧА: 0.00 [19:06:08]line НСП 1% : 4.43 [19:06:08]line НДС 12% : 53.14 [19:06:08]line Наличными: 500.00 [19:06:08]line Безнал.: 0.00 [19:06:08]line Место: АЗС № 78 "Партнер Нефть" [19:06:08]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:06:08]line СНО: Общий режим [19:06:08]line Чек 221 21.10.2024 19:06 [19:06:08]line Смена: 115 ФФД: 1.0 [19:06:08]line ЗНМ: 0300000137 [19:06:08]line РНМ: 0000000000186857 [19:06:08]line Версия ККМ: v1.0 [19:06:08]line ФМ: 0000000002094219 [19:06:08]line ФД: 30724 [19:06:08]line ФПД: 215002356889794 [19:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190613&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30724&fm=215002356889794&tin=02508201610067®Number=0000000000186857&sum=50000 [19:06:08]OFD Sender: Processing packet 30724 [packets to send 10, broken 9] [19:06:08]ProducePacketName [19:06:08]name=ofd_packets/00030724 [19:06:08]OFD Sender: To server: pG, [19:06:08]CommunicateWithHost lk.salyk.kg:30040 [19:06:08]ConnectInit lk.salyk.kg [19:06:08]written 0, free lines is 4095 [19:06:09]Connected sock=10 [19:06:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 65 A6 07 01 40 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 25 A6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 04 78 00 00 35 04 06 00 C3 8B 23 1B B8 C2 01 F1 3A 3B E1 F5 C2 40 [19:06:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 18 63 47 00 31 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 32 30 39 34 32 31 39 10 04 04 00 04 78 00 00 F4 03 04 00 A5 50 16 67 B6 04 01 00 00 C4 43 B7 40 D6 7C 3B 53 [19:06:09]CommunicateWithHost err = 0 [19:06:09]CheckOFDResponse [19:06:09]1017 (14) - 77093643461234 [19:06:09]1041 (16) - 0000000002094219 [19:06:09]1040 (4) - 30724 [19:06:09]1012 (4) - 21.10.2024 13:01 [19:06:09]1206 (1) - 0 [19:06:09]OFD Sender: Remove packet 30724 [19:06:09]ProducePacketName [19:06:09]name=ofd_packets/00030724 [19:06:09]NVStorageDeleteData [19:06:09]Write to MH i2c: 01 00 00 79 5F D8 [19:06:09]Write i2c OK [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: 01 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: 01 07 00 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: 01 07 00 79 5F 00 00 00 00 00 E1 0C CC [19:06:09]RasterBufferAndPrint [19:06:09]line [19:06:09]line [19:06:09]line [19:06:09]line [19:06:09]line [19:06:09]written 0, free lines is 3303 [19:06:09]MH_Cut [19:06:09]Write to MH i2c: D1 01 00 80 5F 01 B1 [19:06:09]Write i2c OK [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: D1 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: D1 01 00 [19:06:09]MH_I2C_Read... [19:06:09]Read from MH i2c: D1 01 00 80 5F 00 B0 [19:06:09]Write to MH i2c: 01 00 00 81 5F E0 [19:06:09]Write i2c OK [19:06:09]MH_I2C_Read... [19:06:09]OFD Sender: No OFD packet to send [19:06:10]*** Cut start [19:06:10]*** Partial cut [19:06:10]*** CUTSNS_PIN = 1 [19:06:10]*** CUTSNS_PIN = 0 [19:06:10]*** Brake cut motor [19:06:10]Read from MH i2c: 01 [19:06:10]MH_I2C_Read... [19:06:10]*** Stop cut motor [19:06:10]*** Cut end [19:06:10]Read from MH i2c: 01 07 00 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: 01 07 00 81 5F 00 00 00 00 00 FF 0F F5 [19:06:10]process_action close_receipt done [19:06:10]requested_data is exist [19:06:10]produce_requested_data [19:06:10]requested_item fm.sn is exist - process it [19:06:10]wFMCommunicate request_size=4 [19:06:10]MH_SAM_APDU [19:06:10]CAPDU: 80 11 00 00 [19:06:10]Write to MH i2c: E2 08 00 82 5F 80 11 00 00 00 00 00 00 5B [19:06:10]Write i2c OK [19:06:10]MH_I2C_Read... [19:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:10]Read from MH i2c: E2 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 17 00 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 17 00 82 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A9 [19:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:06:10]wFMCommunicate OK [19:06:10]requested_item fd.num is exist - process it [19:06:10]SAM_PROTO_GetFieldsCounters [19:06:10]wFMCommunicate request_size=4 [19:06:10]MH_SAM_APDU [19:06:10]CAPDU: 80 13 00 00 [19:06:10]Write to MH i2c: E2 08 00 83 5F 80 13 00 00 00 00 00 00 5E [19:06:10]Write i2c OK [19:06:10]MH_I2C_Read... [19:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:10]Read from MH i2c: E2 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 62 00 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 62 00 83 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 04 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:10]wFMCommunicate OK [19:06:10]SAM_PROTO_GetFieldsCounters done [19:06:10]requested_item shift.num is exist - process it [19:06:10]requested_item shift.opened is exist - process it [19:06:10]req_shift_opened [19:06:10]FM_GetShiftState [19:06:10]SAM_PROTO_GetShiftState [19:06:10]wFMCommunicate request_size=4 [19:06:10]MH_SAM_APDU [19:06:10]CAPDU: 80 13 01 00 [19:06:10]Write to MH i2c: E2 08 00 84 5F 80 13 01 00 00 00 00 00 60 [19:06:10]Write i2c OK [19:06:10]MH_I2C_Read... [19:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:10]Read from MH i2c: E2 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 0E 00 [19:06:10]MH_I2C_Read... [19:06:10]Read from MH i2c: E2 0E 00 84 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DC [19:06:10]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:06:10]wFMCommunicate OK [19:06:10]SAM_PROTO_GetShiftState done [19:06:10]FM_GetShiftState done [19:06:10]req_shift_opened done [19:06:10]requested_item shift.open_date is exist - process it [19:06:10]req_shift_open_date [19:06:10]req_shift_open_date done [19:06:10]produce_requested_data done [19:06:10]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30724,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:06:10]process_action_free close_receipt [19:06:10]json_value_free [19:06:10]json_value_free done [19:06:10]process_json_proto returns [19:06:10]Send response to host [19:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30724,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:06:10]free response buf [19:06:10]execute_script done [19:06:10]execute_script returns [19:06:10]free content buf [19:06:10]Sock 9.Close socket [19:06:10]Sock 9.Thread stoped [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:28]accept exits with 7 [19:10:28]New connection [19:10:28]New thread 3067489636 created [19:10:28]Thread 3067346276 joined [19:10:28]Waiting for new connection... [19:10:28] Sock 7.Parse request [19:10:28]Sock 7.Check first char [19:10:28]Sock 7.First char is OK [19:10:28]request: POST /json_proto HTTP/1.0 [19:10:28]Method: POST [19:10:28]URL: /json_proto [19:10:28]Method is POST - this is cgi request [19:10:28]url: /json_proto [19:10:28]query_string will be loaded in cgi processing [19:10:28]execute_cgi json_proto POST (null) [19:10:28]execute_cgi path=json_proto method=POST [19:10:28]POST find Content-Length [19:10:28]Host: 172.17.51.3:8080 [19:10:28]Content-Length: 750 [19:10:28]Content-Type: application/json [19:10:28] [19:10:28]POST finish read [19:10:28]Found Content-Length = 750 [19:10:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100491", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:28]execute_script... [19:10:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30100491", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:28]POST & json_proto [19:10:28]process_json_proto [19:10:28]json parsed OK: [19:10:28]protocol is kg_v1.0 [19:10:28]action value=close_receipt [19:10:28]process_action close_receipt [19:10:28]cmd_close_receipt [19:10:28]MH_GetDate [19:10:28]Write to MH i2c: F0 00 00 85 5F D3 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: F0 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: F0 09 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: F0 09 00 85 5F 00 2A A7 16 67 04 C1 95 66 EA [19:10:28]GetLastDocTimeStamp 1729537573 [19:10:28]current date 1729537834 [19:10:28]FM_GetShiftState [19:10:28]SAM_PROTO_GetShiftState [19:10:28]wFMCommunicate request_size=4 [19:10:28]MH_SAM_APDU [19:10:28]CAPDU: 80 13 01 00 [19:10:28]Write to MH i2c: E2 08 00 86 5F 80 13 01 00 00 00 00 00 62 [19:10:28]Write i2c OK [19:10:28]MH_I2C_Read... [19:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:28]Read from MH i2c: E2 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0E 00 [19:10:28]MH_I2C_Read... [19:10:28]Read from MH i2c: E2 0E 00 86 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DE [19:10:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:10:28]wFMCommunicate OK [19:10:28]SAM_PROTO_GetShiftState done [19:10:28]FM_GetShiftState done [19:10:28]opened in 1729471058 [19:10:28]opened+sec_in_day 1729557458 [19:10:28]quantity*price = 0 [19:10:28]sum+1 = 1 [19:10:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 222 21.10.2024 19:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Талоны: ТК ГПНА Online 30100491 ФМ: 0000000002094219 ФД: 30725 ФПД: 280585039873701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191034&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30725&fm=280585039873701&tin=02508201610067®Number=0000000000186857&sum=0 [19:10:29]StoreToDocumentArchive [19:10:29]shift 115 fd 30725 [19:10:29]save to /storage/0115/doc_00030725 [19:10:29]save last doc name /storage/0115/doc_00030725 to /storage/kkm_last_doc_name [19:10:29]save OK [19:10:29]Clear old archive folders... [19:10:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:29]tlvbuf is B6FD8180 [19:10:29]SAM_PROTO_ClearQueue [19:10:29]wFMCommunicate request_size=4 [19:10:29]MH_SAM_APDU [19:10:29]CAPDU: 80 09 00 00 [19:10:29]Write to MH i2c: E2 08 00 93 5F 80 09 00 00 00 00 00 00 64 [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:29]Read from MH i2c: E2 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: E2 03 00 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: E2 03 00 93 5F 00 90 00 66 [19:10:29]RAPDU: 90 00 [19:10:29]wFMCommunicate OK [19:10:29]SAM_PROTO_ClearQueue done [19:10:29]KKMCreateOFDPacket [19:10:29]OFDProtocolAddRootSTLVToBuf [19:10:29]FM_MakeSignedData [19:10:29]FM_MakeSignedData [19:10:29]SAM_PROTO_SignData [19:10:29]wFMCommunicate request_size=4 [19:10:29]MH_SAM_APDU [19:10:29]CAPDU: 80 0D 01 02 [19:10:29]Write to MH i2c: E2 08 00 94 5F 80 0D 01 02 00 00 00 00 6C [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:29]Read from MH i2c: E2 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: E2 03 00 [19:10:29]MH_I2C_Read... [19:10:29]Read from MH i2c: E2 03 00 94 5F 00 90 00 67 [19:10:29]RAPDU: 90 00 [19:10:29]wFMCommunicate OK [19:10:29]wFMCommunicate request_size=255 [19:10:29]MH_SAM_APDU [19:10:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2A A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 78 00 00 35 04 06 00 FF 30 CB A1 [19:10:29]Write to MH i2c: E2 02 01 95 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2A A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 78 00 00 35 04 06 00 FF 30 CB A1 00 00 1D [19:10:29]Write i2c OK [19:10:29]MH_I2C_Read... [19:10:29]OFD Sender: No OFD packet to send [19:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:30]Read from MH i2c: E2 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 03 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 03 00 95 5F 00 90 00 68 [19:10:30]RAPDU: 90 00 [19:10:30]wFMCommunicate OK [19:10:30]wFMCommunicate request_size=7 [19:10:30]MH_SAM_APDU [19:10:30]CAPDU: 80 0D 02 02 02 86 A5 [19:10:30]Write to MH i2c: E2 0A 00 96 5F 80 0D 02 02 02 00 86 A5 00 00 9E [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:30]Read from MH i2c: E2 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 03 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 03 00 96 5F 00 90 00 69 [19:10:30]RAPDU: 90 00 [19:10:30]wFMCommunicate OK [19:10:30]wFMCommunicate request_size=4 [19:10:30]MH_SAM_APDU [19:10:30]CAPDU: 80 0D 03 02 [19:10:30]Write to MH i2c: E2 08 00 97 5F 80 0D 03 02 00 00 00 00 71 [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:30]Read from MH i2c: E2 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 0B 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 0B 00 97 5F 00 29 A9 19 7D A7 08 3D B6 90 00 7C [19:10:30]RAPDU: 29 A9 19 7D A7 08 3D B6 90 00 [19:10:30]wFMCommunicate OK [19:10:30]SAM_PROTO_SignData done [19:10:30]FM_MakeSignedData done [19:10:30]CreateOFDProtocolMessage [19:10:30]wFMCommunicate request_size=4 [19:10:30]MH_SAM_APDU [19:10:30]CAPDU: 80 11 00 00 [19:10:30]Write to MH i2c: E2 08 00 98 5F 80 11 00 00 00 00 00 00 71 [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:30]Read from MH i2c: E2 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 17 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: E2 17 00 98 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BF [19:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:30]wFMCommunicate OK [19:10:30]CreateOFDProtocolMessage done [19:10:30]OFDSenderStorePacket 30725 [19:10:30]StoreOFDPacket docnum=30725 [19:10:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 07 49 04 01 49 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2A A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 78 00 00 35 04 06 00 FF 30 CB A1 86 A5 29 A9 19 7D A7 08 3D B6 [19:10:30]CheckFolder [19:10:30]dirname=/storage/ofd_packets [19:10:30]CheckFolder done [19:10:30]ProducePacketName [19:10:30]name=ofd_packets/00030725 [19:10:30]NVStorageSaveData ofd_packets/00030725 [19:10:30]File name is /storage/ofd_packets/00030725 [19:10:30]Write 298 bytes [19:10:30]NVStorageSaveData done [19:10:30]OFDSenderStorePacket done [19:10:30]KKMCreateOFDPacket done [19:10:30]NVStorageSaveData kkm_last_timestamp [19:10:30]File name is /storage/kkm_last_timestamp [19:10:30]Write 4 bytes [19:10:30]NVStorageSaveData done [19:10:30]ExternCall_PrintAddStr [19:10:30]wPrintStart [19:10:30]Write to MH i2c: 01 00 00 99 5F F8 [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 07 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 07 00 99 5F 00 00 00 00 00 FF 0F 0D [19:10:30]RasterBufferAndPrint [19:10:30]line Счет N : (1)343138 [19:10:30]line ИНН: 02508201610067 [19:10:30]line Контрольно-Кассовый Чек [19:10:30]line ПРОДАЖА [19:10:30]line ТРК (МРК, ГНК) : 64 [19:10:30]line Товар: 2710194210 [19:10:30]line ДТ-К-2 [19:10:30]line 5.000 * 0.00 [19:10:30]line = 0.00 [19:10:30]line НДС 12% НСП 1% [19:10:30]line > о реализуемом товаре [19:10:30]line ИТОГО: 0.00 [19:10:30]line НСП 1% : 0.00 [19:10:30]line НДС 12% : 0.00 [19:10:30]line Наличными: 0.00 [19:10:30]line Безнал.: 0.00 [19:10:30]line Место: АЗС № 78 "Партнер Нефть" [19:10:30]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:10:30]line СНО: Общий режим [19:10:30]line Чек 222 21.10.2024 19:10 [19:10:30]line Смена: 115 ФФД: 1.0 [19:10:30]line ЗНМ: 0300000137 [19:10:30]line РНМ: 0000000000186857 [19:10:30]line Версия ККМ: v1.0 [19:10:30]line Талоны: ТК ГПНА Online [19:10:30]line 30100491 [19:10:30]line ФМ: 0000000002094219 [19:10:30]line ФД: 30725 [19:10:30]line ФПД: 280585039873701 [19:10:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191034&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30725&fm=280585039873701&tin=02508201610067®Number=0000000000186857&sum=0 [19:10:30]OFD Sender: Processing packet 30725 [packets to send 10, broken 9] [19:10:30]ProducePacketName [19:10:30]name=ofd_packets/00030725 [19:10:30]OFD Sender: To server: pG, [19:10:30]CommunicateWithHost lk.salyk.kg:30040 [19:10:30]ConnectInit lk.salyk.kg [19:10:30]written 0, free lines is 4095 [19:10:30]Connected sock=10 [19:10:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 07 49 04 01 49 4C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 2A A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 78 00 00 35 04 06 00 FF 30 CB A1 86 A5 29 A9 19 7D A7 08 3D B6 [19:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 45 07 47 00 D2 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 05 78 00 00 F4 03 04 00 AA 51 16 67 B6 04 01 00 00 E2 AF 7A E7 17 81 11 2F [19:10:30]CommunicateWithHost err = 0 [19:10:30]CheckOFDResponse [19:10:30]1017 (14) - 77093643461234 [19:10:30]1041 (16) - 0000000002094219 [19:10:30]1040 (4) - 30725 [19:10:30]1012 (4) - 21.10.2024 13:05 [19:10:30]1206 (1) - 0 [19:10:30]OFD Sender: Remove packet 30725 [19:10:30]ProducePacketName [19:10:30]name=ofd_packets/00030725 [19:10:30]NVStorageDeleteData [19:10:30]Write to MH i2c: 01 00 00 C3 5F 22 [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 07 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: 01 07 00 C3 5F 00 00 00 00 00 EE 0C 23 [19:10:30]RasterBufferAndPrint [19:10:30]line [19:10:30]line [19:10:30]line [19:10:30]line [19:10:30]line [19:10:30]written 0, free lines is 3318 [19:10:30]MH_Cut [19:10:30]Write to MH i2c: D1 01 00 CA 5F 01 FB [19:10:30]Write i2c OK [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: D1 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: D1 01 00 [19:10:30]MH_I2C_Read... [19:10:30]Read from MH i2c: D1 01 00 CA 5F 00 FA [19:10:30]Write to MH i2c: 01 00 00 CB 5F 2A [19:10:31]Write i2c OK [19:10:31]MH_I2C_Read... [19:10:31]OFD Sender: No OFD packet to send [19:10:31]*** Cut start [19:10:31]*** Partial cut [19:10:31]*** CUTSNS_PIN = 1 [19:10:31]*** CUTSNS_PIN = 0 [19:10:31]*** Brake cut motor [19:10:32]Read from MH i2c: 01 [19:10:32]*** Stop cut motor [19:10:32]*** Cut end [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: 01 07 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: 01 07 00 CB 5F 00 00 00 00 00 FF 0F 3F [19:10:32]process_action close_receipt done [19:10:32]requested_data is exist [19:10:32]produce_requested_data [19:10:32]requested_item fm.sn is exist - process it [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 11 00 00 [19:10:32]Write to MH i2c: E2 08 00 CC 5F 80 11 00 00 00 00 00 00 A5 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 17 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 17 00 CC 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F3 [19:10:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:32]wFMCommunicate OK [19:10:32]requested_item fd.num is exist - process it [19:10:32]SAM_PROTO_GetFieldsCounters [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 13 00 00 [19:10:32]Write to MH i2c: E2 08 00 CD 5F 80 13 00 00 00 00 00 00 A8 [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 62 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 62 00 CD 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [19:10:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 05 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:32]wFMCommunicate OK [19:10:32]SAM_PROTO_GetFieldsCounters done [19:10:32]requested_item shift.num is exist - process it [19:10:32]requested_item shift.opened is exist - process it [19:10:32]req_shift_opened [19:10:32]FM_GetShiftState [19:10:32]SAM_PROTO_GetShiftState [19:10:32]wFMCommunicate request_size=4 [19:10:32]MH_SAM_APDU [19:10:32]CAPDU: 80 13 01 00 [19:10:32]Write to MH i2c: E2 08 00 CE 5F 80 13 01 00 00 00 00 00 AA [19:10:32]Write i2c OK [19:10:32]MH_I2C_Read... [19:10:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:32]Read from MH i2c: E2 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 0E 00 [19:10:32]MH_I2C_Read... [19:10:32]Read from MH i2c: E2 0E 00 CE 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 26 [19:10:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:10:32]wFMCommunicate OK [19:10:32]SAM_PROTO_GetShiftState done [19:10:32]FM_GetShiftState done [19:10:32]req_shift_opened done [19:10:32]requested_item shift.open_date is exist - process it [19:10:32]req_shift_open_date [19:10:32]req_shift_open_date done [19:10:32]produce_requested_data done [19:10:32]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30725,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:10:32]process_action_free close_receipt [19:10:32]json_value_free [19:10:32]json_value_free done [19:10:32]process_json_proto returns [19:10:32]Send response to host [19:10:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30725,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:10:32]free response buf [19:10:32]execute_script done [19:10:32]execute_script returns [19:10:32]free content buf [19:10:32]Sock 7.Close socket [19:10:32]Sock 7.Thread stoped [19:10:36]OFD Sender: No OFD packet to send [19:10:41]OFD Sender: No OFD packet to send [19:10:46]OFD Sender: No OFD packet to send [19:10:51]OFD Sender: No OFD packet to send [19:10:53]accept exits with 9 [19:10:53]New connection [19:10:53]New thread 3067346276 created [19:10:53]Thread 3067489636 joined [19:10:53]Waiting for new connection... [19:10:53] Sock 9.Parse request [19:10:53]Sock 9.Check first char [19:10:53]Sock 9.First char is OK [19:10:53]request: POST /json_proto HTTP/1.0 [19:10:53]Method: POST [19:10:53]URL: /json_proto [19:10:53]Method is POST - this is cgi request [19:10:53]url: /json_proto [19:10:53]query_string will be loaded in cgi processing [19:10:53]execute_cgi json_proto POST (null) [19:10:53]execute_cgi path=json_proto method=POST [19:10:53]POST find Content-Length [19:10:53]Host: 172.17.51.3:8080 [19:10:53]Content-Length: 837 [19:10:53]Content-Type: application/json [19:10:53] [19:10:53]POST finish read [19:10:53]Found Content-Length = 837 [19:10:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:53]execute_script... [19:10:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:53]POST & json_proto [19:10:53]process_json_proto [19:10:53]json parsed OK: [19:10:53]protocol is kg_v1.0 [19:10:53]action value=close_receipt [19:10:53]process_action close_receipt [19:10:53]cmd_close_receipt [19:10:53]MH_GetDate [19:10:53]Write to MH i2c: F0 00 00 CF 5F 1D [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: F0 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: F0 09 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: F0 09 00 CF 5F 00 43 A7 16 67 04 C1 95 66 4D [19:10:53]GetLastDocTimeStamp 1729537834 [19:10:53]current date 1729537859 [19:10:53]FM_GetShiftState [19:10:53]SAM_PROTO_GetShiftState [19:10:53]wFMCommunicate request_size=4 [19:10:53]MH_SAM_APDU [19:10:53]CAPDU: 80 13 01 00 [19:10:53]Write to MH i2c: E2 08 00 D0 5F 80 13 01 00 00 00 00 00 AC [19:10:53]Write i2c OK [19:10:53]MH_I2C_Read... [19:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:53]Read from MH i2c: E2 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 0E 00 [19:10:53]MH_I2C_Read... [19:10:53]Read from MH i2c: E2 0E 00 D0 5F 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 28 [19:10:53]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:10:53]wFMCommunicate OK [19:10:53]SAM_PROTO_GetShiftState done [19:10:53]FM_GetShiftState done [19:10:53]opened in 1729471058 [19:10:53]opened+sec_in_day 1729557458 [19:10:53]quantity*price = 50063 [19:10:53]sum+1 = 50064 [19:10:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 223 21.10.2024 19:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30726 ФПД: 213547623029332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191059&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30726&fm=213547623029332&tin=02508201610067®Number=0000000000186857&sum=50063 [19:10:54]StoreToDocumentArchive [19:10:54]shift 115 fd 30726 [19:10:54]save to /storage/0115/doc_00030726 [19:10:54]save last doc name /storage/0115/doc_00030726 to /storage/kkm_last_doc_name [19:10:54]save OK [19:10:54]Clear old archive folders... [19:10:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:10:54]tlvbuf is 01FB6910 [19:10:54]SAM_PROTO_ClearQueue [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 09 00 00 [19:10:54]Write to MH i2c: E2 08 00 DD 5F 80 09 00 00 00 00 00 00 AE [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 DD 5F 00 90 00 B0 [19:10:54]RAPDU: 90 00 [19:10:54]wFMCommunicate OK [19:10:54]SAM_PROTO_ClearQueue done [19:10:54]KKMCreateOFDPacket [19:10:54]OFDProtocolAddRootSTLVToBuf [19:10:54]FM_MakeSignedData [19:10:54]FM_MakeSignedData [19:10:54]SAM_PROTO_SignData [19:10:54]wFMCommunicate request_size=4 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 0D 01 02 [19:10:54]Write to MH i2c: E2 08 00 DE 5F 80 0D 01 02 00 00 00 00 B6 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:54]Read from MH i2c: E2 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 [19:10:54]MH_I2C_Read... [19:10:54]Read from MH i2c: E2 03 00 DE 5F 00 90 00 B1 [19:10:54]RAPDU: 90 00 [19:10:54]wFMCommunicate OK [19:10:54]wFMCommunicate request_size=255 [19:10:54]MH_SAM_APDU [19:10:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 43 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 78 00 00 35 04 06 00 C2 38 6E 36 [19:10:54]Write to MH i2c: E2 02 01 DF 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 43 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 78 00 00 35 04 06 00 C2 38 6E 36 00 00 18 [19:10:54]Write i2c OK [19:10:54]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 DF 5F 00 90 00 B2 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=7 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 02 02 02 9A 54 [19:10:55]Write to MH i2c: E2 0A 00 E0 5F 80 0D 02 02 02 00 9A 54 00 00 AB [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 03 00 E0 5F 00 90 00 B3 [19:10:55]RAPDU: 90 00 [19:10:55]wFMCommunicate OK [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 0D 03 02 [19:10:55]Write to MH i2c: E2 08 00 E1 5F 80 0D 03 02 00 00 00 00 BB [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0B 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 0B 00 E1 5F 00 7E 89 A4 D6 4A AD A9 E8 90 00 C5 [19:10:55]RAPDU: 7E 89 A4 D6 4A AD A9 E8 90 00 [19:10:55]wFMCommunicate OK [19:10:55]SAM_PROTO_SignData done [19:10:55]FM_MakeSignedData done [19:10:55]CreateOFDProtocolMessage [19:10:55]wFMCommunicate request_size=4 [19:10:55]MH_SAM_APDU [19:10:55]CAPDU: 80 11 00 00 [19:10:55]Write to MH i2c: E2 08 00 E2 5F 80 11 00 00 00 00 00 00 BB [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:55]Read from MH i2c: E2 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 17 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: E2 17 00 E2 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 09 [19:10:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:55]wFMCommunicate OK [19:10:55]CreateOFDProtocolMessage done [19:10:55]OFDSenderStorePacket 30726 [19:10:55]StoreOFDPacket docnum=30726 [19:10:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 C3 04 01 1B BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 43 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 78 00 00 35 04 06 00 C2 38 6E 36 9A 54 7E 89 A4 D6 4A AD A9 E8 [19:10:55]CheckFolder [19:10:55]dirname=/storage/ofd_packets [19:10:55]CheckFolder done [19:10:55]ProducePacketName [19:10:55]name=ofd_packets/00030726 [19:10:55]NVStorageSaveData ofd_packets/00030726 [19:10:55]File name is /storage/ofd_packets/00030726 [19:10:55]Write 298 bytes [19:10:55]NVStorageSaveData done [19:10:55]OFDSenderStorePacket done [19:10:55]KKMCreateOFDPacket done [19:10:55]NVStorageSaveData kkm_last_timestamp [19:10:55]File name is /storage/kkm_last_timestamp [19:10:55]Write 4 bytes [19:10:55]NVStorageSaveData done [19:10:55]ExternCall_PrintAddStr [19:10:55]wPrintStart [19:10:55]Write to MH i2c: 01 00 00 E3 5F 42 [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 E3 5F 00 00 00 00 00 FF 0F 57 [19:10:55]RasterBufferAndPrint [19:10:55]line Счет N : (1)343139 [19:10:55]line ИНН: 02508201610067 [19:10:55]line Контрольно-Кассовый Чек [19:10:55]line ПРОДАЖА [19:10:55]line ТРК (МРК, ГНК) : 64 [19:10:55]line Товар: 2710194210 [19:10:55]line ДТ-К-2 [19:10:55]line 6.570 * 76.20 [19:10:55]line = 500.63 [19:10:55]line НДС 12% НСП 1% [19:10:55]line > о реализуемом товаре [19:10:55]line ИТОГО: 500.63 [19:10:55]line НСП 1% : 4.43 [19:10:55]line НДС 12% : 53.16 [19:10:55]line Наличными: 0.00 [19:10:55]line Безнал.: 500.63 [19:10:55]line Место: АЗС № 78 "Партнер Нефть" [19:10:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:10:55]line СНО: Общий режим [19:10:55]line Чек 223 21.10.2024 19:10 [19:10:55]line Смена: 115 ФФД: 1.0 [19:10:55]line ЗНМ: 0300000137 [19:10:55]line РНМ: 0000000000186857 [19:10:55]line Версия ККМ: v1.0 [19:10:55]line Платежная система: АКБ Кыргызстан [19:10:55]line ФМ: 0000000002094219 [19:10:55]line ФД: 30726 [19:10:55]line ФПД: 213547623029332 [19:10:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191059&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30726&fm=213547623029332&tin=02508201610067®Number=0000000000186857&sum=50063 [19:10:55]OFD Sender: Processing packet 30726 [packets to send 10, broken 9] [19:10:55]ProducePacketName [19:10:55]name=ofd_packets/00030726 [19:10:55]OFD Sender: To server: pG, [19:10:55]CommunicateWithHost lk.salyk.kg:30040 [19:10:55]ConnectInit lk.salyk.kg [19:10:55]written 0, free lines is 4095 [19:10:55]Connected sock=10 [19:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 55 C3 04 01 1B BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 43 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 06 78 00 00 35 04 06 00 C2 38 6E 36 9A 54 7E 89 A4 D6 4A AD A9 E8 [19:10:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A0 BB 47 00 FD 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 32 30 39 34 32 31 39 10 04 04 00 06 78 00 00 F4 03 04 00 C3 51 16 67 B6 04 01 00 00 20 29 FC 1D CA 62 44 F9 [19:10:55]CommunicateWithHost err = 0 [19:10:55]CheckOFDResponse [19:10:55]1017 (14) - 77093643461234 [19:10:55]1041 (16) - 0000000002094219 [19:10:55]1040 (4) - 30726 [19:10:55]1012 (4) - 21.10.2024 13:06 [19:10:55]1206 (1) - 0 [19:10:55]OFD Sender: Remove packet 30726 [19:10:55]ProducePacketName [19:10:55]name=ofd_packets/00030726 [19:10:55]NVStorageDeleteData [19:10:55]Write to MH i2c: 01 00 00 0D 60 6D [19:10:55]Write i2c OK [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 [19:10:55]MH_I2C_Read... [19:10:55]Read from MH i2c: 01 07 00 0D 60 00 00 00 00 00 F9 0C 79 [19:10:55]RasterBufferAndPrint [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]line [19:10:55]written 0, free lines is 3330 [19:10:56]MH_Cut [19:10:56]Write to MH i2c: D1 01 00 14 60 01 46 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 01 00 [19:10:56]MH_I2C_Read... [19:10:56]Read from MH i2c: D1 01 00 14 60 00 45 [19:10:56]Write to MH i2c: 01 00 00 15 60 75 [19:10:56]Write i2c OK [19:10:56]MH_I2C_Read... [19:10:56]OFD Sender: No OFD packet to send [19:10:56]*** Cut start [19:10:56]*** Partial cut [19:10:56]*** CUTSNS_PIN = 1 [19:10:56]*** CUTSNS_PIN = 0 [19:10:56]*** Brake cut motor [19:10:57]Read from MH i2c: 01 [19:10:57]MH_I2C_Read... [19:10:57]*** Stop cut motor [19:10:57]*** Cut end [19:10:57]Read from MH i2c: 01 07 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: 01 07 00 15 60 00 00 00 00 00 FF 0F 8A [19:10:57]process_action close_receipt done [19:10:57]requested_data is exist [19:10:57]produce_requested_data [19:10:57]requested_item fm.sn is exist - process it [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 11 00 00 [19:10:57]Write to MH i2c: E2 08 00 16 60 80 11 00 00 00 00 00 00 F0 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 17 00 16 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3E [19:10:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:10:57]wFMCommunicate OK [19:10:57]requested_item fd.num is exist - process it [19:10:57]SAM_PROTO_GetFieldsCounters [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 00 00 [19:10:57]Write to MH i2c: E2 08 00 17 60 80 13 00 00 00 00 00 00 F3 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 62 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 62 00 17 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19:10:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 06 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetFieldsCounters done [19:10:57]requested_item shift.num is exist - process it [19:10:57]requested_item shift.opened is exist - process it [19:10:57]req_shift_opened [19:10:57]FM_GetShiftState [19:10:57]SAM_PROTO_GetShiftState [19:10:57]wFMCommunicate request_size=4 [19:10:57]MH_SAM_APDU [19:10:57]CAPDU: 80 13 01 00 [19:10:57]Write to MH i2c: E2 08 00 18 60 80 13 01 00 00 00 00 00 F5 [19:10:57]Write i2c OK [19:10:57]MH_I2C_Read... [19:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:57]Read from MH i2c: E2 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 [19:10:57]MH_I2C_Read... [19:10:57]Read from MH i2c: E2 0E 00 18 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 71 [19:10:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:10:57]wFMCommunicate OK [19:10:57]SAM_PROTO_GetShiftState done [19:10:57]FM_GetShiftState done [19:10:57]req_shift_opened done [19:10:57]requested_item shift.open_date is exist - process it [19:10:57]req_shift_open_date [19:10:57]req_shift_open_date done [19:10:57]produce_requested_data done [19:10:57]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30726,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:10:57]process_action_free close_receipt [19:10:57]json_value_free [19:10:57]json_value_free done [19:10:57]process_json_proto returns [19:10:57]Send response to host [19:10:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30726,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:10:57]free response buf [19:10:57]execute_script done [19:10:57]execute_script returns [19:10:57]free content buf [19:10:57]Sock 9.Close socket [19:10:57]Sock 9.Thread stoped [19:11:01]OFD Sender: No OFD packet to send [19:11:06]OFD Sender: No OFD packet to send [19:11:11]OFD Sender: No OFD packet to send [19:11:16]OFD Sender: No OFD packet to send [19:11:21]OFD Sender: No OFD packet to send [19:11:26]OFD Sender: No OFD packet to send [19:11:31]OFD Sender: No OFD packet to send [19:11:36]OFD Sender: No OFD packet to send [19:11:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:12:59]accept exits with 7 [19:12:59]New connection [19:12:59]New thread 3067489636 created [19:12:59]Thread 3067346276 joined [19:12:59]Waiting for new connection... [19:12:59] Sock 7.Parse request [19:12:59]Sock 7.Check first char [19:12:59]Sock 7.First char is OK [19:12:59]request: POST /json_proto HTTP/1.0 [19:12:59]Method: POST [19:12:59]URL: /json_proto [19:12:59]Method is POST - this is cgi request [19:12:59]url: /json_proto [19:12:59]query_string will be loaded in cgi processing [19:12:59]execute_cgi json_proto POST (null) [19:12:59]execute_cgi path=json_proto method=POST [19:12:59]POST find Content-Length [19:12:59]Host: 172.17.51.3:8080 [19:12:59]Content-Length: 682 [19:12:59]Content-Type: application/json [19:12:59] [19:12:59]POST finish read [19:12:59]Found Content-Length = 682 [19:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]execute_script... [19:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]POST & json_proto [19:12:59]process_json_proto [19:12:59]json parsed OK: [19:12:59]protocol is kg_v1.0 [19:12:59]action value=close_receipt [19:12:59]process_action close_receipt [19:12:59]cmd_close_receipt [19:12:59]MH_GetDate [19:12:59]Write to MH i2c: F0 00 00 19 60 68 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 19 60 00 C1 A7 16 67 04 C1 95 66 16 [19:12:59]GetLastDocTimeStamp 1729537859 [19:12:59]current date 1729537985 [19:12:59]FM_GetShiftState [19:12:59]SAM_PROTO_GetShiftState [19:12:59]wFMCommunicate request_size=4 [19:12:59]MH_SAM_APDU [19:12:59]CAPDU: 80 13 01 00 [19:12:59]Write to MH i2c: E2 08 00 1A 60 80 13 01 00 00 00 00 00 F7 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:59]Read from MH i2c: E2 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 1A 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 73 [19:12:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:12:59]wFMCommunicate OK [19:12:59]SAM_PROTO_GetShiftState done [19:12:59]FM_GetShiftState done [19:12:59]opened in 1729471058 [19:12:59]opened+sec_in_day 1729557458 [19:12:59]quantity*price = 100015 [19:12:59]sum+1 = 100017 [19:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 224 21.10.2024 19:13 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30727 ФПД: 150721040620163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191305&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30727&fm=150721040620163&tin=02508201610067®Number=0000000000186857&sum=100000 [19:13:00]StoreToDocumentArchive [19:13:00]shift 115 fd 30727 [19:13:00]save to /storage/0115/doc_00030727 [19:13:00]save last doc name /storage/0115/doc_00030727 to /storage/kkm_last_doc_name [19:13:00]save OK [19:13:00]Clear old archive folders... [19:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:00]tlvbuf is 01F4BC30 [19:13:00]SAM_PROTO_ClearQueue [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 09 00 00 [19:13:00]Write to MH i2c: E2 08 00 27 60 80 09 00 00 00 00 00 00 F9 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 27 60 00 90 00 FB [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_ClearQueue done [19:13:00]KKMCreateOFDPacket [19:13:00]OFDProtocolAddRootSTLVToBuf [19:13:00]FM_MakeSignedData [19:13:00]FM_MakeSignedData [19:13:00]SAM_PROTO_SignData [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 01 02 [19:13:00]Write to MH i2c: E2 08 00 28 60 80 0D 01 02 00 00 00 00 01 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 28 60 00 90 00 FC [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=255 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C1 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 78 00 00 35 04 06 00 89 [19:13:00]Write to MH i2c: E2 02 01 29 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C1 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 78 00 00 35 04 06 00 89 00 00 CC [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 29 60 00 90 00 FD [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=10 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 05 14 7A 16 1A 83 [19:13:00]Write to MH i2c: E2 0D 00 2A 60 80 0D 02 02 05 00 14 7A 16 1A 83 00 00 4F [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 2A 60 00 90 00 FE [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 03 02 [19:13:00]Write to MH i2c: E2 08 00 2B 60 80 0D 03 02 00 00 00 00 06 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 2B 60 00 43 B2 61 92 B0 55 7D 35 90 00 A6 [19:13:00]RAPDU: 43 B2 61 92 B0 55 7D 35 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_SignData done [19:13:00]FM_MakeSignedData done [19:13:00]CreateOFDProtocolMessage [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 11 00 00 [19:13:00]Write to MH i2c: E2 08 00 2C 60 80 11 00 00 00 00 00 00 06 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 17 00 2C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 54 [19:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:13:00]wFMCommunicate OK [19:13:00]CreateOFDProtocolMessage done [19:13:00]OFDSenderStorePacket 30727 [19:13:00]StoreOFDPacket docnum=30727 [19:13:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 59 07 01 55 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C1 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 78 00 00 35 04 06 00 89 14 7A 16 1A 83 43 B2 61 92 B0 55 7D 35 [19:13:00]CheckFolder [19:13:00]dirname=/storage/ofd_packets [19:13:00]CheckFolder done [19:13:00]ProducePacketName [19:13:00]name=ofd_packets/00030727 [19:13:00]NVStorageSaveData ofd_packets/00030727 [19:13:00]File name is /storage/ofd_packets/00030727 [19:13:00]Write 301 bytes [19:13:00]NVStorageSaveData done [19:13:00]OFDSenderStorePacket done [19:13:00]KKMCreateOFDPacket done [19:13:00]NVStorageSaveData kkm_last_timestamp [19:13:00]File name is /storage/kkm_last_timestamp [19:13:00]Write 4 bytes [19:13:00]NVStorageSaveData done [19:13:00]OFD Sender: Processing packet 30727 [packets to send 10, broken 9] [19:13:00]ProducePacketName [19:13:00]name=ofd_packets/00030727 [19:13:00]OFD Sender: To server: pG, [19:13:00]CommunicateWithHost lk.salyk.kg:30040 [19:13:00]ConnectInit lk.salyk.kg [19:13:00]ExternCall_PrintAddStr [19:13:00]wPrintStart [19:13:00]Write to MH i2c: 01 00 00 2D 60 8D [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: 01 07 00 2D 60 00 00 00 00 00 FF 0F A2 [19:13:00]RasterBufferAndPrint [19:13:00]line Счет N : (1)343140 [19:13:00]line ИНН: 02508201610067 [19:13:00]line Контрольно-Кассовый Чек [19:13:00]line ПРОДАЖА [19:13:00]line ТРК (МРК, ГНК) : 43 [19:13:00]line Товар: 2710124130 [19:13:00]line Аи-92-К-2 [19:13:00]line 14.950 * 66.90 [19:13:00]line = 1000.16 [19:13:00]line НДС 12% НСП 1% [19:13:00]line > о реализуемом товаре [19:13:00]line ОКРУГЛЕНИЕ: -0.16 [19:13:00]line ИТОГО: 1000.00 [19:13:00]line Внесено: 1000.00 [19:13:00]line СДАЧА: 0.00 [19:13:00]line НСП 1% : 8.85 [19:13:00]line НДС 12% : 106.21 [19:13:00]line Наличными: 1000.00 [19:13:00]line Безнал.: 0.00 [19:13:00]line Место: АЗС № 78 "Партнер Нефть" [19:13:00]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:13:00]line СНО: Общий режим [19:13:00]line Чек 224 21.10.2024 19:13 [19:13:00]line Смена: 115 ФФД: 1.0 [19:13:00]line ЗНМ: 0300000137 [19:13:00]line РНМ: 0000000000186857 [19:13:00]line Версия ККМ: v1.0 [19:13:00]line ФМ: 0000000002094219 [19:13:00]line ФД: 30727 [19:13:00]line ФПД: 150721040620163 [19:13:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191305&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30727&fm=150721040620163&tin=02508201610067®Number=0000000000186857&sum=100000 [19:13:00]Connected sock=11 [19:13:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 22 59 07 01 55 80 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 C1 A7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 78 00 00 35 04 06 00 89 14 7A 16 1A 83 43 B2 61 92 B0 55 7D 35 [19:13:01]written 0, free lines is 4095 [19:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 54 37 47 00 4F E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 07 78 00 00 F4 03 04 00 41 52 16 67 B6 04 01 00 00 DE 3F 5F F6 76 23 91 62 [19:13:01]CommunicateWithHost err = 0 [19:13:01]CheckOFDResponse [19:13:01]1017 (14) - 77093643461234 [19:13:01]1041 (16) - 0000000002094219 [19:13:01]1040 (4) - 30727 [19:13:01]1012 (4) - 21.10.2024 13:08 [19:13:01]1206 (1) - 0 [19:13:01]OFD Sender: Remove packet 30727 [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00030727 [19:13:01]NVStorageDeleteData [19:13:01]Write to MH i2c: 01 00 00 58 60 B8 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 58 60 00 00 00 00 00 EC 0C B7 [19:13:01]RasterBufferAndPrint [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]written 0, free lines is 3317 [19:13:01]MH_Cut [19:13:01]Write to MH i2c: D1 01 00 5F 60 01 91 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 5F 60 00 90 [19:13:01]Write to MH i2c: 01 00 00 60 60 C0 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]OFD Sender: No OFD packet to send [19:13:02]*** Cut start [19:13:02]*** Partial cut [19:13:02]*** CUTSNS_PIN = 1 [19:13:02]*** CUTSNS_PIN = 0 [19:13:02]*** Brake cut motor [19:13:02]Read from MH i2c: 01 [19:13:02]MH_I2C_Read... [19:13:02]*** Stop cut motor [19:13:02]*** Cut end [19:13:02]Read from MH i2c: 01 07 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: 01 07 00 60 60 00 00 00 00 00 FF 0F D5 [19:13:02]process_action close_receipt done [19:13:02]requested_data is exist [19:13:02]produce_requested_data [19:13:02]requested_item fm.sn is exist - process it [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 11 00 00 [19:13:02]Write to MH i2c: E2 08 00 61 60 80 11 00 00 00 00 00 00 3B [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 17 00 61 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 89 [19:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:13:02]wFMCommunicate OK [19:13:02]requested_item fd.num is exist - process it [19:13:02]SAM_PROTO_GetFieldsCounters [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 00 00 [19:13:02]Write to MH i2c: E2 08 00 62 60 80 13 00 00 00 00 00 00 3E [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:02]Read from MH i2c: E2 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 62 00 [19:13:02]MH_I2C_Read... [19:13:02]Read from MH i2c: E2 62 00 62 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [19:13:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 07 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:02]wFMCommunicate OK [19:13:02]SAM_PROTO_GetFieldsCounters done [19:13:02]requested_item shift.num is exist - process it [19:13:02]requested_item shift.opened is exist - process it [19:13:02]req_shift_opened [19:13:02]FM_GetShiftState [19:13:02]SAM_PROTO_GetShiftState [19:13:02]wFMCommunicate request_size=4 [19:13:02]MH_SAM_APDU [19:13:02]CAPDU: 80 13 01 00 [19:13:02]Write to MH i2c: E2 08 00 63 60 80 13 01 00 00 00 00 00 40 [19:13:02]Write i2c OK [19:13:02]MH_I2C_Read... [19:13:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 63 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BC [19:13:03]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetShiftState done [19:13:03]FM_GetShiftState done [19:13:03]req_shift_opened done [19:13:03]requested_item shift.open_date is exist - process it [19:13:03]req_shift_open_date [19:13:03]req_shift_open_date done [19:13:03]produce_requested_data done [19:13:03]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30727,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:13:03]process_action_free close_receipt [19:13:03]json_value_free [19:13:03]json_value_free done [19:13:03]process_json_proto returns [19:13:03]Send response to host [19:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30727,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:13:03]free response buf [19:13:03]execute_script done [19:13:03]execute_script returns [19:13:03]free content buf [19:13:03]Sock 7.Close socket [19:13:03]Sock 7.Thread stoped [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:12]accept exits with 10 [19:15:12]New connection [19:15:12]New thread 3067346276 created [19:15:12]Thread 3067489636 joined [19:15:12]Waiting for new connection... [19:15:12] Sock 10.Parse request [19:15:12]Sock 10.Check first char [19:15:12]Sock 10.First char is OK [19:15:12]request: POST /json_proto HTTP/1.0 [19:15:12]Method: POST [19:15:12]URL: /json_proto [19:15:12]Method is POST - this is cgi request [19:15:12]url: /json_proto [19:15:12]query_string will be loaded in cgi processing [19:15:12]execute_cgi json_proto POST (null) [19:15:12]execute_cgi path=json_proto method=POST [19:15:12]POST find Content-Length [19:15:12]Host: 172.17.51.3:8080 [19:15:12]Content-Length: 679 [19:15:12]Content-Type: application/json [19:15:12] [19:15:12]POST finish read [19:15:12]Found Content-Length = 679 [19:15:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:12]execute_script... [19:15:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:12]POST & json_proto [19:15:12]process_json_proto [19:15:12]json parsed OK: [19:15:12]protocol is kg_v1.0 [19:15:12]action value=close_receipt [19:15:12]process_action close_receipt [19:15:12]cmd_close_receipt [19:15:12]MH_GetDate [19:15:12]Write to MH i2c: F0 00 00 64 60 B3 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 09 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: F0 09 00 64 60 00 46 A8 16 67 04 C1 95 66 E7 [19:15:12]GetLastDocTimeStamp 1729537985 [19:15:12]current date 1729538118 [19:15:12]FM_GetShiftState [19:15:12]SAM_PROTO_GetShiftState [19:15:12]wFMCommunicate request_size=4 [19:15:12]MH_SAM_APDU [19:15:12]CAPDU: 80 13 01 00 [19:15:12]Write to MH i2c: E2 08 00 65 60 80 13 01 00 00 00 00 00 42 [19:15:12]Write i2c OK [19:15:12]MH_I2C_Read... [19:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:12]Read from MH i2c: E2 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 [19:15:12]MH_I2C_Read... [19:15:12]Read from MH i2c: E2 0E 00 65 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BE [19:15:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:15:12]wFMCommunicate OK [19:15:12]SAM_PROTO_GetShiftState done [19:15:12]FM_GetShiftState done [19:15:12]opened in 1729471058 [19:15:12]opened+sec_in_day 1729557458 [19:15:12]quantity*price = 100050 [19:15:12]sum+1 = 100052 [19:15:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 225 21.10.2024 19:15 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30728 ФПД: 63909014108404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30728&fm=63909014108404&tin=02508201610067®Number=0000000000186857&sum=100000 [19:15:13]StoreToDocumentArchive [19:15:13]shift 115 fd 30728 [19:15:13]save to /storage/0115/doc_00030728 [19:15:13]save last doc name /storage/0115/doc_00030728 to /storage/kkm_last_doc_name [19:15:13]save OK [19:15:13]Clear old archive folders... [19:15:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:15:13]tlvbuf is 01F0A290 [19:15:13]SAM_PROTO_ClearQueue [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 09 00 00 [19:15:13]Write to MH i2c: E2 08 00 72 60 80 09 00 00 00 00 00 00 44 [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 72 60 00 90 00 46 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]SAM_PROTO_ClearQueue done [19:15:13]KKMCreateOFDPacket [19:15:13]OFDProtocolAddRootSTLVToBuf [19:15:13]FM_MakeSignedData [19:15:13]FM_MakeSignedData [19:15:13]SAM_PROTO_SignData [19:15:13]wFMCommunicate request_size=4 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 01 02 [19:15:13]Write to MH i2c: E2 08 00 73 60 80 0D 01 02 00 00 00 00 4C [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 73 60 00 90 00 47 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]wFMCommunicate request_size=255 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 46 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 78 00 00 35 04 06 00 3A 1F FA 15 [19:15:13]Write to MH i2c: E2 02 01 74 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 46 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 78 00 00 35 04 06 00 3A 1F FA 15 00 00 7A [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:13]Read from MH i2c: E2 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 [19:15:13]MH_I2C_Read... [19:15:13]Read from MH i2c: E2 03 00 74 60 00 90 00 48 [19:15:13]RAPDU: 90 00 [19:15:13]wFMCommunicate OK [19:15:13]wFMCommunicate request_size=7 [19:15:13]MH_SAM_APDU [19:15:13]CAPDU: 80 0D 02 02 02 78 F4 [19:15:13]Write to MH i2c: E2 0A 00 75 60 80 0D 02 02 02 00 78 F4 00 00 BF [19:15:13]Write i2c OK [19:15:13]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 03 00 75 60 00 90 00 49 [19:15:14]RAPDU: 90 00 [19:15:14]wFMCommunicate OK [19:15:14]wFMCommunicate request_size=4 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 0D 03 02 [19:15:14]Write to MH i2c: E2 08 00 76 60 80 0D 03 02 00 00 00 00 51 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 0B 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 0B 00 76 60 00 61 7A 93 C7 A9 7F A7 4D 90 00 A3 [19:15:14]RAPDU: 61 7A 93 C7 A9 7F A7 4D 90 00 [19:15:14]wFMCommunicate OK [19:15:14]SAM_PROTO_SignData done [19:15:14]FM_MakeSignedData done [19:15:14]CreateOFDProtocolMessage [19:15:14]wFMCommunicate request_size=4 [19:15:14]MH_SAM_APDU [19:15:14]CAPDU: 80 11 00 00 [19:15:14]Write to MH i2c: E2 08 00 77 60 80 11 00 00 00 00 00 00 51 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:14]Read from MH i2c: E2 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 17 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: E2 17 00 77 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9F [19:15:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:15:14]wFMCommunicate OK [19:15:14]CreateOFDProtocolMessage done [19:15:14]OFDSenderStorePacket 30728 [19:15:14]StoreOFDPacket docnum=30728 [19:15:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 C2 04 01 12 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 46 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 78 00 00 35 04 06 00 3A 1F FA 15 78 F4 61 7A 93 C7 A9 7F A7 4D [19:15:14]CheckFolder [19:15:14]dirname=/storage/ofd_packets [19:15:14]CheckFolder done [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00030728 [19:15:14]NVStorageSaveData ofd_packets/00030728 [19:15:14]File name is /storage/ofd_packets/00030728 [19:15:14]Write 298 bytes [19:15:14]NVStorageSaveData done [19:15:14]OFDSenderStorePacket done [19:15:14]KKMCreateOFDPacket done [19:15:14]NVStorageSaveData kkm_last_timestamp [19:15:14]File name is /storage/kkm_last_timestamp [19:15:14]Write 4 bytes [19:15:14]NVStorageSaveData done [19:15:14]ExternCall_PrintAddStr [19:15:14]wPrintStart [19:15:14]Write to MH i2c: 01 00 00 78 60 D8 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 78 60 00 00 00 00 00 FF 0F ED [19:15:14]RasterBufferAndPrint [19:15:14]line Счет N : (1)343141 [19:15:14]line ИНН: 02508201610067 [19:15:14]line Контрольно-Кассовый Чек [19:15:14]line ПРОДАЖА [19:15:14]line ТРК (МРК, ГНК) : 64 [19:15:14]line Товар: 2710194210 [19:15:14]line ДТ-К-2 [19:15:14]line 13.130 * 76.20 [19:15:14]line = 1000.51 [19:15:14]line НДС 12% НСП 1% [19:15:14]line > о реализуемом товаре [19:15:14]line ОКРУГЛЕНИЕ: -0.51 [19:15:14]line ИТОГО: 1000.00 [19:15:14]line Внесено: 1000.00 [19:15:14]line СДАЧА: 0.00 [19:15:14]line НСП 1% : 8.85 [19:15:14]line НДС 12% : 106.25 [19:15:14]line Наличными: 1000.00 [19:15:14]line Безнал.: 0.00 [19:15:14]line Место: АЗС № 78 "Партнер Нефть" [19:15:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:15:14]line СНО: Общий режим [19:15:14]line Чек 225 21.10.2024 19:15 [19:15:14]line Смена: 115 ФФД: 1.0 [19:15:14]line ЗНМ: 0300000137 [19:15:14]line РНМ: 0000000000186857 [19:15:14]line Версия ККМ: v1.0 [19:15:14]line ФМ: 0000000002094219 [19:15:14]line ФД: 30728 [19:15:14]line ФПД: 63909014108404 [19:15:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191518&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30728&fm=63909014108404&tin=02508201610067®Number=0000000000186857&sum=100000 [19:15:14]OFD Sender: Processing packet 30728 [packets to send 10, broken 9] [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00030728 [19:15:14]OFD Sender: To server: pG, [19:15:14]CommunicateWithHost lk.salyk.kg:30040 [19:15:14]ConnectInit lk.salyk.kg [19:15:14]written 0, free lines is 4095 [19:15:14]Connected sock=9 [19:15:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 52 C2 04 01 12 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 46 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 08 78 00 00 35 04 06 00 3A 1F FA 15 78 F4 61 7A 93 C7 A9 7F A7 4D [19:15:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C0 E2 47 00 D0 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 32 30 39 34 32 31 39 10 04 04 00 08 78 00 00 F4 03 04 00 C6 52 16 67 B6 04 01 00 00 57 DB B8 0E B0 C2 DC 32 [19:15:14]CommunicateWithHost err = 0 [19:15:14]CheckOFDResponse [19:15:14]1017 (14) - 77093643461234 [19:15:14]1041 (16) - 0000000002094219 [19:15:14]1040 (4) - 30728 [19:15:14]1012 (4) - 21.10.2024 13:10 [19:15:14]1206 (1) - 0 [19:15:14]OFD Sender: Remove packet 30728 [19:15:14]ProducePacketName [19:15:14]name=ofd_packets/00030728 [19:15:14]NVStorageDeleteData [19:15:14]Write to MH i2c: 01 00 00 A3 60 03 [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: 01 07 00 A3 60 00 00 00 00 00 DF 0C F5 [19:15:14]RasterBufferAndPrint [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]line [19:15:14]written 0, free lines is 3304 [19:15:14]MH_Cut [19:15:14]Write to MH i2c: D1 01 00 AA 60 01 DC [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 01 00 [19:15:14]MH_I2C_Read... [19:15:14]Read from MH i2c: D1 01 00 AA 60 00 DB [19:15:14]Write to MH i2c: 01 00 00 AB 60 0B [19:15:14]Write i2c OK [19:15:14]MH_I2C_Read... [19:15:15]OFD Sender: No OFD packet to send [19:15:15]*** Cut start [19:15:15]*** Partial cut [19:15:15]*** CUTSNS_PIN = 1 [19:15:15]*** CUTSNS_PIN = 0 [19:15:15]*** Brake cut motor [19:15:16]Read from MH i2c: 01 [19:15:16]MH_I2C_Read... [19:15:16]*** Stop cut motor [19:15:16]*** Cut end [19:15:16]Read from MH i2c: 01 07 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: 01 07 00 AB 60 00 00 00 00 00 FF 0F 20 [19:15:16]process_action close_receipt done [19:15:16]requested_data is exist [19:15:16]produce_requested_data [19:15:16]requested_item fm.sn is exist - process it [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 11 00 00 [19:15:16]Write to MH i2c: E2 08 00 AC 60 80 11 00 00 00 00 00 00 86 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:16]Read from MH i2c: E2 17 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 17 00 AC 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D4 [19:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:15:16]wFMCommunicate OK [19:15:16]requested_item fd.num is exist - process it [19:15:16]SAM_PROTO_GetFieldsCounters [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 13 00 00 [19:15:16]Write to MH i2c: E2 08 00 AD 60 80 13 00 00 00 00 00 00 89 [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 62 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 62 00 AD 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [19:15:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 08 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_GetFieldsCounters done [19:15:16]requested_item shift.num is exist - process it [19:15:16]requested_item shift.opened is exist - process it [19:15:16]req_shift_opened [19:15:16]FM_GetShiftState [19:15:16]SAM_PROTO_GetShiftState [19:15:16]wFMCommunicate request_size=4 [19:15:16]MH_SAM_APDU [19:15:16]CAPDU: 80 13 01 00 [19:15:16]Write to MH i2c: E2 08 00 AE 60 80 13 01 00 00 00 00 00 8B [19:15:16]Write i2c OK [19:15:16]MH_I2C_Read... [19:15:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:16]Read from MH i2c: E2 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 [19:15:16]MH_I2C_Read... [19:15:16]Read from MH i2c: E2 0E 00 AE 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 07 [19:15:16]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:15:16]wFMCommunicate OK [19:15:16]SAM_PROTO_GetShiftState done [19:15:16]FM_GetShiftState done [19:15:16]req_shift_opened done [19:15:16]requested_item shift.open_date is exist - process it [19:15:16]req_shift_open_date [19:15:16]req_shift_open_date done [19:15:16]produce_requested_data done [19:15:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30728,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:15:16]process_action_free close_receipt [19:15:16]json_value_free [19:15:16]json_value_free done [19:15:16]process_json_proto returns [19:15:16]Send response to host [19:15:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30728,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:15:16]free response buf [19:15:16]execute_script done [19:15:16]execute_script returns [19:15:16]free content buf [19:15:16]Sock 10.Close socket [19:15:16]Sock 10.Thread stoped [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:09]accept exits with 7 [19:18:09]New connection [19:18:09]New thread 3067489636 created [19:18:09]Thread 3067346276 joined [19:18:09]Waiting for new connection... [19:18:09] Sock 7.Parse request [19:18:09]Sock 7.Check first char [19:18:09]Sock 7.First char is OK [19:18:09]request: POST /json_proto HTTP/1.0 [19:18:09]Method: POST [19:18:09]URL: /json_proto [19:18:09]Method is POST - this is cgi request [19:18:09]url: /json_proto [19:18:09]query_string will be loaded in cgi processing [19:18:09]execute_cgi json_proto POST (null) [19:18:09]execute_cgi path=json_proto method=POST [19:18:09]POST find Content-Length [19:18:09]Host: 172.17.51.3:8080 [19:18:09]Content-Length: 679 [19:18:09]Content-Type: application/json [19:18:09] [19:18:09]POST finish read [19:18:09]Found Content-Length = 679 [19:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:09]execute_script... [19:18:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:09]POST & json_proto [19:18:09]process_json_proto [19:18:09]json parsed OK: [19:18:09]protocol is kg_v1.0 [19:18:09]action value=close_receipt [19:18:09]process_action close_receipt [19:18:09]cmd_close_receipt [19:18:09]MH_GetDate [19:18:09]Write to MH i2c: F0 00 00 AF 60 FE [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 09 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: F0 09 00 AF 60 00 F8 A8 16 67 04 C1 95 66 E4 [19:18:09]GetLastDocTimeStamp 1729538118 [19:18:09]current date 1729538296 [19:18:09]FM_GetShiftState [19:18:09]SAM_PROTO_GetShiftState [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 13 01 00 [19:18:09]Write to MH i2c: E2 08 00 B0 60 80 13 01 00 00 00 00 00 8D [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 0E 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 0E 00 B0 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 09 [19:18:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:18:09]wFMCommunicate OK [19:18:09]SAM_PROTO_GetShiftState done [19:18:09]FM_GetShiftState done [19:18:09]opened in 1729471058 [19:18:09]opened+sec_in_day 1729557458 [19:18:09]quantity*price = 200025 [19:18:09]sum+1 = 200026 [19:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 226 21.10.2024 19:18 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30729 ФПД: 149880651821172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30729&fm=149880651821172&tin=02508201610067®Number=0000000000186857&sum=200000 [19:18:11]StoreToDocumentArchive [19:18:11]shift 115 fd 30729 [19:18:11]save to /storage/0115/doc_00030729 [19:18:11]save last doc name /storage/0115/doc_00030729 to /storage/kkm_last_doc_name [19:18:11]save OK [19:18:11]Clear old archive folders... [19:18:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:18:11]tlvbuf is 01E18550 [19:18:11]SAM_PROTO_ClearQueue [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 09 00 00 [19:18:11]Write to MH i2c: E2 08 00 BD 60 80 09 00 00 00 00 00 00 8F [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 BD 60 00 90 00 91 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]SAM_PROTO_ClearQueue done [19:18:11]KKMCreateOFDPacket [19:18:11]OFDProtocolAddRootSTLVToBuf [19:18:11]FM_MakeSignedData [19:18:11]FM_MakeSignedData [19:18:11]SAM_PROTO_SignData [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 01 02 [19:18:11]Write to MH i2c: E2 08 00 BE 60 80 0D 01 02 00 00 00 00 97 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 BE 60 00 90 00 92 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]wFMCommunicate request_size=255 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 F8 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 78 00 00 35 04 06 00 88 50 CF 02 [19:18:11]Write to MH i2c: E2 02 01 BF 60 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 F8 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 78 00 00 35 04 06 00 88 50 CF 02 00 00 A8 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 BF 60 00 90 00 93 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]wFMCommunicate request_size=7 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 02 02 02 B0 74 [19:18:11]Write to MH i2c: E2 0A 00 C0 60 80 0D 02 02 02 00 B0 74 00 00 C2 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 03 00 C0 60 00 90 00 94 [19:18:11]RAPDU: 90 00 [19:18:11]wFMCommunicate OK [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 0D 03 02 [19:18:11]Write to MH i2c: E2 08 00 C1 60 80 0D 03 02 00 00 00 00 9C [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 0B 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 0B 00 C1 60 00 C6 87 31 D1 32 32 CA 29 90 00 43 [19:18:11]RAPDU: C6 87 31 D1 32 32 CA 29 90 00 [19:18:11]wFMCommunicate OK [19:18:11]SAM_PROTO_SignData done [19:18:11]FM_MakeSignedData done [19:18:11]CreateOFDProtocolMessage [19:18:11]wFMCommunicate request_size=4 [19:18:11]MH_SAM_APDU [19:18:11]CAPDU: 80 11 00 00 [19:18:11]Write to MH i2c: E2 08 00 C2 60 80 11 00 00 00 00 00 00 9C [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:11]Read from MH i2c: E2 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 17 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: E2 17 00 C2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 EA [19:18:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:18:11]wFMCommunicate OK [19:18:11]CreateOFDProtocolMessage done [19:18:11]OFDSenderStorePacket 30729 [19:18:11]StoreOFDPacket docnum=30729 [19:18:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 49 7A 04 01 4D EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 F8 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 78 00 00 35 04 06 00 88 50 CF 02 B0 74 C6 87 31 D1 32 32 CA 29 [19:18:11]CheckFolder [19:18:11]dirname=/storage/ofd_packets [19:18:11]CheckFolder done [19:18:11]ProducePacketName [19:18:11]name=ofd_packets/00030729 [19:18:11]NVStorageSaveData ofd_packets/00030729 [19:18:11]File name is /storage/ofd_packets/00030729 [19:18:11]Write 298 bytes [19:18:11]NVStorageSaveData done [19:18:11]OFDSenderStorePacket done [19:18:11]KKMCreateOFDPacket done [19:18:11]NVStorageSaveData kkm_last_timestamp [19:18:11]File name is /storage/kkm_last_timestamp [19:18:11]Write 4 bytes [19:18:11]NVStorageSaveData done [19:18:11]ExternCall_PrintAddStr [19:18:11]wPrintStart [19:18:11]Write to MH i2c: 01 00 00 C3 60 23 [19:18:11]Write i2c OK [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 07 00 [19:18:11]MH_I2C_Read... [19:18:11]Read from MH i2c: 01 07 00 C3 60 00 00 00 00 00 FF 0F 38 [19:18:11]RasterBufferAndPrint [19:18:11]line Счет N : (1)343143 [19:18:11]line ИНН: 02508201610067 [19:18:11]line Контрольно-Кассовый Чек [19:18:11]line ПРОДАЖА [19:18:11]line ТРК (МРК, ГНК) : 64 [19:18:11]line Товар: 2710194210 [19:18:11]line ДТ-К-2 [19:18:11]line 26.250 * 76.20 [19:18:11]line = 2000.25 [19:18:11]line НДС 12% НСП 1% [19:18:11]line > о реализуемом товаре [19:18:11]line ОКРУГЛЕНИЕ: -0.25 [19:18:11]line ИТОГО: 2000.00 [19:18:11]line Внесено: 2000.00 [19:18:11]line СДАЧА: 0.00 [19:18:11]line НСП 1% : 17.70 [19:18:11]line НДС 12% : 212.42 [19:18:11]line Наличными: 2000.00 [19:18:11]line Безнал.: 0.00 [19:18:11]line Место: АЗС № 78 "Партнер Нефть" [19:18:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:18:11]line СНО: Общий режим [19:18:11]line Чек 226 21.10.2024 19:18 [19:18:11]line Смена: 115 ФФД: 1.0 [19:18:11]line ЗНМ: 0300000137 [19:18:11]line РНМ: 0000000000186857 [19:18:11]line Версия ККМ: v1.0 [19:18:11]line ФМ: 0000000002094219 [19:18:11]line ФД: 30729 [19:18:11]line ФПД: 149880651821172 [19:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30729&fm=149880651821172&tin=02508201610067®Number=0000000000186857&sum=200000 [19:18:11]OFD Sender: Processing packet 30729 [packets to send 10, broken 9] [19:18:11]ProducePacketName [19:18:11]name=ofd_packets/00030729 [19:18:11]OFD Sender: To server: pG, [19:18:11]CommunicateWithHost lk.salyk.kg:30040 [19:18:11]ConnectInit lk.salyk.kg [19:18:11]written 0, free lines is 4095 [19:18:11]Connected sock=10 [19:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 49 7A 04 01 4D EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 F8 A8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 78 00 00 35 04 06 00 88 50 CF 02 B0 74 C6 87 31 D1 32 32 CA 29 [19:18:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0D 13 47 00 B3 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 09 78 00 00 F4 03 04 00 78 53 16 67 B6 04 01 00 00 8E DA 56 B0 EA 6A 73 D5 [19:18:12]CommunicateWithHost err = 0 [19:18:12]CheckOFDResponse [19:18:12]1017 (14) - 77093643461234 [19:18:12]1041 (16) - 0000000002094219 [19:18:12]1040 (4) - 30729 [19:18:12]1012 (4) - 21.10.2024 13:13 [19:18:12]1206 (1) - 0 [19:18:12]OFD Sender: Remove packet 30729 [19:18:12]ProducePacketName [19:18:12]name=ofd_packets/00030729 [19:18:12]NVStorageDeleteData [19:18:12]Write to MH i2c: 01 00 00 EE 60 4E [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 07 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 07 00 EE 60 00 00 00 00 00 EB 0C 4C [19:18:12]RasterBufferAndPrint [19:18:12]line [19:18:12]line [19:18:12]line [19:18:12]line [19:18:12]line [19:18:12]written 0, free lines is 3313 [19:18:12]MH_Cut [19:18:12]Write to MH i2c: D1 01 00 F5 60 01 27 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: D1 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: D1 01 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: D1 01 00 F5 60 00 26 [19:18:12]Write to MH i2c: 01 00 00 F6 60 56 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]OFD Sender: No OFD packet to send [19:18:13]*** Cut start [19:18:13]*** Partial cut [19:18:13]*** CUTSNS_PIN = 1 [19:18:13]*** CUTSNS_PIN = 0 [19:18:13]*** Brake cut motor [19:18:13]Read from MH i2c: 01 [19:18:13]MH_I2C_Read... [19:18:13]*** Stop cut motor [19:18:13]*** Cut end [19:18:13]Read from MH i2c: 01 07 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: 01 07 00 F6 60 00 00 00 00 00 FF 0F 6B [19:18:13]process_action close_receipt done [19:18:13]requested_data is exist [19:18:13]produce_requested_data [19:18:13]requested_item fm.sn is exist - process it [19:18:13]wFMCommunicate request_size=4 [19:18:13]MH_SAM_APDU [19:18:13]CAPDU: 80 11 00 00 [19:18:13]Write to MH i2c: E2 08 00 F7 60 80 11 00 00 00 00 00 00 D1 [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:13]Read from MH i2c: E2 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 17 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 17 00 F7 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1F [19:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:18:13]wFMCommunicate OK [19:18:13]requested_item fd.num is exist - process it [19:18:13]SAM_PROTO_GetFieldsCounters [19:18:13]wFMCommunicate request_size=4 [19:18:13]MH_SAM_APDU [19:18:13]CAPDU: 80 13 00 00 [19:18:13]Write to MH i2c: E2 08 00 F8 60 80 13 00 00 00 00 00 00 D4 [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:13]Read from MH i2c: E2 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 62 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 62 00 F8 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [19:18:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 09 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:13]wFMCommunicate OK [19:18:13]SAM_PROTO_GetFieldsCounters done [19:18:13]requested_item shift.num is exist - process it [19:18:13]requested_item shift.opened is exist - process it [19:18:13]req_shift_opened [19:18:13]FM_GetShiftState [19:18:13]SAM_PROTO_GetShiftState [19:18:13]wFMCommunicate request_size=4 [19:18:13]MH_SAM_APDU [19:18:13]CAPDU: 80 13 01 00 [19:18:13]Write to MH i2c: E2 08 00 F9 60 80 13 01 00 00 00 00 00 D6 [19:18:13]Write i2c OK [19:18:13]MH_I2C_Read... [19:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:13]Read from MH i2c: E2 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 0E 00 [19:18:13]MH_I2C_Read... [19:18:13]Read from MH i2c: E2 0E 00 F9 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 52 [19:18:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:18:13]wFMCommunicate OK [19:18:13]SAM_PROTO_GetShiftState done [19:18:13]FM_GetShiftState done [19:18:13]req_shift_opened done [19:18:13]requested_item shift.open_date is exist - process it [19:18:13]req_shift_open_date [19:18:13]req_shift_open_date done [19:18:13]produce_requested_data done [19:18:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30729,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:18:13]process_action_free close_receipt [19:18:13]json_value_free [19:18:13]json_value_free done [19:18:13]process_json_proto returns [19:18:13]Send response to host [19:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30729,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:18:13]free response buf [19:18:13]execute_script done [19:18:13]execute_script returns [19:18:13]free content buf [19:18:13]Sock 7.Close socket [19:18:13]Sock 7.Thread stoped [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:12]OFD Sender: No OFD packet to send [19:21:17]OFD Sender: No OFD packet to send [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:45]accept exits with 9 [19:21:45]New connection [19:21:45]New thread 3067346276 created [19:21:45]Thread 3067489636 joined [19:21:45]Waiting for new connection... [19:21:45] Sock 9.Parse request [19:21:45]Sock 9.Check first char [19:21:45]Sock 9.First char is OK [19:21:45]request: POST /json_proto HTTP/1.0 [19:21:45]Method: POST [19:21:45]URL: /json_proto [19:21:45]Method is POST - this is cgi request [19:21:45]url: /json_proto [19:21:45]query_string will be loaded in cgi processing [19:21:45]execute_cgi json_proto POST (null) [19:21:45]execute_cgi path=json_proto method=POST [19:21:45]POST find Content-Length [19:21:45]Host: 172.17.51.3:8080 [19:21:45]Content-Length: 840 [19:21:45]Content-Type: application/json [19:21:45] [19:21:45]POST finish read [19:21:45]Found Content-Length = 840 [19:21:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:45]execute_script... [19:21:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:45]POST & json_proto [19:21:45]process_json_proto [19:21:45]json parsed OK: [19:21:45]protocol is kg_v1.0 [19:21:45]action value=close_receipt [19:21:45]process_action close_receipt [19:21:45]cmd_close_receipt [19:21:45]MH_GetDate [19:21:45]Write to MH i2c: F0 00 00 FA 60 49 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: F0 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: F0 09 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: F0 09 00 FA 60 00 D0 A9 16 67 04 C1 95 66 08 [19:21:45]GetLastDocTimeStamp 1729538296 [19:21:45]current date 1729538512 [19:21:45]FM_GetShiftState [19:21:45]SAM_PROTO_GetShiftState [19:21:45]wFMCommunicate request_size=4 [19:21:45]MH_SAM_APDU [19:21:45]CAPDU: 80 13 01 00 [19:21:45]Write to MH i2c: E2 08 00 FB 60 80 13 01 00 00 00 00 00 D8 [19:21:45]Write i2c OK [19:21:45]MH_I2C_Read... [19:21:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:45]Read from MH i2c: E2 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0E 00 [19:21:45]MH_I2C_Read... [19:21:45]Read from MH i2c: E2 0E 00 FB 60 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 54 [19:21:45]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:21:45]wFMCommunicate OK [19:21:45]SAM_PROTO_GetShiftState done [19:21:45]FM_GetShiftState done [19:21:45]opened in 1729471058 [19:21:45]opened+sec_in_day 1729557458 [19:21:45]quantity*price = 20003 [19:21:45]sum+1 = 20004 [19:21:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 227 21.10.2024 19:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30730 ФПД: 212901409100628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30730&fm=212901409100628&tin=02508201610067®Number=0000000000186857&sum=20003 [19:21:46]StoreToDocumentArchive [19:21:46]shift 115 fd 30730 [19:21:46]save to /storage/0115/doc_00030730 [19:21:46]save last doc name /storage/0115/doc_00030730 to /storage/kkm_last_doc_name [19:21:46]save OK [19:21:46]Clear old archive folders... [19:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:46]tlvbuf is 01E507F0 [19:21:46]SAM_PROTO_ClearQueue [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 09 00 00 [19:21:46]Write to MH i2c: E2 08 00 08 61 80 09 00 00 00 00 00 00 DB [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 03 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 03 00 08 61 00 90 00 DD [19:21:46]RAPDU: 90 00 [19:21:46]wFMCommunicate OK [19:21:46]SAM_PROTO_ClearQueue done [19:21:46]KKMCreateOFDPacket [19:21:46]OFDProtocolAddRootSTLVToBuf [19:21:46]FM_MakeSignedData [19:21:46]FM_MakeSignedData [19:21:46]SAM_PROTO_SignData [19:21:46]wFMCommunicate request_size=4 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 0D 01 02 [19:21:46]Write to MH i2c: E2 08 00 09 61 80 0D 01 02 00 00 00 00 E3 [19:21:46]Write i2c OK [19:21:46]MH_I2C_Read... [19:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:46]Read from MH i2c: E2 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 03 00 [19:21:46]MH_I2C_Read... [19:21:46]Read from MH i2c: E2 03 00 09 61 00 90 00 DE [19:21:46]RAPDU: 90 00 [19:21:46]wFMCommunicate OK [19:21:46]wFMCommunicate request_size=255 [19:21:46]MH_SAM_APDU [19:21:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 78 00 00 35 04 06 00 C1 [19:21:47]Write to MH i2c: E2 02 01 0A 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 78 00 00 35 04 06 00 C1 00 00 CB [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 0A 61 00 90 00 DF [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=10 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 02 02 05 A1 F8 DC 93 54 [19:21:47]Write to MH i2c: E2 0D 00 0B 61 80 0D 02 02 05 00 A1 F8 DC 93 54 00 00 4C [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 03 00 0B 61 00 90 00 E0 [19:21:47]RAPDU: 90 00 [19:21:47]wFMCommunicate OK [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 0D 03 02 [19:21:47]Write to MH i2c: E2 08 00 0C 61 80 0D 03 02 00 00 00 00 E8 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 0B 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 0B 00 0C 61 00 13 78 75 F4 0B 79 5A 31 90 00 EC [19:21:47]RAPDU: 13 78 75 F4 0B 79 5A 31 90 00 [19:21:47]wFMCommunicate OK [19:21:47]SAM_PROTO_SignData done [19:21:47]FM_MakeSignedData done [19:21:47]CreateOFDProtocolMessage [19:21:47]wFMCommunicate request_size=4 [19:21:47]MH_SAM_APDU [19:21:47]CAPDU: 80 11 00 00 [19:21:47]Write to MH i2c: E2 08 00 0D 61 80 11 00 00 00 00 00 00 E8 [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:47]Read from MH i2c: E2 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 17 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: E2 17 00 0D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [19:21:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:21:47]wFMCommunicate OK [19:21:47]CreateOFDProtocolMessage done [19:21:47]OFDSenderStorePacket 30730 [19:21:47]StoreOFDPacket docnum=30730 [19:21:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F4 1C 07 01 0B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 78 00 00 35 04 06 00 C1 A1 F8 DC 93 54 13 78 75 F4 0B 79 5A 31 [19:21:47]CheckFolder [19:21:47]dirname=/storage/ofd_packets [19:21:47]CheckFolder done [19:21:47]ProducePacketName [19:21:47]name=ofd_packets/00030730 [19:21:47]NVStorageSaveData ofd_packets/00030730 [19:21:47]File name is /storage/ofd_packets/00030730 [19:21:47]Write 301 bytes [19:21:47]NVStorageSaveData done [19:21:47]OFDSenderStorePacket done [19:21:47]KKMCreateOFDPacket done [19:21:47]NVStorageSaveData kkm_last_timestamp [19:21:47]File name is /storage/kkm_last_timestamp [19:21:47]Write 4 bytes [19:21:47]NVStorageSaveData done [19:21:47]ExternCall_PrintAddStr [19:21:47]wPrintStart [19:21:47]Write to MH i2c: 01 00 00 0E 61 6F [19:21:47]Write i2c OK [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: 01 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: 01 07 00 [19:21:47]MH_I2C_Read... [19:21:47]Read from MH i2c: 01 07 00 0E 61 00 00 00 00 00 FF 0F 84 [19:21:47]RasterBufferAndPrint [19:21:47]line Счет N : (1)343144 [19:21:47]line ИНН: 02508201610067 [19:21:47]line Контрольно-Кассовый Чек [19:21:47]line ПРОДАЖА [19:21:47]line ТРК (МРК, ГНК) : 63 [19:21:47]line Товар: 2710124130 [19:21:47]line Аи-92-К-2 [19:21:47]line 2.990 * 66.90 [19:21:47]line = 200.03 [19:21:47]line НДС 12% НСП 1% [19:21:47]line > о реализуемом товаре [19:21:47]line ИТОГО: 200.03 [19:21:47]line НСП 1% : 1.77 [19:21:47]line НДС 12% : 21.24 [19:21:47]line Наличными: 0.00 [19:21:47]line Безнал.: 200.03 [19:21:47]line Место: АЗС № 78 "Партнер Нефть" [19:21:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:21:47]line СНО: Общий режим [19:21:47]line Чек 227 21.10.2024 19:21 [19:21:47]line Смена: 115 ФФД: 1.0 [19:21:47]line ЗНМ: 0300000137 [19:21:47]line РНМ: 0000000000186857 [19:21:47]line Версия ККМ: v1.0 [19:21:47]line Платежная система: АКБ Кыргызстан [19:21:47]line ФМ: 0000000002094219 [19:21:47]line ФД: 30730 [19:21:47]line ФПД: 212901409100628 [19:21:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192152&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30730&fm=212901409100628&tin=02508201610067®Number=0000000000186857&sum=20003 [19:21:47]OFD Sender: Processing packet 30730 [packets to send 10, broken 9] [19:21:47]ProducePacketName [19:21:47]name=ofd_packets/00030730 [19:21:47]OFD Sender: To server: pG, [19:21:47]CommunicateWithHost lk.salyk.kg:30040 [19:21:47]ConnectInit lk.salyk.kg [19:21:47]written 0, free lines is 4095 [19:21:47]Connected sock=10 [19:21:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 F4 1C 07 01 0B F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 D0 A9 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 78 00 00 35 04 06 00 C1 A1 F8 DC 93 54 13 78 75 F4 0B 79 5A 31 [19:21:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 9B 79 47 00 48 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0A 78 00 00 F4 03 04 00 4F 54 16 67 B6 04 01 00 00 76 79 2E 17 D6 97 1F 24 [19:21:48]CommunicateWithHost err = 0 [19:21:48]CheckOFDResponse [19:21:48]1017 (14) - 77093643461234 [19:21:48]1041 (16) - 0000000002094219 [19:21:48]1040 (4) - 30730 [19:21:48]1012 (4) - 21.10.2024 13:17 [19:21:48]1206 (1) - 0 [19:21:48]OFD Sender: Remove packet 30730 [19:21:48]ProducePacketName [19:21:48]name=ofd_packets/00030730 [19:21:48]NVStorageDeleteData [19:21:48]Write to MH i2c: 01 00 00 38 61 99 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: 01 07 00 38 61 00 00 00 00 00 FD 0C A9 [19:21:48]RasterBufferAndPrint [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]line [19:21:48]written 0, free lines is 3331 [19:21:48]MH_Cut [19:21:48]Write to MH i2c: D1 01 00 3F 61 01 72 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 [19:21:48]MH_I2C_Read... [19:21:48]Read from MH i2c: D1 01 00 3F 61 00 71 [19:21:48]Write to MH i2c: 01 00 00 40 61 A1 [19:21:48]Write i2c OK [19:21:48]MH_I2C_Read... [19:21:48]OFD Sender: No OFD packet to send [19:21:48]*** Cut start [19:21:48]*** Partial cut [19:21:48]*** CUTSNS_PIN = 1 [19:21:48]*** CUTSNS_PIN = 0 [19:21:49]*** Brake cut motor [19:21:49]Read from MH i2c: 01 [19:21:49]MH_I2C_Read... [19:21:49]*** Stop cut motor [19:21:49]*** Cut end [19:21:49]Read from MH i2c: 01 07 00 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: 01 07 00 40 61 00 00 00 00 00 FF 0F B6 [19:21:49]process_action close_receipt done [19:21:49]requested_data is exist [19:21:49]produce_requested_data [19:21:49]requested_item fm.sn is exist - process it [19:21:49]wFMCommunicate request_size=4 [19:21:49]MH_SAM_APDU [19:21:49]CAPDU: 80 11 00 00 [19:21:49]Write to MH i2c: E2 08 00 41 61 80 11 00 00 00 00 00 00 1C [19:21:49]Write i2c OK [19:21:49]MH_I2C_Read... [19:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:49]Read from MH i2c: E2 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 17 00 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 17 00 41 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6A [19:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:21:49]wFMCommunicate OK [19:21:49]requested_item fd.num is exist - process it [19:21:49]SAM_PROTO_GetFieldsCounters [19:21:49]wFMCommunicate request_size=4 [19:21:49]MH_SAM_APDU [19:21:49]CAPDU: 80 13 00 00 [19:21:49]Write to MH i2c: E2 08 00 42 61 80 13 00 00 00 00 00 00 1F [19:21:49]Write i2c OK [19:21:49]MH_I2C_Read... [19:21:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:49]Read from MH i2c: E2 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 62 00 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 62 00 42 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:21:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:49]wFMCommunicate OK [19:21:49]SAM_PROTO_GetFieldsCounters done [19:21:49]requested_item shift.num is exist - process it [19:21:49]requested_item shift.opened is exist - process it [19:21:49]req_shift_opened [19:21:49]FM_GetShiftState [19:21:49]SAM_PROTO_GetShiftState [19:21:49]wFMCommunicate request_size=4 [19:21:49]MH_SAM_APDU [19:21:49]CAPDU: 80 13 01 00 [19:21:49]Write to MH i2c: E2 08 00 43 61 80 13 01 00 00 00 00 00 21 [19:21:49]Write i2c OK [19:21:49]MH_I2C_Read... [19:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:49]Read from MH i2c: E2 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 0E 00 [19:21:49]MH_I2C_Read... [19:21:49]Read from MH i2c: E2 0E 00 43 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9D [19:21:49]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:21:49]wFMCommunicate OK [19:21:49]SAM_PROTO_GetShiftState done [19:21:49]FM_GetShiftState done [19:21:49]req_shift_opened done [19:21:49]requested_item shift.open_date is exist - process it [19:21:49]req_shift_open_date [19:21:49]req_shift_open_date done [19:21:49]produce_requested_data done [19:21:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30730,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:21:49]process_action_free close_receipt [19:21:49]json_value_free [19:21:49]json_value_free done [19:21:49]process_json_proto returns [19:21:49]Send response to host [19:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30730,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:21:49]free response buf [19:21:49]execute_script done [19:21:49]execute_script returns [19:21:49]free content buf [19:21:49]Sock 9.Close socket [19:21:49]Sock 9.Thread stoped [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:40]accept exits with 7 [19:23:40]New connection [19:23:40]New thread 3067489636 created [19:23:40]Thread 3067346276 joined [19:23:40]Waiting for new connection... [19:23:40] Sock 7.Parse request [19:23:40]Sock 7.Check first char [19:23:40]Sock 7.First char is OK [19:23:40]request: POST /json_proto HTTP/1.0 [19:23:40]Method: POST [19:23:40]URL: /json_proto [19:23:40]Method is POST - this is cgi request [19:23:40]url: /json_proto [19:23:40]query_string will be loaded in cgi processing [19:23:40]execute_cgi json_proto POST (null) [19:23:40]execute_cgi path=json_proto method=POST [19:23:40]POST find Content-Length [19:23:40]Host: 172.17.51.3:8080 [19:23:40]Content-Length: 682 [19:23:40]Content-Type: application/json [19:23:40] [19:23:40]POST finish read [19:23:40]Found Content-Length = 682 [19:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:40]execute_script... [19:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:40]POST & json_proto [19:23:40]process_json_proto [19:23:40]json parsed OK: [19:23:40]protocol is kg_v1.0 [19:23:40]action value=close_receipt [19:23:40]process_action close_receipt [19:23:40]cmd_close_receipt [19:23:40]MH_GetDate [19:23:40]Write to MH i2c: F0 00 00 44 61 94 [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: F0 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: F0 09 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: F0 09 00 44 61 00 42 AA 16 67 04 C1 95 66 C6 [19:23:40]GetLastDocTimeStamp 1729538512 [19:23:40]current date 1729538626 [19:23:40]FM_GetShiftState [19:23:40]SAM_PROTO_GetShiftState [19:23:40]wFMCommunicate request_size=4 [19:23:40]MH_SAM_APDU [19:23:40]CAPDU: 80 13 01 00 [19:23:40]Write to MH i2c: E2 08 00 45 61 80 13 01 00 00 00 00 00 23 [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:40]Read from MH i2c: E2 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 0E 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: E2 0E 00 45 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9F [19:23:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:23:40]wFMCommunicate OK [19:23:40]SAM_PROTO_GetShiftState done [19:23:40]FM_GetShiftState done [19:23:40]opened in 1729471058 [19:23:40]opened+sec_in_day 1729557458 [19:23:40]quantity*price = 150056 [19:23:40]sum+1 = 150058 [19:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 228 21.10.2024 19:23 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30731 ФПД: 272531343112245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30731&fm=272531343112245&tin=02508201610067®Number=0000000000186857&sum=150000 [19:23:41]StoreToDocumentArchive [19:23:41]shift 115 fd 30731 [19:23:41]save to /storage/0115/doc_00030731 [19:23:41]save last doc name /storage/0115/doc_00030731 to /storage/kkm_last_doc_name [19:23:41]save OK [19:23:41]Clear old archive folders... [19:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:41]tlvbuf is B6FDBC30 [19:23:41]SAM_PROTO_ClearQueue [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 09 00 00 [19:23:41]Write to MH i2c: E2 08 00 52 61 80 09 00 00 00 00 00 00 25 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 52 61 00 90 00 27 [19:23:41]RAPDU: 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_ClearQueue done [19:23:41]KKMCreateOFDPacket [19:23:41]OFDProtocolAddRootSTLVToBuf [19:23:41]FM_MakeSignedData [19:23:41]FM_MakeSignedData [19:23:41]SAM_PROTO_SignData [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 0D 01 02 [19:23:41]Write to MH i2c: E2 08 00 53 61 80 0D 01 02 00 00 00 00 2D [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 53 61 00 90 00 28 [19:23:41]RAPDU: 90 00 [19:23:41]wFMCommunicate OK [19:23:41]wFMCommunicate request_size=255 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 42 AA 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 78 00 00 35 04 06 00 F7 [19:23:41]Write to MH i2c: E2 02 01 54 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 42 AA 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 78 00 00 35 04 06 00 F7 00 00 41 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 54 61 00 90 00 29 [19:23:41]RAPDU: 90 00 [19:23:41]wFMCommunicate OK [19:23:41]wFMCommunicate request_size=10 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 0D 02 02 05 DD A5 E5 78 35 [19:23:41]Write to MH i2c: E2 0D 00 55 61 80 0D 02 02 05 00 DD A5 E5 78 35 00 00 4E [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 03 00 55 61 00 90 00 2A [19:23:41]RAPDU: 90 00 [19:23:41]wFMCommunicate OK [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 0D 03 02 [19:23:41]Write to MH i2c: E2 08 00 56 61 80 0D 03 02 00 00 00 00 32 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0B 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0B 00 56 61 00 A7 C8 4C 10 5C B1 FA 48 90 00 4D [19:23:41]RAPDU: A7 C8 4C 10 5C B1 FA 48 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_SignData done [19:23:41]FM_MakeSignedData done [19:23:41]CreateOFDProtocolMessage [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 11 00 00 [19:23:41]Write to MH i2c: E2 08 00 57 61 80 11 00 00 00 00 00 00 32 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 17 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 17 00 57 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [19:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:23:41]wFMCommunicate OK [19:23:41]CreateOFDProtocolMessage done [19:23:41]OFDSenderStorePacket 30731 [19:23:41]StoreOFDPacket docnum=30731 [19:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 00 11 07 01 75 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 42 AA 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 78 00 00 35 04 06 00 F7 DD A5 E5 78 35 A7 C8 4C 10 5C B1 FA 48 [19:23:41]CheckFolder [19:23:41]dirname=/storage/ofd_packets [19:23:41]CheckFolder done [19:23:41]ProducePacketName [19:23:41]name=ofd_packets/00030731 [19:23:41]NVStorageSaveData ofd_packets/00030731 [19:23:41]File name is /storage/ofd_packets/00030731 [19:23:41]Write 301 bytes [19:23:41]NVStorageSaveData done [19:23:41]OFDSenderStorePacket done [19:23:41]KKMCreateOFDPacket done [19:23:41]NVStorageSaveData kkm_last_timestamp [19:23:41]File name is /storage/kkm_last_timestamp [19:23:41]Write 4 bytes [19:23:41]NVStorageSaveData done [19:23:41]ExternCall_PrintAddStr [19:23:41]wPrintStart [19:23:41]Write to MH i2c: 01 00 00 58 61 B9 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: 01 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: 01 07 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: 01 07 00 58 61 00 00 00 00 00 FF 0F CE [19:23:41]RasterBufferAndPrint [19:23:41]line Счет N : (1)343145 [19:23:41]line ИНН: 02508201610067 [19:23:41]line Контрольно-Кассовый Чек [19:23:41]line ПРОДАЖА [19:23:41]line ТРК (МРК, ГНК) : 33 [19:23:41]line Товар: 2710124130 [19:23:41]line Аи-92-К-2 [19:23:41]line 22.430 * 66.90 [19:23:41]line = 1500.57 [19:23:41]line НДС 12% НСП 1% [19:23:41]line > о реализуемом товаре [19:23:41]line ОКРУГЛЕНИЕ: -0.57 [19:23:41]line ИТОГО: 1500.00 [19:23:41]line Внесено: 1500.00 [19:23:41]line СДАЧА: 0.00 [19:23:41]line НСП 1% : 13.28 [19:23:41]line НДС 12% : 159.35 [19:23:41]line Наличными: 1500.00 [19:23:41]line Безнал.: 0.00 [19:23:41]line Место: АЗС № 78 "Партнер Нефть" [19:23:41]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:23:41]line СНО: Общий режим [19:23:41]line Чек 228 21.10.2024 19:23 [19:23:41]line Смена: 115 ФФД: 1.0 [19:23:41]line ЗНМ: 0300000137 [19:23:41]line РНМ: 0000000000186857 [19:23:41]line Версия ККМ: v1.0 [19:23:41]line ФМ: 0000000002094219 [19:23:41]line ФД: 30731 [19:23:41]line ФПД: 272531343112245 [19:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192346&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30731&fm=272531343112245&tin=02508201610067®Number=0000000000186857&sum=150000 [19:23:42]OFD Sender: Processing packet 30731 [packets to send 10, broken 9] [19:23:42]ProducePacketName [19:23:42]name=ofd_packets/00030731 [19:23:42]OFD Sender: To server: pG, [19:23:42]CommunicateWithHost lk.salyk.kg:30040 [19:23:42]ConnectInit lk.salyk.kg [19:23:42]written 0, free lines is 4095 [19:23:42]Connected sock=10 [19:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 00 11 07 01 75 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 42 AA 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 78 00 00 35 04 06 00 F7 DD A5 E5 78 35 A7 C8 4C 10 5C B1 FA 48 [19:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 04 23 47 00 81 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0B 78 00 00 F4 03 04 00 C2 54 16 67 B6 04 01 00 00 02 04 69 98 7A DB 55 9D [19:23:42]CommunicateWithHost err = 0 [19:23:42]CheckOFDResponse [19:23:42]1017 (14) - 77093643461234 [19:23:42]1041 (16) - 0000000002094219 [19:23:42]1040 (4) - 30731 [19:23:42]1012 (4) - 21.10.2024 13:18 [19:23:42]1206 (1) - 0 [19:23:42]OFD Sender: Remove packet 30731 [19:23:42]ProducePacketName [19:23:42]name=ofd_packets/00030731 [19:23:42]NVStorageDeleteData [19:23:42]Write to MH i2c: 01 00 00 83 61 E4 [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: 01 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: 01 07 00 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: 01 07 00 83 61 00 00 00 00 00 F0 0C E7 [19:23:42]RasterBufferAndPrint [19:23:42]line [19:23:42]line [19:23:42]line [19:23:42]line [19:23:42]line [19:23:42]written 0, free lines is 3318 [19:23:42]MH_Cut [19:23:42]Write to MH i2c: D1 01 00 8A 61 01 BD [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: D1 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: D1 01 00 [19:23:42]MH_I2C_Read... [19:23:42]Read from MH i2c: D1 01 00 8A 61 00 BC [19:23:42]Write to MH i2c: 01 00 00 8B 61 EC [19:23:42]Write i2c OK [19:23:42]MH_I2C_Read... [19:23:43]OFD Sender: No OFD packet to send [19:23:43]*** Cut start [19:23:43]*** Partial cut [19:23:43]*** CUTSNS_PIN = 1 [19:23:43]*** CUTSNS_PIN = 0 [19:23:43]*** Brake cut motor [19:23:43]Read from MH i2c: 01 [19:23:43]MH_I2C_Read... [19:23:43]*** Stop cut motor [19:23:43]*** Cut end [19:23:43]Read from MH i2c: 01 07 00 [19:23:43]MH_I2C_Read... [19:23:43]Read from MH i2c: 01 07 00 8B 61 00 00 00 00 00 FF 0F 01 [19:23:43]process_action close_receipt done [19:23:43]requested_data is exist [19:23:43]produce_requested_data [19:23:43]requested_item fm.sn is exist - process it [19:23:43]wFMCommunicate request_size=4 [19:23:43]MH_SAM_APDU [19:23:43]CAPDU: 80 11 00 00 [19:23:43]Write to MH i2c: E2 08 00 8C 61 80 11 00 00 00 00 00 00 67 [19:23:43]Write i2c OK [19:23:43]MH_I2C_Read... [19:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:44]Read from MH i2c: E2 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 17 00 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 17 00 8C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [19:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:23:44]wFMCommunicate OK [19:23:44]requested_item fd.num is exist - process it [19:23:44]SAM_PROTO_GetFieldsCounters [19:23:44]wFMCommunicate request_size=4 [19:23:44]MH_SAM_APDU [19:23:44]CAPDU: 80 13 00 00 [19:23:44]Write to MH i2c: E2 08 00 8D 61 80 13 00 00 00 00 00 00 6A [19:23:44]Write i2c OK [19:23:44]MH_I2C_Read... [19:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:44]Read from MH i2c: E2 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 62 00 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 62 00 8D 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:44]wFMCommunicate OK [19:23:44]SAM_PROTO_GetFieldsCounters done [19:23:44]requested_item shift.num is exist - process it [19:23:44]requested_item shift.opened is exist - process it [19:23:44]req_shift_opened [19:23:44]FM_GetShiftState [19:23:44]SAM_PROTO_GetShiftState [19:23:44]wFMCommunicate request_size=4 [19:23:44]MH_SAM_APDU [19:23:44]CAPDU: 80 13 01 00 [19:23:44]Write to MH i2c: E2 08 00 8E 61 80 13 01 00 00 00 00 00 6C [19:23:44]Write i2c OK [19:23:44]MH_I2C_Read... [19:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:44]Read from MH i2c: E2 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 0E 00 [19:23:44]MH_I2C_Read... [19:23:44]Read from MH i2c: E2 0E 00 8E 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E8 [19:23:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:23:44]wFMCommunicate OK [19:23:44]SAM_PROTO_GetShiftState done [19:23:44]FM_GetShiftState done [19:23:44]req_shift_opened done [19:23:44]requested_item shift.open_date is exist - process it [19:23:44]req_shift_open_date [19:23:44]req_shift_open_date done [19:23:44]produce_requested_data done [19:23:44]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30731,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:23:44]process_action_free close_receipt [19:23:44]json_value_free [19:23:44]json_value_free done [19:23:44]process_json_proto returns [19:23:44]Send response to host [19:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30731,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:23:44]free response buf [19:23:44]execute_script done [19:23:44]execute_script returns [19:23:44]free content buf [19:23:44]Sock 7.Close socket [19:23:44]Sock 7.Thread stoped [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:10]accept exits with 9 [19:27:10]New connection [19:27:10]New thread 3067346276 created [19:27:10]Thread 3067489636 joined [19:27:10]Waiting for new connection... [19:27:10] Sock 9.Parse request [19:27:10]Sock 9.Check first char [19:27:10]Sock 9.First char is OK [19:27:10]request: POST /json_proto HTTP/1.0 [19:27:10]Method: POST [19:27:10]URL: /json_proto [19:27:10]Method is POST - this is cgi request [19:27:10]url: /json_proto [19:27:10]query_string will be loaded in cgi processing [19:27:10]execute_cgi json_proto POST (null) [19:27:10]execute_cgi path=json_proto method=POST [19:27:10]POST find Content-Length [19:27:10]Host: 172.17.51.3:8080 [19:27:10]Content-Length: 682 [19:27:10]Content-Type: application/json [19:27:10] [19:27:10]POST finish read [19:27:10]Found Content-Length = 682 [19:27:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:10]execute_script... [19:27:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:10]POST & json_proto [19:27:10]process_json_proto [19:27:10]json parsed OK: [19:27:10]protocol is kg_v1.0 [19:27:10]action value=close_receipt [19:27:10]process_action close_receipt [19:27:10]cmd_close_receipt [19:27:10]MH_GetDate [19:27:10]Write to MH i2c: F0 00 00 8F 61 DF [19:27:10]Write i2c OK [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 09 00 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: F0 09 00 8F 61 00 14 AB 16 67 04 C1 95 66 E4 [19:27:10]GetLastDocTimeStamp 1729538626 [19:27:10]current date 1729538836 [19:27:10]FM_GetShiftState [19:27:10]SAM_PROTO_GetShiftState [19:27:10]wFMCommunicate request_size=4 [19:27:10]MH_SAM_APDU [19:27:10]CAPDU: 80 13 01 00 [19:27:10]Write to MH i2c: E2 08 00 90 61 80 13 01 00 00 00 00 00 6E [19:27:10]Write i2c OK [19:27:10]MH_I2C_Read... [19:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:10]Read from MH i2c: E2 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: E2 0E 00 [19:27:10]MH_I2C_Read... [19:27:10]Read from MH i2c: E2 0E 00 90 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 EA [19:27:10]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:27:10]wFMCommunicate OK [19:27:10]SAM_PROTO_GetShiftState done [19:27:10]FM_GetShiftState done [19:27:10]opened in 1729471058 [19:27:10]opened+sec_in_day 1729557458 [19:27:10]quantity*price = 150056 [19:27:10]sum+1 = 150058 [19:27:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 229 21.10.2024 19:27 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30732 ФПД: 53146125018675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192716&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30732&fm=53146125018675&tin=02508201610067®Number=0000000000186857&sum=150000 [19:27:11]StoreToDocumentArchive [19:27:11]shift 115 fd 30732 [19:27:11]save to /storage/0115/doc_00030732 [19:27:11]save last doc name /storage/0115/doc_00030732 to /storage/kkm_last_doc_name [19:27:11]save OK [19:27:11]Clear old archive folders... [19:27:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:11]tlvbuf is 01E2B680 [19:27:11]SAM_PROTO_ClearQueue [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 09 00 00 [19:27:11]Write to MH i2c: E2 08 00 9D 61 80 09 00 00 00 00 00 00 70 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 9D 61 00 90 00 72 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]SAM_PROTO_ClearQueue done [19:27:11]KKMCreateOFDPacket [19:27:11]OFDProtocolAddRootSTLVToBuf [19:27:11]FM_MakeSignedData [19:27:11]FM_MakeSignedData [19:27:11]SAM_PROTO_SignData [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 01 02 [19:27:11]Write to MH i2c: E2 08 00 9E 61 80 0D 01 02 00 00 00 00 78 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 9E 61 00 90 00 73 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=255 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 14 AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 78 00 00 35 04 06 00 30 [19:27:11]Write to MH i2c: E2 02 01 9F 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 14 AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 78 00 00 35 04 06 00 30 00 00 9A [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 9F 61 00 90 00 74 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=10 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 02 02 05 56 0B E7 26 33 [19:27:11]Write to MH i2c: E2 0D 00 A0 61 80 0D 02 02 05 00 56 0B E7 26 33 00 00 26 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 03 00 A0 61 00 90 00 75 [19:27:11]RAPDU: 90 00 [19:27:11]wFMCommunicate OK [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 0D 03 02 [19:27:11]Write to MH i2c: E2 08 00 A1 61 80 0D 03 02 00 00 00 00 7D [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 0B 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 0B 00 A1 61 00 41 DA F1 99 B7 66 CF FA 90 00 09 [19:27:11]RAPDU: 41 DA F1 99 B7 66 CF FA 90 00 [19:27:11]wFMCommunicate OK [19:27:11]SAM_PROTO_SignData done [19:27:11]FM_MakeSignedData done [19:27:11]CreateOFDProtocolMessage [19:27:11]wFMCommunicate request_size=4 [19:27:11]MH_SAM_APDU [19:27:11]CAPDU: 80 11 00 00 [19:27:11]Write to MH i2c: E2 08 00 A2 61 80 11 00 00 00 00 00 00 7D [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:11]Read from MH i2c: E2 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 17 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: E2 17 00 A2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [19:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:27:11]wFMCommunicate OK [19:27:11]CreateOFDProtocolMessage done [19:27:11]OFDSenderStorePacket 30732 [19:27:11]StoreOFDPacket docnum=30732 [19:27:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 10 07 01 94 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 14 AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 78 00 00 35 04 06 00 30 56 0B E7 26 33 41 DA F1 99 B7 66 CF FA [19:27:11]CheckFolder [19:27:11]dirname=/storage/ofd_packets [19:27:11]CheckFolder done [19:27:11]ProducePacketName [19:27:11]name=ofd_packets/00030732 [19:27:11]NVStorageSaveData ofd_packets/00030732 [19:27:11]File name is /storage/ofd_packets/00030732 [19:27:11]Write 301 bytes [19:27:11]NVStorageSaveData done [19:27:11]OFDSenderStorePacket done [19:27:11]KKMCreateOFDPacket done [19:27:11]NVStorageSaveData kkm_last_timestamp [19:27:11]File name is /storage/kkm_last_timestamp [19:27:11]Write 4 bytes [19:27:11]NVStorageSaveData done [19:27:11]ExternCall_PrintAddStr [19:27:11]wPrintStart [19:27:11]Write to MH i2c: 01 00 00 A3 61 04 [19:27:11]Write i2c OK [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 07 00 [19:27:11]MH_I2C_Read... [19:27:11]Read from MH i2c: 01 07 00 A3 61 00 00 00 00 00 FF 0F 19 [19:27:11]RasterBufferAndPrint [19:27:11]line Счет N : (1)343146 [19:27:11]line ИНН: 02508201610067 [19:27:11]line Контрольно-Кассовый Чек [19:27:11]line ПРОДАЖА [19:27:11]line ТРК (МРК, ГНК) : 43 [19:27:11]line Товар: 2710124130 [19:27:11]line Аи-92-К-2 [19:27:11]line 22.430 * 66.90 [19:27:11]line = 1500.57 [19:27:11]line НДС 12% НСП 1% [19:27:11]line > о реализуемом товаре [19:27:11]line ОКРУГЛЕНИЕ: -0.57 [19:27:11]line ИТОГО: 1500.00 [19:27:11]line Внесено: 1500.00 [19:27:11]line СДАЧА: 0.00 [19:27:11]line НСП 1% : 13.28 [19:27:11]line НДС 12% : 159.35 [19:27:11]line Наличными: 1500.00 [19:27:11]line Безнал.: 0.00 [19:27:11]line Место: АЗС № 78 "Партнер Нефть" [19:27:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:27:11]line СНО: Общий режим [19:27:11]line Чек 229 21.10.2024 19:27 [19:27:11]line Смена: 115 ФФД: 1.0 [19:27:11]line ЗНМ: 0300000137 [19:27:11]line РНМ: 0000000000186857 [19:27:11]line Версия ККМ: v1.0 [19:27:11]line ФМ: 0000000002094219 [19:27:11]line ФД: 30732 [19:27:11]line ФПД: 53146125018675 [19:27:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192716&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30732&fm=53146125018675&tin=02508201610067®Number=0000000000186857&sum=150000 [19:27:12]OFD Sender: Processing packet 30732 [packets to send 10, broken 9] [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00030732 [19:27:12]OFD Sender: To server: pG, [19:27:12]CommunicateWithHost lk.salyk.kg:30040 [19:27:12]ConnectInit lk.salyk.kg [19:27:12]written 0, free lines is 4095 [19:27:12]Connected sock=10 [19:27:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 10 07 01 94 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 14 AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0C 78 00 00 35 04 06 00 30 56 0B E7 26 33 41 DA F1 99 B7 66 CF FA [19:27:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C6 FC 47 00 23 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 32 30 39 34 32 31 39 10 04 04 00 0C 78 00 00 F4 03 04 00 94 55 16 67 B6 04 01 00 00 A3 89 1F 99 0A 8B 77 A6 [19:27:12]CommunicateWithHost err = 0 [19:27:12]CheckOFDResponse [19:27:12]1017 (14) - 77093643461234 [19:27:12]1041 (16) - 0000000002094219 [19:27:12]1040 (4) - 30732 [19:27:12]1012 (4) - 21.10.2024 13:22 [19:27:12]1206 (1) - 0 [19:27:12]OFD Sender: Remove packet 30732 [19:27:12]ProducePacketName [19:27:12]name=ofd_packets/00030732 [19:27:12]NVStorageDeleteData [19:27:12]Write to MH i2c: 01 00 00 CE 61 2F [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: 01 07 00 CE 61 00 00 00 00 00 EC 0C 2E [19:27:12]RasterBufferAndPrint [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]line [19:27:12]written 0, free lines is 3314 [19:27:12]MH_Cut [19:27:12]Write to MH i2c: D1 01 00 D5 61 01 08 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 01 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: D1 01 00 D5 61 00 07 [19:27:12]Write to MH i2c: 01 00 00 D6 61 37 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:13]OFD Sender: No OFD packet to send [19:27:13]*** Cut start [19:27:13]*** Partial cut [19:27:13]*** CUTSNS_PIN = 1 [19:27:13]*** CUTSNS_PIN = 0 [19:27:13]*** Brake cut motor [19:27:13]Read from MH i2c: 01 [19:27:13]MH_I2C_Read... [19:27:13]*** Stop cut motor [19:27:13]*** Cut end [19:27:13]Read from MH i2c: 01 07 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: 01 07 00 D6 61 00 00 00 00 00 FF 0F 4C [19:27:13]process_action close_receipt done [19:27:13]requested_data is exist [19:27:13]produce_requested_data [19:27:13]requested_item fm.sn is exist - process it [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 11 00 00 [19:27:13]Write to MH i2c: E2 08 00 D7 61 80 11 00 00 00 00 00 00 B2 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 17 00 D7 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 00 [19:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:27:13]wFMCommunicate OK [19:27:13]requested_item fd.num is exist - process it [19:27:13]SAM_PROTO_GetFieldsCounters [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 13 00 00 [19:27:13]Write to MH i2c: E2 08 00 D8 61 80 13 00 00 00 00 00 00 B5 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 62 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 62 00 D8 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:27:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetFieldsCounters done [19:27:14]requested_item shift.num is exist - process it [19:27:14]requested_item shift.opened is exist - process it [19:27:14]req_shift_opened [19:27:14]FM_GetShiftState [19:27:14]SAM_PROTO_GetShiftState [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 13 01 00 [19:27:14]Write to MH i2c: E2 08 00 D9 61 80 13 01 00 00 00 00 00 B7 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0E 00 D9 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 33 [19:27:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_GetShiftState done [19:27:14]FM_GetShiftState done [19:27:14]req_shift_opened done [19:27:14]requested_item shift.open_date is exist - process it [19:27:14]req_shift_open_date [19:27:14]req_shift_open_date done [19:27:14]produce_requested_data done [19:27:14]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30732,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:27:14]process_action_free close_receipt [19:27:14]json_value_free [19:27:14]json_value_free done [19:27:14]process_json_proto returns [19:27:14]Send response to host [19:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30732,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:27:14]free response buf [19:27:14]execute_script done [19:27:14]execute_script returns [19:27:14]free content buf [19:27:14]Sock 9.Close socket [19:27:14]Sock 9.Thread stoped [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:36]accept exits with 7 [19:28:36]New connection [19:28:36]New thread 3067489636 created [19:28:36]Thread 3067346276 joined [19:28:36]Waiting for new connection... [19:28:36] Sock 7.Parse request [19:28:36]Sock 7.Check first char [19:28:36]Sock 7.First char is OK [19:28:36]request: POST /json_proto HTTP/1.0 [19:28:36]Method: POST [19:28:36]URL: /json_proto [19:28:36]Method is POST - this is cgi request [19:28:36]url: /json_proto [19:28:36]query_string will be loaded in cgi processing [19:28:36]execute_cgi json_proto POST (null) [19:28:36]execute_cgi path=json_proto method=POST [19:28:36]POST find Content-Length [19:28:36]Host: 172.17.51.3:8080 [19:28:36]Content-Length: 677 [19:28:36]Content-Type: application/json [19:28:36] [19:28:36]POST finish read [19:28:36]Found Content-Length = 677 [19:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:36]execute_script... [19:28:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:36]POST & json_proto [19:28:36]process_json_proto [19:28:36]json parsed OK: [19:28:36]protocol is kg_v1.0 [19:28:36]action value=close_receipt [19:28:36]process_action close_receipt [19:28:36]cmd_close_receipt [19:28:36]MH_GetDate [19:28:36]Write to MH i2c: F0 00 00 DA 61 2A [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: F0 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: F0 09 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: F0 09 00 DA 61 00 6A AB 16 67 04 C1 95 66 85 [19:28:36]GetLastDocTimeStamp 1729538836 [19:28:36]current date 1729538922 [19:28:36]FM_GetShiftState [19:28:36]SAM_PROTO_GetShiftState [19:28:36]wFMCommunicate request_size=4 [19:28:36]MH_SAM_APDU [19:28:36]CAPDU: 80 13 01 00 [19:28:36]Write to MH i2c: E2 08 00 DB 61 80 13 01 00 00 00 00 00 B9 [19:28:36]Write i2c OK [19:28:36]MH_I2C_Read... [19:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:36]Read from MH i2c: E2 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0E 00 [19:28:36]MH_I2C_Read... [19:28:36]Read from MH i2c: E2 0E 00 DB 61 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 35 [19:28:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:28:36]wFMCommunicate OK [19:28:36]SAM_PROTO_GetShiftState done [19:28:36]FM_GetShiftState done [19:28:36]opened in 1729471058 [19:28:36]opened+sec_in_day 1729557458 [19:28:36]quantity*price = 50010 [19:28:36]sum+1 = 50012 [19:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 230 21.10.2024 19:28 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30733 ФПД: 173346786490441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30733&fm=173346786490441&tin=02508201610067®Number=0000000000186857&sum=50000 [19:28:37]StoreToDocumentArchive [19:28:37]shift 115 fd 30733 [19:28:37]save to /storage/0115/doc_00030733 [19:28:37]save last doc name /storage/0115/doc_00030733 to /storage/kkm_last_doc_name [19:28:37]save OK [19:28:37]Clear old archive folders... [19:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:37]tlvbuf is 01FE1710 [19:28:37]SAM_PROTO_ClearQueue [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 09 00 00 [19:28:37]Write to MH i2c: E2 08 00 E8 61 80 09 00 00 00 00 00 00 BB [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 E8 61 00 90 00 BD [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_ClearQueue done [19:28:37]KKMCreateOFDPacket [19:28:37]OFDProtocolAddRootSTLVToBuf [19:28:37]FM_MakeSignedData [19:28:37]FM_MakeSignedData [19:28:37]SAM_PROTO_SignData [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 01 02 [19:28:37]Write to MH i2c: E2 08 00 E9 61 80 0D 01 02 00 00 00 00 C3 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 E9 61 00 90 00 BE [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=255 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6A AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 78 00 00 35 04 06 00 9D [19:28:37]Write to MH i2c: E2 02 01 EA 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6A AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 78 00 00 35 04 06 00 9D 00 00 3A [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 EA 61 00 90 00 BF [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=10 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 02 02 05 A8 71 A1 B8 49 [19:28:37]Write to MH i2c: E2 0D 00 EB 61 80 0D 02 02 05 00 A8 71 A1 B8 49 00 00 8B [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 03 00 EB 61 00 90 00 C0 [19:28:37]RAPDU: 90 00 [19:28:37]wFMCommunicate OK [19:28:37]wFMCommunicate request_size=4 [19:28:37]MH_SAM_APDU [19:28:37]CAPDU: 80 0D 03 02 [19:28:37]Write to MH i2c: E2 08 00 EC 61 80 0D 03 02 00 00 00 00 C8 [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:37]Read from MH i2c: E2 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0B 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: E2 0B 00 EC 61 00 4A 3C 3E 56 40 11 87 20 90 00 DB [19:28:37]RAPDU: 4A 3C 3E 56 40 11 87 20 90 00 [19:28:37]wFMCommunicate OK [19:28:37]SAM_PROTO_SignData done [19:28:37]FM_MakeSignedData done [19:28:37]CreateOFDProtocolMessage [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 ED 61 80 11 00 00 00 00 00 00 C8 [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 ED 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 16 [19:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:28:37]wFMCommunicate OK [19:28:37]CreateOFDProtocolMessage done [19:28:37]OFDSenderStorePacket 30733 [19:28:37]StoreOFDPacket docnum=30733 [19:28:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B D4 07 01 EC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6A AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 78 00 00 35 04 06 00 9D A8 71 A1 B8 49 4A 3C 3E 56 40 11 87 20 [19:28:37]CheckFolder [19:28:37]dirname=/storage/ofd_packets [19:28:37]CheckFolder done [19:28:37]ProducePacketName [19:28:37]name=ofd_packets/00030733 [19:28:37]NVStorageSaveData ofd_packets/00030733 [19:28:37]File name is /storage/ofd_packets/00030733 [19:28:37]Write 301 bytes [19:28:37]NVStorageSaveData done [19:28:37]OFDSenderStorePacket done [19:28:37]KKMCreateOFDPacket done [19:28:37]NVStorageSaveData kkm_last_timestamp [19:28:37]File name is /storage/kkm_last_timestamp [19:28:37]Write 4 bytes [19:28:37]NVStorageSaveData done [19:28:37]ExternCall_PrintAddStr [19:28:37]wPrintStart [19:28:37]Write to MH i2c: 01 00 00 EE 61 4F [19:28:37]Write i2c OK [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 [19:28:37]MH_I2C_Read... [19:28:37]Read from MH i2c: 01 07 00 EE 61 00 00 00 00 00 FF 0F 64 [19:28:37]RasterBufferAndPrint [19:28:37]line Счет N : (1)343147 [19:28:37]line ИНН: 02508201610067 [19:28:37]line Контрольно-Кассовый Чек [19:28:37]line ПРОДАЖА [19:28:37]line ТРК (МРК, ГНК) : 52 [19:28:37]line Товар: 2710124500 [19:28:37]line Аи-95-К-3 [19:28:37]line 6.740 * 74.20 [19:28:37]line = 500.11 [19:28:37]line НДС 12% НСП 1% [19:28:37]line > о реализуемом товаре [19:28:37]line ОКРУГЛЕНИЕ: -0.11 [19:28:37]line ИТОГО: 500.00 [19:28:37]line Внесено: 500.00 [19:28:37]line СДАЧА: 0.00 [19:28:37]line НСП 1% : 4.43 [19:28:37]line НДС 12% : 53.11 [19:28:37]line Наличными: 500.00 [19:28:37]line Безнал.: 0.00 [19:28:37]line Место: АЗС № 78 "Партнер Нефть" [19:28:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:28:37]line СНО: Общий режим [19:28:37]line Чек 230 21.10.2024 19:28 [19:28:37]line Смена: 115 ФФД: 1.0 [19:28:37]line ЗНМ: 0300000137 [19:28:37]line РНМ: 0000000000186857 [19:28:37]line Версия ККМ: v1.0 [19:28:37]line ФМ: 0000000002094219 [19:28:37]line ФД: 30733 [19:28:37]line ФПД: 173346786490441 [19:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192842&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30733&fm=173346786490441&tin=02508201610067®Number=0000000000186857&sum=50000 [19:28:38]OFD Sender: Processing packet 30733 [packets to send 10, broken 9] [19:28:38]ProducePacketName [19:28:38]name=ofd_packets/00030733 [19:28:38]OFD Sender: To server: pG, [19:28:38]CommunicateWithHost lk.salyk.kg:30040 [19:28:38]ConnectInit lk.salyk.kg [19:28:38]written 0, free lines is 4095 [19:28:38]Connected sock=10 [19:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 1B D4 07 01 EC DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 6A AB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0D 78 00 00 35 04 06 00 9D A8 71 A1 B8 49 4A 3C 3E 56 40 11 87 20 [19:28:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 94 0B 47 00 43 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 32 30 39 34 32 31 39 10 04 04 00 0D 78 00 00 F4 03 04 00 EA 55 16 67 B6 04 01 00 00 02 75 17 BD 54 19 07 92 [19:28:38]CommunicateWithHost err = 0 [19:28:38]CheckOFDResponse [19:28:38]1017 (14) - 77093643461234 [19:28:38]1041 (16) - 0000000002094219 [19:28:38]1040 (4) - 30733 [19:28:38]1012 (4) - 21.10.2024 13:23 [19:28:38]1206 (1) - 0 [19:28:38]OFD Sender: Remove packet 30733 [19:28:38]ProducePacketName [19:28:38]name=ofd_packets/00030733 [19:28:38]NVStorageDeleteData [19:28:38]Write to MH i2c: 01 00 00 19 62 7B [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 07 00 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: 01 07 00 19 62 00 00 00 00 00 ED 0C 7B [19:28:38]RasterBufferAndPrint [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]line [19:28:38]written 0, free lines is 3318 [19:28:38]MH_Cut [19:28:38]Write to MH i2c: D1 01 00 20 62 01 54 [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 01 00 [19:28:38]MH_I2C_Read... [19:28:38]Read from MH i2c: D1 01 00 20 62 00 53 [19:28:38]Write to MH i2c: 01 00 00 21 62 83 [19:28:38]Write i2c OK [19:28:38]MH_I2C_Read... [19:28:38]OFD Sender: No OFD packet to send [19:28:39]*** Cut start [19:28:39]*** Partial cut [19:28:39]*** CUTSNS_PIN = 1 [19:28:39]*** CUTSNS_PIN = 0 [19:28:39]*** Brake cut motor [19:28:39]Read from MH i2c: 01 [19:28:39]MH_I2C_Read... [19:28:39]*** Stop cut motor [19:28:39]*** Cut end [19:28:39]Read from MH i2c: 01 07 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: 01 07 00 21 62 00 00 00 00 00 FF 0F 98 [19:28:39]process_action close_receipt done [19:28:39]requested_data is exist [19:28:39]produce_requested_data [19:28:39]requested_item fm.sn is exist - process it [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 11 00 00 [19:28:39]Write to MH i2c: E2 08 00 22 62 80 11 00 00 00 00 00 00 FE [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:39]Read from MH i2c: E2 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 17 00 [19:28:39]MH_I2C_Read... [19:28:39]Read from MH i2c: E2 17 00 22 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4C [19:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:28:39]wFMCommunicate OK [19:28:39]requested_item fd.num is exist - process it [19:28:39]SAM_PROTO_GetFieldsCounters [19:28:39]wFMCommunicate request_size=4 [19:28:39]MH_SAM_APDU [19:28:39]CAPDU: 80 13 00 00 [19:28:39]Write to MH i2c: E2 08 00 23 62 80 13 00 00 00 00 00 00 01 [19:28:39]Write i2c OK [19:28:39]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 62 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 62 00 23 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:40]wFMCommunicate OK [19:28:40]SAM_PROTO_GetFieldsCounters done [19:28:40]requested_item shift.num is exist - process it [19:28:40]requested_item shift.opened is exist - process it [19:28:40]req_shift_opened [19:28:40]FM_GetShiftState [19:28:40]SAM_PROTO_GetShiftState [19:28:40]wFMCommunicate request_size=4 [19:28:40]MH_SAM_APDU [19:28:40]CAPDU: 80 13 01 00 [19:28:40]Write to MH i2c: E2 08 00 24 62 80 13 01 00 00 00 00 00 03 [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 24 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7F [19:28:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:28:40]wFMCommunicate OK [19:28:40]SAM_PROTO_GetShiftState done [19:28:40]FM_GetShiftState done [19:28:40]req_shift_opened done [19:28:40]requested_item shift.open_date is exist - process it [19:28:40]req_shift_open_date [19:28:40]req_shift_open_date done [19:28:40]produce_requested_data done [19:28:40]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30733,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:28:40]process_action_free close_receipt [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.sn":"0000000002094219","fd.num":30733,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:28:40]free response buf [19:28:40]execute_script done [19:28:40]execute_script returns [19:28:40]free content buf [19:28:40]Sock 7.Close socket [19:28:40]Sock 7.Thread stoped [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:31]accept exits with 9 [19:32:31]New connection [19:32:31]New thread 3067346276 created [19:32:31]Thread 3067489636 joined [19:32:31]Waiting for new connection... [19:32:31] Sock 9.Parse request [19:32:31]Sock 9.Check first char [19:32:31]Sock 9.First char is OK [19:32:31]request: POST /json_proto HTTP/1.0 [19:32:31]Method: POST [19:32:31]URL: /json_proto [19:32:31]Method is POST - this is cgi request [19:32:31]url: /json_proto [19:32:31]query_string will be loaded in cgi processing [19:32:31]execute_cgi json_proto POST (null) [19:32:31]execute_cgi path=json_proto method=POST [19:32:31]POST find Content-Length [19:32:31]Host: 172.17.51.3:8080 [19:32:31]Content-Length: 677 [19:32:31]Content-Type: application/json [19:32:31] [19:32:31]POST finish read [19:32:31]Found Content-Length = 677 [19:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:31]execute_script... [19:32:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:31]POST & json_proto [19:32:31]process_json_proto [19:32:31]json parsed OK: [19:32:31]protocol is kg_v1.0 [19:32:31]action value=close_receipt [19:32:31]process_action close_receipt [19:32:31]cmd_close_receipt [19:32:31]MH_GetDate [19:32:31]Write to MH i2c: F0 00 00 25 62 76 [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 09 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: F0 09 00 25 62 00 55 AC 16 67 04 C1 95 66 BD [19:32:31]GetLastDocTimeStamp 1729538922 [19:32:31]current date 1729539157 [19:32:31]FM_GetShiftState [19:32:31]SAM_PROTO_GetShiftState [19:32:31]wFMCommunicate request_size=4 [19:32:31]MH_SAM_APDU [19:32:31]CAPDU: 80 13 01 00 [19:32:31]Write to MH i2c: E2 08 00 26 62 80 13 01 00 00 00 00 00 05 [19:32:31]Write i2c OK [19:32:31]MH_I2C_Read... [19:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:31]Read from MH i2c: E2 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 0E 00 [19:32:31]MH_I2C_Read... [19:32:31]Read from MH i2c: E2 0E 00 26 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 81 [19:32:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:32:31]wFMCommunicate OK [19:32:31]SAM_PROTO_GetShiftState done [19:32:31]FM_GetShiftState done [19:32:31]opened in 1729471058 [19:32:31]opened+sec_in_day 1729557458 [19:32:31]quantity*price = 40006 [19:32:31]sum+1 = 40007 [19:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 231 21.10.2024 19:32 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30734 ФПД: 214469606898704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193237&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30734&fm=214469606898704&tin=02508201610067®Number=0000000000186857&sum=40000 [19:32:32]StoreToDocumentArchive [19:32:32]shift 115 fd 30734 [19:32:32]save to /storage/0115/doc_00030734 [19:32:32]save last doc name /storage/0115/doc_00030734 to /storage/kkm_last_doc_name [19:32:32]save OK [19:32:32]Clear old archive folders... [19:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:32:32]tlvbuf is 01E22E40 [19:32:32]SAM_PROTO_ClearQueue [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 09 00 00 [19:32:32]Write to MH i2c: E2 08 00 33 62 80 09 00 00 00 00 00 00 07 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 33 62 00 90 00 09 [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]SAM_PROTO_ClearQueue done [19:32:32]KKMCreateOFDPacket [19:32:32]OFDProtocolAddRootSTLVToBuf [19:32:32]FM_MakeSignedData [19:32:32]FM_MakeSignedData [19:32:32]SAM_PROTO_SignData [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 01 02 [19:32:32]Write to MH i2c: E2 08 00 34 62 80 0D 01 02 00 00 00 00 0F [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 34 62 00 90 00 0A [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]wFMCommunicate request_size=255 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 55 AC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 78 00 00 35 04 06 00 C3 [19:32:32]Write to MH i2c: E2 02 01 35 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 55 AC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 78 00 00 35 04 06 00 C3 00 00 90 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 35 62 00 90 00 0B [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]wFMCommunicate request_size=10 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 02 02 05 0F 18 BB FC 10 [19:32:32]Write to MH i2c: E2 0D 00 36 62 80 0D 02 02 05 00 0F 18 BB FC 10 00 00 0A [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 03 00 36 62 00 90 00 0C [19:32:32]RAPDU: 90 00 [19:32:32]wFMCommunicate OK [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 0D 03 02 [19:32:32]Write to MH i2c: E2 08 00 37 62 80 0D 03 02 00 00 00 00 14 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0B 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 0B 00 37 62 00 97 2E FE 89 9A DA 87 92 90 00 EE [19:32:32]RAPDU: 97 2E FE 89 9A DA 87 92 90 00 [19:32:32]wFMCommunicate OK [19:32:32]SAM_PROTO_SignData done [19:32:32]FM_MakeSignedData done [19:32:32]CreateOFDProtocolMessage [19:32:32]wFMCommunicate request_size=4 [19:32:32]MH_SAM_APDU [19:32:32]CAPDU: 80 11 00 00 [19:32:32]Write to MH i2c: E2 08 00 38 62 80 11 00 00 00 00 00 00 14 [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:32]Read from MH i2c: E2 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: E2 17 00 38 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 62 [19:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:32:32]wFMCommunicate OK [19:32:32]CreateOFDProtocolMessage done [19:32:32]OFDSenderStorePacket 30734 [19:32:32]StoreOFDPacket docnum=30734 [19:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 52 07 01 FD 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 55 AC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 78 00 00 35 04 06 00 C3 0F 18 BB FC 10 97 2E FE 89 9A DA 87 92 [19:32:32]CheckFolder [19:32:32]dirname=/storage/ofd_packets [19:32:32]CheckFolder done [19:32:32]ProducePacketName [19:32:32]name=ofd_packets/00030734 [19:32:32]NVStorageSaveData ofd_packets/00030734 [19:32:32]File name is /storage/ofd_packets/00030734 [19:32:32]Write 301 bytes [19:32:32]NVStorageSaveData done [19:32:32]OFDSenderStorePacket done [19:32:32]KKMCreateOFDPacket done [19:32:32]NVStorageSaveData kkm_last_timestamp [19:32:32]File name is /storage/kkm_last_timestamp [19:32:32]Write 4 bytes [19:32:32]NVStorageSaveData done [19:32:32]ExternCall_PrintAddStr [19:32:32]wPrintStart [19:32:32]Write to MH i2c: 01 00 00 39 62 9B [19:32:32]Write i2c OK [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 [19:32:32]MH_I2C_Read... [19:32:32]Read from MH i2c: 01 07 00 39 62 00 00 00 00 00 FF 0F B0 [19:32:32]RasterBufferAndPrint [19:32:32]line Счет N : (1)343148 [19:32:32]line ИНН: 02508201610067 [19:32:32]line Контрольно-Кассовый Чек [19:32:32]line ПРОДАЖА [19:32:32]line ТРК (МРК, ГНК) : 63 [19:32:32]line Товар: 2710124130 [19:32:32]line Аи-92-К-2 [19:32:32]line 5.980 * 66.90 [19:32:32]line = 400.06 [19:32:32]line НДС 12% НСП 1% [19:32:32]line > о реализуемом товаре [19:32:32]line ОКРУГЛЕНИЕ: -0.06 [19:32:32]line ИТОГО: 400.00 [19:32:32]line Внесено: 400.00 [19:32:32]line СДАЧА: 0.00 [19:32:32]line НСП 1% : 3.54 [19:32:32]line НДС 12% : 42.48 [19:32:32]line Наличными: 400.00 [19:32:32]line Безнал.: 0.00 [19:32:32]line Место: АЗС № 78 "Партнер Нефть" [19:32:32]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:32:32]line СНО: Общий режим [19:32:32]line Чек 231 21.10.2024 19:32 [19:32:32]line Смена: 115 ФФД: 1.0 [19:32:32]line ЗНМ: 0300000137 [19:32:32]line РНМ: 0000000000186857 [19:32:32]line Версия ККМ: v1.0 [19:32:32]line ФМ: 0000000002094219 [19:32:32]line ФД: 30734 [19:32:32]line ФПД: 214469606898704 [19:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193237&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30734&fm=214469606898704&tin=02508201610067®Number=0000000000186857&sum=40000 [19:32:33]OFD Sender: Processing packet 30734 [packets to send 10, broken 9] [19:32:33]ProducePacketName [19:32:33]name=ofd_packets/00030734 [19:32:33]OFD Sender: To server: pG, [19:32:33]CommunicateWithHost lk.salyk.kg:30040 [19:32:33]ConnectInit lk.salyk.kg [19:32:33]written 0, free lines is 4095 [19:32:33]Connected sock=10 [19:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 89 52 07 01 FD 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 55 AC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 78 00 00 35 04 06 00 C3 0F 18 BB FC 10 97 2E FE 89 9A DA 87 92 [19:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6D 15 47 00 A0 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0E 78 00 00 F4 03 04 00 D5 56 16 67 B6 04 01 00 00 67 BF 49 69 74 D8 10 34 [19:32:33]CommunicateWithHost err = 0 [19:32:33]CheckOFDResponse [19:32:33]1017 (14) - 77093643461234 [19:32:33]1041 (16) - 0000000002094219 [19:32:33]1040 (4) - 30734 [19:32:33]1012 (4) - 21.10.2024 13:27 [19:32:33]1206 (1) - 0 [19:32:33]OFD Sender: Remove packet 30734 [19:32:33]ProducePacketName [19:32:33]name=ofd_packets/00030734 [19:32:33]NVStorageDeleteData [19:32:33]Write to MH i2c: 01 00 00 64 62 C6 [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 07 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: 01 07 00 64 62 00 00 00 00 00 EE 0C C7 [19:32:33]RasterBufferAndPrint [19:32:33]line [19:32:33]line [19:32:33]line [19:32:33]line [19:32:33]line [19:32:33]written 0, free lines is 3316 [19:32:33]MH_Cut [19:32:33]Write to MH i2c: D1 01 00 6B 62 01 9F [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: D1 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: D1 01 00 [19:32:33]MH_I2C_Read... [19:32:33]Read from MH i2c: D1 01 00 6B 62 00 9E [19:32:33]Write to MH i2c: 01 00 00 6C 62 CE [19:32:33]Write i2c OK [19:32:33]MH_I2C_Read... [19:32:33]OFD Sender: No OFD packet to send [19:32:34]*** Cut start [19:32:34]*** Partial cut [19:32:34]*** CUTSNS_PIN = 1 [19:32:34]*** CUTSNS_PIN = 0 [19:32:34]*** Brake cut motor [19:32:34]Read from MH i2c: 01 [19:32:34]MH_I2C_Read... [19:32:34]*** Stop cut motor [19:32:34]*** Cut end [19:32:34]Read from MH i2c: 01 07 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: 01 07 00 6C 62 00 00 00 00 00 FF 0F E3 [19:32:34]process_action close_receipt done [19:32:34]requested_data is exist [19:32:34]produce_requested_data [19:32:34]requested_item fm.sn is exist - process it [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 11 00 00 [19:32:34]Write to MH i2c: E2 08 00 6D 62 80 11 00 00 00 00 00 00 49 [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:34]Read from MH i2c: E2 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 17 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 17 00 6D 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 97 [19:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:32:34]wFMCommunicate OK [19:32:34]requested_item fd.num is exist - process it [19:32:34]SAM_PROTO_GetFieldsCounters [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 13 00 00 [19:32:34]Write to MH i2c: E2 08 00 6E 62 80 13 00 00 00 00 00 00 4C [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:34]Read from MH i2c: E2 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 62 00 [19:32:34]MH_I2C_Read... [19:32:34]Read from MH i2c: E2 62 00 6E 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:34]wFMCommunicate OK [19:32:34]SAM_PROTO_GetFieldsCounters done [19:32:34]requested_item shift.num is exist - process it [19:32:34]requested_item shift.opened is exist - process it [19:32:34]req_shift_opened [19:32:34]FM_GetShiftState [19:32:34]SAM_PROTO_GetShiftState [19:32:34]wFMCommunicate request_size=4 [19:32:34]MH_SAM_APDU [19:32:34]CAPDU: 80 13 01 00 [19:32:34]Write to MH i2c: E2 08 00 6F 62 80 13 01 00 00 00 00 00 4E [19:32:34]Write i2c OK [19:32:34]MH_I2C_Read... [19:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:35]Read from MH i2c: E2 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 0E 00 [19:32:35]MH_I2C_Read... [19:32:35]Read from MH i2c: E2 0E 00 6F 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CA [19:32:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:32:35]wFMCommunicate OK [19:32:35]SAM_PROTO_GetShiftState done [19:32:35]FM_GetShiftState done [19:32:35]req_shift_opened done [19:32:35]requested_item shift.open_date is exist - process it [19:32:35]req_shift_open_date [19:32:35]req_shift_open_date done [19:32:35]produce_requested_data done [19:32:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30734,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:32:35]process_action_free close_receipt [19:32:35]json_value_free [19:32:35]json_value_free done [19:32:35]process_json_proto returns [19:32:35]Send response to host [19:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30734,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:32:35]free response buf [19:32:35]execute_script done [19:32:35]execute_script returns [19:32:35]free content buf [19:32:35]Sock 9.Close socket [19:32:35]Sock 9.Thread stoped [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]accept exits with 7 [19:39:44]New connection [19:39:44]New thread 3067489636 created [19:39:44]Thread 3067346276 joined [19:39:44]Waiting for new connection... [19:39:44] Sock 7.Parse request [19:39:44]Sock 7.Check first char [19:39:44]Sock 7.First char is OK [19:39:44]request: POST /json_proto HTTP/1.0 [19:39:44]Method: POST [19:39:44]URL: /json_proto [19:39:44]Method is POST - this is cgi request [19:39:44]url: /json_proto [19:39:44]query_string will be loaded in cgi processing [19:39:44]execute_cgi json_proto POST (null) [19:39:44]execute_cgi path=json_proto method=POST [19:39:44]POST find Content-Length [19:39:44]Host: 172.17.51.3:8080 [19:39:44]Content-Length: 677 [19:39:44]Content-Type: application/json [19:39:44] [19:39:44]POST finish read [19:39:44]Found Content-Length = 677 [19:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:44]execute_script... [19:39:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:44]POST & json_proto [19:39:44]process_json_proto [19:39:44]json parsed OK: [19:39:44]protocol is kg_v1.0 [19:39:44]action value=close_receipt [19:39:44]process_action close_receipt [19:39:44]cmd_close_receipt [19:39:44]MH_GetDate [19:39:44]Write to MH i2c: F0 00 00 70 62 C1 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: F0 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: F0 09 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: F0 09 00 70 62 00 06 AE 16 67 04 C1 95 66 BB [19:39:44]GetLastDocTimeStamp 1729539157 [19:39:44]current date 1729539590 [19:39:44]FM_GetShiftState [19:39:44]SAM_PROTO_GetShiftState [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 01 00 [19:39:44]Write to MH i2c: E2 08 00 71 62 80 13 01 00 00 00 00 00 50 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 71 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 CC [19:39:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetShiftState done [19:39:44]FM_GetShiftState done [19:39:44]opened in 1729471058 [19:39:44]opened+sec_in_day 1729557458 [19:39:44]quantity*price = 50041 [19:39:44]sum+1 = 50042 [19:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 232 21.10.2024 19:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30735 ФПД: 110371708145580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30735&fm=110371708145580&tin=02508201610067®Number=0000000000186857&sum=50000 [19:39:45]StoreToDocumentArchive [19:39:45]shift 115 fd 30735 [19:39:45]save to /storage/0115/doc_00030735 [19:39:45]save last doc name /storage/0115/doc_00030735 to /storage/kkm_last_doc_name [19:39:45]save OK [19:39:45]Clear old archive folders... [19:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:45]tlvbuf is 01E08650 [19:39:45]SAM_PROTO_ClearQueue [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 09 00 00 [19:39:45]Write to MH i2c: E2 08 00 7E 62 80 09 00 00 00 00 00 00 52 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 7E 62 00 90 00 54 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_ClearQueue done [19:39:45]KKMCreateOFDPacket [19:39:45]OFDProtocolAddRootSTLVToBuf [19:39:45]FM_MakeSignedData [19:39:45]FM_MakeSignedData [19:39:45]SAM_PROTO_SignData [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 01 02 [19:39:45]Write to MH i2c: E2 08 00 7F 62 80 0D 01 02 00 00 00 00 5A [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 7F 62 00 90 00 55 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]wFMCommunicate request_size=255 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 06 AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 78 00 00 35 04 06 00 64 [19:39:45]Write to MH i2c: E2 02 01 80 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 06 AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 78 00 00 35 04 06 00 64 00 00 62 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 80 62 00 90 00 56 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]wFMCommunicate request_size=10 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 02 02 05 61 EA 75 0F AC [19:39:45]Write to MH i2c: E2 0D 00 81 62 80 0D 02 02 05 00 61 EA 75 0F AC 00 00 E2 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 03 00 81 62 00 90 00 57 [19:39:45]RAPDU: 90 00 [19:39:45]wFMCommunicate OK [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 0D 03 02 [19:39:45]Write to MH i2c: E2 08 00 82 62 80 0D 03 02 00 00 00 00 5F [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0B 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0B 00 82 62 00 4E E1 8D 9B FE 8C 9E 6B 90 00 4A [19:39:45]RAPDU: 4E E1 8D 9B FE 8C 9E 6B 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_SignData done [19:39:45]FM_MakeSignedData done [19:39:45]CreateOFDProtocolMessage [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 11 00 00 [19:39:45]Write to MH i2c: E2 08 00 83 62 80 11 00 00 00 00 00 00 5F [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 83 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AD [19:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:39:45]wFMCommunicate OK [19:39:45]CreateOFDProtocolMessage done [19:39:45]OFDSenderStorePacket 30735 [19:39:45]StoreOFDPacket docnum=30735 [19:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 59 DE 07 01 18 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 06 AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 78 00 00 35 04 06 00 64 61 EA 75 0F AC 4E E1 8D 9B FE 8C 9E 6B [19:39:45]CheckFolder [19:39:45]dirname=/storage/ofd_packets [19:39:45]CheckFolder done [19:39:45]ProducePacketName [19:39:45]name=ofd_packets/00030735 [19:39:45]NVStorageSaveData ofd_packets/00030735 [19:39:45]File name is /storage/ofd_packets/00030735 [19:39:45]Write 301 bytes [19:39:45]NVStorageSaveData done [19:39:45]OFDSenderStorePacket done [19:39:45]KKMCreateOFDPacket done [19:39:45]NVStorageSaveData kkm_last_timestamp [19:39:45]File name is /storage/kkm_last_timestamp [19:39:45]Write 4 bytes [19:39:45]NVStorageSaveData done [19:39:45]ExternCall_PrintAddStr [19:39:45]wPrintStart [19:39:45]Write to MH i2c: 01 00 00 84 62 E6 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: 01 07 00 84 62 00 00 00 00 00 FF 0F FB [19:39:45]RasterBufferAndPrint [19:39:45]line Счет N : (1)343149 [19:39:45]line ИНН: 02508201610067 [19:39:45]line Контрольно-Кассовый Чек [19:39:45]line ПРОДАЖА [19:39:45]line ТРК (МРК, ГНК) : 33 [19:39:45]line Товар: 2710124130 [19:39:45]line Аи-92-К-2 [19:39:45]line 7.480 * 66.90 [19:39:45]line = 500.41 [19:39:45]line НДС 12% НСП 1% [19:39:45]line > о реализуемом товаре [19:39:45]line ОКРУГЛЕНИЕ: -0.41 [19:39:45]line ИТОГО: 500.00 [19:39:45]line Внесено: 500.00 [19:39:45]line СДАЧА: 0.00 [19:39:45]line НСП 1% : 4.43 [19:39:45]line НДС 12% : 53.14 [19:39:45]line Наличными: 500.00 [19:39:45]line Безнал.: 0.00 [19:39:45]line Место: АЗС № 78 "Партнер Нефть" [19:39:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:39:45]line СНО: Общий режим [19:39:45]line Чек 232 21.10.2024 19:39 [19:39:45]line Смена: 115 ФФД: 1.0 [19:39:45]line ЗНМ: 0300000137 [19:39:45]line РНМ: 0000000000186857 [19:39:45]line Версия ККМ: v1.0 [19:39:45]line ФМ: 0000000002094219 [19:39:45]line ФД: 30735 [19:39:45]line ФПД: 110371708145580 [19:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193950&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30735&fm=110371708145580&tin=02508201610067®Number=0000000000186857&sum=50000 [19:39:46]OFD Sender: Processing packet 30735 [packets to send 10, broken 9] [19:39:46]ProducePacketName [19:39:46]name=ofd_packets/00030735 [19:39:46]OFD Sender: To server: pG, [19:39:46]CommunicateWithHost lk.salyk.kg:30040 [19:39:46]ConnectInit lk.salyk.kg [19:39:46]written 0, free lines is 4095 [19:39:46]Connected sock=10 [19:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 59 DE 07 01 18 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 06 AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 0F 78 00 00 35 04 06 00 64 61 EA 75 0F AC 4E E1 8D 9B FE 8C 9E 6B [19:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 84 11 47 00 25 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 32 30 39 34 32 31 39 10 04 04 00 0F 78 00 00 F4 03 04 00 86 58 16 67 B6 04 01 00 00 3E 6D 63 5C 4F 22 37 3F [19:39:46]CommunicateWithHost err = 0 [19:39:46]CheckOFDResponse [19:39:46]1017 (14) - 77093643461234 [19:39:46]1041 (16) - 0000000002094219 [19:39:46]1040 (4) - 30735 [19:39:46]1012 (4) - 21.10.2024 13:35 [19:39:46]1206 (1) - 0 [19:39:46]OFD Sender: Remove packet 30735 [19:39:46]ProducePacketName [19:39:46]name=ofd_packets/00030735 [19:39:46]NVStorageDeleteData [19:39:46]Write to MH i2c: 01 00 00 AF 62 11 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 07 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: 01 07 00 AF 62 00 00 00 00 00 DC 0C 00 [19:39:46]RasterBufferAndPrint [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]line [19:39:46]written 0, free lines is 3298 [19:39:46]MH_Cut [19:39:46]Write to MH i2c: D1 01 00 B6 62 01 EA [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: D1 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: D1 01 00 [19:39:46]MH_I2C_Read... [19:39:46]Read from MH i2c: D1 01 00 B6 62 00 E9 [19:39:46]Write to MH i2c: 01 00 00 B7 62 19 [19:39:46]Write i2c OK [19:39:46]MH_I2C_Read... [19:39:46]OFD Sender: No OFD packet to send [19:39:47]*** Cut start [19:39:47]*** Partial cut [19:39:47]*** CUTSNS_PIN = 1 [19:39:47]*** CUTSNS_PIN = 0 [19:39:47]*** Brake cut motor [19:39:47]Read from MH i2c: 01 [19:39:47]MH_I2C_Read... [19:39:47]*** Stop cut motor [19:39:47]*** Cut end [19:39:47]Read from MH i2c: 01 07 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: 01 07 00 B7 62 00 00 00 00 00 FF 0F 2E [19:39:47]process_action close_receipt done [19:39:47]requested_data is exist [19:39:47]produce_requested_data [19:39:47]requested_item fm.sn is exist - process it [19:39:47]wFMCommunicate request_size=4 [19:39:47]MH_SAM_APDU [19:39:47]CAPDU: 80 11 00 00 [19:39:47]Write to MH i2c: E2 08 00 B8 62 80 11 00 00 00 00 00 00 94 [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:47]Read from MH i2c: E2 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 17 00 [19:39:47]MH_I2C_Read... [19:39:47]Read from MH i2c: E2 17 00 B8 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E2 [19:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:39:47]wFMCommunicate OK [19:39:47]requested_item fd.num is exist - process it [19:39:47]SAM_PROTO_GetFieldsCounters [19:39:47]wFMCommunicate request_size=4 [19:39:47]MH_SAM_APDU [19:39:47]CAPDU: 80 13 00 00 [19:39:47]Write to MH i2c: E2 08 00 B9 62 80 13 00 00 00 00 00 00 97 [19:39:47]Write i2c OK [19:39:47]MH_I2C_Read... [19:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:48]Read from MH i2c: E2 [19:39:48]MH_I2C_Read... [19:39:48]Read from MH i2c: E2 62 00 [19:39:48]MH_I2C_Read... [19:39:48]Read from MH i2c: E2 62 00 B9 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [19:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 0F 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:48]wFMCommunicate OK [19:39:48]SAM_PROTO_GetFieldsCounters done [19:39:48]requested_item shift.num is exist - process it [19:39:48]requested_item shift.opened is exist - process it [19:39:48]req_shift_opened [19:39:48]FM_GetShiftState [19:39:48]SAM_PROTO_GetShiftState [19:39:48]wFMCommunicate request_size=4 [19:39:48]MH_SAM_APDU [19:39:48]CAPDU: 80 13 01 00 [19:39:48]Write to MH i2c: E2 08 00 BA 62 80 13 01 00 00 00 00 00 99 [19:39:48]Write i2c OK [19:39:48]MH_I2C_Read... [19:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:48]Read from MH i2c: E2 [19:39:48]MH_I2C_Read... [19:39:48]Read from MH i2c: E2 0E 00 [19:39:48]MH_I2C_Read... [19:39:48]Read from MH i2c: E2 0E 00 BA 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 15 [19:39:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:39:48]wFMCommunicate OK [19:39:48]SAM_PROTO_GetShiftState done [19:39:48]FM_GetShiftState done [19:39:48]req_shift_opened done [19:39:48]requested_item shift.open_date is exist - process it [19:39:48]req_shift_open_date [19:39:48]req_shift_open_date done [19:39:48]produce_requested_data done [19:39:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30735,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:39:48]process_action_free close_receipt [19:39:48]json_value_free [19:39:48]json_value_free done [19:39:48]process_json_proto returns [19:39:48]Send response to host [19:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30735,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:39:48]free response buf [19:39:48]execute_script done [19:39:48]execute_script returns [19:39:48]free content buf [19:39:48]Sock 7.Close socket [19:39:48]Sock 7.Thread stoped [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]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:32]accept exits with 9 [19:42:32]New connection [19:42:32]New thread 3067346276 created [19:42:32]Thread 3067489636 joined [19:42:32]Waiting for new connection... [19:42:32] Sock 9.Parse request [19:42:32]Sock 9.Check first char [19:42:32]Sock 9.First char is OK [19:42:32]request: POST /json_proto HTTP/1.0 [19:42:32]Method: POST [19:42:32]URL: /json_proto [19:42:32]Method is POST - this is cgi request [19:42:32]url: /json_proto [19:42:32]query_string will be loaded in cgi processing [19:42:32]execute_cgi json_proto POST (null) [19:42:32]execute_cgi path=json_proto method=POST [19:42:32]POST find Content-Length [19:42:32]Host: 172.17.51.3:8080 [19:42:32]Content-Length: 677 [19:42:32]Content-Type: application/json [19:42:32] [19:42:32]POST finish read [19:42:32]Found Content-Length = 677 [19:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:32]execute_script... [19:42:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:32]POST & json_proto [19:42:32]process_json_proto [19:42:32]json parsed OK: [19:42:32]protocol is kg_v1.0 [19:42:32]action value=close_receipt [19:42:32]process_action close_receipt [19:42:32]cmd_close_receipt [19:42:32]MH_GetDate [19:42:32]Write to MH i2c: F0 00 00 BB 62 0C [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: F0 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: F0 09 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: F0 09 00 BB 62 00 AE AE 16 67 04 C1 95 66 AE [19:42:32]GetLastDocTimeStamp 1729539590 [19:42:32]current date 1729539758 [19:42:32]FM_GetShiftState [19:42:32]SAM_PROTO_GetShiftState [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 13 01 00 [19:42:32]Write to MH i2c: E2 08 00 BC 62 80 13 01 00 00 00 00 00 9B [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:32]Read from MH i2c: E2 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 0E 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 0E 00 BC 62 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 17 [19:42:32]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:42:32]wFMCommunicate OK [19:42:32]SAM_PROTO_GetShiftState done [19:42:32]FM_GetShiftState done [19:42:32]opened in 1729471058 [19:42:32]opened+sec_in_day 1729557458 [19:42:32]quantity*price = 30038 [19:42:32]sum+1 = 30039 [19:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 233 21.10.2024 19:42 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30736 ФПД: 53243513850555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194238&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30736&fm=53243513850555&tin=02508201610067®Number=0000000000186857&sum=30000 [19:42:33]StoreToDocumentArchive [19:42:33]shift 115 fd 30736 [19:42:33]save to /storage/0115/doc_00030736 [19:42:33]save last doc name /storage/0115/doc_00030736 to /storage/kkm_last_doc_name [19:42:33]save OK [19:42:33]Clear old archive folders... [19:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:33]tlvbuf is 01E10B80 [19:42:33]SAM_PROTO_ClearQueue [19:42:33]wFMCommunicate request_size=4 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 09 00 00 [19:42:33]Write to MH i2c: E2 08 00 C9 62 80 09 00 00 00 00 00 00 9D [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 C9 62 00 90 00 9F [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]SAM_PROTO_ClearQueue done [19:42:33]KKMCreateOFDPacket [19:42:33]OFDProtocolAddRootSTLVToBuf [19:42:33]FM_MakeSignedData [19:42:33]FM_MakeSignedData [19:42:33]SAM_PROTO_SignData [19:42:33]wFMCommunicate request_size=4 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 0D 01 02 [19:42:33]Write to MH i2c: E2 08 00 CA 62 80 0D 01 02 00 00 00 00 A5 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 CA 62 00 90 00 A0 [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]wFMCommunicate request_size=255 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AE AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 78 00 00 35 04 06 00 30 [19:42:33]Write to MH i2c: E2 02 01 CB 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AE AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 78 00 00 35 04 06 00 30 00 00 17 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:33]Read from MH i2c: E2 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 [19:42:33]MH_I2C_Read... [19:42:33]Read from MH i2c: E2 03 00 CB 62 00 90 00 A1 [19:42:33]RAPDU: 90 00 [19:42:33]wFMCommunicate OK [19:42:33]wFMCommunicate request_size=10 [19:42:33]MH_SAM_APDU [19:42:33]CAPDU: 80 0D 02 02 05 6C B8 BA CA BB [19:42:33]Write to MH i2c: E2 0D 00 CC 62 80 0D 02 02 05 00 6C B8 BA CA BB 00 00 15 [19:42:33]Write i2c OK [19:42:33]MH_I2C_Read... [19:42:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:34]Read from MH i2c: E2 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 03 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 03 00 CC 62 00 90 00 A2 [19:42:34]RAPDU: 90 00 [19:42:34]wFMCommunicate OK [19:42:34]wFMCommunicate request_size=4 [19:42:34]MH_SAM_APDU [19:42:34]CAPDU: 80 0D 03 02 [19:42:34]Write to MH i2c: E2 08 00 CD 62 80 0D 03 02 00 00 00 00 AA [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:34]Read from MH i2c: E2 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 0B 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 0B 00 CD 62 00 06 BB 16 2B 35 E9 89 2D 90 00 81 [19:42:34]RAPDU: 06 BB 16 2B 35 E9 89 2D 90 00 [19:42:34]wFMCommunicate OK [19:42:34]SAM_PROTO_SignData done [19:42:34]FM_MakeSignedData done [19:42:34]CreateOFDProtocolMessage [19:42:34]wFMCommunicate request_size=4 [19:42:34]MH_SAM_APDU [19:42:34]CAPDU: 80 11 00 00 [19:42:34]Write to MH i2c: E2 08 00 CE 62 80 11 00 00 00 00 00 00 AA [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:34]Read from MH i2c: E2 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 17 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: E2 17 00 CE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F8 [19:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:34]wFMCommunicate OK [19:42:34]CreateOFDProtocolMessage done [19:42:34]OFDSenderStorePacket 30736 [19:42:34]StoreOFDPacket docnum=30736 [19:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EE 5C 07 01 DB C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AE AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 78 00 00 35 04 06 00 30 6C B8 BA CA BB 06 BB 16 2B 35 E9 89 2D [19:42:34]CheckFolder [19:42:34]dirname=/storage/ofd_packets [19:42:34]CheckFolder done [19:42:34]ProducePacketName [19:42:34]name=ofd_packets/00030736 [19:42:34]NVStorageSaveData ofd_packets/00030736 [19:42:34]File name is /storage/ofd_packets/00030736 [19:42:34]Write 301 bytes [19:42:34]NVStorageSaveData done [19:42:34]OFDSenderStorePacket done [19:42:34]KKMCreateOFDPacket done [19:42:34]NVStorageSaveData kkm_last_timestamp [19:42:34]File name is /storage/kkm_last_timestamp [19:42:34]Write 4 bytes [19:42:34]NVStorageSaveData done [19:42:34]ExternCall_PrintAddStr [19:42:34]wPrintStart [19:42:34]Write to MH i2c: 01 00 00 CF 62 31 [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 CF 62 00 00 00 00 00 FF 0F 46 [19:42:34]RasterBufferAndPrint [19:42:34]line Счет N : (1)343150 [19:42:34]line ИНН: 02508201610067 [19:42:34]line Контрольно-Кассовый Чек [19:42:34]line ПРОДАЖА [19:42:34]line ТРК (МРК, ГНК) : 53 [19:42:34]line Товар: 2710124130 [19:42:34]line Аи-92-К-2 [19:42:34]line 4.490 * 66.90 [19:42:34]line = 300.38 [19:42:34]line НДС 12% НСП 1% [19:42:34]line > о реализуемом товаре [19:42:34]line ОКРУГЛЕНИЕ: -0.38 [19:42:34]line ИТОГО: 300.00 [19:42:34]line Внесено: 300.00 [19:42:34]line СДАЧА: 0.00 [19:42:34]line НСП 1% : 2.66 [19:42:34]line НДС 12% : 31.90 [19:42:34]line Наличными: 300.00 [19:42:34]line Безнал.: 0.00 [19:42:34]line Место: АЗС № 78 "Партнер Нефть" [19:42:34]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:42:34]line СНО: Общий режим [19:42:34]line Чек 233 21.10.2024 19:42 [19:42:34]line Смена: 115 ФФД: 1.0 [19:42:34]line ЗНМ: 0300000137 [19:42:34]line РНМ: 0000000000186857 [19:42:34]line Версия ККМ: v1.0 [19:42:34]line ФМ: 0000000002094219 [19:42:34]line ФД: 30736 [19:42:34]line ФПД: 53243513850555 [19:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194238&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30736&fm=53243513850555&tin=02508201610067®Number=0000000000186857&sum=30000 [19:42:34]OFD Sender: Processing packet 30736 [packets to send 10, broken 9] [19:42:34]ProducePacketName [19:42:34]name=ofd_packets/00030736 [19:42:34]OFD Sender: To server: pG, [19:42:34]CommunicateWithHost lk.salyk.kg:30040 [19:42:34]ConnectInit lk.salyk.kg [19:42:34]written 0, free lines is 4095 [19:42:34]Connected sock=10 [19:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 EE 5C 07 01 DB C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 AE AE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 78 00 00 35 04 06 00 30 6C B8 BA CA BB 06 BB 16 2B 35 E9 89 2D [19:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 46 B9 47 00 86 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 10 78 00 00 F4 03 04 00 2E 59 16 67 B6 04 01 00 00 8D A9 34 05 4D 0E A2 F4 [19:42:34]CommunicateWithHost err = 0 [19:42:34]CheckOFDResponse [19:42:34]1017 (14) - 77093643461234 [19:42:34]1041 (16) - 0000000002094219 [19:42:34]1040 (4) - 30736 [19:42:34]1012 (4) - 21.10.2024 13:37 [19:42:34]1206 (1) - 0 [19:42:34]OFD Sender: Remove packet 30736 [19:42:34]ProducePacketName [19:42:34]name=ofd_packets/00030736 [19:42:34]NVStorageDeleteData [19:42:34]Write to MH i2c: 01 00 00 FA 62 5C [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: 01 07 00 FA 62 00 00 00 00 00 F2 0C 61 [19:42:34]RasterBufferAndPrint [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]line [19:42:34]written 0, free lines is 3320 [19:42:34]MH_Cut [19:42:34]Write to MH i2c: D1 01 00 01 63 01 36 [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 01 00 [19:42:34]MH_I2C_Read... [19:42:34]Read from MH i2c: D1 01 00 01 63 00 35 [19:42:34]Write to MH i2c: 01 00 00 02 63 65 [19:42:34]Write i2c OK [19:42:34]MH_I2C_Read... [19:42:35]OFD Sender: No OFD packet to send [19:42:35]*** Cut start [19:42:35]*** Partial cut [19:42:35]*** CUTSNS_PIN = 1 [19:42:35]*** CUTSNS_PIN = 0 [19:42:35]*** Brake cut motor [19:42:36]Read from MH i2c: 01 [19:42:36]MH_I2C_Read... [19:42:36]*** Stop cut motor [19:42:36]*** Cut end [19:42:36]Read from MH i2c: 01 07 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: 01 07 00 02 63 00 00 00 00 00 FF 0F 7A [19:42:36]process_action close_receipt done [19:42:36]requested_data is exist [19:42:36]produce_requested_data [19:42:36]requested_item fm.sn is exist - process it [19:42:36]wFMCommunicate request_size=4 [19:42:36]MH_SAM_APDU [19:42:36]CAPDU: 80 11 00 00 [19:42:36]Write to MH i2c: E2 08 00 03 63 80 11 00 00 00 00 00 00 E0 [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:36]Read from MH i2c: E2 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 17 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 17 00 03 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 2E [19:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:42:36]wFMCommunicate OK [19:42:36]requested_item fd.num is exist - process it [19:42:36]SAM_PROTO_GetFieldsCounters [19:42:36]wFMCommunicate request_size=4 [19:42:36]MH_SAM_APDU [19:42:36]CAPDU: 80 13 00 00 [19:42:36]Write to MH i2c: E2 08 00 04 63 80 13 00 00 00 00 00 00 E3 [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:36]Read from MH i2c: E2 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 62 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 62 00 04 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:42:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 10 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:36]wFMCommunicate OK [19:42:36]SAM_PROTO_GetFieldsCounters done [19:42:36]requested_item shift.num is exist - process it [19:42:36]requested_item shift.opened is exist - process it [19:42:36]req_shift_opened [19:42:36]FM_GetShiftState [19:42:36]SAM_PROTO_GetShiftState [19:42:36]wFMCommunicate request_size=4 [19:42:36]MH_SAM_APDU [19:42:36]CAPDU: 80 13 01 00 [19:42:36]Write to MH i2c: E2 08 00 05 63 80 13 01 00 00 00 00 00 E5 [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:36]Read from MH i2c: E2 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 05 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 61 [19:42:36]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:42:36]wFMCommunicate OK [19:42:36]SAM_PROTO_GetShiftState done [19:42:36]FM_GetShiftState done [19:42:36]req_shift_opened done [19:42:36]requested_item shift.open_date is exist - process it [19:42:36]req_shift_open_date [19:42:36]req_shift_open_date done [19:42:36]produce_requested_data done [19:42:36]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30736,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:42:36]process_action_free close_receipt [19:42:36]json_value_free [19:42:36]json_value_free done [19:42:36]process_json_proto returns [19:42:36]Send response to host [19:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30736,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:42:36]free response buf [19:42:36]execute_script done [19:42:36]execute_script returns [19:42:36]free content buf [19:42:36]Sock 9.Close socket [19:42:36]Sock 9.Thread stoped [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:40]OFD Sender: No OFD packet to send [19:44:45]OFD Sender: No OFD packet to send [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:10]OFD Sender: No OFD packet to send [19:46:15]OFD Sender: No OFD packet to send [19:46:20]OFD Sender: No OFD packet to send [19:46:25]OFD Sender: No OFD packet to send [19:46:30]OFD Sender: No OFD packet to send [19:46:35]OFD Sender: No OFD packet to send [19:46:40]OFD Sender: No OFD packet to send [19:46:45]OFD Sender: No OFD packet to send [19:46:50]OFD Sender: No OFD packet to send [19:46:55]OFD Sender: No OFD packet to send [19:47:00]OFD Sender: No OFD packet to send [19:47:05]OFD Sender: No OFD packet to send [19:47:07]accept exits with 7 [19:47:07]New connection [19:47:07]New thread 3067489636 created [19:47:07]Thread 3067346276 joined [19:47:07]Waiting for new connection... [19:47:07] Sock 7.Parse request [19:47:07]Sock 7.Check first char [19:47:07]Sock 7.First char is OK [19:47:07]request: POST /json_proto HTTP/1.0 [19:47:07]Method: POST [19:47:07]URL: /json_proto [19:47:07]Method is POST - this is cgi request [19:47:07]url: /json_proto [19:47:07]query_string will be loaded in cgi processing [19:47:07]execute_cgi json_proto POST (null) [19:47:07]execute_cgi path=json_proto method=POST [19:47:07]POST find Content-Length [19:47:07]Host: 172.17.51.3:8080 [19:47:07]Content-Length: 682 [19:47:07]Content-Type: application/json [19:47:07] [19:47:07]POST finish read [19:47:07]Found Content-Length = 682 [19:47:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:07]execute_script... [19:47:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:47:07]POST & json_proto [19:47:07]process_json_proto [19:47:07]json parsed OK: [19:47:07]protocol is kg_v1.0 [19:47:07]action value=close_receipt [19:47:07]process_action close_receipt [19:47:07]cmd_close_receipt [19:47:07]MH_GetDate [19:47:07]Write to MH i2c: F0 00 00 06 63 58 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: F0 09 00 06 63 00 C2 AF 16 67 04 C1 95 66 0F [19:47:07]GetLastDocTimeStamp 1729539758 [19:47:07]current date 1729540034 [19:47:07]FM_GetShiftState [19:47:07]SAM_PROTO_GetShiftState [19:47:07]wFMCommunicate request_size=4 [19:47:07]MH_SAM_APDU [19:47:07]CAPDU: 80 13 01 00 [19:47:07]Write to MH i2c: E2 08 00 07 63 80 13 01 00 00 00 00 00 E7 [19:47:07]Write i2c OK [19:47:07]MH_I2C_Read... [19:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:07]Read from MH i2c: E2 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 [19:47:07]MH_I2C_Read... [19:47:07]Read from MH i2c: E2 0E 00 07 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 63 [19:47:07]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:47:07]wFMCommunicate OK [19:47:07]SAM_PROTO_GetShiftState done [19:47:07]FM_GetShiftState done [19:47:07]opened in 1729471058 [19:47:07]opened+sec_in_day 1729557458 [19:47:07]quantity*price = 100021 [19:47:07]sum+1 = 100023 [19:47:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 234 21.10.2024 19:47 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30737 ФПД: 33513636391670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30737&fm=33513636391670&tin=02508201610067®Number=0000000000186857&sum=100000 [19:47:08]StoreToDocumentArchive [19:47:08]shift 115 fd 30737 [19:47:08]save to /storage/0115/doc_00030737 [19:47:08]save last doc name /storage/0115/doc_00030737 to /storage/kkm_last_doc_name [19:47:08]save OK [19:47:08]Clear old archive folders... [19:47:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:08]tlvbuf is 01DB5FD0 [19:47:08]SAM_PROTO_ClearQueue [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 09 00 00 [19:47:08]Write to MH i2c: E2 08 00 14 63 80 09 00 00 00 00 00 00 E9 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 14 63 00 90 00 EB [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]SAM_PROTO_ClearQueue done [19:47:08]KKMCreateOFDPacket [19:47:08]OFDProtocolAddRootSTLVToBuf [19:47:08]FM_MakeSignedData [19:47:08]FM_MakeSignedData [19:47:08]SAM_PROTO_SignData [19:47:08]wFMCommunicate request_size=4 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 01 02 [19:47:08]Write to MH i2c: E2 08 00 15 63 80 0D 01 02 00 00 00 00 F1 [19:47:08]Write i2c OK [19:47:08]MH_I2C_Read... [19:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:08]Read from MH i2c: E2 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 [19:47:08]MH_I2C_Read... [19:47:08]Read from MH i2c: E2 03 00 15 63 00 90 00 EC [19:47:08]RAPDU: 90 00 [19:47:08]wFMCommunicate OK [19:47:08]wFMCommunicate request_size=255 [19:47:08]MH_SAM_APDU [19:47:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C2 AF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 78 00 00 35 04 06 00 1E [19:47:09]Write to MH i2c: E2 02 01 16 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C2 AF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 78 00 00 35 04 06 00 1E 00 00 92 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 16 63 00 90 00 ED [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=10 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 02 02 05 7B 00 64 6A F6 [19:47:09]Write to MH i2c: E2 0D 00 17 63 80 0D 02 02 05 00 7B 00 64 6A F6 00 00 3D [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 03 00 17 63 00 90 00 EE [19:47:09]RAPDU: 90 00 [19:47:09]wFMCommunicate OK [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 0D 03 02 [19:47:09]Write to MH i2c: E2 08 00 18 63 80 0D 03 02 00 00 00 00 F6 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 0B 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 0B 00 18 63 00 2B 6D 22 61 61 92 57 16 90 00 72 [19:47:09]RAPDU: 2B 6D 22 61 61 92 57 16 90 00 [19:47:09]wFMCommunicate OK [19:47:09]SAM_PROTO_SignData done [19:47:09]FM_MakeSignedData done [19:47:09]CreateOFDProtocolMessage [19:47:09]wFMCommunicate request_size=4 [19:47:09]MH_SAM_APDU [19:47:09]CAPDU: 80 11 00 00 [19:47:09]Write to MH i2c: E2 08 00 19 63 80 11 00 00 00 00 00 00 F6 [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:09]Read from MH i2c: E2 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: E2 17 00 19 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 44 [19:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:47:09]wFMCommunicate OK [19:47:09]CreateOFDProtocolMessage done [19:47:09]OFDSenderStorePacket 30737 [19:47:09]StoreOFDPacket docnum=30737 [19:47:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B9 08 07 01 6E 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C2 AF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 78 00 00 35 04 06 00 1E 7B 00 64 6A F6 2B 6D 22 61 61 92 57 16 [19:47:09]CheckFolder [19:47:09]dirname=/storage/ofd_packets [19:47:09]CheckFolder done [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00030737 [19:47:09]NVStorageSaveData ofd_packets/00030737 [19:47:09]File name is /storage/ofd_packets/00030737 [19:47:09]Write 301 bytes [19:47:09]NVStorageSaveData done [19:47:09]OFDSenderStorePacket done [19:47:09]KKMCreateOFDPacket done [19:47:09]NVStorageSaveData kkm_last_timestamp [19:47:09]File name is /storage/kkm_last_timestamp [19:47:09]Write 4 bytes [19:47:09]NVStorageSaveData done [19:47:09]ExternCall_PrintAddStr [19:47:09]wPrintStart [19:47:09]Write to MH i2c: 01 00 00 1A 63 7D [19:47:09]Write i2c OK [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 [19:47:09]MH_I2C_Read... [19:47:09]Read from MH i2c: 01 07 00 1A 63 00 00 00 00 00 FF 0F 92 [19:47:09]RasterBufferAndPrint [19:47:09]line Счет N : (1)343151 [19:47:09]line ИНН: 02508201610067 [19:47:09]line Контрольно-Кассовый Чек [19:47:09]line ПРОДАЖА [19:47:09]line ТРК (МРК, ГНК) : 42 [19:47:09]line Товар: 2710124500 [19:47:09]line Аи-95-К-3 [19:47:09]line 13.480 * 74.20 [19:47:09]line = 1000.22 [19:47:09]line НДС 12% НСП 1% [19:47:09]line > о реализуемом товаре [19:47:09]line ОКРУГЛЕНИЕ: -0.22 [19:47:09]line ИТОГО: 1000.00 [19:47:09]line Внесено: 1000.00 [19:47:09]line СДАЧА: 0.00 [19:47:09]line НСП 1% : 8.85 [19:47:09]line НДС 12% : 106.22 [19:47:09]line Наличными: 1000.00 [19:47:09]line Безнал.: 0.00 [19:47:09]line Место: АЗС № 78 "Партнер Нефть" [19:47:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:47:09]OFD Sender: Processing packet 30737 [packets to send 10, broken 9] [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00030737 [19:47:09]OFD Sender: To server: pG, [19:47:09]CommunicateWithHost lk.salyk.kg:30040 [19:47:09]ConnectInit lk.salyk.kg [19:47:09]line СНО: Общий режим [19:47:09]line Чек 234 21.10.2024 19:47 [19:47:09]line Смена: 115 ФФД: 1.0 [19:47:09]line ЗНМ: 0300000137 [19:47:09]line РНМ: 0000000000186857 [19:47:09]line Версия ККМ: v1.0 [19:47:09]line ФМ: 0000000002094219 [19:47:09]line ФД: 30737 [19:47:09]line ФПД: 33513636391670 [19:47:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194714&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30737&fm=33513636391670&tin=02508201610067®Number=0000000000186857&sum=100000 [19:47:09]Connected sock=11 [19:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B9 08 07 01 6E 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C2 AF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 11 78 00 00 35 04 06 00 1E 7B 00 64 6A F6 2B 6D 22 61 61 92 57 16 [19:47:09]written 0, free lines is 4095 [19:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BC 16 47 00 DE 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 32 30 39 34 32 31 39 10 04 04 00 11 78 00 00 F4 03 04 00 41 5A 16 67 B6 04 01 00 00 41 B5 F7 76 89 30 B8 90 [19:47:09]CommunicateWithHost err = 0 [19:47:09]CheckOFDResponse [19:47:09]1017 (14) - 77093643461234 [19:47:09]1041 (16) - 0000000002094219 [19:47:09]1040 (4) - 30737 [19:47:09]1012 (4) - 21.10.2024 13:42 [19:47:09]1206 (1) - 0 [19:47:09]OFD Sender: Remove packet 30737 [19:47:09]ProducePacketName [19:47:09]name=ofd_packets/00030737 [19:47:09]NVStorageDeleteData [19:47:10]Write to MH i2c: 01 00 00 45 63 A8 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: 01 07 00 45 63 00 00 00 00 00 EA 0C A5 [19:47:10]RasterBufferAndPrint [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]line [19:47:10]written 0, free lines is 3313 [19:47:10]MH_Cut [19:47:10]Write to MH i2c: D1 01 00 4C 63 01 81 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: D1 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: D1 01 00 [19:47:10]MH_I2C_Read... [19:47:10]Read from MH i2c: D1 01 00 4C 63 00 80 [19:47:10]Write to MH i2c: 01 00 00 4D 63 B0 [19:47:10]Write i2c OK [19:47:10]MH_I2C_Read... [19:47:10]OFD Sender: No OFD packet to send [19:47:10]*** Cut start [19:47:10]*** Partial cut [19:47:10]*** CUTSNS_PIN = 1 [19:47:10]*** CUTSNS_PIN = 0 [19:47:11]*** Brake cut motor [19:47:11]Read from MH i2c: 01 [19:47:11]MH_I2C_Read... [19:47:11]*** Stop cut motor [19:47:11]*** Cut end [19:47:11]Read from MH i2c: 01 07 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: 01 07 00 4D 63 00 00 00 00 00 FF 0F C5 [19:47:11]process_action close_receipt done [19:47:11]requested_data is exist [19:47:11]produce_requested_data [19:47:11]requested_item fm.sn is exist - process it [19:47:11]wFMCommunicate request_size=4 [19:47:11]MH_SAM_APDU [19:47:11]CAPDU: 80 11 00 00 [19:47:11]Write to MH i2c: E2 08 00 4E 63 80 11 00 00 00 00 00 00 2B [19:47:11]Write i2c OK [19:47:11]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 17 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 17 00 4E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 79 [19:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:47:11]wFMCommunicate OK [19:47:11]requested_item fd.num is exist - process it [19:47:11]SAM_PROTO_GetFieldsCounters [19:47:11]wFMCommunicate request_size=4 [19:47:11]MH_SAM_APDU [19:47:11]CAPDU: 80 13 00 00 [19:47:11]Write to MH i2c: E2 08 00 4F 63 80 13 00 00 00 00 00 00 2E [19:47:11]Write i2c OK [19:47:11]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 62 00 4F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 11 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetFieldsCounters done [19:47:11]requested_item shift.num is exist - process it [19:47:11]requested_item shift.opened is exist - process it [19:47:11]req_shift_opened [19:47:11]FM_GetShiftState [19:47:11]SAM_PROTO_GetShiftState [19:47:11]wFMCommunicate request_size=4 [19:47:11]MH_SAM_APDU [19:47:11]CAPDU: 80 13 01 00 [19:47:11]Write to MH i2c: E2 08 00 50 63 80 13 01 00 00 00 00 00 30 [19:47:11]Write i2c OK [19:47:11]MH_I2C_Read... [19:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:11]Read from MH i2c: E2 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 [19:47:11]MH_I2C_Read... [19:47:11]Read from MH i2c: E2 0E 00 50 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AC [19:47:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:47:11]wFMCommunicate OK [19:47:11]SAM_PROTO_GetShiftState done [19:47:11]FM_GetShiftState done [19:47:11]req_shift_opened done [19:47:11]requested_item shift.open_date is exist - process it [19:47:11]req_shift_open_date [19:47:11]req_shift_open_date done [19:47:11]produce_requested_data done [19:47:11]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30737,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:47:11]process_action_free close_receipt [19:47:11]json_value_free [19:47:11]json_value_free done [19:47:11]process_json_proto returns [19:47:11]Send response to host [19:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30737,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:47:11]free response buf [19:47:11]execute_script done [19:47:11]execute_script returns [19:47:11]free content buf [19:47:11]Sock 7.Close socket [19:47:11]Sock 7.Thread stoped [19:47:15]OFD Sender: No OFD packet to send [19:47:20]OFD Sender: No OFD packet to send [19:47:25]OFD Sender: No OFD packet to send [19:47:30]OFD Sender: No OFD packet to send [19:47:35]OFD Sender: No OFD packet to send [19:47:40]OFD Sender: No OFD packet to send [19:47:45]OFD Sender: No OFD packet to send [19:47:50]OFD Sender: No OFD packet to send [19:47:55]OFD Sender: No OFD packet to send [19:48:00]OFD Sender: No OFD packet to send [19:48:05]OFD Sender: No OFD packet to send [19:48:10]OFD Sender: No OFD packet to send [19:48:15]OFD Sender: No OFD packet to send [19:48:20]OFD Sender: No OFD packet to send [19:48:25]OFD Sender: No OFD packet to send [19:48:30]OFD Sender: No OFD packet to send [19:48:35]OFD Sender: No OFD packet to send [19:48:40]OFD Sender: No OFD packet to send [19:48:45]OFD Sender: No OFD packet to send [19:48:50]OFD Sender: No OFD packet to send [19:48:55]OFD Sender: No OFD packet to send [19:49:00]OFD Sender: No OFD packet to send [19:49:05]OFD Sender: No OFD packet to send [19:49: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: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: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:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:09]accept exits with 9 [19:56:09]New connection [19:56:09]New thread 3067346276 created [19:56:09]Thread 3067489636 joined [19:56:09]Waiting for new connection... [19:56:09] Sock 9.Parse request [19:56:09]Sock 9.Check first char [19:56:09]Sock 9.First char is OK [19:56:09]request: POST /json_proto HTTP/1.0 [19:56:09]Method: POST [19:56:09]URL: /json_proto [19:56:09]Method is POST - this is cgi request [19:56:09]url: /json_proto [19:56:09]query_string will be loaded in cgi processing [19:56:09]execute_cgi json_proto POST (null) [19:56:09]execute_cgi path=json_proto method=POST [19:56:09]POST find Content-Length [19:56:09]Host: 172.17.51.3:8080 [19:56:09]Content-Length: 677 [19:56:09]Content-Type: application/json [19:56:09] [19:56:09]POST finish read [19:56:09]Found Content-Length = 677 [19:56:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:09]execute_script... [19:56:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:09]POST & json_proto [19:56:09]process_json_proto [19:56:09]json parsed OK: [19:56:09]protocol is kg_v1.0 [19:56:09]action value=close_receipt [19:56:09]process_action close_receipt [19:56:09]cmd_close_receipt [19:56:09]MH_GetDate [19:56:09]Write to MH i2c: F0 00 00 51 63 A3 [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: F0 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: F0 09 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: F0 09 00 51 63 00 E0 B1 16 67 04 C1 95 66 7A [19:56:09]GetLastDocTimeStamp 1729540034 [19:56:09]current date 1729540576 [19:56:09]FM_GetShiftState [19:56:09]SAM_PROTO_GetShiftState [19:56:09]wFMCommunicate request_size=4 [19:56:09]MH_SAM_APDU [19:56:09]CAPDU: 80 13 01 00 [19:56:09]Write to MH i2c: E2 08 00 52 63 80 13 01 00 00 00 00 00 32 [19:56:09]Write i2c OK [19:56:09]MH_I2C_Read... [19:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:09]Read from MH i2c: E2 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 0E 00 [19:56:09]MH_I2C_Read... [19:56:09]Read from MH i2c: E2 0E 00 52 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AE [19:56:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:56:09]wFMCommunicate OK [19:56:09]SAM_PROTO_GetShiftState done [19:56:09]FM_GetShiftState done [19:56:09]opened in 1729471058 [19:56:09]opened+sec_in_day 1729557458 [19:56:09]quantity*price = 30038 [19:56:09]sum+1 = 30039 [19:56:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 235 21.10.2024 19:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30738 ФПД: 56769822036262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195616&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30738&fm=56769822036262&tin=02508201610067®Number=0000000000186857&sum=30000 [19:56:11]StoreToDocumentArchive [19:56:11]shift 115 fd 30738 [19:56:11]save to /storage/0115/doc_00030738 [19:56:11]save last doc name /storage/0115/doc_00030738 to /storage/kkm_last_doc_name [19:56:11]save OK [19:56:11]Clear old archive folders... [19:56:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:56:11]tlvbuf is 01F4B590 [19:56:11]SAM_PROTO_ClearQueue [19:56:11]wFMCommunicate request_size=4 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 09 00 00 [19:56:11]Write to MH i2c: E2 08 00 5F 63 80 09 00 00 00 00 00 00 34 [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 5F 63 00 90 00 36 [19:56:11]RAPDU: 90 00 [19:56:11]wFMCommunicate OK [19:56:11]SAM_PROTO_ClearQueue done [19:56:11]KKMCreateOFDPacket [19:56:11]OFDProtocolAddRootSTLVToBuf [19:56:11]FM_MakeSignedData [19:56:11]FM_MakeSignedData [19:56:11]SAM_PROTO_SignData [19:56:11]wFMCommunicate request_size=4 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 0D 01 02 [19:56:11]Write to MH i2c: E2 08 00 60 63 80 0D 01 02 00 00 00 00 3C [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 60 63 00 90 00 37 [19:56:11]RAPDU: 90 00 [19:56:11]wFMCommunicate OK [19:56:11]wFMCommunicate request_size=255 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 B1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 78 00 00 35 04 06 00 33 [19:56:11]Write to MH i2c: E2 02 01 61 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 B1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 78 00 00 35 04 06 00 33 00 00 EA [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 61 63 00 90 00 38 [19:56:11]RAPDU: 90 00 [19:56:11]wFMCommunicate OK [19:56:11]wFMCommunicate request_size=10 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 0D 02 02 05 A1 C1 13 91 26 [19:56:11]Write to MH i2c: E2 0D 00 62 63 80 0D 02 02 05 00 A1 C1 13 91 26 00 00 75 [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 03 00 62 63 00 90 00 39 [19:56:11]RAPDU: 90 00 [19:56:11]wFMCommunicate OK [19:56:11]wFMCommunicate request_size=4 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 0D 03 02 [19:56:11]Write to MH i2c: E2 08 00 63 63 80 0D 03 02 00 00 00 00 41 [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 0B 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 0B 00 63 63 00 9A D6 B2 CC 05 6B 7C 13 90 00 2F [19:56:11]RAPDU: 9A D6 B2 CC 05 6B 7C 13 90 00 [19:56:11]wFMCommunicate OK [19:56:11]SAM_PROTO_SignData done [19:56:11]FM_MakeSignedData done [19:56:11]CreateOFDProtocolMessage [19:56:11]wFMCommunicate request_size=4 [19:56:11]MH_SAM_APDU [19:56:11]CAPDU: 80 11 00 00 [19:56:11]Write to MH i2c: E2 08 00 64 63 80 11 00 00 00 00 00 00 41 [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:11]Read from MH i2c: E2 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 17 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: E2 17 00 64 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 8F [19:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:56:11]wFMCommunicate OK [19:56:11]CreateOFDProtocolMessage done [19:56:11]OFDSenderStorePacket 30738 [19:56:11]StoreOFDPacket docnum=30738 [19:56:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 6F 07 01 62 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 B1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 78 00 00 35 04 06 00 33 A1 C1 13 91 26 9A D6 B2 CC 05 6B 7C 13 [19:56:11]CheckFolder [19:56:11]dirname=/storage/ofd_packets [19:56:11]CheckFolder done [19:56:11]ProducePacketName [19:56:11]name=ofd_packets/00030738 [19:56:11]NVStorageSaveData ofd_packets/00030738 [19:56:11]File name is /storage/ofd_packets/00030738 [19:56:11]Write 301 bytes [19:56:11]NVStorageSaveData done [19:56:11]OFDSenderStorePacket done [19:56:11]KKMCreateOFDPacket done [19:56:11]NVStorageSaveData kkm_last_timestamp [19:56:11]File name is /storage/kkm_last_timestamp [19:56:11]Write 4 bytes [19:56:11]NVStorageSaveData done [19:56:11]ExternCall_PrintAddStr [19:56:11]wPrintStart [19:56:11]Write to MH i2c: 01 00 00 65 63 C8 [19:56:11]Write i2c OK [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: 01 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: 01 07 00 [19:56:11]MH_I2C_Read... [19:56:11]Read from MH i2c: 01 07 00 65 63 00 00 00 00 00 FF 0F DD [19:56:11]RasterBufferAndPrint [19:56:11]line Счет N : (1)343152 [19:56:11]line ИНН: 02508201610067 [19:56:11]line Контрольно-Кассовый Чек [19:56:11]line ПРОДАЖА [19:56:11]line ТРК (МРК, ГНК) : 43 [19:56:11]line Товар: 2710124130 [19:56:11]line Аи-92-К-2 [19:56:11]line 4.490 * 66.90 [19:56:11]line = 300.38 [19:56:11]line НДС 12% НСП 1% [19:56:11]line > о реализуемом товаре [19:56:11]line ОКРУГЛЕНИЕ: -0.38 [19:56:11]line ИТОГО: 300.00 [19:56:11]line Внесено: 300.00 [19:56:11]line СДАЧА: 0.00 [19:56:11]line НСП 1% : 2.66 [19:56:11]line НДС 12% : 31.90 [19:56:11]line Наличными: 300.00 [19:56:11]line Безнал.: 0.00 [19:56:11]line Место: АЗС № 78 "Партнер Нефть" [19:56:11]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [19:56:11]line СНО: Общий режим [19:56:11]line Чек 235 21.10.2024 19:56 [19:56:11]line Смена: 115 ФФД: 1.0 [19:56:11]line ЗНМ: 0300000137 [19:56:11]line РНМ: 0000000000186857 [19:56:11]line Версия ККМ: v1.0 [19:56:11]line ФМ: 0000000002094219 [19:56:11]line ФД: 30738 [19:56:11]line ФПД: 56769822036262 [19:56:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195616&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30738&fm=56769822036262&tin=02508201610067®Number=0000000000186857&sum=30000 [19:56:11]OFD Sender: Processing packet 30738 [packets to send 10, broken 9] [19:56:11]ProducePacketName [19:56:11]name=ofd_packets/00030738 [19:56:11]OFD Sender: To server: pG, [19:56:11]CommunicateWithHost lk.salyk.kg:30040 [19:56:11]ConnectInit lk.salyk.kg [19:56:11]written 0, free lines is 4095 [19:56:12]Connected sock=10 [19:56:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2E 6F 07 01 62 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 E0 B1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 78 00 00 35 04 06 00 33 A1 C1 13 91 26 9A D6 B2 CC 05 6B 7C 13 [19:56:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DC AE 47 00 58 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 12 78 00 00 F4 03 04 00 60 5C 16 67 B6 04 01 00 00 C3 36 DD A1 60 4F E3 18 [19:56:12]CommunicateWithHost err = 0 [19:56:12]CheckOFDResponse [19:56:12]1017 (14) - 77093643461234 [19:56:12]1041 (16) - 0000000002094219 [19:56:12]1040 (4) - 30738 [19:56:12]1012 (4) - 21.10.2024 13:51 [19:56:12]1206 (1) - 0 [19:56:12]OFD Sender: Remove packet 30738 [19:56:12]ProducePacketName [19:56:12]name=ofd_packets/00030738 [19:56:12]NVStorageDeleteData [19:56:12]Write to MH i2c: 01 00 00 90 63 F3 [19:56:12]Write i2c OK [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: 01 [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: 01 07 00 [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: 01 07 00 90 63 00 00 00 00 00 EC 0C F2 [19:56:12]RasterBufferAndPrint [19:56:12]line [19:56:12]line [19:56:12]line [19:56:12]line [19:56:12]line [19:56:12]written 0, free lines is 3317 [19:56:12]MH_Cut [19:56:12]Write to MH i2c: D1 01 00 97 63 01 CC [19:56:12]Write i2c OK [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: D1 [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: D1 01 00 [19:56:12]MH_I2C_Read... [19:56:12]Read from MH i2c: D1 01 00 97 63 00 CB [19:56:12]Write to MH i2c: 01 00 00 98 63 FB [19:56:12]Write i2c OK [19:56:12]MH_I2C_Read... [19:56:12]OFD Sender: No OFD packet to send [19:56:13]*** Cut start [19:56:13]*** Partial cut [19:56:13]*** CUTSNS_PIN = 1 [19:56:13]*** CUTSNS_PIN = 0 [19:56:13]*** Brake cut motor [19:56:13]Read from MH i2c: 01 [19:56:13]MH_I2C_Read... [19:56:13]*** Stop cut motor [19:56:13]*** Cut end [19:56:13]Read from MH i2c: 01 07 00 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: 01 07 00 98 63 00 00 00 00 00 FF 0F 10 [19:56:13]process_action close_receipt done [19:56:13]requested_data is exist [19:56:13]produce_requested_data [19:56:13]requested_item fm.sn is exist - process it [19:56:13]wFMCommunicate request_size=4 [19:56:13]MH_SAM_APDU [19:56:13]CAPDU: 80 11 00 00 [19:56:13]Write to MH i2c: E2 08 00 99 63 80 11 00 00 00 00 00 00 76 [19:56:13]Write i2c OK [19:56:13]MH_I2C_Read... [19:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:13]Read from MH i2c: E2 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 17 00 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 17 00 99 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C4 [19:56:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [19:56:13]wFMCommunicate OK [19:56:13]requested_item fd.num is exist - process it [19:56:13]SAM_PROTO_GetFieldsCounters [19:56:13]wFMCommunicate request_size=4 [19:56:13]MH_SAM_APDU [19:56:13]CAPDU: 80 13 00 00 [19:56:13]Write to MH i2c: E2 08 00 9A 63 80 13 00 00 00 00 00 00 79 [19:56:13]Write i2c OK [19:56:13]MH_I2C_Read... [19:56:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:13]Read from MH i2c: E2 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 62 00 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 62 00 9A 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:56:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 12 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:13]wFMCommunicate OK [19:56:13]SAM_PROTO_GetFieldsCounters done [19:56:13]requested_item shift.num is exist - process it [19:56:13]requested_item shift.opened is exist - process it [19:56:13]req_shift_opened [19:56:13]FM_GetShiftState [19:56:13]SAM_PROTO_GetShiftState [19:56:13]wFMCommunicate request_size=4 [19:56:13]MH_SAM_APDU [19:56:13]CAPDU: 80 13 01 00 [19:56:13]Write to MH i2c: E2 08 00 9B 63 80 13 01 00 00 00 00 00 7B [19:56:13]Write i2c OK [19:56:13]MH_I2C_Read... [19:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:13]Read from MH i2c: E2 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 0E 00 [19:56:13]MH_I2C_Read... [19:56:13]Read from MH i2c: E2 0E 00 9B 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F7 [19:56:13]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [19:56:13]wFMCommunicate OK [19:56:13]SAM_PROTO_GetShiftState done [19:56:13]FM_GetShiftState done [19:56:13]req_shift_opened done [19:56:13]requested_item shift.open_date is exist - process it [19:56:13]req_shift_open_date [19:56:13]req_shift_open_date done [19:56:13]produce_requested_data done [19:56:13]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30738,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [19:56:13]process_action_free close_receipt [19:56:13]json_value_free [19:56:13]json_value_free done [19:56:13]process_json_proto returns [19:56:13]Send response to host [19:56:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30738,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [19:56:13]free response buf [19:56:13]execute_script done [19:56:13]execute_script returns [19:56:13]free content buf [19:56:13]Sock 9.Close socket [19:56:13]Sock 9.Thread stoped [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:11]accept exits with 7 [20:00:11]New connection [20:00:11]New thread 3067489636 created [20:00:11]Thread 3067346276 joined [20:00:11]Waiting for new connection... [20:00:11] Sock 7.Parse request [20:00:11]Sock 7.Check first char [20:00:11]Sock 7.First char is OK [20:00:11]request: POST /json_proto HTTP/1.0 [20:00:11]Method: POST [20:00:11]URL: /json_proto [20:00:11]Method is POST - this is cgi request [20:00:11]url: /json_proto [20:00:11]query_string will be loaded in cgi processing [20:00:11]execute_cgi json_proto POST (null) [20:00:11]execute_cgi path=json_proto method=POST [20:00:11]POST find Content-Length [20:00:11]Host: 172.17.51.3:8080 [20:00:11]Content-Length: 683 [20:00:11]Content-Type: application/json [20:00:11] [20:00:11]POST finish read [20:00:11]Found Content-Length = 683 [20:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:11]execute_script... [20:00:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:11]POST & json_proto [20:00:11]process_json_proto [20:00:11]json parsed OK: [20:00:11]protocol is kg_v1.0 [20:00:11]action value=close_receipt [20:00:11]process_action close_receipt [20:00:11]cmd_close_receipt [20:00:11]MH_GetDate [20:00:11]Write to MH i2c: F0 00 00 9C 63 EE [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: F0 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: F0 09 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: F0 09 00 9C 63 00 D1 B2 16 67 04 C1 95 66 B7 [20:00:11]GetLastDocTimeStamp 1729540576 [20:00:11]current date 1729540817 [20:00:11]FM_GetShiftState [20:00:11]SAM_PROTO_GetShiftState [20:00:11]wFMCommunicate request_size=4 [20:00:11]MH_SAM_APDU [20:00:11]CAPDU: 80 13 01 00 [20:00:11]Write to MH i2c: E2 08 00 9D 63 80 13 01 00 00 00 00 00 7D [20:00:11]Write i2c OK [20:00:11]MH_I2C_Read... [20:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:11]Read from MH i2c: E2 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 0E 00 [20:00:11]MH_I2C_Read... [20:00:11]Read from MH i2c: E2 0E 00 9D 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F9 [20:00:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:00:11]wFMCommunicate OK [20:00:11]SAM_PROTO_GetShiftState done [20:00:11]FM_GetShiftState done [20:00:11]opened in 1729471058 [20:00:11]opened+sec_in_day 1729557458 [20:00:11]quantity*price = 50025 [20:00:11]sum+1 = 50027 [20:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 236 21.10.2024 20:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30739 ФПД: 248536356443970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200017&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30739&fm=248536356443970&tin=02508201610067®Number=0000000000186857&sum=50000 [20:00:12]StoreToDocumentArchive [20:00:12]shift 115 fd 30739 [20:00:12]save to /storage/0115/doc_00030739 [20:00:12]save last doc name /storage/0115/doc_00030739 to /storage/kkm_last_doc_name [20:00:12]save OK [20:00:12]Clear old archive folders... [20:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:00:12]tlvbuf is 01F4B500 [20:00:12]SAM_PROTO_ClearQueue [20:00:12]wFMCommunicate request_size=4 [20:00:12]MH_SAM_APDU [20:00:12]CAPDU: 80 09 00 00 [20:00:12]Write to MH i2c: E2 08 00 AA 63 80 09 00 00 00 00 00 00 7F [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:12]Read from MH i2c: E2 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 AA 63 00 90 00 81 [20:00:12]RAPDU: 90 00 [20:00:12]wFMCommunicate OK [20:00:12]SAM_PROTO_ClearQueue done [20:00:12]KKMCreateOFDPacket [20:00:12]OFDProtocolAddRootSTLVToBuf [20:00:12]FM_MakeSignedData [20:00:12]FM_MakeSignedData [20:00:12]SAM_PROTO_SignData [20:00:12]wFMCommunicate request_size=4 [20:00:12]MH_SAM_APDU [20:00:12]CAPDU: 80 0D 01 02 [20:00:12]Write to MH i2c: E2 08 00 AB 63 80 0D 01 02 00 00 00 00 87 [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:12]Read from MH i2c: E2 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 AB 63 00 90 00 82 [20:00:12]RAPDU: 90 00 [20:00:12]wFMCommunicate OK [20:00:12]wFMCommunicate request_size=255 [20:00:12]MH_SAM_APDU [20:00:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D1 B2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 78 00 [20:00:12]Write to MH i2c: E2 02 01 AC 63 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D1 B2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 78 00 00 00 7B [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:12]Read from MH i2c: E2 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 AC 63 00 90 00 83 [20:00:12]RAPDU: 90 00 [20:00:12]wFMCommunicate OK [20:00:12]wFMCommunicate request_size=16 [20:00:12]MH_SAM_APDU [20:00:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E2 0A E1 3D 57 42 [20:00:12]Write to MH i2c: E2 13 00 AD 63 80 0D 02 02 0B 00 00 35 04 06 00 E2 0A E1 3D 57 42 00 00 82 [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:12]OFD Sender: No OFD packet to send [20:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:12]Read from MH i2c: E2 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 [20:00:12]MH_I2C_Read... [20:00:12]Read from MH i2c: E2 03 00 AD 63 00 90 00 84 [20:00:12]RAPDU: 90 00 [20:00:12]wFMCommunicate OK [20:00:12]wFMCommunicate request_size=4 [20:00:12]MH_SAM_APDU [20:00:12]CAPDU: 80 0D 03 02 [20:00:12]Write to MH i2c: E2 08 00 AE 63 80 0D 03 02 00 00 00 00 8C [20:00:12]Write i2c OK [20:00:12]MH_I2C_Read... [20:00:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:13]Read from MH i2c: E2 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 0B 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 0B 00 AE 63 00 87 C4 3C 2E 90 3F D6 7F 90 00 66 [20:00:13]RAPDU: 87 C4 3C 2E 90 3F D6 7F 90 00 [20:00:13]wFMCommunicate OK [20:00:13]SAM_PROTO_SignData done [20:00:13]FM_MakeSignedData done [20:00:13]CreateOFDProtocolMessage [20:00:13]wFMCommunicate request_size=4 [20:00:13]MH_SAM_APDU [20:00:13]CAPDU: 80 11 00 00 [20:00:13]Write to MH i2c: E2 08 00 AF 63 80 11 00 00 00 00 00 00 8C [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:13]Read from MH i2c: E2 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 17 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: E2 17 00 AF 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DA [20:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:00:13]wFMCommunicate OK [20:00:13]CreateOFDProtocolMessage done [20:00:13]OFDSenderStorePacket 30739 [20:00:13]StoreOFDPacket docnum=30739 [20:00:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 69 58 0D 01 EA 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D1 B2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 78 00 00 35 04 06 00 E2 0A E1 3D 57 42 87 C4 3C 2E 90 3F D6 7F [20:00:13]CheckFolder [20:00:13]dirname=/storage/ofd_packets [20:00:13]CheckFolder done [20:00:13]ProducePacketName [20:00:13]name=ofd_packets/00030739 [20:00:13]NVStorageSaveData ofd_packets/00030739 [20:00:13]File name is /storage/ofd_packets/00030739 [20:00:13]Write 307 bytes [20:00:13]NVStorageSaveData done [20:00:13]OFDSenderStorePacket done [20:00:13]KKMCreateOFDPacket done [20:00:13]NVStorageSaveData kkm_last_timestamp [20:00:13]File name is /storage/kkm_last_timestamp [20:00:13]Write 4 bytes [20:00:13]NVStorageSaveData done [20:00:13]ExternCall_PrintAddStr [20:00:13]wPrintStart [20:00:13]Write to MH i2c: 01 00 00 B0 63 13 [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 07 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 07 00 B0 63 00 00 00 00 00 FF 0F 28 [20:00:13]RasterBufferAndPrint [20:00:13]line Счет N : (1)343153 [20:00:13]line ИНН: 02508201610067 [20:00:13]line Контрольно-Кассовый Чек [20:00:13]line ПРОДАЖА [20:00:13]line ТРК (МРК, ГНК) : 51 [20:00:13]line Товар: 2710194210 [20:00:13]line D-ENERGY Дт-К-2 [20:00:13]line 6.480 * 77.20 [20:00:13]line = 500.26 [20:00:13]line НДС 12% НСП 1% [20:00:13]line > о реализуемом товаре [20:00:13]line ОКРУГЛЕНИЕ: -0.26 [20:00:13]line ИТОГО: 500.00 [20:00:13]line Внесено: 500.00 [20:00:13]line СДАЧА: 0.00 [20:00:13]line НСП 1% : 4.43 [20:00:13]line НДС 12% : 53.12 [20:00:13]line Наличными: 500.00 [20:00:13]line Безнал.: 0.00 [20:00:13]line Место: АЗС № 78 "Партнер Нефть" [20:00:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:00:13]line СНО: Общий режим [20:00:13]line Чек 236 21.10.2024 20:00 [20:00:13]line Смена: 115 ФФД: 1.0 [20:00:13]line ЗНМ: 0300000137 [20:00:13]line РНМ: 0000000000186857 [20:00:13]line Версия ККМ: v1.0 [20:00:13]line ФМ: 0000000002094219 [20:00:13]line ФД: 30739 [20:00:13]line ФПД: 248536356443970 [20:00:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200017&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30739&fm=248536356443970&tin=02508201610067®Number=0000000000186857&sum=50000 [20:00:13]OFD Sender: Processing packet 30739 [packets to send 10, broken 9] [20:00:13]ProducePacketName [20:00:13]name=ofd_packets/00030739 [20:00:13]OFD Sender: To server: pG, [20:00:13]CommunicateWithHost lk.salyk.kg:30040 [20:00:13]ConnectInit lk.salyk.kg [20:00:13]written 0, free lines is 4095 [20:00:13]Connected sock=9 [20:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 69 58 0D 01 EA 6A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 D1 B2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 78 00 00 35 04 06 00 E2 0A E1 3D 57 42 87 C4 3C 2E 90 3F D6 7F [20:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 32 57 47 00 41 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 13 78 00 00 F4 03 04 00 51 5D 16 67 B6 04 01 00 00 E1 EE 86 4B 2B A6 88 5E [20:00:13]CommunicateWithHost err = 0 [20:00:13]CheckOFDResponse [20:00:13]1017 (14) - 77093643461234 [20:00:13]1041 (16) - 0000000002094219 [20:00:13]1040 (4) - 30739 [20:00:13]1012 (4) - 21.10.2024 13:55 [20:00:13]1206 (1) - 0 [20:00:13]OFD Sender: Remove packet 30739 [20:00:13]ProducePacketName [20:00:13]name=ofd_packets/00030739 [20:00:13]NVStorageDeleteData [20:00:13]Write to MH i2c: 01 00 00 DB 63 3E [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 07 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: 01 07 00 DB 63 00 00 00 00 00 FB 0C 4C [20:00:13]RasterBufferAndPrint [20:00:13]line [20:00:13]line [20:00:13]line [20:00:13]line [20:00:13]line [20:00:13]written 0, free lines is 3332 [20:00:13]MH_Cut [20:00:13]Write to MH i2c: D1 01 00 E2 63 01 17 [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: D1 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: D1 01 00 [20:00:13]MH_I2C_Read... [20:00:13]Read from MH i2c: D1 01 00 E2 63 00 16 [20:00:13]Write to MH i2c: 01 00 00 E3 63 46 [20:00:13]Write i2c OK [20:00:13]MH_I2C_Read... [20:00:14]OFD Sender: No OFD packet to send [20:00:14]*** Cut start [20:00:14]*** Partial cut [20:00:14]*** CUTSNS_PIN = 1 [20:00:14]*** CUTSNS_PIN = 0 [20:00:14]*** Brake cut motor [20:00:15]Read from MH i2c: 01 [20:00:15]MH_I2C_Read... [20:00:15]*** Stop cut motor [20:00:15]*** Cut end [20:00:15]Read from MH i2c: 01 07 00 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: 01 07 00 E3 63 00 00 00 00 00 FF 0F 5B [20:00:15]process_action close_receipt done [20:00:15]requested_data is exist [20:00:15]produce_requested_data [20:00:15]requested_item fm.sn is exist - process it [20:00:15]wFMCommunicate request_size=4 [20:00:15]MH_SAM_APDU [20:00:15]CAPDU: 80 11 00 00 [20:00:15]Write to MH i2c: E2 08 00 E4 63 80 11 00 00 00 00 00 00 C1 [20:00:15]Write i2c OK [20:00:15]MH_I2C_Read... [20:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:15]Read from MH i2c: E2 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 17 00 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 17 00 E4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [20:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:00:15]wFMCommunicate OK [20:00:15]requested_item fd.num is exist - process it [20:00:15]SAM_PROTO_GetFieldsCounters [20:00:15]wFMCommunicate request_size=4 [20:00:15]MH_SAM_APDU [20:00:15]CAPDU: 80 13 00 00 [20:00:15]Write to MH i2c: E2 08 00 E5 63 80 13 00 00 00 00 00 00 C4 [20:00:15]Write i2c OK [20:00:15]MH_I2C_Read... [20:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:15]Read from MH i2c: E2 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 62 00 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 62 00 E5 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [20:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 13 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:15]wFMCommunicate OK [20:00:15]SAM_PROTO_GetFieldsCounters done [20:00:15]requested_item shift.num is exist - process it [20:00:15]requested_item shift.opened is exist - process it [20:00:15]req_shift_opened [20:00:15]FM_GetShiftState [20:00:15]SAM_PROTO_GetShiftState [20:00:15]wFMCommunicate request_size=4 [20:00:15]MH_SAM_APDU [20:00:15]CAPDU: 80 13 01 00 [20:00:15]Write to MH i2c: E2 08 00 E6 63 80 13 01 00 00 00 00 00 C6 [20:00:15]Write i2c OK [20:00:15]MH_I2C_Read... [20:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:15]Read from MH i2c: E2 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 0E 00 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 0E 00 E6 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 42 [20:00:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:00:15]wFMCommunicate OK [20:00:15]SAM_PROTO_GetShiftState done [20:00:15]FM_GetShiftState done [20:00:15]req_shift_opened done [20:00:15]requested_item shift.open_date is exist - process it [20:00:15]req_shift_open_date [20:00:15]req_shift_open_date done [20:00:15]produce_requested_data done [20:00:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30739,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:00:15]process_action_free close_receipt [20:00:15]json_value_free [20:00:15]json_value_free done [20:00:15]process_json_proto returns [20:00:15]Send response to host [20:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30739,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:00:15]free response buf [20:00:15]execute_script done [20:00:15]execute_script returns [20:00:15]free content buf [20:00:15]Sock 7.Close socket [20:00:15]Sock 7.Thread stoped [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:05]accept exits with 10 [20:03:05]New connection [20:03:05]New thread 3067346276 created [20:03:05]Thread 3067489636 joined [20:03:05]Waiting for new connection... [20:03:05] Sock 10.Parse request [20:03:05]Sock 10.Check first char [20:03:05]Sock 10.First char is OK [20:03:05]request: POST /json_proto HTTP/1.0 [20:03:05]Method: POST [20:03:05]URL: /json_proto [20:03:05]Method is POST - this is cgi request [20:03:05]url: /json_proto [20:03:05]query_string will be loaded in cgi processing [20:03:05]execute_cgi json_proto POST (null) [20:03:05]execute_cgi path=json_proto method=POST [20:03:05]POST find Content-Length [20:03:05]Host: 172.17.51.3:8080 [20:03:05]Content-Length: 677 [20:03:05]Content-Type: application/json [20:03:05] [20:03:05]POST finish read [20:03:05]Found Content-Length = 677 [20:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:05]execute_script... [20:03:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:03:05]POST & json_proto [20:03:05]process_json_proto [20:03:05]json parsed OK: [20:03:05]protocol is kg_v1.0 [20:03:05]action value=close_receipt [20:03:05]process_action close_receipt [20:03:05]cmd_close_receipt [20:03:05]MH_GetDate [20:03:05]Write to MH i2c: F0 00 00 E7 63 39 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 09 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: F0 09 00 E7 63 00 80 B3 16 67 04 C1 95 66 B2 [20:03:05]GetLastDocTimeStamp 1729540817 [20:03:05]current date 1729540992 [20:03:05]FM_GetShiftState [20:03:05]SAM_PROTO_GetShiftState [20:03:05]wFMCommunicate request_size=4 [20:03:05]MH_SAM_APDU [20:03:05]CAPDU: 80 13 01 00 [20:03:05]Write to MH i2c: E2 08 00 E8 63 80 13 01 00 00 00 00 00 C8 [20:03:05]Write i2c OK [20:03:05]MH_I2C_Read... [20:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:05]Read from MH i2c: E2 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 [20:03:05]MH_I2C_Read... [20:03:05]Read from MH i2c: E2 0E 00 E8 63 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 44 [20:03:05]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:03:05]wFMCommunicate OK [20:03:05]SAM_PROTO_GetShiftState done [20:03:05]FM_GetShiftState done [20:03:05]opened in 1729471058 [20:03:05]opened+sec_in_day 1729557458 [20:03:05]quantity*price = 30038 [20:03:05]sum+1 = 30039 [20:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 237 21.10.2024 20:03 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30740 ФПД: 137944121615515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30740&fm=137944121615515&tin=02508201610067®Number=0000000000186857&sum=30000 [20:03:06]StoreToDocumentArchive [20:03:06]shift 115 fd 30740 [20:03:06]save to /storage/0115/doc_00030740 [20:03:06]save last doc name /storage/0115/doc_00030740 to /storage/kkm_last_doc_name [20:03:06]save OK [20:03:06]Clear old archive folders... [20:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:03:06]tlvbuf is 01FD9FF0 [20:03:06]SAM_PROTO_ClearQueue [20:03:06]wFMCommunicate request_size=4 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 09 00 00 [20:03:06]Write to MH i2c: E2 08 00 F5 63 80 09 00 00 00 00 00 00 CA [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 F5 63 00 90 00 CC [20:03:06]RAPDU: 90 00 [20:03:06]wFMCommunicate OK [20:03:06]SAM_PROTO_ClearQueue done [20:03:06]KKMCreateOFDPacket [20:03:06]OFDProtocolAddRootSTLVToBuf [20:03:06]FM_MakeSignedData [20:03:06]FM_MakeSignedData [20:03:06]SAM_PROTO_SignData [20:03:06]wFMCommunicate request_size=4 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 0D 01 02 [20:03:06]Write to MH i2c: E2 08 00 F6 63 80 0D 01 02 00 00 00 00 D2 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:06]Read from MH i2c: E2 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 [20:03:06]MH_I2C_Read... [20:03:06]Read from MH i2c: E2 03 00 F6 63 00 90 00 CD [20:03:06]RAPDU: 90 00 [20:03:06]wFMCommunicate OK [20:03:06]wFMCommunicate request_size=255 [20:03:06]MH_SAM_APDU [20:03:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 80 B3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 78 00 00 35 04 06 00 7D [20:03:06]Write to MH i2c: E2 02 01 F7 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 80 B3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 78 00 00 35 04 06 00 7D 00 00 70 [20:03:06]Write i2c OK [20:03:06]MH_I2C_Read... [20:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F7 63 00 90 00 CE [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=10 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 02 02 05 75 9E 5E 24 9B [20:03:07]Write to MH i2c: E2 0D 00 F8 63 80 0D 02 02 05 00 75 9E 5E 24 9B 00 00 0F [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 03 00 F8 63 00 90 00 CF [20:03:07]RAPDU: 90 00 [20:03:07]wFMCommunicate OK [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 0D 03 02 [20:03:07]Write to MH i2c: E2 08 00 F9 63 80 0D 03 02 00 00 00 00 D7 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 0B 00 F9 63 00 DB 72 C3 9B 68 D9 0B 67 90 00 36 [20:03:07]RAPDU: DB 72 C3 9B 68 D9 0B 67 90 00 [20:03:07]wFMCommunicate OK [20:03:07]SAM_PROTO_SignData done [20:03:07]FM_MakeSignedData done [20:03:07]CreateOFDProtocolMessage [20:03:07]wFMCommunicate request_size=4 [20:03:07]MH_SAM_APDU [20:03:07]CAPDU: 80 11 00 00 [20:03:07]Write to MH i2c: E2 08 00 FA 63 80 11 00 00 00 00 00 00 D7 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:07]Read from MH i2c: E2 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: E2 17 00 FA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [20:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:03:07]wFMCommunicate OK [20:03:07]CreateOFDProtocolMessage done [20:03:07]OFDSenderStorePacket 30740 [20:03:07]StoreOFDPacket docnum=30740 [20:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 D6 07 01 07 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 80 B3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 78 00 00 35 04 06 00 7D 75 9E 5E 24 9B DB 72 C3 9B 68 D9 0B 67 [20:03:07]CheckFolder [20:03:07]dirname=/storage/ofd_packets [20:03:07]CheckFolder done [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00030740 [20:03:07]NVStorageSaveData ofd_packets/00030740 [20:03:07]File name is /storage/ofd_packets/00030740 [20:03:07]Write 301 bytes [20:03:07]NVStorageSaveData done [20:03:07]OFDSenderStorePacket done [20:03:07]KKMCreateOFDPacket done [20:03:07]NVStorageSaveData kkm_last_timestamp [20:03:07]File name is /storage/kkm_last_timestamp [20:03:07]Write 4 bytes [20:03:07]NVStorageSaveData done [20:03:07]ExternCall_PrintAddStr [20:03:07]wPrintStart [20:03:07]Write to MH i2c: 01 00 00 FB 63 5E [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 FB 63 00 00 00 00 00 FF 0F 73 [20:03:07]RasterBufferAndPrint [20:03:07]line Счет N : (1)343154 [20:03:07]line ИНН: 02508201610067 [20:03:07]line Контрольно-Кассовый Чек [20:03:07]line ПРОДАЖА [20:03:07]line ТРК (МРК, ГНК) : 53 [20:03:07]line Товар: 2710124130 [20:03:07]line Аи-92-К-2 [20:03:07]line 4.490 * 66.90 [20:03:07]line = 300.38 [20:03:07]line НДС 12% НСП 1% [20:03:07]line > о реализуемом товаре [20:03:07]line ОКРУГЛЕНИЕ: -0.38 [20:03:07]line ИТОГО: 300.00 [20:03:07]line Внесено: 300.00 [20:03:07]line СДАЧА: 0.00 [20:03:07]line НСП 1% : 2.66 [20:03:07]line НДС 12% : 31.90 [20:03:07]line Наличными: 300.00 [20:03:07]line Безнал.: 0.00 [20:03:07]line Место: АЗС № 78 "Партнер Нефть" [20:03:07]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:03:07]line СНО: Общий режим [20:03:07]line Чек 237 21.10.2024 20:03 [20:03:07]line Смена: 115 ФФД: 1.0 [20:03:07]line ЗНМ: 0300000137 [20:03:07]line РНМ: 0000000000186857 [20:03:07]line Версия ККМ: v1.0 [20:03:07]line ФМ: 0000000002094219 [20:03:07]line ФД: 30740 [20:03:07]line ФПД: 137944121615515 [20:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200312&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30740&fm=137944121615515&tin=02508201610067®Number=0000000000186857&sum=30000 [20:03:07]OFD Sender: Processing packet 30740 [packets to send 10, broken 9] [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00030740 [20:03:07]OFD Sender: To server: pG, [20:03:07]CommunicateWithHost lk.salyk.kg:30040 [20:03:07]ConnectInit lk.salyk.kg [20:03:07]written 0, free lines is 4095 [20:03:07]Connected sock=9 [20:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 31 D6 07 01 07 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 80 B3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 78 00 00 35 04 06 00 7D 75 9E 5E 24 9B DB 72 C3 9B 68 D9 0B 67 [20:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3E FB 47 00 E5 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 14 78 00 00 F4 03 04 00 FF 5D 16 67 B6 04 01 00 00 8B F0 49 69 C1 CA 85 CC [20:03:07]CommunicateWithHost err = 0 [20:03:07]CheckOFDResponse [20:03:07]1017 (14) - 77093643461234 [20:03:07]1041 (16) - 0000000002094219 [20:03:07]1040 (4) - 30740 [20:03:07]1012 (4) - 21.10.2024 13:58 [20:03:07]1206 (1) - 0 [20:03:07]OFD Sender: Remove packet 30740 [20:03:07]ProducePacketName [20:03:07]name=ofd_packets/00030740 [20:03:07]NVStorageDeleteData [20:03:07]Write to MH i2c: 01 00 00 26 64 8A [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: 01 07 00 26 64 00 00 00 00 00 E4 0C 81 [20:03:07]RasterBufferAndPrint [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]line [20:03:07]written 0, free lines is 3306 [20:03:07]MH_Cut [20:03:07]Write to MH i2c: D1 01 00 2D 64 01 63 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 01 00 [20:03:07]MH_I2C_Read... [20:03:07]Read from MH i2c: D1 01 00 2D 64 00 62 [20:03:07]Write to MH i2c: 01 00 00 2E 64 92 [20:03:07]Write i2c OK [20:03:07]MH_I2C_Read... [20:03:08]OFD Sender: No OFD packet to send [20:03:08]*** Cut start [20:03:08]*** Partial cut [20:03:08]*** CUTSNS_PIN = 1 [20:03:08]*** CUTSNS_PIN = 0 [20:03:08]*** Brake cut motor [20:03:09]Read from MH i2c: 01 [20:03:09]MH_I2C_Read... [20:03:09]*** Stop cut motor [20:03:09]*** Cut end [20:03:09]Read from MH i2c: 01 07 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: 01 07 00 2E 64 00 00 00 00 00 FF 0F A7 [20:03:09]process_action close_receipt done [20:03:09]requested_data is exist [20:03:09]produce_requested_data [20:03:09]requested_item fm.sn is exist - process it [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 11 00 00 [20:03:09]Write to MH i2c: E2 08 00 2F 64 80 11 00 00 00 00 00 00 0D [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 17 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 17 00 2F 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5B [20:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:03:09]wFMCommunicate OK [20:03:09]requested_item fd.num is exist - process it [20:03:09]SAM_PROTO_GetFieldsCounters [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 13 00 00 [20:03:09]Write to MH i2c: E2 08 00 30 64 80 13 00 00 00 00 00 00 10 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 62 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 62 00 30 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [20:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 14 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetFieldsCounters done [20:03:09]requested_item shift.num is exist - process it [20:03:09]requested_item shift.opened is exist - process it [20:03:09]req_shift_opened [20:03:09]FM_GetShiftState [20:03:09]SAM_PROTO_GetShiftState [20:03:09]wFMCommunicate request_size=4 [20:03:09]MH_SAM_APDU [20:03:09]CAPDU: 80 13 01 00 [20:03:09]Write to MH i2c: E2 08 00 31 64 80 13 01 00 00 00 00 00 12 [20:03:09]Write i2c OK [20:03:09]MH_I2C_Read... [20:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:09]Read from MH i2c: E2 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 [20:03:09]MH_I2C_Read... [20:03:09]Read from MH i2c: E2 0E 00 31 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8E [20:03:09]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:03:09]wFMCommunicate OK [20:03:09]SAM_PROTO_GetShiftState done [20:03:09]FM_GetShiftState done [20:03:09]req_shift_opened done [20:03:09]requested_item shift.open_date is exist - process it [20:03:09]req_shift_open_date [20:03:09]req_shift_open_date done [20:03:09]produce_requested_data done [20:03:09]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30740,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:03:09]process_action_free close_receipt [20:03:09]json_value_free [20:03:09]json_value_free done [20:03:09]process_json_proto returns [20:03:09]Send response to host [20:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30740,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:03:09]free response buf [20:03:09]execute_script done [20:03:09]execute_script returns [20:03:09]free content buf [20:03:09]Sock 10.Close socket [20:03:09]Sock 10.Thread stoped [20:03:13]OFD Sender: No OFD packet to send [20:03:18]OFD Sender: No OFD packet to send [20:03:23]OFD Sender: No OFD packet to send [20:03:28]OFD Sender: No OFD packet to send [20:03:33]OFD Sender: No OFD packet to send [20:03:38]OFD Sender: No OFD packet to send [20:03:43]OFD Sender: No OFD packet to send [20:03:48]OFD Sender: No OFD packet to send [20:03:53]OFD Sender: No OFD packet to send [20:03:58]OFD Sender: No OFD packet to send [20:04:03]OFD Sender: No OFD packet to send [20:04:08]OFD Sender: No OFD packet to send [20:04:13]OFD Sender: No OFD packet to send [20:04:18]OFD Sender: No OFD packet to send [20:04:23]OFD Sender: No OFD packet to send [20:04:28]OFD Sender: No OFD packet to send [20:04:33]OFD Sender: No OFD packet to send [20:04:38]OFD Sender: No OFD packet to send [20:04:43]OFD Sender: No OFD packet to send [20:04:48]OFD Sender: No OFD packet to send [20:04:53]OFD Sender: No OFD packet to send [20:04:58]OFD Sender: No OFD packet to send [20:05:03]OFD Sender: No OFD packet to send [20:05:08]OFD Sender: No OFD packet to send [20:05:13]OFD Sender: No OFD packet to send [20:05:18]OFD Sender: No OFD packet to send [20:05:23]OFD Sender: No OFD packet to send [20:05:28]OFD Sender: No OFD packet to send [20:05:33]OFD Sender: No OFD packet to send [20:05:38]OFD Sender: No OFD packet to send [20:05:43]OFD Sender: No OFD packet to send [20:05:48]OFD Sender: No OFD packet to send [20:05:53]OFD Sender: No OFD packet to send [20:05:58]OFD Sender: No OFD packet to send [20:06:03]OFD Sender: No OFD packet to send [20:06:08]OFD Sender: No OFD packet to send [20:06:13]OFD Sender: No OFD packet to send [20:06:18]OFD Sender: No OFD packet to send [20:06:23]OFD Sender: No OFD packet to send [20:06:28]OFD Sender: No OFD packet to send [20:06:33]OFD Sender: No OFD packet to send [20:06:38]OFD Sender: No OFD packet to send [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: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: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]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: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:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]accept exits with 7 [20:14:43]New connection [20:14:43]New thread 3067489636 created [20:14:43]Thread 3067346276 joined [20:14:43]Waiting for new connection... [20:14:43] Sock 7.Parse request [20:14:43]Sock 7.Check first char [20:14:43]Sock 7.First char is OK [20:14:43]request: POST /json_proto HTTP/1.0 [20:14:43]Method: POST [20:14:43]URL: /json_proto [20:14:43]Method is POST - this is cgi request [20:14:43]url: /json_proto [20:14:43]query_string will be loaded in cgi processing [20:14:43]execute_cgi json_proto POST (null) [20:14:43]execute_cgi path=json_proto method=POST [20:14:43]POST find Content-Length [20:14:43]Host: 172.17.51.3:8080 [20:14:43]Content-Length: 683 [20:14:43]Content-Type: application/json [20:14:43] [20:14:43]POST finish read [20:14:43]Found Content-Length = 683 [20:14:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:43]execute_script... [20:14:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:43]POST & json_proto [20:14:43]process_json_proto [20:14:43]json parsed OK: [20:14:43]protocol is kg_v1.0 [20:14:43]action value=close_receipt [20:14:43]process_action close_receipt [20:14:43]cmd_close_receipt [20:14:43]MH_GetDate [20:14:43]Write to MH i2c: F0 00 00 32 64 85 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: F0 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: F0 09 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: F0 09 00 32 64 00 3A B6 16 67 04 C1 95 66 BB [20:14:43]GetLastDocTimeStamp 1729540992 [20:14:43]current date 1729541690 [20:14:43]FM_GetShiftState [20:14:43]SAM_PROTO_GetShiftState [20:14:43]wFMCommunicate request_size=4 [20:14:43]MH_SAM_APDU [20:14:43]CAPDU: 80 13 01 00 [20:14:43]Write to MH i2c: E2 08 00 33 64 80 13 01 00 00 00 00 00 14 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:43]Read from MH i2c: E2 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 0E 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: E2 0E 00 33 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 90 [20:14:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:14:43]wFMCommunicate OK [20:14:43]SAM_PROTO_GetShiftState done [20:14:43]FM_GetShiftState done [20:14:43]opened in 1729471058 [20:14:43]opened+sec_in_day 1729557458 [20:14:43]quantity*price = 50025 [20:14:43]sum+1 = 50027 [20:14:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 238 21.10.2024 20:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30741 ФПД: 20386534052129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30741&fm=20386534052129&tin=02508201610067®Number=0000000000186857&sum=50000 [20:14:44]StoreToDocumentArchive [20:14:44]shift 115 fd 30741 [20:14:44]save to /storage/0115/doc_00030741 [20:14:44]save last doc name /storage/0115/doc_00030741 to /storage/kkm_last_doc_name [20:14:44]save OK [20:14:44]Clear old archive folders... [20:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:14:44]tlvbuf is 01E11330 [20:14:44]SAM_PROTO_ClearQueue [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 09 00 00 [20:14:44]Write to MH i2c: E2 08 00 40 64 80 09 00 00 00 00 00 00 16 [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:44]Read from MH i2c: E2 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 03 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 03 00 40 64 00 90 00 18 [20:14:44]RAPDU: 90 00 [20:14:44]wFMCommunicate OK [20:14:44]SAM_PROTO_ClearQueue done [20:14:44]KKMCreateOFDPacket [20:14:44]OFDProtocolAddRootSTLVToBuf [20:14:44]FM_MakeSignedData [20:14:44]FM_MakeSignedData [20:14:44]SAM_PROTO_SignData [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 0D 01 02 [20:14:44]Write to MH i2c: E2 08 00 41 64 80 0D 01 02 00 00 00 00 1E [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:44]Read from MH i2c: E2 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 03 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: E2 03 00 41 64 00 90 00 19 [20:14:44]RAPDU: 90 00 [20:14:44]wFMCommunicate OK [20:14:44]wFMCommunicate request_size=255 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 3A B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 78 00 [20:14:44]Write to MH i2c: E2 02 01 42 64 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 3A B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 78 00 00 00 83 [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 03 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 03 00 42 64 00 90 00 1A [20:14:45]RAPDU: 90 00 [20:14:45]wFMCommunicate OK [20:14:45]wFMCommunicate request_size=16 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 12 8A 9C 1E D1 21 [20:14:45]Write to MH i2c: E2 13 00 43 64 80 0D 02 02 0B 00 00 35 04 06 00 12 8A 9C 1E D1 21 00 00 BE [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 03 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 03 00 43 64 00 90 00 1B [20:14:45]RAPDU: 90 00 [20:14:45]wFMCommunicate OK [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 0D 03 02 [20:14:45]Write to MH i2c: E2 08 00 44 64 80 0D 03 02 00 00 00 00 23 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0B 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0B 00 44 64 00 08 F1 B7 C1 55 AD A1 FA 90 00 32 [20:14:45]RAPDU: 08 F1 B7 C1 55 AD A1 FA 90 00 [20:14:45]wFMCommunicate OK [20:14:45]SAM_PROTO_SignData done [20:14:45]FM_MakeSignedData done [20:14:45]CreateOFDProtocolMessage [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 11 00 00 [20:14:45]Write to MH i2c: E2 08 00 45 64 80 11 00 00 00 00 00 00 23 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 45 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 71 [20:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:14:45]wFMCommunicate OK [20:14:45]CreateOFDProtocolMessage done [20:14:45]OFDSenderStorePacket 30741 [20:14:45]StoreOFDPacket docnum=30741 [20:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DC 3F 0D 01 C8 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 3A B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 78 00 00 35 04 06 00 12 8A 9C 1E D1 21 08 F1 B7 C1 55 AD A1 FA [20:14:45]CheckFolder [20:14:45]dirname=/storage/ofd_packets [20:14:45]CheckFolder done [20:14:45]ProducePacketName [20:14:45]name=ofd_packets/00030741 [20:14:45]NVStorageSaveData ofd_packets/00030741 [20:14:45]File name is /storage/ofd_packets/00030741 [20:14:45]Write 307 bytes [20:14:45]NVStorageSaveData done [20:14:45]OFDSenderStorePacket done [20:14:45]KKMCreateOFDPacket done [20:14:45]NVStorageSaveData kkm_last_timestamp [20:14:45]File name is /storage/kkm_last_timestamp [20:14:45]Write 4 bytes [20:14:45]NVStorageSaveData done [20:14:45]ExternCall_PrintAddStr [20:14:45]wPrintStart [20:14:45]Write to MH i2c: 01 00 00 46 64 AA [20:14:45]OFD Sender: Processing packet 30741 [packets to send 10, broken 9] [20:14:45]ProducePacketName [20:14:45]name=ofd_packets/00030741 [20:14:45]OFD Sender: To server: pG, [20:14:45]CommunicateWithHost lk.salyk.kg:30040 [20:14:45]ConnectInit lk.salyk.kg [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: 01 07 00 46 64 00 00 00 00 00 FF 0F BF [20:14:45]RasterBufferAndPrint [20:14:45]line Счет N : (1)343155 [20:14:45]line ИНН: 02508201610067 [20:14:45]line Контрольно-Кассовый Чек [20:14:45]line ПРОДАЖА [20:14:45]line ТРК (МРК, ГНК) : 61 [20:14:45]line Товар: 2710194210 [20:14:45]line D-ENERGY Дт-К-2 [20:14:45]line 6.480 * 77.20 [20:14:45]line = 500.26 [20:14:45]line НДС 12% НСП 1% [20:14:45]line > о реализуемом товаре [20:14:45]line ОКРУГЛЕНИЕ: -0.26 [20:14:45]line ИТОГО: 500.00 [20:14:45]line Внесено: 500.00 [20:14:45]line СДАЧА: 0.00 [20:14:45]line НСП 1% : 4.43 [20:14:45]line НДС 12% : 53.12 [20:14:45]line Наличными: 500.00 [20:14:45]line Безнал.: 0.00 [20:14:45]line Место: АЗС № 78 "Партнер Нефть" [20:14:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:14:45]line СНО: Общий режим [20:14:45]line Чек 238 21.10.2024 20:14 [20:14:45]line Смена: 115 ФФД: 1.0 [20:14:45]line ЗНМ: 0300000137 [20:14:45]line РНМ: 0000000000186857 [20:14:45]line Версия ККМ: v1.0 [20:14:45]line ФМ: 0000000002094219 [20:14:45]line ФД: 30741 [20:14:45]line ФПД: 20386534052129 [20:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201450&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30741&fm=20386534052129&tin=02508201610067®Number=0000000000186857&sum=50000 [20:14:45]Connected sock=10 [20:14:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 DC 3F 0D 01 C8 D6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 3A B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 15 78 00 00 35 04 06 00 12 8A 9C 1E D1 21 08 F1 B7 C1 55 AD A1 FA [20:14:45]written 0, free lines is 4095 [20:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DD 21 47 00 D7 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 32 30 39 34 32 31 39 10 04 04 00 15 78 00 00 F4 03 04 00 B9 60 16 67 B6 04 01 00 00 8B 56 26 78 C6 6F 13 FA [20:14:45]CommunicateWithHost err = 0 [20:14:45]CheckOFDResponse [20:14:45]1017 (14) - 77093643461234 [20:14:45]1041 (16) - 0000000002094219 [20:14:45]1040 (4) - 30741 [20:14:45]1012 (4) - 21.10.2024 14:10 [20:14:45]1206 (1) - 0 [20:14:45]OFD Sender: Remove packet 30741 [20:14:45]ProducePacketName [20:14:45]name=ofd_packets/00030741 [20:14:45]NVStorageDeleteData [20:14:46]Write to MH i2c: 01 00 00 71 64 D5 [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: 01 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: 01 07 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: 01 07 00 71 64 00 00 00 00 00 F1 0C D9 [20:14:46]RasterBufferAndPrint [20:14:46]line [20:14:46]line [20:14:46]line [20:14:46]line [20:14:46]line [20:14:46]written 0, free lines is 3322 [20:14:46]MH_Cut [20:14:46]Write to MH i2c: D1 01 00 78 64 01 AE [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: D1 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: D1 01 00 [20:14:46]MH_I2C_Read... [20:14:46]Read from MH i2c: D1 01 00 78 64 00 AD [20:14:46]Write to MH i2c: 01 00 00 79 64 DD [20:14:46]Write i2c OK [20:14:46]MH_I2C_Read... [20:14:46]OFD Sender: No OFD packet to send [20:14:46]*** Cut start [20:14:46]*** Partial cut [20:14:46]*** CUTSNS_PIN = 1 [20:14:46]*** CUTSNS_PIN = 0 [20:14:47]*** Brake cut motor [20:14:47]Read from MH i2c: 01 [20:14:47]MH_I2C_Read... [20:14:47]*** Stop cut motor [20:14:47]*** Cut end [20:14:47]Read from MH i2c: 01 07 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: 01 07 00 79 64 00 00 00 00 00 FF 0F F2 [20:14:47]process_action close_receipt done [20:14:47]requested_data is exist [20:14:47]produce_requested_data [20:14:47]requested_item fm.sn is exist - process it [20:14:47]wFMCommunicate request_size=4 [20:14:47]MH_SAM_APDU [20:14:47]CAPDU: 80 11 00 00 [20:14:47]Write to MH i2c: E2 08 00 7A 64 80 11 00 00 00 00 00 00 58 [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:47]Read from MH i2c: E2 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 17 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 17 00 7A 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A6 [20:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:14:47]wFMCommunicate OK [20:14:47]requested_item fd.num is exist - process it [20:14:47]SAM_PROTO_GetFieldsCounters [20:14:47]wFMCommunicate request_size=4 [20:14:47]MH_SAM_APDU [20:14:47]CAPDU: 80 13 00 00 [20:14:47]Write to MH i2c: E2 08 00 7B 64 80 13 00 00 00 00 00 00 5B [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:47]Read from MH i2c: E2 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 62 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 62 00 7B 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [20:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 15 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:47]wFMCommunicate OK [20:14:47]SAM_PROTO_GetFieldsCounters done [20:14:47]requested_item shift.num is exist - process it [20:14:47]requested_item shift.opened is exist - process it [20:14:47]req_shift_opened [20:14:47]FM_GetShiftState [20:14:47]SAM_PROTO_GetShiftState [20:14:47]wFMCommunicate request_size=4 [20:14:47]MH_SAM_APDU [20:14:47]CAPDU: 80 13 01 00 [20:14:47]Write to MH i2c: E2 08 00 7C 64 80 13 01 00 00 00 00 00 5D [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:47]Read from MH i2c: E2 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 7C 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D9 [20:14:47]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:14:47]wFMCommunicate OK [20:14:47]SAM_PROTO_GetShiftState done [20:14:47]FM_GetShiftState done [20:14:47]req_shift_opened done [20:14:47]requested_item shift.open_date is exist - process it [20:14:47]req_shift_open_date [20:14:47]req_shift_open_date done [20:14:47]produce_requested_data done [20:14:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30741,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:14:47]process_action_free close_receipt [20:14:47]json_value_free [20:14:47]json_value_free done [20:14:47]process_json_proto returns [20:14:47]Send response to host [20:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30741,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:14:47]free response buf [20:14:47]execute_script done [20:14:47]execute_script returns [20:14:47]free content buf [20:14:47]Sock 7.Close socket [20:14:47]Sock 7.Thread stoped [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:56]OFD Sender: No OFD packet to send [20:16:01]OFD Sender: No OFD packet to send [20:16:06]OFD Sender: No OFD packet to send [20:16:11]OFD Sender: No OFD packet to send [20:16:16]OFD Sender: No OFD packet to send [20:16:21]OFD Sender: No OFD packet to send [20:16:26]OFD Sender: No OFD packet to send [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:35]accept exits with 9 [20:17:35]New connection [20:17:35]New thread 3067346276 created [20:17:35]Thread 3067489636 joined [20:17:35]Waiting for new connection... [20:17:35] Sock 9.Parse request [20:17:35]Sock 9.Check first char [20:17:35]Sock 9.First char is OK [20:17:35]request: POST /json_proto HTTP/1.0 [20:17:35]Method: POST [20:17:35]URL: /json_proto [20:17:35]Method is POST - this is cgi request [20:17:35]url: /json_proto [20:17:35]query_string will be loaded in cgi processing [20:17:35]execute_cgi json_proto POST (null) [20:17:35]execute_cgi path=json_proto method=POST [20:17:35]POST find Content-Length [20:17:35]Host: 172.17.51.3:8080 [20:17:35]Content-Length: 840 [20:17:35]Content-Type: application/json [20:17:35] [20:17:35]POST finish read [20:17:35]Found Content-Length = 840 [20:17:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:35]execute_script... [20:17:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:17:35]POST & json_proto [20:17:35]process_json_proto [20:17:35]json parsed OK: [20:17:35]protocol is kg_v1.0 [20:17:35]action value=close_receipt [20:17:35]process_action close_receipt [20:17:35]cmd_close_receipt [20:17:35]MH_GetDate [20:17:35]Write to MH i2c: F0 00 00 7D 64 D0 [20:17:35]Write i2c OK [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: F0 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: F0 09 00 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: F0 09 00 7D 64 00 E6 B6 16 67 04 C1 95 66 B2 [20:17:35]GetLastDocTimeStamp 1729541690 [20:17:35]current date 1729541862 [20:17:35]FM_GetShiftState [20:17:35]SAM_PROTO_GetShiftState [20:17:35]wFMCommunicate request_size=4 [20:17:35]MH_SAM_APDU [20:17:35]CAPDU: 80 13 01 00 [20:17:35]Write to MH i2c: E2 08 00 7E 64 80 13 01 00 00 00 00 00 5F [20:17:35]Write i2c OK [20:17:35]MH_I2C_Read... [20:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:35]Read from MH i2c: E2 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: E2 0E 00 [20:17:35]MH_I2C_Read... [20:17:35]Read from MH i2c: E2 0E 00 7E 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DB [20:17:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:17:35]wFMCommunicate OK [20:17:35]SAM_PROTO_GetShiftState done [20:17:35]FM_GetShiftState done [20:17:35]opened in 1729471058 [20:17:35]opened+sec_in_day 1729557458 [20:17:35]quantity*price = 20003 [20:17:35]sum+1 = 20004 [20:17:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 239 21.10.2024 20:17 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30742 ФПД: 137280532280560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201742&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30742&fm=137280532280560&tin=02508201610067®Number=0000000000186857&sum=20003 [20:17:37]StoreToDocumentArchive [20:17:37]shift 115 fd 30742 [20:17:37]save to /storage/0115/doc_00030742 [20:17:37]save last doc name /storage/0115/doc_00030742 to /storage/kkm_last_doc_name [20:17:37]save OK [20:17:37]Clear old archive folders... [20:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:37]tlvbuf is 01F8B8A0 [20:17:37]SAM_PROTO_ClearQueue [20:17:37]wFMCommunicate request_size=4 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 09 00 00 [20:17:37]Write to MH i2c: E2 08 00 8B 64 80 09 00 00 00 00 00 00 61 [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 8B 64 00 90 00 63 [20:17:37]RAPDU: 90 00 [20:17:37]wFMCommunicate OK [20:17:37]SAM_PROTO_ClearQueue done [20:17:37]KKMCreateOFDPacket [20:17:37]OFDProtocolAddRootSTLVToBuf [20:17:37]FM_MakeSignedData [20:17:37]FM_MakeSignedData [20:17:37]SAM_PROTO_SignData [20:17:37]wFMCommunicate request_size=4 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 0D 01 02 [20:17:37]Write to MH i2c: E2 08 00 8C 64 80 0D 01 02 00 00 00 00 69 [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 8C 64 00 90 00 64 [20:17:37]RAPDU: 90 00 [20:17:37]wFMCommunicate OK [20:17:37]wFMCommunicate request_size=255 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E6 B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 78 00 00 35 04 06 00 7C [20:17:37]Write to MH i2c: E2 02 01 8D 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E6 B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 78 00 00 35 04 06 00 7C 00 00 47 [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 8D 64 00 90 00 65 [20:17:37]RAPDU: 90 00 [20:17:37]wFMCommunicate OK [20:17:37]wFMCommunicate request_size=10 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 0D 02 02 05 DB 1D 5C 74 F0 [20:17:37]Write to MH i2c: E2 0D 00 8E 64 80 0D 02 02 05 00 DB 1D 5C 74 F0 00 00 2E [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 03 00 8E 64 00 90 00 66 [20:17:37]RAPDU: 90 00 [20:17:37]wFMCommunicate OK [20:17:37]wFMCommunicate request_size=4 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 0D 03 02 [20:17:37]Write to MH i2c: E2 08 00 8F 64 80 0D 03 02 00 00 00 00 6E [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 0B 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 0B 00 8F 64 00 FE 7F 92 16 51 DB A4 9D 90 00 01 [20:17:37]RAPDU: FE 7F 92 16 51 DB A4 9D 90 00 [20:17:37]wFMCommunicate OK [20:17:37]SAM_PROTO_SignData done [20:17:37]FM_MakeSignedData done [20:17:37]CreateOFDProtocolMessage [20:17:37]wFMCommunicate request_size=4 [20:17:37]MH_SAM_APDU [20:17:37]CAPDU: 80 11 00 00 [20:17:37]Write to MH i2c: E2 08 00 90 64 80 11 00 00 00 00 00 00 6E [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:37]Read from MH i2c: E2 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 17 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: E2 17 00 90 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BC [20:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:17:37]wFMCommunicate OK [20:17:37]CreateOFDProtocolMessage done [20:17:37]OFDSenderStorePacket 30742 [20:17:37]StoreOFDPacket docnum=30742 [20:17:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 51 85 07 01 0D 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E6 B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 78 00 00 35 04 06 00 7C DB 1D 5C 74 F0 FE 7F 92 16 51 DB A4 9D [20:17:37]CheckFolder [20:17:37]dirname=/storage/ofd_packets [20:17:37]CheckFolder done [20:17:37]ProducePacketName [20:17:37]name=ofd_packets/00030742 [20:17:37]NVStorageSaveData ofd_packets/00030742 [20:17:37]File name is /storage/ofd_packets/00030742 [20:17:37]Write 301 bytes [20:17:37]NVStorageSaveData done [20:17:37]OFDSenderStorePacket done [20:17:37]KKMCreateOFDPacket done [20:17:37]NVStorageSaveData kkm_last_timestamp [20:17:37]File name is /storage/kkm_last_timestamp [20:17:37]Write 4 bytes [20:17:37]NVStorageSaveData done [20:17:37]ExternCall_PrintAddStr [20:17:37]wPrintStart [20:17:37]Write to MH i2c: 01 00 00 91 64 F5 [20:17:37]Write i2c OK [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: 01 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: 01 07 00 [20:17:37]MH_I2C_Read... [20:17:37]Read from MH i2c: 01 07 00 91 64 00 00 00 00 00 FF 0F 0A [20:17:37]RasterBufferAndPrint [20:17:37]line Счет N : (1)343156 [20:17:37]line ИНН: 02508201610067 [20:17:37]line Контрольно-Кассовый Чек [20:17:37]line ПРОДАЖА [20:17:37]line ТРК (МРК, ГНК) : 43 [20:17:37]line Товар: 2710124130 [20:17:37]line Аи-92-К-2 [20:17:37]line 2.990 * 66.90 [20:17:37]line = 200.03 [20:17:37]line НДС 12% НСП 1% [20:17:37]line > о реализуемом товаре [20:17:37]line ИТОГО: 200.03 [20:17:37]line НСП 1% : 1.77 [20:17:37]line НДС 12% : 21.24 [20:17:37]line Наличными: 0.00 [20:17:37]line Безнал.: 200.03 [20:17:37]line Место: АЗС № 78 "Партнер Нефть" [20:17:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:17:37]line СНО: Общий режим [20:17:37]line Чек 239 21.10.2024 20:17 [20:17:37]line Смена: 115 ФФД: 1.0 [20:17:37]line ЗНМ: 0300000137 [20:17:37]line РНМ: 0000000000186857 [20:17:37]line Версия ККМ: v1.0 [20:17:37]line Платежная система: АКБ Кыргызстан [20:17:37]line ФМ: 0000000002094219 [20:17:37]line ФД: 30742 [20:17:37]line ФПД: 137280532280560 [20:17:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201742&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30742&fm=137280532280560&tin=02508201610067®Number=0000000000186857&sum=20003 [20:17:37]OFD Sender: Processing packet 30742 [packets to send 10, broken 9] [20:17:37]ProducePacketName [20:17:37]name=ofd_packets/00030742 [20:17:37]OFD Sender: To server: pG, [20:17:37]CommunicateWithHost lk.salyk.kg:30040 [20:17:37]ConnectInit lk.salyk.kg [20:17:37]written 0, free lines is 4095 [20:17:37]Connected sock=10 [20:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 51 85 07 01 0D 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 E6 B6 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 16 78 00 00 35 04 06 00 7C DB 1D 5C 74 F0 FE 7F 92 16 51 DB A4 9D [20:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F0 CF 47 00 C8 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 32 30 39 34 32 31 39 10 04 04 00 16 78 00 00 F4 03 04 00 66 61 16 67 B6 04 01 00 00 0B 2A 79 1A 78 58 5C C2 [20:17:38]CommunicateWithHost err = 0 [20:17:38]CheckOFDResponse [20:17:38]1017 (14) - 77093643461234 [20:17:38]1041 (16) - 0000000002094219 [20:17:38]1040 (4) - 30742 [20:17:38]1012 (4) - 21.10.2024 14:12 [20:17:38]1206 (1) - 0 [20:17:38]OFD Sender: Remove packet 30742 [20:17:38]ProducePacketName [20:17:38]name=ofd_packets/00030742 [20:17:38]NVStorageDeleteData [20:17:38]Write to MH i2c: 01 00 00 BB 64 1F [20:17:38]Write i2c OK [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: 01 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: 01 07 00 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: 01 07 00 BB 64 00 00 00 00 00 FB 0C 2D [20:17:38]RasterBufferAndPrint [20:17:38]line [20:17:38]line [20:17:38]line [20:17:38]line [20:17:38]line [20:17:38]written 0, free lines is 3329 [20:17:38]MH_Cut [20:17:38]Write to MH i2c: D1 01 00 C2 64 01 F8 [20:17:38]Write i2c OK [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: D1 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: D1 01 00 [20:17:38]MH_I2C_Read... [20:17:38]Read from MH i2c: D1 01 00 C2 64 00 F7 [20:17:38]Write to MH i2c: 01 00 00 C3 64 27 [20:17:38]Write i2c OK [20:17:38]MH_I2C_Read... [20:17:38]OFD Sender: No OFD packet to send [20:17:39]*** Cut start [20:17:39]*** Partial cut [20:17:39]*** CUTSNS_PIN = 1 [20:17:39]*** CUTSNS_PIN = 0 [20:17:39]*** Brake cut motor [20:17:39]Read from MH i2c: 01 [20:17:39]MH_I2C_Read... [20:17:39]*** Stop cut motor [20:17:39]*** Cut end [20:17:39]Read from MH i2c: 01 07 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: 01 07 00 C3 64 00 00 00 00 00 FF 0F 3C [20:17:39]process_action close_receipt done [20:17:39]requested_data is exist [20:17:39]produce_requested_data [20:17:39]requested_item fm.sn is exist - process it [20:17:39]wFMCommunicate request_size=4 [20:17:39]MH_SAM_APDU [20:17:39]CAPDU: 80 11 00 00 [20:17:39]Write to MH i2c: E2 08 00 C4 64 80 11 00 00 00 00 00 00 A2 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 [20:17:39]MH_I2C_Read... [20:17:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:39]Read from MH i2c: E2 17 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 17 00 C4 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [20:17:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:17:39]wFMCommunicate OK [20:17:39]requested_item fd.num is exist - process it [20:17:39]SAM_PROTO_GetFieldsCounters [20:17:39]wFMCommunicate request_size=4 [20:17:39]MH_SAM_APDU [20:17:39]CAPDU: 80 13 00 00 [20:17:39]Write to MH i2c: E2 08 00 C5 64 80 13 00 00 00 00 00 00 A5 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 [20:17:39]MH_I2C_Read... [20:17:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:39]Read from MH i2c: E2 62 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 62 00 C5 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [20:17:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 16 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:39]wFMCommunicate OK [20:17:39]SAM_PROTO_GetFieldsCounters done [20:17:39]requested_item shift.num is exist - process it [20:17:39]requested_item shift.opened is exist - process it [20:17:39]req_shift_opened [20:17:39]FM_GetShiftState [20:17:39]SAM_PROTO_GetShiftState [20:17:39]wFMCommunicate request_size=4 [20:17:39]MH_SAM_APDU [20:17:39]CAPDU: 80 13 01 00 [20:17:39]Write to MH i2c: E2 08 00 C6 64 80 13 01 00 00 00 00 00 A7 [20:17:39]Write i2c OK [20:17:39]MH_I2C_Read... [20:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:39]Read from MH i2c: E2 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 0E 00 [20:17:39]MH_I2C_Read... [20:17:39]Read from MH i2c: E2 0E 00 C6 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 23 [20:17:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:17:39]wFMCommunicate OK [20:17:39]SAM_PROTO_GetShiftState done [20:17:39]FM_GetShiftState done [20:17:39]req_shift_opened done [20:17:39]requested_item shift.open_date is exist - process it [20:17:39]req_shift_open_date [20:17:39]req_shift_open_date done [20:17:39]produce_requested_data done [20:17:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30742,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:17:39]process_action_free close_receipt [20:17:39]json_value_free [20:17:39]json_value_free done [20:17:39]process_json_proto returns [20:17:39]Send response to host [20:17:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30742,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:17:39]free response buf [20:17:39]execute_script done [20:17:39]execute_script returns [20:17:39]free content buf [20:17:39]Sock 9.Close socket [20:17:39]Sock 9.Thread stoped [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:14]accept exits with 7 [20:25:14]New connection [20:25:14]New thread 3067489636 created [20:25:14]Thread 3067346276 joined [20:25:14]Waiting for new connection... [20:25:14] Sock 7.Parse request [20:25:14]Sock 7.Check first char [20:25:14]Sock 7.First char is OK [20:25:14]request: POST /json_proto HTTP/1.0 [20:25:14]Method: POST [20:25:14]URL: /json_proto [20:25:14]Method is POST - this is cgi request [20:25:14]url: /json_proto [20:25:14]query_string will be loaded in cgi processing [20:25:14]execute_cgi json_proto POST (null) [20:25:14]execute_cgi path=json_proto method=POST [20:25:14]POST find Content-Length [20:25:14]Host: 172.17.51.3:8080 [20:25:14]Content-Length: 677 [20:25:14]Content-Type: application/json [20:25:14] [20:25:14]POST finish read [20:25:14]Found Content-Length = 677 [20:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:14]execute_script... [20:25:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:14]POST & json_proto [20:25:14]process_json_proto [20:25:14]json parsed OK: [20:25:14]protocol is kg_v1.0 [20:25:14]action value=close_receipt [20:25:14]process_action close_receipt [20:25:14]cmd_close_receipt [20:25:14]MH_GetDate [20:25:14]Write to MH i2c: F0 00 00 C7 64 1A [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: F0 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: F0 09 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: F0 09 00 C7 64 00 B1 B8 16 67 04 C1 95 66 C9 [20:25:14]GetLastDocTimeStamp 1729541862 [20:25:14]current date 1729542321 [20:25:14]FM_GetShiftState [20:25:14]SAM_PROTO_GetShiftState [20:25:14]wFMCommunicate request_size=4 [20:25:14]MH_SAM_APDU [20:25:14]CAPDU: 80 13 01 00 [20:25:14]Write to MH i2c: E2 08 00 C8 64 80 13 01 00 00 00 00 00 A9 [20:25:14]Write i2c OK [20:25:14]MH_I2C_Read... [20:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:14]Read from MH i2c: E2 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 0E 00 [20:25:14]MH_I2C_Read... [20:25:14]Read from MH i2c: E2 0E 00 C8 64 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 25 [20:25:14]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:25:14]wFMCommunicate OK [20:25:14]SAM_PROTO_GetShiftState done [20:25:14]FM_GetShiftState done [20:25:14]opened in 1729471058 [20:25:14]opened+sec_in_day 1729557458 [20:25:14]quantity*price = 50041 [20:25:14]sum+1 = 50042 [20:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 240 21.10.2024 20:25 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30743 ФПД: 18704687756952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202521&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30743&fm=18704687756952&tin=02508201610067®Number=0000000000186857&sum=50000 [20:25:15]StoreToDocumentArchive [20:25:15]shift 115 fd 30743 [20:25:15]save to /storage/0115/doc_00030743 [20:25:15]save last doc name /storage/0115/doc_00030743 to /storage/kkm_last_doc_name [20:25:15]save OK [20:25:15]Clear old archive folders... [20:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:15]tlvbuf is 01F4B4D0 [20:25:15]SAM_PROTO_ClearQueue [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 09 00 00 [20:25:15]Write to MH i2c: E2 08 00 D5 64 80 09 00 00 00 00 00 00 AB [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 03 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 03 00 D5 64 00 90 00 AD [20:25:15]RAPDU: 90 00 [20:25:15]wFMCommunicate OK [20:25:15]SAM_PROTO_ClearQueue done [20:25:15]KKMCreateOFDPacket [20:25:15]OFDProtocolAddRootSTLVToBuf [20:25:15]FM_MakeSignedData [20:25:15]FM_MakeSignedData [20:25:15]SAM_PROTO_SignData [20:25:15]wFMCommunicate request_size=4 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 0D 01 02 [20:25:15]Write to MH i2c: E2 08 00 D6 64 80 0D 01 02 00 00 00 00 B3 [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:15]Read from MH i2c: E2 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 03 00 [20:25:15]MH_I2C_Read... [20:25:15]Read from MH i2c: E2 03 00 D6 64 00 90 00 AE [20:25:15]RAPDU: 90 00 [20:25:15]wFMCommunicate OK [20:25:15]wFMCommunicate request_size=255 [20:25:15]MH_SAM_APDU [20:25:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B1 B8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 78 00 00 35 04 06 00 11 [20:25:15]Write to MH i2c: E2 02 01 D7 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B1 B8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 78 00 00 35 04 06 00 11 00 00 2D [20:25:15]Write i2c OK [20:25:15]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 03 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 03 00 D7 64 00 90 00 AF [20:25:16]RAPDU: 90 00 [20:25:16]wFMCommunicate OK [20:25:16]wFMCommunicate request_size=10 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 0D 02 02 05 03 06 44 F6 98 [20:25:16]Write to MH i2c: E2 0D 00 D8 64 80 0D 02 02 05 00 03 06 44 F6 98 00 00 9B [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 03 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 03 00 D8 64 00 90 00 B0 [20:25:16]RAPDU: 90 00 [20:25:16]wFMCommunicate OK [20:25:16]wFMCommunicate request_size=4 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 0D 03 02 [20:25:16]Write to MH i2c: E2 08 00 D9 64 80 0D 03 02 00 00 00 00 B8 [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0B 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 0B 00 D9 64 00 22 12 D9 B4 08 A9 22 16 90 00 63 [20:25:16]RAPDU: 22 12 D9 B4 08 A9 22 16 90 00 [20:25:16]wFMCommunicate OK [20:25:16]SAM_PROTO_SignData done [20:25:16]FM_MakeSignedData done [20:25:16]CreateOFDProtocolMessage [20:25:16]wFMCommunicate request_size=4 [20:25:16]MH_SAM_APDU [20:25:16]CAPDU: 80 11 00 00 [20:25:16]Write to MH i2c: E2 08 00 DA 64 80 11 00 00 00 00 00 00 B8 [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:16]Read from MH i2c: E2 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 17 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: E2 17 00 DA 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [20:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:25:16]wFMCommunicate OK [20:25:16]CreateOFDProtocolMessage done [20:25:16]OFDSenderStorePacket 30743 [20:25:16]StoreOFDPacket docnum=30743 [20:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E6 54 07 01 6A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B1 B8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 78 00 00 35 04 06 00 11 03 06 44 F6 98 22 12 D9 B4 08 A9 22 16 [20:25:16]CheckFolder [20:25:16]dirname=/storage/ofd_packets [20:25:16]CheckFolder done [20:25:16]ProducePacketName [20:25:16]name=ofd_packets/00030743 [20:25:16]NVStorageSaveData ofd_packets/00030743 [20:25:16]File name is /storage/ofd_packets/00030743 [20:25:16]Write 301 bytes [20:25:16]NVStorageSaveData done [20:25:16]OFDSenderStorePacket done [20:25:16]KKMCreateOFDPacket done [20:25:16]NVStorageSaveData kkm_last_timestamp [20:25:16]File name is /storage/kkm_last_timestamp [20:25:16]Write 4 bytes [20:25:16]NVStorageSaveData done [20:25:16]ExternCall_PrintAddStr [20:25:16]wPrintStart [20:25:16]Write to MH i2c: 01 00 00 DB 64 3F [20:25:16]Write i2c OK [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 [20:25:16]MH_I2C_Read... [20:25:16]Read from MH i2c: 01 07 00 DB 64 00 00 00 00 00 FF 0F 54 [20:25:16]RasterBufferAndPrint [20:25:16]line Счет N : (1)343157 [20:25:16]line ИНН: 02508201610067 [20:25:16]line Контрольно-Кассовый Чек [20:25:16]line ПРОДАЖА [20:25:16]line ТРК (МРК, ГНК) : 63 [20:25:16]line Товар: 2710124130 [20:25:16]line Аи-92-К-2 [20:25:16]line 7.480 * 66.90 [20:25:16]line = 500.41 [20:25:16]line НДС 12% НСП 1% [20:25:16]line > о реализуемом товаре [20:25:16]line ОКРУГЛЕНИЕ: -0.41 [20:25:16]line ИТОГО: 500.00 [20:25:16]line Внесено: 500.00 [20:25:16]line СДАЧА: 0.00 [20:25:16]line НСП 1% : 4.43 [20:25:16]line НДС 12% : 53.14 [20:25:16]line Наличными: 500.00 [20:25:16]line Безнал.: 0.00 [20:25:16]line Место: АЗС № 78 "Партнер Нефть" [20:25:16]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:25:16]line СНО: Общий режим [20:25:16]line Чек 240 21.10.2024 20:25 [20:25:16]line Смена: 115 ФФД: 1.0 [20:25:16]line ЗНМ: 0300000137 [20:25:16]line РНМ: 0000000000186857 [20:25:16]line Версия ККМ: v1.0 [20:25:16]line ФМ: 0000000002094219 [20:25:16]line ФД: 30743 [20:25:16]line ФПД: 18704687756952 [20:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202521&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30743&fm=18704687756952&tin=02508201610067®Number=0000000000186857&sum=50000 [20:25:16]OFD Sender: Processing packet 30743 [packets to send 10, broken 9] [20:25:16]ProducePacketName [20:25:16]name=ofd_packets/00030743 [20:25:16]OFD Sender: To server: pG, [20:25:16]CommunicateWithHost lk.salyk.kg:30040 [20:25:16]ConnectInit lk.salyk.kg [20:25:16]written 0, free lines is 4095 [20:25:16]Connected sock=10 [20:25:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E6 54 07 01 6A 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 B1 B8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 17 78 00 00 35 04 06 00 11 03 06 44 F6 98 22 12 D9 B4 08 A9 22 16 [20:25:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 6F 74 47 00 CF 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 32 30 39 34 32 31 39 10 04 04 00 17 78 00 00 F4 03 04 00 31 63 16 67 B6 04 01 00 00 7E 46 21 50 04 A8 A4 FE [20:25:17]CommunicateWithHost err = 0 [20:25:17]CheckOFDResponse [20:25:17]1017 (14) - 77093643461234 [20:25:17]1041 (16) - 0000000002094219 [20:25:17]1040 (4) - 30743 [20:25:17]1012 (4) - 21.10.2024 14:20 [20:25:17]1206 (1) - 0 [20:25:17]OFD Sender: Remove packet 30743 [20:25:17]ProducePacketName [20:25:17]name=ofd_packets/00030743 [20:25:17]NVStorageDeleteData [20:25:17]Write to MH i2c: 01 00 00 06 65 6B [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: 01 07 00 06 65 00 00 00 00 00 F7 0C 75 [20:25:17]RasterBufferAndPrint [20:25:17]line [20:25:17]line [20:25:17]line [20:25:17]line [20:25:17]line [20:25:17]written 0, free lines is 3326 [20:25:17]MH_Cut [20:25:17]Write to MH i2c: D1 01 00 0D 65 01 44 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: D1 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: D1 01 00 [20:25:17]MH_I2C_Read... [20:25:17]Read from MH i2c: D1 01 00 0D 65 00 43 [20:25:17]Write to MH i2c: 01 00 00 0E 65 73 [20:25:17]Write i2c OK [20:25:17]MH_I2C_Read... [20:25:17]OFD Sender: No OFD packet to send [20:25:17]*** Cut start [20:25:17]*** Partial cut [20:25:17]*** CUTSNS_PIN = 1 [20:25:17]*** CUTSNS_PIN = 0 [20:25:18]*** Brake cut motor [20:25:18]Read from MH i2c: 01 [20:25:18]MH_I2C_Read... [20:25:18]*** Stop cut motor [20:25:18]*** Cut end [20:25:18]Read from MH i2c: 01 07 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: 01 07 00 0E 65 00 00 00 00 00 FF 0F 88 [20:25:18]process_action close_receipt done [20:25:18]requested_data is exist [20:25:18]produce_requested_data [20:25:18]requested_item fm.sn is exist - process it [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 11 00 00 [20:25:18]Write to MH i2c: E2 08 00 0F 65 80 11 00 00 00 00 00 00 EE [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 17 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 17 00 0F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [20:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:25:18]wFMCommunicate OK [20:25:18]requested_item fd.num is exist - process it [20:25:18]SAM_PROTO_GetFieldsCounters [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 13 00 00 [20:25:18]Write to MH i2c: E2 08 00 10 65 80 13 00 00 00 00 00 00 F1 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 62 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 62 00 10 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [20:25:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 17 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:18]wFMCommunicate OK [20:25:18]SAM_PROTO_GetFieldsCounters done [20:25:18]requested_item shift.num is exist - process it [20:25:18]requested_item shift.opened is exist - process it [20:25:18]req_shift_opened [20:25:18]FM_GetShiftState [20:25:18]SAM_PROTO_GetShiftState [20:25:18]wFMCommunicate request_size=4 [20:25:18]MH_SAM_APDU [20:25:18]CAPDU: 80 13 01 00 [20:25:18]Write to MH i2c: E2 08 00 11 65 80 13 01 00 00 00 00 00 F3 [20:25:18]Write i2c OK [20:25:18]MH_I2C_Read... [20:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:18]Read from MH i2c: E2 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 0E 00 [20:25:18]MH_I2C_Read... [20:25:18]Read from MH i2c: E2 0E 00 11 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6F [20:25:18]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:25:18]wFMCommunicate OK [20:25:18]SAM_PROTO_GetShiftState done [20:25:18]FM_GetShiftState done [20:25:18]req_shift_opened done [20:25:18]requested_item shift.open_date is exist - process it [20:25:18]req_shift_open_date [20:25:18]req_shift_open_date done [20:25:18]produce_requested_data done [20:25:18]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30743,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:25:18]process_action_free close_receipt [20:25:18]json_value_free [20:25:18]json_value_free done [20:25:18]process_json_proto returns [20:25:18]Send response to host [20:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30743,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:25:18]free response buf [20:25:18]execute_script done [20:25:18]execute_script returns [20:25:18]free content buf [20:25:18]Sock 7.Close socket [20:25:18]Sock 7.Thread stoped [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:17]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:56]accept exits with 9 [20:38:56]New connection [20:38:56]New thread 3067346276 created [20:38:56]Thread 3067489636 joined [20:38:56]Waiting for new connection... [20:38:56] Sock 9.Parse request [20:38:56]Sock 9.Check first char [20:38:56]Sock 9.First char is OK [20:38:56]request: POST /json_proto HTTP/1.0 [20:38:56]Method: POST [20:38:56]URL: /json_proto [20:38:56]Method is POST - this is cgi request [20:38:56]url: /json_proto [20:38:56]query_string will be loaded in cgi processing [20:38:56]execute_cgi json_proto POST (null) [20:38:56]execute_cgi path=json_proto method=POST [20:38:56]POST find Content-Length [20:38:56]Host: 172.17.51.3:8080 [20:38:56]Content-Length: 837 [20:38:56]Content-Type: application/json [20:38:56] [20:38:56]POST finish read [20:38:56]Found Content-Length = 837 [20:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:56]execute_script... [20:38:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:56]POST & json_proto [20:38:56]process_json_proto [20:38:56]json parsed OK: [20:38:56]protocol is kg_v1.0 [20:38:56]action value=close_receipt [20:38:56]process_action close_receipt [20:38:56]cmd_close_receipt [20:38:56]MH_GetDate [20:38:56]Write to MH i2c: F0 00 00 12 65 66 [20:38:56]Write i2c OK [20:38:56]MH_I2C_Read... [20:38:56]Read from MH i2c: F0 [20:38:56]MH_I2C_Read... [20:38:56]Read from MH i2c: F0 09 00 [20:38:56]MH_I2C_Read... [20:38:56]Read from MH i2c: F0 09 00 12 65 00 E7 BB 16 67 04 C1 95 66 4E [20:38:56]GetLastDocTimeStamp 1729542321 [20:38:56]current date 1729543143 [20:38:56]FM_GetShiftState [20:38:56]SAM_PROTO_GetShiftState [20:38:56]wFMCommunicate request_size=4 [20:38:56]MH_SAM_APDU [20:38:56]CAPDU: 80 13 01 00 [20:38:56]Write to MH i2c: E2 08 00 13 65 80 13 01 00 00 00 00 00 F5 [20:38:56]Write i2c OK [20:38:56]MH_I2C_Read... [20:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:56]Read from MH i2c: E2 [20:38:56]MH_I2C_Read... [20:38:56]Read from MH i2c: E2 0E 00 [20:38:56]MH_I2C_Read... [20:38:56]Read from MH i2c: E2 0E 00 13 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 71 [20:38:56]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:38:56]wFMCommunicate OK [20:38:56]SAM_PROTO_GetShiftState done [20:38:56]FM_GetShiftState done [20:38:56]opened in 1729471058 [20:38:56]opened+sec_in_day 1729557458 [20:38:56]quantity*price = 50063 [20:38:56]sum+1 = 50064 [20:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 241 21.10.2024 20:39 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30744 ФПД: 81460659179194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30744&fm=81460659179194&tin=02508201610067®Number=0000000000186857&sum=50063 [20:38:57]StoreToDocumentArchive [20:38:57]shift 115 fd 30744 [20:38:57]save to /storage/0115/doc_00030744 [20:38:57]save last doc name /storage/0115/doc_00030744 to /storage/kkm_last_doc_name [20:38:57]save OK [20:38:57]Clear old archive folders... [20:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:57]tlvbuf is 01F4B860 [20:38:57]SAM_PROTO_ClearQueue [20:38:57]wFMCommunicate request_size=4 [20:38:57]MH_SAM_APDU [20:38:57]CAPDU: 80 09 00 00 [20:38:57]Write to MH i2c: E2 08 00 20 65 80 09 00 00 00 00 00 00 F7 [20:38:57]Write i2c OK [20:38:57]MH_I2C_Read... [20:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:57]Read from MH i2c: E2 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: E2 03 00 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: E2 03 00 20 65 00 90 00 F9 [20:38:57]RAPDU: 90 00 [20:38:57]wFMCommunicate OK [20:38:57]SAM_PROTO_ClearQueue done [20:38:57]KKMCreateOFDPacket [20:38:57]OFDProtocolAddRootSTLVToBuf [20:38:57]FM_MakeSignedData [20:38:57]FM_MakeSignedData [20:38:57]SAM_PROTO_SignData [20:38:57]wFMCommunicate request_size=4 [20:38:57]MH_SAM_APDU [20:38:57]CAPDU: 80 0D 01 02 [20:38:57]Write to MH i2c: E2 08 00 21 65 80 0D 01 02 00 00 00 00 FF [20:38:57]Write i2c OK [20:38:57]MH_I2C_Read... [20:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:57]Read from MH i2c: E2 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: E2 03 00 [20:38:57]MH_I2C_Read... [20:38:57]Read from MH i2c: E2 03 00 21 65 00 90 00 FA [20:38:57]RAPDU: 90 00 [20:38:57]wFMCommunicate OK [20:38:57]wFMCommunicate request_size=255 [20:38:57]MH_SAM_APDU [20:38:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 BB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 78 00 00 35 04 06 00 4A 16 89 A7 [20:38:57]Write to MH i2c: E2 02 01 22 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 BB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 78 00 00 35 04 06 00 4A 16 89 A7 00 00 2F [20:38:57]Write i2c OK [20:38:57]MH_I2C_Read... [20:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:58]Read from MH i2c: E2 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 03 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 03 00 22 65 00 90 00 FB [20:38:58]RAPDU: 90 00 [20:38:58]wFMCommunicate OK [20:38:58]wFMCommunicate request_size=7 [20:38:58]MH_SAM_APDU [20:38:58]CAPDU: 80 0D 02 02 02 4E BA [20:38:58]Write to MH i2c: E2 0A 00 23 65 80 0D 02 02 02 00 4E BA 00 00 0E [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:58]Read from MH i2c: E2 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 03 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 03 00 23 65 00 90 00 FC [20:38:58]RAPDU: 90 00 [20:38:58]wFMCommunicate OK [20:38:58]wFMCommunicate request_size=4 [20:38:58]MH_SAM_APDU [20:38:58]CAPDU: 80 0D 03 02 [20:38:58]Write to MH i2c: E2 08 00 24 65 80 0D 03 02 00 00 00 00 04 [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:58]Read from MH i2c: E2 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 0B 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 0B 00 24 65 00 1D 6A C4 71 AE 4A 94 B7 90 00 04 [20:38:58]RAPDU: 1D 6A C4 71 AE 4A 94 B7 90 00 [20:38:58]wFMCommunicate OK [20:38:58]SAM_PROTO_SignData done [20:38:58]FM_MakeSignedData done [20:38:58]CreateOFDProtocolMessage [20:38:58]wFMCommunicate request_size=4 [20:38:58]MH_SAM_APDU [20:38:58]CAPDU: 80 11 00 00 [20:38:58]Write to MH i2c: E2 08 00 25 65 80 11 00 00 00 00 00 00 04 [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]OFD Sender: No OFD packet to send [20:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:58]Read from MH i2c: E2 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 17 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: E2 17 00 25 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [20:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:38:58]wFMCommunicate OK [20:38:58]CreateOFDProtocolMessage done [20:38:58]OFDSenderStorePacket 30744 [20:38:58]StoreOFDPacket docnum=30744 [20:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 80 0E 04 01 AE AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 BB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 78 00 00 35 04 06 00 4A 16 89 A7 4E BA 1D 6A C4 71 AE 4A 94 B7 [20:38:58]CheckFolder [20:38:58]dirname=/storage/ofd_packets [20:38:58]CheckFolder done [20:38:58]ProducePacketName [20:38:58]name=ofd_packets/00030744 [20:38:58]NVStorageSaveData ofd_packets/00030744 [20:38:58]File name is /storage/ofd_packets/00030744 [20:38:58]Write 298 bytes [20:38:58]NVStorageSaveData done [20:38:58]OFDSenderStorePacket done [20:38:58]KKMCreateOFDPacket done [20:38:58]NVStorageSaveData kkm_last_timestamp [20:38:58]File name is /storage/kkm_last_timestamp [20:38:58]Write 4 bytes [20:38:58]NVStorageSaveData done [20:38:58]ExternCall_PrintAddStr [20:38:58]wPrintStart [20:38:58]Write to MH i2c: 01 00 00 26 65 8B [20:38:58]Write i2c OK [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: 01 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: 01 07 00 [20:38:58]MH_I2C_Read... [20:38:58]Read from MH i2c: 01 07 00 26 65 00 00 00 00 00 FF 0F A0 [20:38:58]RasterBufferAndPrint [20:38:58]line Счет N : (1)343158 [20:38:58]line ИНН: 02508201610067 [20:38:58]line Контрольно-Кассовый Чек [20:38:58]line ПРОДАЖА [20:38:58]line ТРК (МРК, ГНК) : 64 [20:38:58]line Товар: 2710194210 [20:38:58]line ДТ-К-2 [20:38:58]line 6.570 * 76.20 [20:38:58]line = 500.63 [20:38:58]line НДС 12% НСП 1% [20:38:58]line > о реализуемом товаре [20:38:58]line ИТОГО: 500.63 [20:38:58]line НСП 1% : 4.43 [20:38:58]line НДС 12% : 53.16 [20:38:58]line Наличными: 0.00 [20:38:58]line Безнал.: 500.63 [20:38:58]line Место: АЗС № 78 "Партнер Нефть" [20:38:58]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:38:58]line СНО: Общий режим [20:38:58]line Чек 241 21.10.2024 20:39 [20:38:58]line Смена: 115 ФФД: 1.0 [20:38:58]line ЗНМ: 0300000137 [20:38:58]line РНМ: 0000000000186857 [20:38:58]line Версия ККМ: v1.0 [20:38:58]line Платежная система: АКБ Кыргызстан [20:38:58]line ФМ: 0000000002094219 [20:38:58]line ФД: 30744 [20:38:58]line ФПД: 81460659179194 [20:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203903&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30744&fm=81460659179194&tin=02508201610067®Number=0000000000186857&sum=50063 [20:38:58]OFD Sender: Processing packet 30744 [packets to send 10, broken 9] [20:38:58]ProducePacketName [20:38:58]name=ofd_packets/00030744 [20:38:58]OFD Sender: To server: pG, [20:38:58]CommunicateWithHost lk.salyk.kg:30040 [20:38:58]ConnectInit lk.salyk.kg [20:38:58]written 0, free lines is 4095 [20:38:58]Connected sock=10 [20:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 80 0E 04 01 AE AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 E7 BB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 78 00 00 35 04 06 00 4A 16 89 A7 4E BA 1D 6A C4 71 AE 4A 94 B7 [20:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 31 A2 47 00 40 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 18 78 00 00 F4 03 04 00 66 66 16 67 B6 04 01 00 00 B2 2F 95 E3 D1 EB FF 8B [20:38:58]CommunicateWithHost err = 0 [20:38:58]CheckOFDResponse [20:38:58]1017 (14) - 77093643461234 [20:38:58]1041 (16) - 0000000002094219 [20:38:58]1040 (4) - 30744 [20:38:58]1012 (4) - 21.10.2024 14:34 [20:38:58]1206 (1) - 0 [20:38:58]OFD Sender: Remove packet 30744 [20:38:58]ProducePacketName [20:38:58]name=ofd_packets/00030744 [20:38:58]NVStorageDeleteData [20:38:59]Write to MH i2c: 01 00 00 50 65 B5 [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: 01 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: 01 07 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: 01 07 00 50 65 00 00 00 00 00 02 0D CB [20:38:59]RasterBufferAndPrint [20:38:59]line [20:38:59]line [20:38:59]line [20:38:59]line [20:38:59]line [20:38:59]written 0, free lines is 3336 [20:38:59]MH_Cut [20:38:59]Write to MH i2c: D1 01 00 57 65 01 8E [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: D1 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: D1 01 00 [20:38:59]MH_I2C_Read... [20:38:59]Read from MH i2c: D1 01 00 57 65 00 8D [20:38:59]Write to MH i2c: 01 00 00 58 65 BD [20:38:59]Write i2c OK [20:38:59]MH_I2C_Read... [20:38:59]OFD Sender: No OFD packet to send [20:38:59]*** Cut start [20:38:59]*** Partial cut [20:38:59]*** CUTSNS_PIN = 1 [20:38:59]*** CUTSNS_PIN = 0 [20:38:59]*** Brake cut motor [20:39:00]Read from MH i2c: 01 [20:39:00]MH_I2C_Read... [20:39:00]*** Stop cut motor [20:39:00]*** Cut end [20:39:00]Read from MH i2c: 01 07 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: 01 07 00 58 65 00 00 00 00 00 FF 0F D2 [20:39:00]process_action close_receipt done [20:39:00]requested_data is exist [20:39:00]produce_requested_data [20:39:00]requested_item fm.sn is exist - process it [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 11 00 00 [20:39:00]Write to MH i2c: E2 08 00 59 65 80 11 00 00 00 00 00 00 38 [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 17 00 59 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 86 [20:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:39:00]wFMCommunicate OK [20:39:00]requested_item fd.num is exist - process it [20:39:00]SAM_PROTO_GetFieldsCounters [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 13 00 00 [20:39:00]Write to MH i2c: E2 08 00 5A 65 80 13 00 00 00 00 00 00 3B [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 62 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 62 00 5A 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [20:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 18 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_GetFieldsCounters done [20:39:00]requested_item shift.num is exist - process it [20:39:00]requested_item shift.opened is exist - process it [20:39:00]req_shift_opened [20:39:00]FM_GetShiftState [20:39:00]SAM_PROTO_GetShiftState [20:39:00]wFMCommunicate request_size=4 [20:39:00]MH_SAM_APDU [20:39:00]CAPDU: 80 13 01 00 [20:39:00]Write to MH i2c: E2 08 00 5B 65 80 13 01 00 00 00 00 00 3D [20:39:00]Write i2c OK [20:39:00]MH_I2C_Read... [20:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:00]Read from MH i2c: E2 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0E 00 [20:39:00]MH_I2C_Read... [20:39:00]Read from MH i2c: E2 0E 00 5B 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 B9 [20:39:00]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:39:00]wFMCommunicate OK [20:39:00]SAM_PROTO_GetShiftState done [20:39:00]FM_GetShiftState done [20:39:00]req_shift_opened done [20:39:00]requested_item shift.open_date is exist - process it [20:39:00]req_shift_open_date [20:39:00]req_shift_open_date done [20:39:00]produce_requested_data done [20:39:00]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30744,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:39:00]process_action_free close_receipt [20:39:00]json_value_free [20:39:00]json_value_free done [20:39:00]process_json_proto returns [20:39:00]Send response to host [20:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30744,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:39:00]free response buf [20:39:00]execute_script done [20:39:00]execute_script returns [20:39:00]free content buf [20:39:00]Sock 9.Close socket [20:39:00]Sock 9.Thread stoped [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [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: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:42]accept exits with 7 [20:40:42]New connection [20:40:42]New thread 3067489636 created [20:40:42]Thread 3067346276 joined [20:40:42]Waiting for new connection... [20:40:42] Sock 7.Parse request [20:40:42]Sock 7.Check first char [20:40:42]Sock 7.First char is OK [20:40:42]request: POST /json_proto HTTP/1.0 [20:40:42]Method: POST [20:40:42]URL: /json_proto [20:40:42]Method is POST - this is cgi request [20:40:42]url: /json_proto [20:40:42]query_string will be loaded in cgi processing [20:40:42]execute_cgi json_proto POST (null) [20:40:42]execute_cgi path=json_proto method=POST [20:40:42]POST find Content-Length [20:40:42]Host: 172.17.51.3:8080 [20:40:42]Content-Length: 677 [20:40:42]Content-Type: application/json [20:40:42] [20:40:42]POST finish read [20:40:42]Found Content-Length = 677 [20:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:42]execute_script... [20:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:42]POST & json_proto [20:40:42]process_json_proto [20:40:42]json parsed OK: [20:40:42]protocol is kg_v1.0 [20:40:42]action value=close_receipt [20:40:42]process_action close_receipt [20:40:42]cmd_close_receipt [20:40:42]MH_GetDate [20:40:42]Write to MH i2c: F0 00 00 5C 65 B0 [20:40:42]Write i2c OK [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: F0 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: F0 09 00 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: F0 09 00 5C 65 00 51 BC 16 67 04 C1 95 66 03 [20:40:42]GetLastDocTimeStamp 1729543143 [20:40:42]current date 1729543249 [20:40:42]FM_GetShiftState [20:40:42]SAM_PROTO_GetShiftState [20:40:42]wFMCommunicate request_size=4 [20:40:42]MH_SAM_APDU [20:40:42]CAPDU: 80 13 01 00 [20:40:42]Write to MH i2c: E2 08 00 5D 65 80 13 01 00 00 00 00 00 3F [20:40:42]Write i2c OK [20:40:42]MH_I2C_Read... [20:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:42]Read from MH i2c: E2 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: E2 0E 00 [20:40:42]MH_I2C_Read... [20:40:42]Read from MH i2c: E2 0E 00 5D 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BB [20:40:42]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:40:42]wFMCommunicate OK [20:40:42]SAM_PROTO_GetShiftState done [20:40:42]FM_GetShiftState done [20:40:42]opened in 1729471058 [20:40:42]opened+sec_in_day 1729557458 [20:40:42]quantity*price = 30038 [20:40:42]sum+1 = 30039 [20:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 242 21.10.2024 20:40 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30745 ФПД: 111293649859538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30745&fm=111293649859538&tin=02508201610067®Number=0000000000186857&sum=30000 [20:40:43]StoreToDocumentArchive [20:40:43]shift 115 fd 30745 [20:40:43]save to /storage/0115/doc_00030745 [20:40:43]save last doc name /storage/0115/doc_00030745 to /storage/kkm_last_doc_name [20:40:43]save OK [20:40:43]Clear old archive folders... [20:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:40:43]tlvbuf is 01F8AE30 [20:40:43]SAM_PROTO_ClearQueue [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 09 00 00 [20:40:43]Write to MH i2c: E2 08 00 6A 65 80 09 00 00 00 00 00 00 41 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 6A 65 00 90 00 43 [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]SAM_PROTO_ClearQueue done [20:40:43]KKMCreateOFDPacket [20:40:43]OFDProtocolAddRootSTLVToBuf [20:40:43]FM_MakeSignedData [20:40:43]FM_MakeSignedData [20:40:43]SAM_PROTO_SignData [20:40:43]wFMCommunicate request_size=4 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 0D 01 02 [20:40:43]Write to MH i2c: E2 08 00 6B 65 80 0D 01 02 00 00 00 00 49 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:43]Read from MH i2c: E2 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 [20:40:43]MH_I2C_Read... [20:40:43]Read from MH i2c: E2 03 00 6B 65 00 90 00 44 [20:40:43]RAPDU: 90 00 [20:40:43]wFMCommunicate OK [20:40:43]wFMCommunicate request_size=255 [20:40:43]MH_SAM_APDU [20:40:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 51 BC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 78 00 00 35 04 06 00 65 [20:40:43]Write to MH i2c: E2 02 01 6C 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 51 BC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 78 00 00 35 04 06 00 65 00 00 B3 [20:40:43]Write i2c OK [20:40:43]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 03 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 03 00 6C 65 00 90 00 45 [20:40:44]RAPDU: 90 00 [20:40:44]wFMCommunicate OK [20:40:44]wFMCommunicate request_size=10 [20:40:44]MH_SAM_APDU [20:40:44]CAPDU: 80 0D 02 02 05 38 92 77 33 D2 [20:40:44]Write to MH i2c: E2 0D 00 6D 65 80 0D 02 02 05 00 38 92 77 33 D2 00 00 9C [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 03 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 03 00 6D 65 00 90 00 46 [20:40:44]RAPDU: 90 00 [20:40:44]wFMCommunicate OK [20:40:44]wFMCommunicate request_size=4 [20:40:44]MH_SAM_APDU [20:40:44]CAPDU: 80 0D 03 02 [20:40:44]Write to MH i2c: E2 08 00 6E 65 80 0D 03 02 00 00 00 00 4E [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 0B 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 0B 00 6E 65 00 1A 2E 46 C8 DA D2 94 52 90 00 37 [20:40:44]RAPDU: 1A 2E 46 C8 DA D2 94 52 90 00 [20:40:44]wFMCommunicate OK [20:40:44]SAM_PROTO_SignData done [20:40:44]FM_MakeSignedData done [20:40:44]CreateOFDProtocolMessage [20:40:44]wFMCommunicate request_size=4 [20:40:44]MH_SAM_APDU [20:40:44]CAPDU: 80 11 00 00 [20:40:44]Write to MH i2c: E2 08 00 6F 65 80 11 00 00 00 00 00 00 4E [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:44]Read from MH i2c: E2 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 17 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: E2 17 00 6F 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9C [20:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:40:44]wFMCommunicate OK [20:40:44]CreateOFDProtocolMessage done [20:40:44]OFDSenderStorePacket 30745 [20:40:44]StoreOFDPacket docnum=30745 [20:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 EA 07 01 87 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 51 BC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 78 00 00 35 04 06 00 65 38 92 77 33 D2 1A 2E 46 C8 DA D2 94 52 [20:40:44]CheckFolder [20:40:44]dirname=/storage/ofd_packets [20:40:44]CheckFolder done [20:40:44]ProducePacketName [20:40:44]name=ofd_packets/00030745 [20:40:44]NVStorageSaveData ofd_packets/00030745 [20:40:44]File name is /storage/ofd_packets/00030745 [20:40:44]Write 301 bytes [20:40:44]NVStorageSaveData done [20:40:44]OFDSenderStorePacket done [20:40:44]KKMCreateOFDPacket done [20:40:44]NVStorageSaveData kkm_last_timestamp [20:40:44]File name is /storage/kkm_last_timestamp [20:40:44]Write 4 bytes [20:40:44]NVStorageSaveData done [20:40:44]ExternCall_PrintAddStr [20:40:44]wPrintStart [20:40:44]Write to MH i2c: 01 00 00 70 65 D5 [20:40:44]Write i2c OK [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 07 00 [20:40:44]MH_I2C_Read... [20:40:44]Read from MH i2c: 01 07 00 70 65 00 00 00 00 00 FF 0F EA [20:40:44]RasterBufferAndPrint [20:40:44]line Счет N : (1)343159 [20:40:44]line ИНН: 02508201610067 [20:40:44]line Контрольно-Кассовый Чек [20:40:44]line ПРОДАЖА [20:40:44]line ТРК (МРК, ГНК) : 63 [20:40:44]line Товар: 2710124130 [20:40:44]line Аи-92-К-2 [20:40:44]line 4.490 * 66.90 [20:40:44]line = 300.38 [20:40:44]line НДС 12% НСП 1% [20:40:44]line > о реализуемом товаре [20:40:44]line ОКРУГЛЕНИЕ: -0.38 [20:40:44]line ИТОГО: 300.00 [20:40:44]line Внесено: 300.00 [20:40:44]line СДАЧА: 0.00 [20:40:44]line НСП 1% : 2.66 [20:40:44]line НДС 12% : 31.90 [20:40:44]line Наличными: 300.00 [20:40:44]line Безнал.: 0.00 [20:40:44]line Место: АЗС № 78 "Партнер Нефть" [20:40:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:40:44]line СНО: Общий режим [20:40:44]line Чек 242 21.10.2024 20:40 [20:40:44]line Смена: 115 ФФД: 1.0 [20:40:44]line ЗНМ: 0300000137 [20:40:44]line РНМ: 0000000000186857 [20:40:44]line Версия ККМ: v1.0 [20:40:44]line ФМ: 0000000002094219 [20:40:44]line ФД: 30745 [20:40:44]line ФПД: 111293649859538 [20:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204049&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30745&fm=111293649859538&tin=02508201610067®Number=0000000000186857&sum=30000 [20:40:44]OFD Sender: Processing packet 30745 [packets to send 10, broken 9] [20:40:44]ProducePacketName [20:40:44]name=ofd_packets/00030745 [20:40:44]OFD Sender: To server: pG, [20:40:44]CommunicateWithHost lk.salyk.kg:30040 [20:40:44]ConnectInit lk.salyk.kg [20:40:44]written 0, free lines is 4095 [20:40:44]Connected sock=10 [20:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E3 EA 07 01 87 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 51 BC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 78 00 00 35 04 06 00 65 38 92 77 33 D2 1A 2E 46 C8 DA D2 94 52 [20:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 90 C9 47 00 9D FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 19 78 00 00 F4 03 04 00 D1 66 16 67 B6 04 01 00 00 CF 9A 2A 80 4B C4 97 D8 [20:40:44]CommunicateWithHost err = 0 [20:40:44]CheckOFDResponse [20:40:44]1017 (14) - 77093643461234 [20:40:44]1041 (16) - 0000000002094219 [20:40:44]1040 (4) - 30745 [20:40:44]1012 (4) - 21.10.2024 14:36 [20:40:44]1206 (1) - 0 [20:40:44]OFD Sender: Remove packet 30745 [20:40:44]ProducePacketName [20:40:44]name=ofd_packets/00030745 [20:40:44]NVStorageDeleteData [20:40:45]Write to MH i2c: 01 00 00 9B 65 00 [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: 01 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: 01 07 00 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: 01 07 00 9B 65 00 00 00 00 00 EB 0C FE [20:40:45]RasterBufferAndPrint [20:40:45]line [20:40:45]line [20:40:45]line [20:40:45]line [20:40:45]line [20:40:45]written 0, free lines is 3313 [20:40:45]MH_Cut [20:40:45]Write to MH i2c: D1 01 00 A2 65 01 D9 [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: D1 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: D1 01 00 [20:40:45]MH_I2C_Read... [20:40:45]Read from MH i2c: D1 01 00 A2 65 00 D8 [20:40:45]Write to MH i2c: 01 00 00 A3 65 08 [20:40:45]Write i2c OK [20:40:45]MH_I2C_Read... [20:40:45]OFD Sender: No OFD packet to send [20:40:45]*** Cut start [20:40:45]*** Partial cut [20:40:45]*** CUTSNS_PIN = 1 [20:40:45]*** CUTSNS_PIN = 0 [20:40:46]*** Brake cut motor [20:40:46]Read from MH i2c: 01 [20:40:46]MH_I2C_Read... [20:40:46]*** Stop cut motor [20:40:46]*** Cut end [20:40:46]Read from MH i2c: 01 07 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: 01 07 00 A3 65 00 00 00 00 00 FF 0F 1D [20:40:46]process_action close_receipt done [20:40:46]requested_data is exist [20:40:46]produce_requested_data [20:40:46]requested_item fm.sn is exist - process it [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 11 00 00 [20:40:46]Write to MH i2c: E2 08 00 A4 65 80 11 00 00 00 00 00 00 83 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 17 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 17 00 A4 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [20:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:40:46]wFMCommunicate OK [20:40:46]requested_item fd.num is exist - process it [20:40:46]SAM_PROTO_GetFieldsCounters [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 13 00 00 [20:40:46]Write to MH i2c: E2 08 00 A5 65 80 13 00 00 00 00 00 00 86 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 62 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 62 00 A5 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [20:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 19 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_GetFieldsCounters done [20:40:46]requested_item shift.num is exist - process it [20:40:46]requested_item shift.opened is exist - process it [20:40:46]req_shift_opened [20:40:46]FM_GetShiftState [20:40:46]SAM_PROTO_GetShiftState [20:40:46]wFMCommunicate request_size=4 [20:40:46]MH_SAM_APDU [20:40:46]CAPDU: 80 13 01 00 [20:40:46]Write to MH i2c: E2 08 00 A6 65 80 13 01 00 00 00 00 00 88 [20:40:46]Write i2c OK [20:40:46]MH_I2C_Read... [20:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:46]Read from MH i2c: E2 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0E 00 [20:40:46]MH_I2C_Read... [20:40:46]Read from MH i2c: E2 0E 00 A6 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 04 [20:40:46]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:40:46]wFMCommunicate OK [20:40:46]SAM_PROTO_GetShiftState done [20:40:46]FM_GetShiftState done [20:40:46]req_shift_opened done [20:40:46]requested_item shift.open_date is exist - process it [20:40:46]req_shift_open_date [20:40:46]req_shift_open_date done [20:40:46]produce_requested_data done [20:40:46]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30745,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:40:46]process_action_free close_receipt [20:40:46]json_value_free [20:40:46]json_value_free done [20:40:46]process_json_proto returns [20:40:46]Send response to host [20:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30745,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:40:46]free response buf [20:40:46]execute_script done [20:40:46]execute_script returns [20:40:46]free content buf [20:40:46]Sock 7.Close socket [20:40:46]Sock 7.Thread stoped [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:21]ConnectInit Can't connect to host [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:24]accept exits with 9 [20:55:24]New connection [20:55:24]New thread 3067346276 created [20:55:24]Thread 3067489636 joined [20:55:24]Waiting for new connection... [20:55:24] Sock 9.Parse request [20:55:24]Sock 9.Check first char [20:55:24]Sock 9.First char is OK [20:55:24]request: POST /json_proto HTTP/1.0 [20:55:24]Method: POST [20:55:24]URL: /json_proto [20:55:24]Method is POST - this is cgi request [20:55:24]url: /json_proto [20:55:24]query_string will be loaded in cgi processing [20:55:24]execute_cgi json_proto POST (null) [20:55:24]execute_cgi path=json_proto method=POST [20:55:24]POST find Content-Length [20:55:24]Host: 172.17.51.3:8080 [20:55:24]Content-Length: 841 [20:55:24]Content-Type: application/json [20:55:24] [20:55:24]POST finish read [20:55:24]Found Content-Length = 841 [20:55:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:24]execute_script... [20:55:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:55:24]POST & json_proto [20:55:24]process_json_proto [20:55:24]json parsed OK: [20:55:24]protocol is kg_v1.0 [20:55:24]action value=close_receipt [20:55:24]process_action close_receipt [20:55:24]cmd_close_receipt [20:55:24]MH_GetDate [20:55:24]Write to MH i2c: F0 00 00 A7 65 FB [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: F0 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: F0 09 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: F0 09 00 A7 65 00 C3 BF 16 67 04 C1 95 66 C3 [20:55:24]GetLastDocTimeStamp 1729543249 [20:55:24]current date 1729544131 [20:55:24]FM_GetShiftState [20:55:24]SAM_PROTO_GetShiftState [20:55:24]wFMCommunicate request_size=4 [20:55:24]MH_SAM_APDU [20:55:24]CAPDU: 80 13 01 00 [20:55:24]Write to MH i2c: E2 08 00 A8 65 80 13 01 00 00 00 00 00 8A [20:55:24]Write i2c OK [20:55:24]MH_I2C_Read... [20:55:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:24]Read from MH i2c: E2 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: E2 0E 00 [20:55:24]MH_I2C_Read... [20:55:24]Read from MH i2c: E2 0E 00 A8 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 06 [20:55:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:55:24]wFMCommunicate OK [20:55:24]SAM_PROTO_GetShiftState done [20:55:24]FM_GetShiftState done [20:55:24]opened in 1729471058 [20:55:24]opened+sec_in_day 1729557458 [20:55:24]quantity*price = 90047 [20:55:24]sum+1 = 90048 [20:55:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.47 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.47 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 243 21.10.2024 20:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30746 ФПД: 272819775036937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30746&fm=272819775036937&tin=02508201610067®Number=0000000000186857&sum=90047 [20:55:25]StoreToDocumentArchive [20:55:25]shift 115 fd 30746 [20:55:25]save to /storage/0115/doc_00030746 [20:55:25]save last doc name /storage/0115/doc_00030746 to /storage/kkm_last_doc_name [20:55:25]save OK [20:55:25]Clear old archive folders... [20:55:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:25]tlvbuf is 01E06310 [20:55:25]SAM_PROTO_ClearQueue [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 09 00 00 [20:55:25]Write to MH i2c: E2 08 00 B5 65 80 09 00 00 00 00 00 00 8C [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 B5 65 00 90 00 8E [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]SAM_PROTO_ClearQueue done [20:55:25]KKMCreateOFDPacket [20:55:25]OFDProtocolAddRootSTLVToBuf [20:55:25]FM_MakeSignedData [20:55:25]FM_MakeSignedData [20:55:25]SAM_PROTO_SignData [20:55:25]wFMCommunicate request_size=4 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 0D 01 02 [20:55:25]Write to MH i2c: E2 08 00 B6 65 80 0D 01 02 00 00 00 00 94 [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:25]Read from MH i2c: E2 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 [20:55:25]MH_I2C_Read... [20:55:25]Read from MH i2c: E2 03 00 B6 65 00 90 00 8F [20:55:25]RAPDU: 90 00 [20:55:25]wFMCommunicate OK [20:55:25]wFMCommunicate request_size=255 [20:55:25]MH_SAM_APDU [20:55:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C3 BF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 78 00 00 35 04 06 00 F8 [20:55:25]Write to MH i2c: E2 02 01 B7 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C3 BF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 78 00 00 35 04 06 00 F8 00 00 8F [20:55:25]Write i2c OK [20:55:25]MH_I2C_Read... [20:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:26]Read from MH i2c: E2 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 03 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 03 00 B7 65 00 90 00 90 [20:55:26]RAPDU: 90 00 [20:55:26]wFMCommunicate OK [20:55:26]wFMCommunicate request_size=10 [20:55:26]MH_SAM_APDU [20:55:26]CAPDU: 80 0D 02 02 05 20 CD C7 5E 09 [20:55:26]Write to MH i2c: E2 0D 00 B8 65 80 0D 02 02 05 00 20 CD C7 5E 09 00 00 BC [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:26]Read from MH i2c: E2 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 03 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 03 00 B8 65 00 90 00 91 [20:55:26]RAPDU: 90 00 [20:55:26]wFMCommunicate OK [20:55:26]wFMCommunicate request_size=4 [20:55:26]MH_SAM_APDU [20:55:26]CAPDU: 80 0D 03 02 [20:55:26]Write to MH i2c: E2 08 00 B9 65 80 0D 03 02 00 00 00 00 99 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:26]OFD Sender: No OFD packet to send [20:55:26]Read from MH i2c: E2 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 0B 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 0B 00 B9 65 00 79 37 41 C3 E6 E0 AA 13 90 00 D1 [20:55:26]RAPDU: 79 37 41 C3 E6 E0 AA 13 90 00 [20:55:26]wFMCommunicate OK [20:55:26]SAM_PROTO_SignData done [20:55:26]FM_MakeSignedData done [20:55:26]CreateOFDProtocolMessage [20:55:26]wFMCommunicate request_size=4 [20:55:26]MH_SAM_APDU [20:55:26]CAPDU: 80 11 00 00 [20:55:26]Write to MH i2c: E2 08 00 BA 65 80 11 00 00 00 00 00 00 99 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:26]Read from MH i2c: E2 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 17 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: E2 17 00 BA 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [20:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:55:26]wFMCommunicate OK [20:55:26]CreateOFDProtocolMessage done [20:55:26]OFDSenderStorePacket 30746 [20:55:26]StoreOFDPacket docnum=30746 [20:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 0D 07 01 5D 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C3 BF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 78 00 00 35 04 06 00 F8 20 CD C7 5E 09 79 37 41 C3 E6 E0 AA 13 [20:55:26]CheckFolder [20:55:26]dirname=/storage/ofd_packets [20:55:26]CheckFolder done [20:55:26]ProducePacketName [20:55:26]name=ofd_packets/00030746 [20:55:26]NVStorageSaveData ofd_packets/00030746 [20:55:26]File name is /storage/ofd_packets/00030746 [20:55:26]Write 301 bytes [20:55:26]NVStorageSaveData done [20:55:26]OFDSenderStorePacket done [20:55:26]KKMCreateOFDPacket done [20:55:26]NVStorageSaveData kkm_last_timestamp [20:55:26]File name is /storage/kkm_last_timestamp [20:55:26]Write 4 bytes [20:55:26]NVStorageSaveData done [20:55:26]ExternCall_PrintAddStr [20:55:26]wPrintStart [20:55:26]Write to MH i2c: 01 00 00 BB 65 20 [20:55:26]Write i2c OK [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 [20:55:26]MH_I2C_Read... [20:55:26]Read from MH i2c: 01 07 00 BB 65 00 00 00 00 00 FF 0F 35 [20:55:26]RasterBufferAndPrint [20:55:26]line Счет N : (1)343160 [20:55:26]line ИНН: 02508201610067 [20:55:26]line Контрольно-Кассовый Чек [20:55:26]line ПРОДАЖА [20:55:26]line ТРК (МРК, ГНК) : 63 [20:55:26]line Товар: 2710124130 [20:55:26]line Аи-92-К-2 [20:55:26]line 13.460 * 66.90 [20:55:26]line = 900.47 [20:55:26]line НДС 12% НСП 1% [20:55:26]line > о реализуемом товаре [20:55:26]line ИТОГО: 900.47 [20:55:26]line НСП 1% : 7.97 [20:55:26]line НДС 12% : 95.62 [20:55:26]line Наличными: 0.00 [20:55:26]line Безнал.: 900.47 [20:55:26]line Место: АЗС № 78 "Партнер Нефть" [20:55:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [20:55:26]line СНО: Общий режим [20:55:26]line Чек 243 21.10.2024 20:55 [20:55:26]line Смена: 115 ФФД: 1.0 [20:55:26]line ЗНМ: 0300000137 [20:55:26]line РНМ: 0000000000186857 [20:55:26]line Версия ККМ: v1.0 [20:55:26]line Платежная система: АКБ Кыргызстан [20:55:26]line ФМ: 0000000002094219 [20:55:26]line ФД: 30746 [20:55:26]line ФПД: 272819775036937 [20:55:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205531&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30746&fm=272819775036937&tin=02508201610067®Number=0000000000186857&sum=90047 [20:55:26]OFD Sender: Processing packet 30746 [packets to send 10, broken 9] [20:55:26]ProducePacketName [20:55:26]name=ofd_packets/00030746 [20:55:26]OFD Sender: To server: pG, [20:55:26]CommunicateWithHost lk.salyk.kg:30040 [20:55:26]ConnectInit lk.salyk.kg [20:55:26]written 0, free lines is 4095 [20:55:26]Connected sock=10 [20:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 0D 07 01 5D 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C3 BF 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1A 78 00 00 35 04 06 00 F8 20 CD C7 5E 09 79 37 41 C3 E6 E0 AA 13 [20:55:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E5 1A 47 00 5B 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 32 30 39 34 32 31 39 10 04 04 00 1A 78 00 00 F4 03 04 00 42 6A 16 67 B6 04 01 00 00 5F 8A 47 1E 8E E9 23 78 [20:55:26]CommunicateWithHost err = 0 [20:55:26]CheckOFDResponse [20:55:26]1017 (14) - 77093643461234 [20:55:26]1041 (16) - 0000000002094219 [20:55:26]1040 (4) - 30746 [20:55:26]1012 (4) - 21.10.2024 14:50 [20:55:26]1206 (1) - 0 [20:55:26]OFD Sender: Remove packet 30746 [20:55:26]ProducePacketName [20:55:26]name=ofd_packets/00030746 [20:55:26]NVStorageDeleteData [20:55:27]Write to MH i2c: 01 00 00 E5 65 4A [20:55:27]Write i2c OK [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: 01 [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: 01 07 00 [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: 01 07 00 E5 65 00 00 00 00 00 FA 0C 57 [20:55:27]RasterBufferAndPrint [20:55:27]line [20:55:27]line [20:55:27]line [20:55:27]line [20:55:27]line [20:55:27]written 0, free lines is 3328 [20:55:27]MH_Cut [20:55:27]Write to MH i2c: D1 01 00 EC 65 01 23 [20:55:27]Write i2c OK [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: D1 [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: D1 01 00 [20:55:27]MH_I2C_Read... [20:55:27]Read from MH i2c: D1 01 00 EC 65 00 22 [20:55:27]Write to MH i2c: 01 00 00 ED 65 52 [20:55:27]Write i2c OK [20:55:27]MH_I2C_Read... [20:55:27]OFD Sender: No OFD packet to send [20:55:27]*** Cut start [20:55:27]*** Partial cut [20:55:27]*** CUTSNS_PIN = 1 [20:55:27]*** CUTSNS_PIN = 0 [20:55:27]*** Brake cut motor [20:55:28]Read from MH i2c: 01 [20:55:28]MH_I2C_Read... [20:55:28]*** Stop cut motor [20:55:28]*** Cut end [20:55:28]Read from MH i2c: 01 07 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: 01 07 00 ED 65 00 00 00 00 00 FF 0F 67 [20:55:28]process_action close_receipt done [20:55:28]requested_data is exist [20:55:28]produce_requested_data [20:55:28]requested_item fm.sn is exist - process it [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 11 00 00 [20:55:28]Write to MH i2c: E2 08 00 EE 65 80 11 00 00 00 00 00 00 CD [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 17 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 17 00 EE 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1B [20:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [20:55:28]wFMCommunicate OK [20:55:28]requested_item fd.num is exist - process it [20:55:28]SAM_PROTO_GetFieldsCounters [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 13 00 00 [20:55:28]Write to MH i2c: E2 08 00 EF 65 80 13 00 00 00 00 00 00 D0 [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 62 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 62 00 EF 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [20:55:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:28]wFMCommunicate OK [20:55:28]SAM_PROTO_GetFieldsCounters done [20:55:28]requested_item shift.num is exist - process it [20:55:28]requested_item shift.opened is exist - process it [20:55:28]req_shift_opened [20:55:28]FM_GetShiftState [20:55:28]SAM_PROTO_GetShiftState [20:55:28]wFMCommunicate request_size=4 [20:55:28]MH_SAM_APDU [20:55:28]CAPDU: 80 13 01 00 [20:55:28]Write to MH i2c: E2 08 00 F0 65 80 13 01 00 00 00 00 00 D2 [20:55:28]Write i2c OK [20:55:28]MH_I2C_Read... [20:55:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:28]Read from MH i2c: E2 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 0E 00 [20:55:28]MH_I2C_Read... [20:55:28]Read from MH i2c: E2 0E 00 F0 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4E [20:55:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [20:55:28]wFMCommunicate OK [20:55:28]SAM_PROTO_GetShiftState done [20:55:28]FM_GetShiftState done [20:55:28]req_shift_opened done [20:55:28]requested_item shift.open_date is exist - process it [20:55:28]req_shift_open_date [20:55:28]req_shift_open_date done [20:55:28]produce_requested_data done [20:55:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30746,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [20:55:28]process_action_free close_receipt [20:55:28]json_value_free [20:55:28]json_value_free done [20:55:28]process_json_proto returns [20:55:28]Send response to host [20:55:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30746,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [20:55:28]free response buf [20:55:28]execute_script done [20:55:28]execute_script returns [20:55:28]free content buf [20:55:28]Sock 9.Close socket [20:55:28]Sock 9.Thread stoped [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:12]OFD Sender: No OFD packet to send [21:00:17]OFD Sender: No OFD packet to send [21:00:22]OFD Sender: No OFD packet to send [21:00:27]OFD Sender: No OFD packet to send [21:00:32]OFD Sender: No OFD packet to send [21:00:37]OFD Sender: No OFD packet to send [21:00:42]OFD Sender: No OFD packet to send [21:00:47]OFD Sender: No OFD packet to send [21:00:52]OFD Sender: No OFD packet to send [21:00:57]OFD Sender: No OFD packet to send [21:01:02]OFD Sender: No OFD packet to send [21:01:07]OFD Sender: No OFD packet to send [21:01:11]accept exits with 7 [21:01:11]New connection [21:01:11]New thread 3067489636 created [21:01:11]Thread 3067346276 joined [21:01:11]Waiting for new connection... [21:01:11] Sock 7.Parse request [21:01:11]Sock 7.Check first char [21:01:11]Sock 7.First char is OK [21:01:11]request: POST /json_proto HTTP/1.0 [21:01:11]Method: POST [21:01:11]URL: /json_proto [21:01:11]Method is POST - this is cgi request [21:01:11]url: /json_proto [21:01:11]query_string will be loaded in cgi processing [21:01:11]execute_cgi json_proto POST (null) [21:01:11]execute_cgi path=json_proto method=POST [21:01:11]POST find Content-Length [21:01:11]Host: 172.17.51.3:8080 [21:01:11]Content-Length: 678 [21:01:11]Content-Type: application/json [21:01:11] [21:01:11]POST finish read [21:01:11]Found Content-Length = 678 [21:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:11]execute_script... [21: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 : (1)343162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:11]POST & json_proto [21:01:11]process_json_proto [21:01:11]json parsed OK: [21:01:11]protocol is kg_v1.0 [21:01:11]action value=close_receipt [21:01:11]process_action close_receipt [21:01:11]cmd_close_receipt [21:01:11]MH_GetDate [21:01:11]Write to MH i2c: F0 00 00 F1 65 45 [21:01:11]Write i2c OK [21:01:11]MH_I2C_Read... [21:01:11]Read from MH i2c: F0 [21:01:11]MH_I2C_Read... [21:01:11]Read from MH i2c: F0 09 00 [21:01:11]MH_I2C_Read... [21:01:11]Read from MH i2c: F0 09 00 F1 65 00 1E C1 16 67 04 C1 95 66 6A [21:01:11]GetLastDocTimeStamp 1729544131 [21:01:11]current date 1729544478 [21:01:11]FM_GetShiftState [21:01:11]SAM_PROTO_GetShiftState [21:01:11]wFMCommunicate request_size=4 [21:01:11]MH_SAM_APDU [21:01:11]CAPDU: 80 13 01 00 [21:01:11]Write to MH i2c: E2 08 00 F2 65 80 13 01 00 00 00 00 00 D4 [21:01:11]Write i2c OK [21:01:11]MH_I2C_Read... [21:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:11]Read from MH i2c: E2 [21:01:11]MH_I2C_Read... [21:01:11]Read from MH i2c: E2 0E 00 [21:01:11]MH_I2C_Read... [21:01:11]Read from MH i2c: E2 0E 00 F2 65 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 50 [21:01:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:01:11]wFMCommunicate OK [21:01:11]SAM_PROTO_GetShiftState done [21:01:11]FM_GetShiftState done [21:01:11]opened in 1729471058 [21:01:11]opened+sec_in_day 1729557458 [21:01:11]quantity*price = 90004 [21:01:11]sum+1 = 90006 [21:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 244 21.10.2024 21:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30747 ФПД: 61208457501905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30747&fm=61208457501905&tin=02508201610067®Number=0000000000186857&sum=90000 [21:01:12]StoreToDocumentArchive [21:01:12]shift 115 fd 30747 [21:01:12]save to /storage/0115/doc_00030747 [21:01:12]save last doc name /storage/0115/doc_00030747 to /storage/kkm_last_doc_name [21:01:12]save OK [21:01:12]Clear old archive folders... [21:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:12]tlvbuf is 01E7B290 [21:01:12]SAM_PROTO_ClearQueue [21:01:12]wFMCommunicate request_size=4 [21:01:12]MH_SAM_APDU [21:01:12]CAPDU: 80 09 00 00 [21:01:12]Write to MH i2c: E2 08 00 FF 65 80 09 00 00 00 00 00 00 D6 [21:01:12]Write i2c OK [21:01:12]MH_I2C_Read... [21:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:12]Read from MH i2c: E2 [21:01:12]MH_I2C_Read... [21:01:12]Read from MH i2c: E2 03 00 [21:01:12]MH_I2C_Read... [21:01:12]Read from MH i2c: E2 03 00 FF 65 00 90 00 D8 [21:01:12]RAPDU: 90 00 [21:01:12]wFMCommunicate OK [21:01:12]SAM_PROTO_ClearQueue done [21:01:12]KKMCreateOFDPacket [21:01:12]OFDProtocolAddRootSTLVToBuf [21:01:12]FM_MakeSignedData [21:01:12]FM_MakeSignedData [21:01:12]SAM_PROTO_SignData [21:01:12]wFMCommunicate request_size=4 [21:01:12]MH_SAM_APDU [21:01:12]CAPDU: 80 0D 01 02 [21:01:12]Write to MH i2c: E2 08 00 00 66 80 0D 01 02 00 00 00 00 DF [21:01:12]Write i2c OK [21:01:12]MH_I2C_Read... [21:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:12]Read from MH i2c: E2 [21:01:12]MH_I2C_Read... [21:01:12]Read from MH i2c: E2 03 00 [21:01:12]MH_I2C_Read... [21:01:12]Read from MH i2c: E2 03 00 00 66 00 90 00 DA [21:01:12]RAPDU: 90 00 [21:01:12]wFMCommunicate OK [21:01:12]wFMCommunicate request_size=255 [21:01:12]MH_SAM_APDU [21:01:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 1E C1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 78 00 00 35 04 06 00 37 [21:01:12]Write to MH i2c: E2 02 01 01 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 1E C1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 78 00 00 35 04 06 00 37 00 00 95 [21:01:12]Write i2c OK [21:01:12]MH_I2C_Read... [21:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:13]Read from MH i2c: E2 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 03 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 03 00 01 66 00 90 00 DB [21:01:13]RAPDU: 90 00 [21:01:13]wFMCommunicate OK [21:01:13]wFMCommunicate request_size=10 [21:01:13]MH_SAM_APDU [21:01:13]CAPDU: 80 0D 02 02 05 AB 34 5D DC D1 [21:01:13]Write to MH i2c: E2 0D 00 02 66 80 0D 02 02 05 00 AB 34 5D DC D1 00 00 D5 [21:01:13]Write i2c OK [21:01:13]MH_I2C_Read... [21:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:13]Read from MH i2c: E2 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 03 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 03 00 02 66 00 90 00 DC [21:01:13]RAPDU: 90 00 [21:01:13]wFMCommunicate OK [21:01:13]wFMCommunicate request_size=4 [21:01:13]MH_SAM_APDU [21:01:13]CAPDU: 80 0D 03 02 [21:01:13]Write to MH i2c: E2 08 00 03 66 80 0D 03 02 00 00 00 00 E4 [21:01:13]Write i2c OK [21:01:13]MH_I2C_Read... [21:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:13]Read from MH i2c: E2 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 0B 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 0B 00 03 66 00 9E 36 53 B6 1E DC 8E 9B 90 00 E5 [21:01:13]RAPDU: 9E 36 53 B6 1E DC 8E 9B 90 00 [21:01:13]wFMCommunicate OK [21:01:13]SAM_PROTO_SignData done [21:01:13]FM_MakeSignedData done [21:01:13]CreateOFDProtocolMessage [21:01:13]wFMCommunicate request_size=4 [21:01:13]MH_SAM_APDU [21:01:13]CAPDU: 80 11 00 00 [21:01:13]Write to MH i2c: E2 08 00 04 66 80 11 00 00 00 00 00 00 E4 [21:01:13]Write i2c OK [21:01:13]MH_I2C_Read... [21:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:13]Read from MH i2c: E2 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 17 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: E2 17 00 04 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 32 [21:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:01:13]wFMCommunicate OK [21:01:13]CreateOFDProtocolMessage done [21:01:13]OFDSenderStorePacket 30747 [21:01:13]StoreOFDPacket docnum=30747 [21:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0F 9C 07 01 F2 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 1E C1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 78 00 00 35 04 06 00 37 AB 34 5D DC D1 9E 36 53 B6 1E DC 8E 9B [21:01:13]CheckFolder [21:01:13]dirname=/storage/ofd_packets [21:01:13]CheckFolder done [21:01:13]ProducePacketName [21:01:13]name=ofd_packets/00030747 [21:01:13]NVStorageSaveData ofd_packets/00030747 [21:01:13]File name is /storage/ofd_packets/00030747 [21:01:13]Write 301 bytes [21:01:13]NVStorageSaveData done [21:01:13]OFDSenderStorePacket done [21:01:13]KKMCreateOFDPacket done [21:01:13]NVStorageSaveData kkm_last_timestamp [21:01:13]File name is /storage/kkm_last_timestamp [21:01:13]Write 4 bytes [21:01:13]NVStorageSaveData done [21:01:13]ExternCall_PrintAddStr [21:01:13]wPrintStart [21:01:13]Write to MH i2c: 01 00 00 05 66 6B [21:01:13]Write i2c OK [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 07 00 [21:01:13]MH_I2C_Read... [21:01:13]Read from MH i2c: 01 07 00 05 66 00 00 00 00 00 FF 0F 80 [21:01:13]RasterBufferAndPrint [21:01:13]line Счет N : (1)343162 [21:01:13]line ИНН: 02508201610067 [21:01:13]line Контрольно-Кассовый Чек [21:01:13]line ПРОДАЖА [21:01:13]line ТРК (МРК, ГНК) : 62 [21:01:13]line Товар: 2710124500 [21:01:13]line Аи-95-К-3 [21:01:13]line 12.130 * 74.20 [21:01:13]line = 900.05 [21:01:13]line НДС 12% НСП 1% [21:01:13]line > о реализуемом товаре [21:01:13]line ОКРУГЛЕНИЕ: -0.05 [21:01:13]line ИТОГО: 900.00 [21:01:13]line Внесено: 900.00 [21:01:13]line СДАЧА: 0.00 [21:01:13]line НСП 1% : 7.96 [21:01:13]line НДС 12% : 95.58 [21:01:13]line Наличными: 900.00 [21:01:13]line Безнал.: 0.00 [21:01:13]line Место: АЗС № 78 "Партнер Нефть" [21:01:13]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:01:13]line СНО: Общий режим [21:01:13]line Чек 244 21.10.2024 21:01 [21:01:13]line Смена: 115 ФФД: 1.0 [21:01:13]line ЗНМ: 0300000137 [21:01:13]line РНМ: 0000000000186857 [21:01:13]line Версия ККМ: v1.0 [21:01:13]line ФМ: 0000000002094219 [21:01:13]line ФД: 30747 [21:01:13]line ФПД: 61208457501905 [21:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210118&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30747&fm=61208457501905&tin=02508201610067®Number=0000000000186857&sum=90000 [21:01:13]OFD Sender: Processing packet 30747 [packets to send 10, broken 9] [21:01:13]ProducePacketName [21:01:13]name=ofd_packets/00030747 [21:01:13]OFD Sender: To server: pG, [21:01:13]CommunicateWithHost lk.salyk.kg:30040 [21:01:13]ConnectInit lk.salyk.kg [21:01:13]written 0, free lines is 4095 [21:01:13]Connected sock=10 [21:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 0F 9C 07 01 F2 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 1E C1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 78 00 00 35 04 06 00 37 AB 34 5D DC D1 9E 36 53 B6 1E DC 8E 9B [21:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 AA 42 47 00 B9 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1B 78 00 00 F4 03 04 00 9E 6B 16 67 B6 04 01 00 00 D1 90 AF 55 A7 7C E0 25 [21:01:14]CommunicateWithHost err = 0 [21:01:14]CheckOFDResponse [21:01:14]1017 (14) - 77093643461234 [21:01:14]1041 (16) - 0000000002094219 [21:01:14]1040 (4) - 30747 [21:01:14]1012 (4) - 21.10.2024 14:56 [21:01:14]1206 (1) - 0 [21:01:14]OFD Sender: Remove packet 30747 [21:01:14]ProducePacketName [21:01:14]name=ofd_packets/00030747 [21:01:14]NVStorageDeleteData [21:01:14]Write to MH i2c: 01 00 00 30 66 96 [21:01:14]Write i2c OK [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: 01 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: 01 07 00 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: 01 07 00 30 66 00 00 00 00 00 E5 0C 8E [21:01:14]RasterBufferAndPrint [21:01:14]line [21:01:14]line [21:01:14]line [21:01:14]line [21:01:14]line [21:01:14]written 0, free lines is 3307 [21:01:14]MH_Cut [21:01:14]Write to MH i2c: D1 01 00 37 66 01 6F [21:01:14]Write i2c OK [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: D1 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: D1 01 00 [21:01:14]MH_I2C_Read... [21:01:14]Read from MH i2c: D1 01 00 37 66 00 6E [21:01:14]Write to MH i2c: 01 00 00 38 66 9E [21:01:14]Write i2c OK [21:01:14]MH_I2C_Read... [21:01:14]OFD Sender: No OFD packet to send [21:01:14]*** Cut start [21:01:14]*** Partial cut [21:01:14]*** CUTSNS_PIN = 1 [21:01:14]*** CUTSNS_PIN = 0 [21:01:15]*** Brake cut motor [21:01:15]Read from MH i2c: 01 [21:01:15]MH_I2C_Read... [21:01:15]*** Stop cut motor [21:01:15]*** Cut end [21:01:15]Read from MH i2c: 01 07 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: 01 07 00 38 66 00 00 00 00 00 FF 0F B3 [21:01:15]process_action close_receipt done [21:01:15]requested_data is exist [21:01:15]produce_requested_data [21:01:15]requested_item fm.sn is exist - process it [21:01:15]wFMCommunicate request_size=4 [21:01:15]MH_SAM_APDU [21:01:15]CAPDU: 80 11 00 00 [21:01:15]Write to MH i2c: E2 08 00 39 66 80 11 00 00 00 00 00 00 19 [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:15]Read from MH i2c: E2 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 17 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 17 00 39 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 67 [21:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:01:15]wFMCommunicate OK [21:01:15]requested_item fd.num is exist - process it [21:01:15]SAM_PROTO_GetFieldsCounters [21:01:15]wFMCommunicate request_size=4 [21:01:15]MH_SAM_APDU [21:01:15]CAPDU: 80 13 00 00 [21:01:15]Write to MH i2c: E2 08 00 3A 66 80 13 00 00 00 00 00 00 1C [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:15]Read from MH i2c: E2 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 62 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 62 00 3A 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [21:01:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:15]wFMCommunicate OK [21:01:15]SAM_PROTO_GetFieldsCounters done [21:01:15]requested_item shift.num is exist - process it [21:01:15]requested_item shift.opened is exist - process it [21:01:15]req_shift_opened [21:01:15]FM_GetShiftState [21:01:15]SAM_PROTO_GetShiftState [21:01:15]wFMCommunicate request_size=4 [21:01:15]MH_SAM_APDU [21:01:15]CAPDU: 80 13 01 00 [21:01:15]Write to MH i2c: E2 08 00 3B 66 80 13 01 00 00 00 00 00 1E [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:15]Read from MH i2c: E2 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 0E 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 0E 00 3B 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9A [21:01:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:01:15]wFMCommunicate OK [21:01:15]SAM_PROTO_GetShiftState done [21:01:15]FM_GetShiftState done [21:01:15]req_shift_opened done [21:01:15]requested_item shift.open_date is exist - process it [21:01:15]req_shift_open_date [21:01:15]req_shift_open_date done [21:01:15]produce_requested_data done [21:01:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30747,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:01:15]process_action_free close_receipt [21:01:15]json_value_free [21:01:15]json_value_free done [21:01:15]process_json_proto returns [21:01:15]Send response to host [21:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30747,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:01:15]free response buf [21:01:15]execute_script done [21:01:15]execute_script returns [21:01:15]free content buf [21:01:15]Sock 7.Close socket [21:01:15]Sock 7.Thread stoped [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:55]accept exits with 9 [21:09:55]New connection [21:09:55]New thread 3067346276 created [21:09:55]Thread 3067489636 joined [21:09:55]Waiting for new connection... [21:09:55] Sock 9.Parse request [21:09:55]Sock 9.Check first char [21:09:55]Sock 9.First char is OK [21:09:55]request: POST /json_proto HTTP/1.0 [21:09:55]Method: POST [21:09:55]URL: /json_proto [21:09:55]Method is POST - this is cgi request [21:09:55]url: /json_proto [21:09:55]query_string will be loaded in cgi processing [21:09:55]execute_cgi json_proto POST (null) [21:09:55]execute_cgi path=json_proto method=POST [21:09:55]POST find Content-Length [21:09:55]Host: 172.17.51.3:8080 [21:09:55]Content-Length: 677 [21:09:55]Content-Type: application/json [21:09:55] [21:09:55]POST finish read [21:09:55]Found Content-Length = 677 [21:09:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:55]execute_script... [21:09:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:09:55]POST & json_proto [21:09:55]process_json_proto [21:09:55]json parsed OK: [21:09:55]protocol is kg_v1.0 [21:09:55]action value=close_receipt [21:09:55]process_action close_receipt [21:09:55]cmd_close_receipt [21:09:55]MH_GetDate [21:09:55]Write to MH i2c: F0 00 00 3C 66 91 [21:09:55]Write i2c OK [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: F0 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: F0 09 00 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: F0 09 00 3C 66 00 29 C3 16 67 04 C1 95 66 C3 [21:09:55]GetLastDocTimeStamp 1729544478 [21:09:55]current date 1729545001 [21:09:55]FM_GetShiftState [21:09:55]SAM_PROTO_GetShiftState [21:09:55]wFMCommunicate request_size=4 [21:09:55]MH_SAM_APDU [21:09:55]CAPDU: 80 13 01 00 [21:09:55]Write to MH i2c: E2 08 00 3D 66 80 13 01 00 00 00 00 00 20 [21:09:55]Write i2c OK [21:09:55]MH_I2C_Read... [21:09:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:55]Read from MH i2c: E2 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: E2 0E 00 [21:09:55]MH_I2C_Read... [21:09:55]Read from MH i2c: E2 0E 00 3D 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9C [21:09:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:09:55]wFMCommunicate OK [21:09:55]SAM_PROTO_GetShiftState done [21:09:55]FM_GetShiftState done [21:09:55]opened in 1729471058 [21:09:55]opened+sec_in_day 1729557458 [21:09:55]quantity*price = 20034 [21:09:55]sum+1 = 20035 [21:09:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 245 21.10.2024 21:10 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30748 ФПД: 38824595241073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30748&fm=38824595241073&tin=02508201610067®Number=0000000000186857&sum=20000 [21:09:56]StoreToDocumentArchive [21:09:56]shift 115 fd 30748 [21:09:56]save to /storage/0115/doc_00030748 [21:09:56]save last doc name /storage/0115/doc_00030748 to /storage/kkm_last_doc_name [21:09:56]save OK [21:09:56]Clear old archive folders... [21:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:56]tlvbuf is 01E18690 [21:09:56]SAM_PROTO_ClearQueue [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 09 00 00 [21:09:56]Write to MH i2c: E2 08 00 4A 66 80 09 00 00 00 00 00 00 22 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 4A 66 00 90 00 24 [21:09:56]RAPDU: 90 00 [21:09:56]wFMCommunicate OK [21:09:56]SAM_PROTO_ClearQueue done [21:09:56]KKMCreateOFDPacket [21:09:56]OFDProtocolAddRootSTLVToBuf [21:09:56]FM_MakeSignedData [21:09:56]FM_MakeSignedData [21:09:56]SAM_PROTO_SignData [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 0D 01 02 [21:09:56]Write to MH i2c: E2 08 00 4B 66 80 0D 01 02 00 00 00 00 2A [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 4B 66 00 90 00 25 [21:09:56]RAPDU: 90 00 [21:09:56]wFMCommunicate OK [21:09:56]wFMCommunicate request_size=255 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2A C3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 78 00 00 35 04 06 00 23 [21:09:56]Write to MH i2c: E2 02 01 4C 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2A C3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 78 00 00 35 04 06 00 23 00 00 E6 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 4C 66 00 90 00 26 [21:09:56]RAPDU: 90 00 [21:09:56]wFMCommunicate OK [21:09:56]wFMCommunicate request_size=10 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 0D 02 02 05 4F 8E 35 38 71 [21:09:56]Write to MH i2c: E2 0D 00 4D 66 80 0D 02 02 05 00 4F 8E 35 38 71 00 00 F2 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 03 00 4D 66 00 90 00 27 [21:09:56]RAPDU: 90 00 [21:09:56]wFMCommunicate OK [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 0D 03 02 [21:09:56]Write to MH i2c: E2 08 00 4E 66 80 0D 03 02 00 00 00 00 2F [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 0B 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 0B 00 4E 66 00 33 FB C0 2A 17 05 1F 9B 90 00 1E [21:09:56]RAPDU: 33 FB C0 2A 17 05 1F 9B 90 00 [21:09:56]wFMCommunicate OK [21:09:56]SAM_PROTO_SignData done [21:09:56]FM_MakeSignedData done [21:09:56]CreateOFDProtocolMessage [21:09:56]wFMCommunicate request_size=4 [21:09:56]MH_SAM_APDU [21:09:56]CAPDU: 80 11 00 00 [21:09:56]Write to MH i2c: E2 08 00 4F 66 80 11 00 00 00 00 00 00 2F [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:56]Read from MH i2c: E2 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 17 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: E2 17 00 4F 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7D [21:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:09:56]wFMCommunicate OK [21:09:56]CreateOFDProtocolMessage done [21:09:56]OFDSenderStorePacket 30748 [21:09:56]StoreOFDPacket docnum=30748 [21:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E8 F3 07 01 94 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2A C3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 78 00 00 35 04 06 00 23 4F 8E 35 38 71 33 FB C0 2A 17 05 1F 9B [21:09:56]CheckFolder [21:09:56]dirname=/storage/ofd_packets [21:09:56]CheckFolder done [21:09:56]ProducePacketName [21:09:56]name=ofd_packets/00030748 [21:09:56]NVStorageSaveData ofd_packets/00030748 [21:09:56]File name is /storage/ofd_packets/00030748 [21:09:56]Write 301 bytes [21:09:56]NVStorageSaveData done [21:09:56]OFDSenderStorePacket done [21:09:56]KKMCreateOFDPacket done [21:09:56]NVStorageSaveData kkm_last_timestamp [21:09:56]File name is /storage/kkm_last_timestamp [21:09:56]Write 4 bytes [21:09:56]NVStorageSaveData done [21:09:56]ExternCall_PrintAddStr [21:09:56]wPrintStart [21:09:56]Write to MH i2c: 01 00 00 50 66 B6 [21:09:56]Write i2c OK [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: 01 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: 01 07 00 [21:09:56]MH_I2C_Read... [21:09:56]Read from MH i2c: 01 07 00 50 66 00 00 00 00 00 FF 0F CB [21:09:56]RasterBufferAndPrint [21:09:56]line Счет N : (1)343164 [21:09:56]line ИНН: 02508201610067 [21:09:56]line Контрольно-Кассовый Чек [21:09:56]line ПРОДАЖА [21:09:56]line ТРК (МРК, ГНК) : 52 [21:09:56]line Товар: 2710124500 [21:09:56]line Аи-95-К-3 [21:09:56]line 2.700 * 74.20 [21:09:56]line = 200.34 [21:09:56]line НДС 12% НСП 1% [21:09:56]line > о реализуемом товаре [21:09:56]line ОКРУГЛЕНИЕ: -0.34 [21:09:56]line ИТОГО: 200.00 [21:09:56]line Внесено: 200.00 [21:09:56]line СДАЧА: 0.00 [21:09:56]line НСП 1% : 1.77 [21:09:56]line НДС 12% : 21.27 [21:09:56]line Наличными: 200.00 [21:09:56]line Безнал.: 0.00 [21:09:56]line Место: АЗС № 78 "Партнер Нефть" [21:09:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:09:56]line СНО: Общий режим [21:09:56]line Чек 245 21.10.2024 21:10 [21:09:56]line Смена: 115 ФФД: 1.0 [21:09:56]line ЗНМ: 0300000137 [21:09:56]line РНМ: 0000000000186857 [21:09:56]line Версия ККМ: v1.0 [21:09:56]line ФМ: 0000000002094219 [21:09:56]line ФД: 30748 [21:09:57]line ФПД: 38824595241073 [21:09:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211002&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30748&fm=38824595241073&tin=02508201610067®Number=0000000000186857&sum=20000 [21:09:57]OFD Sender: Processing packet 30748 [packets to send 10, broken 9] [21:09:57]ProducePacketName [21:09:57]name=ofd_packets/00030748 [21:09:57]OFD Sender: To server: pG, [21:09:57]CommunicateWithHost lk.salyk.kg:30040 [21:09:57]ConnectInit lk.salyk.kg [21:09:57]written 0, free lines is 4095 [21:09:57]Connected sock=10 [21:09:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E8 F3 07 01 94 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 2A C3 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 78 00 00 35 04 06 00 23 4F 8E 35 38 71 33 FB C0 2A 17 05 1F 9B [21:09:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 11 3C 47 00 17 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1C 78 00 00 F4 03 04 00 A9 6D 16 67 B6 04 01 00 00 CA A1 84 8D 8B 5B 47 65 [21:09:57]CommunicateWithHost err = 0 [21:09:57]CheckOFDResponse [21:09:57]1017 (14) - 77093643461234 [21:09:57]1041 (16) - 0000000002094219 [21:09:57]1040 (4) - 30748 [21:09:57]1012 (4) - 21.10.2024 15:05 [21:09:57]1206 (1) - 0 [21:09:57]OFD Sender: Remove packet 30748 [21:09:57]ProducePacketName [21:09:57]name=ofd_packets/00030748 [21:09:57]NVStorageDeleteData [21:09:57]Write to MH i2c: 01 00 00 7B 66 E1 [21:09:57]Write i2c OK [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: 01 [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: 01 07 00 [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: 01 07 00 7B 66 00 00 00 00 00 E4 0C D8 [21:09:57]RasterBufferAndPrint [21:09:57]line [21:09:57]line [21:09:57]line [21:09:57]line [21:09:57]line [21:09:57]written 0, free lines is 3306 [21:09:57]MH_Cut [21:09:57]Write to MH i2c: D1 01 00 82 66 01 BA [21:09:57]Write i2c OK [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: D1 [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: D1 01 00 [21:09:57]MH_I2C_Read... [21:09:57]Read from MH i2c: D1 01 00 82 66 00 B9 [21:09:57]Write to MH i2c: 01 00 00 83 66 E9 [21:09:57]Write i2c OK [21:09:57]MH_I2C_Read... [21:09:58]OFD Sender: No OFD packet to send [21:09:58]*** Cut start [21:09:58]*** Partial cut [21:09:58]*** CUTSNS_PIN = 1 [21:09:58]*** CUTSNS_PIN = 0 [21:09:58]*** Brake cut motor [21:09:58]Read from MH i2c: 01 [21:09:58]MH_I2C_Read... [21:09:58]*** Stop cut motor [21:09:58]*** Cut end [21:09:58]Read from MH i2c: 01 07 00 [21:09:58]MH_I2C_Read... [21:09:58]Read from MH i2c: 01 07 00 83 66 00 00 00 00 00 FF 0F FE [21:09:58]process_action close_receipt done [21:09:58]requested_data is exist [21:09:58]produce_requested_data [21:09:58]requested_item fm.sn is exist - process it [21:09:58]wFMCommunicate request_size=4 [21:09:58]MH_SAM_APDU [21:09:58]CAPDU: 80 11 00 00 [21:09:58]Write to MH i2c: E2 08 00 84 66 80 11 00 00 00 00 00 00 64 [21:09:58]Write i2c OK [21:09:58]MH_I2C_Read... [21:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:58]Read from MH i2c: E2 [21:09:58]MH_I2C_Read... [21:09:58]Read from MH i2c: E2 17 00 [21:09:58]MH_I2C_Read... [21:09:58]Read from MH i2c: E2 17 00 84 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B2 [21:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:09:58]wFMCommunicate OK [21:09:58]requested_item fd.num is exist - process it [21:09:58]SAM_PROTO_GetFieldsCounters [21:09:58]wFMCommunicate request_size=4 [21:09:58]MH_SAM_APDU [21:09:58]CAPDU: 80 13 00 00 [21:09:58]Write to MH i2c: E2 08 00 85 66 80 13 00 00 00 00 00 00 67 [21:09:59]Write i2c OK [21:09:59]MH_I2C_Read... [21:09:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:59]Read from MH i2c: E2 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 62 00 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 62 00 85 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [21:09:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:59]wFMCommunicate OK [21:09:59]SAM_PROTO_GetFieldsCounters done [21:09:59]requested_item shift.num is exist - process it [21:09:59]requested_item shift.opened is exist - process it [21:09:59]req_shift_opened [21:09:59]FM_GetShiftState [21:09:59]SAM_PROTO_GetShiftState [21:09:59]wFMCommunicate request_size=4 [21:09:59]MH_SAM_APDU [21:09:59]CAPDU: 80 13 01 00 [21:09:59]Write to MH i2c: E2 08 00 86 66 80 13 01 00 00 00 00 00 69 [21:09:59]Write i2c OK [21:09:59]MH_I2C_Read... [21:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:59]Read from MH i2c: E2 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 0E 00 [21:09:59]MH_I2C_Read... [21:09:59]Read from MH i2c: E2 0E 00 86 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E5 [21:09:59]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:09:59]wFMCommunicate OK [21:09:59]SAM_PROTO_GetShiftState done [21:09:59]FM_GetShiftState done [21:09:59]req_shift_opened done [21:09:59]requested_item shift.open_date is exist - process it [21:09:59]req_shift_open_date [21:09:59]req_shift_open_date done [21:09:59]produce_requested_data done [21:09:59]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30748,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:09:59]process_action_free close_receipt [21:09:59]json_value_free [21:09:59]json_value_free done [21:09:59]process_json_proto returns [21:09:59]Send response to host [21:09:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30748,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:09:59]free response buf [21:09:59]execute_script done [21:09:59]execute_script returns [21:09:59]free content buf [21:09:59]Sock 9.Close socket [21:09:59]Sock 9.Thread stoped [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:21]accept exits with 7 [21:14:21]New connection [21:14:21]New thread 3067489636 created [21:14:21]Thread 3067346276 joined [21:14:21]Waiting for new connection... [21:14:21] Sock 7.Parse request [21:14:21]Sock 7.Check first char [21:14:21]Sock 7.First char is OK [21:14:21]request: POST /json_proto HTTP/1.0 [21:14:21]Method: POST [21:14:21]URL: /json_proto [21:14:21]Method is POST - this is cgi request [21:14:21]url: /json_proto [21:14:21]query_string will be loaded in cgi processing [21:14:21]execute_cgi json_proto POST (null) [21:14:21]execute_cgi path=json_proto method=POST [21:14:21]POST find Content-Length [21:14:21]Host: 172.17.51.3:8080 [21:14:21]Content-Length: 677 [21:14:21]Content-Type: application/json [21:14:21] [21:14:21]POST finish read [21:14:21]Found Content-Length = 677 [21:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]execute_script... [21:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:21]POST & json_proto [21:14:21]process_json_proto [21:14:21]json parsed OK: [21:14:21]protocol is kg_v1.0 [21:14:21]action value=close_receipt [21:14:21]process_action close_receipt [21:14:21]cmd_close_receipt [21:14:21]MH_GetDate [21:14:21]Write to MH i2c: F0 00 00 87 66 DC [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: F0 09 00 87 66 00 34 C4 16 67 04 C1 95 66 1A [21:14:21]GetLastDocTimeStamp 1729545002 [21:14:21]current date 1729545268 [21:14:21]FM_GetShiftState [21:14:21]SAM_PROTO_GetShiftState [21:14:21]wFMCommunicate request_size=4 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 13 01 00 [21:14:21]Write to MH i2c: E2 08 00 88 66 80 13 01 00 00 00 00 00 6B [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:21]Read from MH i2c: E2 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 0E 00 88 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E7 [21:14:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:14:21]wFMCommunicate OK [21:14:21]SAM_PROTO_GetShiftState done [21:14:21]FM_GetShiftState done [21:14:21]opened in 1729471058 [21:14:21]opened+sec_in_day 1729557458 [21:14:21]quantity*price = 50041 [21:14:21]sum+1 = 50042 [21:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 246 21.10.2024 21:14 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30749 ФПД: 70091076051986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30749&fm=70091076051986&tin=02508201610067®Number=0000000000186857&sum=50000 [21:14:23]StoreToDocumentArchive [21:14:23]shift 115 fd 30749 [21:14:23]save to /storage/0115/doc_00030749 [21:14:23]save last doc name /storage/0115/doc_00030749 to /storage/kkm_last_doc_name [21:14:23]save OK [21:14:23]Clear old archive folders... [21:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:23]tlvbuf is 01ED8860 [21:14:23]SAM_PROTO_ClearQueue [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 09 00 00 [21:14:23]Write to MH i2c: E2 08 00 95 66 80 09 00 00 00 00 00 00 6D [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 95 66 00 90 00 6F [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_ClearQueue done [21:14:23]KKMCreateOFDPacket [21:14:23]OFDProtocolAddRootSTLVToBuf [21:14:23]FM_MakeSignedData [21:14:23]FM_MakeSignedData [21:14:23]SAM_PROTO_SignData [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 01 02 [21:14:23]Write to MH i2c: E2 08 00 96 66 80 0D 01 02 00 00 00 00 75 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 96 66 00 90 00 70 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=255 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 C4 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 78 00 00 35 04 06 00 3F [21:14:23]Write to MH i2c: E2 02 01 97 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 C4 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 78 00 00 35 04 06 00 3F 00 00 B8 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]OFD Sender: No OFD packet to send [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 97 66 00 90 00 71 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=10 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 02 02 05 BF 59 B0 A4 12 [21:14:23]Write to MH i2c: E2 0D 00 98 66 80 0D 02 02 05 00 BF 59 B0 A4 12 00 00 00 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 03 00 98 66 00 90 00 72 [21:14:23]RAPDU: 90 00 [21:14:23]wFMCommunicate OK [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 0D 03 02 [21:14:23]Write to MH i2c: E2 08 00 99 66 80 0D 03 02 00 00 00 00 7A [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 0B 00 99 66 00 96 5B 4E 3B B7 44 DC 46 90 00 12 [21:14:23]RAPDU: 96 5B 4E 3B B7 44 DC 46 90 00 [21:14:23]wFMCommunicate OK [21:14:23]SAM_PROTO_SignData done [21:14:23]FM_MakeSignedData done [21:14:23]CreateOFDProtocolMessage [21:14:23]wFMCommunicate request_size=4 [21:14:23]MH_SAM_APDU [21:14:23]CAPDU: 80 11 00 00 [21:14:23]Write to MH i2c: E2 08 00 9A 66 80 11 00 00 00 00 00 00 7A [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:23]Read from MH i2c: E2 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: E2 17 00 9A 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C8 [21:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:14:23]wFMCommunicate OK [21:14:23]CreateOFDProtocolMessage done [21:14:23]OFDSenderStorePacket 30749 [21:14:23]StoreOFDPacket docnum=30749 [21:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D A9 07 01 B9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 C4 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 78 00 00 35 04 06 00 3F BF 59 B0 A4 12 96 5B 4E 3B B7 44 DC 46 [21:14:23]CheckFolder [21:14:23]dirname=/storage/ofd_packets [21:14:23]CheckFolder done [21:14:23]ProducePacketName [21:14:23]name=ofd_packets/00030749 [21:14:23]NVStorageSaveData ofd_packets/00030749 [21:14:23]File name is /storage/ofd_packets/00030749 [21:14:23]Write 301 bytes [21:14:23]NVStorageSaveData done [21:14:23]OFDSenderStorePacket done [21:14:23]KKMCreateOFDPacket done [21:14:23]NVStorageSaveData kkm_last_timestamp [21:14:23]File name is /storage/kkm_last_timestamp [21:14:23]Write 4 bytes [21:14:23]NVStorageSaveData done [21:14:23]ExternCall_PrintAddStr [21:14:23]wPrintStart [21:14:23]Write to MH i2c: 01 00 00 9B 66 01 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 9B 66 00 00 00 00 00 FF 0F 16 [21:14:23]RasterBufferAndPrint [21:14:23]line Счет N : (1)343165 [21:14:23]line ИНН: 02508201610067 [21:14:23]line Контрольно-Кассовый Чек [21:14:23]line ПРОДАЖА [21:14:23]line ТРК (МРК, ГНК) : 63 [21:14:23]line Товар: 2710124130 [21:14:23]line Аи-92-К-2 [21:14:23]line 7.480 * 66.90 [21:14:23]line = 500.41 [21:14:23]line НДС 12% НСП 1% [21:14:23]line > о реализуемом товаре [21:14:23]line ОКРУГЛЕНИЕ: -0.41 [21:14:23]line ИТОГО: 500.00 [21:14:23]line Внесено: 500.00 [21:14:23]line СДАЧА: 0.00 [21:14:23]line НСП 1% : 4.43 [21:14:23]line НДС 12% : 53.14 [21:14:23]line Наличными: 500.00 [21:14:23]line Безнал.: 0.00 [21:14:23]line Место: АЗС № 78 "Партнер Нефть" [21:14:23]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:14:23]line СНО: Общий режим [21:14:23]line Чек 246 21.10.2024 21:14 [21:14:23]line Смена: 115 ФФД: 1.0 [21:14:23]line ЗНМ: 0300000137 [21:14:23]line РНМ: 0000000000186857 [21:14:23]line Версия ККМ: v1.0 [21:14:23]line ФМ: 0000000002094219 [21:14:23]line ФД: 30749 [21:14:23]line ФПД: 70091076051986 [21:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211428&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30749&fm=70091076051986&tin=02508201610067®Number=0000000000186857&sum=50000 [21:14:23]OFD Sender: Processing packet 30749 [packets to send 10, broken 9] [21:14:23]ProducePacketName [21:14:23]name=ofd_packets/00030749 [21:14:23]OFD Sender: To server: pG, [21:14:23]CommunicateWithHost lk.salyk.kg:30040 [21:14:23]ConnectInit lk.salyk.kg [21:14:23]written 0, free lines is 4095 [21:14:23]Connected sock=10 [21:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 4D A9 07 01 B9 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 34 C4 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 78 00 00 35 04 06 00 3F BF 59 B0 A4 12 96 5B 4E 3B B7 44 DC 46 [21:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 CC 12 47 00 DB 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1D 78 00 00 F4 03 04 00 B4 6E 16 67 B6 04 01 00 00 60 7E 28 96 E6 EF 84 F2 [21:14:24]CommunicateWithHost err = 0 [21:14:24]CheckOFDResponse [21:14:24]1017 (14) - 77093643461234 [21:14:24]1041 (16) - 0000000002094219 [21:14:24]1040 (4) - 30749 [21:14:24]1012 (4) - 21.10.2024 15:09 [21:14:24]1206 (1) - 0 [21:14:24]OFD Sender: Remove packet 30749 [21:14:24]ProducePacketName [21:14:24]name=ofd_packets/00030749 [21:14:24]NVStorageDeleteData [21:14:24]Write to MH i2c: 01 00 00 C6 66 2C [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: 01 07 00 C6 66 00 00 00 00 00 EF 0C 2E [21:14:24]RasterBufferAndPrint [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]line [21:14:24]written 0, free lines is 3317 [21:14:24]MH_Cut [21:14:24]Write to MH i2c: D1 01 00 CD 66 01 05 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 [21:14:24]MH_I2C_Read... [21:14:24]Read from MH i2c: D1 01 00 CD 66 00 04 [21:14:24]Write to MH i2c: 01 00 00 CE 66 34 [21:14:24]Write i2c OK [21:14:24]MH_I2C_Read... [21:14:24]OFD Sender: No OFD packet to send [21:14:25]*** Cut start [21:14:25]*** Partial cut [21:14:25]*** CUTSNS_PIN = 1 [21:14:25]*** CUTSNS_PIN = 0 [21:14:25]*** Brake cut motor [21:14:25]Read from MH i2c: 01 [21:14:25]MH_I2C_Read... [21:14:25]*** Stop cut motor [21:14:25]*** Cut end [21:14:25]Read from MH i2c: 01 07 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: 01 07 00 CE 66 00 00 00 00 00 FF 0F 49 [21:14:25]process_action close_receipt done [21:14:25]requested_data is exist [21:14:25]produce_requested_data [21:14:25]requested_item fm.sn is exist - process it [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 11 00 00 [21:14:25]Write to MH i2c: E2 08 00 CF 66 80 11 00 00 00 00 00 00 AF [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 17 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 17 00 CF 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FD [21:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:14:25]wFMCommunicate OK [21:14:25]requested_item fd.num is exist - process it [21:14:25]SAM_PROTO_GetFieldsCounters [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 13 00 00 [21:14:25]Write to MH i2c: E2 08 00 D0 66 80 13 00 00 00 00 00 00 B2 [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 62 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 62 00 D0 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [21:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:25]wFMCommunicate OK [21:14:25]SAM_PROTO_GetFieldsCounters done [21:14:25]requested_item shift.num is exist - process it [21:14:25]requested_item shift.opened is exist - process it [21:14:25]req_shift_opened [21:14:25]FM_GetShiftState [21:14:25]SAM_PROTO_GetShiftState [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 13 01 00 [21:14:25]Write to MH i2c: E2 08 00 D1 66 80 13 01 00 00 00 00 00 B4 [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 0E 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: E2 0E 00 D1 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 30 [21:14:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:14:25]wFMCommunicate OK [21:14:25]SAM_PROTO_GetShiftState done [21:14:25]FM_GetShiftState done [21:14:25]req_shift_opened done [21:14:25]requested_item shift.open_date is exist - process it [21:14:25]req_shift_open_date [21:14:25]req_shift_open_date done [21:14:25]produce_requested_data done [21:14:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30749,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:14:25]process_action_free close_receipt [21:14:25]json_value_free [21:14:25]json_value_free done [21:14:25]process_json_proto returns [21:14:25]Send response to host [21:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30749,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:14:25]free response buf [21:14:25]execute_script done [21:14:25]execute_script returns [21:14:25]free content buf [21:14:25]Sock 7.Close socket [21:14:25]Sock 7.Thread stoped [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:20:57]accept exits with 9 [21:20:57]New connection [21:20:57]New thread 3067346276 created [21:20:57]Thread 3067489636 joined [21:20:57]Waiting for new connection... [21:20:57] Sock 9.Parse request [21:20:57]Sock 9.Check first char [21:20:57]Sock 9.First char is OK [21:20:57]request: POST /json_proto HTTP/1.0 [21:20:57]Method: POST [21:20:57]URL: /json_proto [21:20:57]Method is POST - this is cgi request [21:20:57]url: /json_proto [21:20:57]query_string will be loaded in cgi processing [21:20:57]execute_cgi json_proto POST (null) [21:20:57]execute_cgi path=json_proto method=POST [21:20:57]POST find Content-Length [21:20:57]Host: 172.17.51.3:8080 [21:20:57]Content-Length: 688 [21:20:57]Content-Type: application/json [21:20:57] [21:20:57]POST finish read [21:20:57]Found Content-Length = 688 [21:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:57]execute_script... [21:20:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:20:57]POST & json_proto [21:20:57]process_json_proto [21:20:57]json parsed OK: [21:20:57]protocol is kg_v1.0 [21:20:57]action value=close_receipt [21:20:57]process_action close_receipt [21:20:57]cmd_close_receipt [21:20:57]MH_GetDate [21:20:57]Write to MH i2c: F0 00 00 D2 66 27 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: F0 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: F0 09 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: F0 09 00 D2 66 00 C0 C5 16 67 04 C1 95 66 F2 [21:20:57]GetLastDocTimeStamp 1729545268 [21:20:57]current date 1729545664 [21:20:57]FM_GetShiftState [21:20:57]SAM_PROTO_GetShiftState [21:20:57]wFMCommunicate request_size=4 [21:20:57]MH_SAM_APDU [21:20:57]CAPDU: 80 13 01 00 [21:20:57]Write to MH i2c: E2 08 00 D3 66 80 13 01 00 00 00 00 00 B6 [21:20:57]Write i2c OK [21:20:57]MH_I2C_Read... [21:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:57]Read from MH i2c: E2 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 0E 00 [21:20:57]MH_I2C_Read... [21:20:57]Read from MH i2c: E2 0E 00 D3 66 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 32 [21:20:57]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:20:57]wFMCommunicate OK [21:20:57]SAM_PROTO_GetShiftState done [21:20:57]FM_GetShiftState done [21:20:57]opened in 1729471058 [21:20:57]opened+sec_in_day 1729557458 [21:20:57]quantity*price = 400050 [21:20:57]sum+1 = 400051 [21:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 247 21.10.2024 21:21 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30750 ФПД: 241710714612210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212104&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30750&fm=241710714612210&tin=02508201610067®Number=0000000000186857&sum=400000 [21:20:58]StoreToDocumentArchive [21:20:58]shift 115 fd 30750 [21:20:58]save to /storage/0115/doc_00030750 [21:20:58]save last doc name /storage/0115/doc_00030750 to /storage/kkm_last_doc_name [21:20:58]save OK [21:20:58]Clear old archive folders... [21:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:20:58]tlvbuf is 01F8B630 [21:20:58]SAM_PROTO_ClearQueue [21:20:58]wFMCommunicate request_size=4 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 09 00 00 [21:20:58]Write to MH i2c: E2 08 00 E0 66 80 09 00 00 00 00 00 00 B8 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 E0 66 00 90 00 BA [21:20:58]RAPDU: 90 00 [21:20:58]wFMCommunicate OK [21:20:58]SAM_PROTO_ClearQueue done [21:20:58]KKMCreateOFDPacket [21:20:58]OFDProtocolAddRootSTLVToBuf [21:20:58]FM_MakeSignedData [21:20:58]FM_MakeSignedData [21:20:58]SAM_PROTO_SignData [21:20:58]wFMCommunicate request_size=4 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 0D 01 02 [21:20:58]Write to MH i2c: E2 08 00 E1 66 80 0D 01 02 00 00 00 00 C0 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:58]Read from MH i2c: E2 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 [21:20:58]MH_I2C_Read... [21:20:58]Read from MH i2c: E2 03 00 E1 66 00 90 00 BB [21:20:58]RAPDU: 90 00 [21:20:58]wFMCommunicate OK [21:20:58]wFMCommunicate request_size=255 [21:20:58]MH_SAM_APDU [21:20:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C0 C5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 78 00 [21:20:58]Write to MH i2c: E2 02 01 E2 66 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C0 C5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 78 00 00 00 41 [21:20:58]Write i2c OK [21:20:58]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 03 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 03 00 E2 66 00 90 00 BC [21:20:59]RAPDU: 90 00 [21:20:59]wFMCommunicate OK [21:20:59]wFMCommunicate request_size=16 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DB D5 A9 48 69 F2 [21:20:59]Write to MH i2c: E2 13 00 E3 66 80 0D 02 02 0B 00 00 35 04 06 00 DB D5 A9 48 69 F2 00 00 14 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 03 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 03 00 E3 66 00 90 00 BD [21:20:59]RAPDU: 90 00 [21:20:59]wFMCommunicate OK [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 0D 03 02 [21:20:59]Write to MH i2c: E2 08 00 E4 66 80 0D 03 02 00 00 00 00 C5 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0B 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 0B 00 E4 66 00 07 B4 D2 0F 4F 65 99 E6 90 00 95 [21:20:59]RAPDU: 07 B4 D2 0F 4F 65 99 E6 90 00 [21:20:59]wFMCommunicate OK [21:20:59]SAM_PROTO_SignData done [21:20:59]FM_MakeSignedData done [21:20:59]CreateOFDProtocolMessage [21:20:59]wFMCommunicate request_size=4 [21:20:59]MH_SAM_APDU [21:20:59]CAPDU: 80 11 00 00 [21:20:59]Write to MH i2c: E2 08 00 E5 66 80 11 00 00 00 00 00 00 C5 [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:59]Read from MH i2c: E2 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 17 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: E2 17 00 E5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 13 [21:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:20:59]wFMCommunicate OK [21:20:59]CreateOFDProtocolMessage done [21:20:59]OFDSenderStorePacket 30750 [21:20:59]StoreOFDPacket docnum=30750 [21:20:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D7 26 0D 01 E6 23 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C0 C5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 78 00 00 35 04 06 00 DB D5 A9 48 69 F2 07 B4 D2 0F 4F 65 99 E6 [21:20:59]CheckFolder [21:20:59]dirname=/storage/ofd_packets [21:20:59]CheckFolder done [21:20:59]ProducePacketName [21:20:59]name=ofd_packets/00030750 [21:20:59]NVStorageSaveData ofd_packets/00030750 [21:20:59]File name is /storage/ofd_packets/00030750 [21:20:59]Write 307 bytes [21:20:59]NVStorageSaveData done [21:20:59]OFDSenderStorePacket done [21:20:59]KKMCreateOFDPacket done [21:20:59]NVStorageSaveData kkm_last_timestamp [21:20:59]File name is /storage/kkm_last_timestamp [21:20:59]Write 4 bytes [21:20:59]NVStorageSaveData done [21:20:59]ExternCall_PrintAddStr [21:20:59]wPrintStart [21:20:59]Write to MH i2c: 01 00 00 E6 66 4C [21:20:59]Write i2c OK [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: 01 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: 01 07 00 [21:20:59]MH_I2C_Read... [21:20:59]Read from MH i2c: 01 07 00 E6 66 00 00 00 00 00 FF 0F 61 [21:20:59]RasterBufferAndPrint [21:20:59]line Счет N : (1)343166 [21:20:59]line ИНН: 02508201610067 [21:20:59]line Контрольно-Кассовый Чек [21:20:59]line ПРОДАЖА [21:20:59]line ТРК (МРК, ГНК) : 51 [21:20:59]line Товар: 2710194210 [21:20:59]line D-ENERGY Дт-К-2 [21:20:59]line 51.820 * 77.20 [21:20:59]line = 4000.50 [21:20:59]line НДС 12% НСП 1% [21:20:59]line > о реализуемом товаре [21:20:59]line ОКРУГЛЕНИЕ: -0.50 [21:20:59]line ИТОГО: 4000.00 [21:20:59]line Внесено: 4000.00 [21:20:59]line СДАЧА: 0.00 [21:20:59]line НСП 1% : 35.40 [21:20:59]line НДС 12% : 424.83 [21:20:59]line Наличными: 4000.00 [21:20:59]line Безнал.: 0.00 [21:20:59]line Место: АЗС № 78 "Партнер Нефть" [21:20:59]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:20:59]line СНО: Общий режим [21:20:59]line Чек 247 21.10.2024 21:21 [21:20:59]line Смена: 115 ФФД: 1.0 [21:20:59]line ЗНМ: 0300000137 [21:20:59]line РНМ: 0000000000186857 [21:20:59]line Версия ККМ: v1.0 [21:20:59]line ФМ: 0000000002094219 [21:20:59]line ФД: 30750 [21:20:59]line ФПД: 241710714612210 [21:20:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212104&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30750&fm=241710714612210&tin=02508201610067®Number=0000000000186857&sum=400000 [21:20:59]OFD Sender: Processing packet 30750 [packets to send 10, broken 9] [21:20:59]ProducePacketName [21:20:59]name=ofd_packets/00030750 [21:20:59]OFD Sender: To server: pG, [21:20:59]CommunicateWithHost lk.salyk.kg:30040 [21:20:59]ConnectInit lk.salyk.kg [21:20:59]written 0, free lines is 4095 [21:20:59]Connected sock=10 [21:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 D7 26 0D 01 E6 23 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 C0 C5 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1E 78 00 00 35 04 06 00 DB D5 A9 48 69 F2 07 B4 D2 0F 4F 65 99 E6 [21:21:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D4 AF 47 00 70 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 32 30 39 34 32 31 39 10 04 04 00 1E 78 00 00 F4 03 04 00 40 70 16 67 B6 04 01 00 00 26 B5 3E 21 AC CF BC B1 [21:21:00]CommunicateWithHost err = 0 [21:21:00]CheckOFDResponse [21:21:00]1017 (14) - 77093643461234 [21:21:00]1041 (16) - 0000000002094219 [21:21:00]1040 (4) - 30750 [21:21:00]1012 (4) - 21.10.2024 15:16 [21:21:00]1206 (1) - 0 [21:21:00]OFD Sender: Remove packet 30750 [21:21:00]ProducePacketName [21:21:00]name=ofd_packets/00030750 [21:21:00]NVStorageDeleteData [21:21:00]Write to MH i2c: 01 00 00 11 67 78 [21:21:00]Write i2c OK [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: 01 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: 01 07 00 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: 01 07 00 11 67 00 00 00 00 00 EA 0C 75 [21:21:00]RasterBufferAndPrint [21:21:00]line [21:21:00]line [21:21:00]line [21:21:00]line [21:21:00]line [21:21:00]written 0, free lines is 3313 [21:21:00]MH_Cut [21:21:00]Write to MH i2c: D1 01 00 18 67 01 51 [21:21:00]Write i2c OK [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: D1 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: D1 01 00 [21:21:00]MH_I2C_Read... [21:21:00]Read from MH i2c: D1 01 00 18 67 00 50 [21:21:00]Write to MH i2c: 01 00 00 19 67 80 [21:21:00]Write i2c OK [21:21:00]MH_I2C_Read... [21:21:00]OFD Sender: No OFD packet to send [21:21:00]*** Cut start [21:21:00]*** Partial cut [21:21:00]*** CUTSNS_PIN = 1 [21:21:00]*** CUTSNS_PIN = 0 [21:21:01]*** Brake cut motor [21:21:01]Read from MH i2c: 01 [21:21:01]MH_I2C_Read... [21:21:01]*** Stop cut motor [21:21:01]*** Cut end [21:21:01]Read from MH i2c: 01 07 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: 01 07 00 19 67 00 00 00 00 00 FF 0F 95 [21:21:01]process_action close_receipt done [21:21:01]requested_data is exist [21:21:01]produce_requested_data [21:21:01]requested_item fm.sn is exist - process it [21:21:01]wFMCommunicate request_size=4 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 11 00 00 [21:21:01]Write to MH i2c: E2 08 00 1A 67 80 11 00 00 00 00 00 00 FB [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 17 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 17 00 1A 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [21:21:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:21:01]wFMCommunicate OK [21:21:01]requested_item fd.num is exist - process it [21:21:01]SAM_PROTO_GetFieldsCounters [21:21:01]wFMCommunicate request_size=4 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 13 00 00 [21:21:01]Write to MH i2c: E2 08 00 1B 67 80 13 00 00 00 00 00 00 FE [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 62 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 62 00 1B 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [21:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:21:01]wFMCommunicate OK [21:21:01]SAM_PROTO_GetFieldsCounters done [21:21:01]requested_item shift.num is exist - process it [21:21:01]requested_item shift.opened is exist - process it [21:21:01]req_shift_opened [21:21:01]FM_GetShiftState [21:21:01]SAM_PROTO_GetShiftState [21:21:01]wFMCommunicate request_size=4 [21:21:01]MH_SAM_APDU [21:21:01]CAPDU: 80 13 01 00 [21:21:01]Write to MH i2c: E2 08 00 1C 67 80 13 01 00 00 00 00 00 00 [21:21:01]Write i2c OK [21:21:01]MH_I2C_Read... [21:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:01]Read from MH i2c: E2 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 0E 00 [21:21:01]MH_I2C_Read... [21:21:01]Read from MH i2c: E2 0E 00 1C 67 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7C [21:21:01]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:21:01]wFMCommunicate OK [21:21:01]SAM_PROTO_GetShiftState done [21:21:01]FM_GetShiftState done [21:21:01]req_shift_opened done [21:21:01]requested_item shift.open_date is exist - process it [21:21:01]req_shift_open_date [21:21:01]req_shift_open_date done [21:21:01]produce_requested_data done [21:21:01]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30750,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:21:01]process_action_free close_receipt [21:21:01]json_value_free [21:21:01]json_value_free done [21:21:01]process_json_proto returns [21:21:01]Send response to host [21:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30750,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:21:01]free response buf [21:21:01]execute_script done [21:21:01]execute_script returns [21:21:01]free content buf [21:21:01]Sock 9.Close socket [21:21:01]Sock 9.Thread stoped [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:24]accept exits with 7 [21:26:24]New connection [21:26:24]New thread 3067489636 created [21:26:24]Thread 3067346276 joined [21:26:24]Waiting for new connection... [21:26:24] Sock 7.Parse request [21:26:24]Sock 7.Check first char [21:26:24]Sock 7.First char is OK [21:26:24]request: POST /json_proto HTTP/1.0 [21:26:24]Method: POST [21:26:24]URL: /json_proto [21:26:24]Method is POST - this is cgi request [21:26:24]url: /json_proto [21:26:24]query_string will be loaded in cgi processing [21:26:24]execute_cgi json_proto POST (null) [21:26:24]execute_cgi path=json_proto method=POST [21:26:24]POST find Content-Length [21:26:24]Host: 172.17.51.3:8080 [21:26:24]Content-Length: 682 [21:26:24]Content-Type: application/json [21:26:24] [21:26:24]POST finish read [21:26:24]Found Content-Length = 682 [21:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 19.740, "sum" : 1320.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:24]execute_script... [21:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 19.740, "sum" : 1320.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1320.00, "total" : 1320.00, "payments": [ { "type": 0, "sum" : 1320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:26:24]POST & json_proto [21:26:24]process_json_proto [21:26:24]json parsed OK: [21:26:24]protocol is kg_v1.0 [21:26:24]action value=close_receipt [21:26:24]process_action close_receipt [21:26:24]cmd_close_receipt [21:26:24]MH_GetDate [21:26:24]Write to MH i2c: F0 00 00 1D 67 73 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: F0 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: F0 09 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: F0 09 00 1D 67 00 07 C7 16 67 04 C1 95 66 87 [21:26:24]GetLastDocTimeStamp 1729545664 [21:26:24]current date 1729545991 [21:26:24]FM_GetShiftState [21:26:24]SAM_PROTO_GetShiftState [21:26:24]wFMCommunicate request_size=4 [21:26:24]MH_SAM_APDU [21:26:24]CAPDU: 80 13 01 00 [21:26:24]Write to MH i2c: E2 08 00 1E 67 80 13 01 00 00 00 00 00 02 [21:26:24]Write i2c OK [21:26:24]MH_I2C_Read... [21:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:24]Read from MH i2c: E2 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 0E 00 [21:26:24]MH_I2C_Read... [21:26:24]Read from MH i2c: E2 0E 00 1E 67 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7E [21:26:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:26:24]wFMCommunicate OK [21:26:24]SAM_PROTO_GetShiftState done [21:26:24]FM_GetShiftState done [21:26:24]opened in 1729471058 [21:26:24]opened+sec_in_day 1729557458 [21:26:24]quantity*price = 132060 [21:26:24]sum+1 = 132062 [21:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1320.00 Внесено: 1320.00 СДАЧА: 0.00 НСП 1% : 11.69 НДС 12% : 140.24 Наличными: 1320.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 248 21.10.2024 21:26 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30751 ФПД: 83655140928891 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30751&fm=83655140928891&tin=02508201610067®Number=0000000000186857&sum=132000 [21:26:26]StoreToDocumentArchive [21:26:26]shift 115 fd 30751 [21:26:26]save to /storage/0115/doc_00030751 [21:26:26]save last doc name /storage/0115/doc_00030751 to /storage/kkm_last_doc_name [21:26:26]save OK [21:26:26]Clear old archive folders... [21:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:26:26]tlvbuf is B6FD8070 [21:26:26]SAM_PROTO_ClearQueue [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 09 00 00 [21:26:26]Write to MH i2c: E2 08 00 2B 67 80 09 00 00 00 00 00 00 04 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 2B 67 00 90 00 06 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_ClearQueue done [21:26:26]KKMCreateOFDPacket [21:26:26]OFDProtocolAddRootSTLVToBuf [21:26:26]FM_MakeSignedData [21:26:26]FM_MakeSignedData [21:26:26]SAM_PROTO_SignData [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 01 02 [21:26:26]Write to MH i2c: E2 08 00 2C 67 80 0D 01 02 00 00 00 00 0C [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 2C 67 00 90 00 07 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=255 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1C 4D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 07 C7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 78 00 00 35 04 06 00 4C [21:26:26]Write to MH i2c: E2 02 01 2D 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1C 4D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 07 C7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 78 00 00 35 04 06 00 4C 00 00 15 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 2D 67 00 90 00 08 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=10 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 02 02 05 15 7A F5 6D 7B [21:26:26]Write to MH i2c: E2 0D 00 2E 67 80 0D 02 02 05 00 15 7A F5 6D 7B 00 00 85 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 03 00 2E 67 00 90 00 09 [21:26:26]RAPDU: 90 00 [21:26:26]wFMCommunicate OK [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 0D 03 02 [21:26:26]Write to MH i2c: E2 08 00 2F 67 80 0D 03 02 00 00 00 00 11 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0B 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 0B 00 2F 67 00 04 30 BB BE BC CD 63 54 90 00 FF [21:26:26]RAPDU: 04 30 BB BE BC CD 63 54 90 00 [21:26:26]wFMCommunicate OK [21:26:26]SAM_PROTO_SignData done [21:26:26]FM_MakeSignedData done [21:26:26]CreateOFDProtocolMessage [21:26:26]wFMCommunicate request_size=4 [21:26:26]MH_SAM_APDU [21:26:26]CAPDU: 80 11 00 00 [21:26:26]Write to MH i2c: E2 08 00 30 67 80 11 00 00 00 00 00 00 11 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:26]Read from MH i2c: E2 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: E2 17 00 30 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5F [21:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:26:26]wFMCommunicate OK [21:26:26]CreateOFDProtocolMessage done [21:26:26]OFDSenderStorePacket 30751 [21:26:26]StoreOFDPacket docnum=30751 [21:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 A9 07 01 53 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1C 4D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 07 C7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 78 00 00 35 04 06 00 4C 15 7A F5 6D 7B 04 30 BB BE BC CD 63 54 [21:26:26]CheckFolder [21:26:26]dirname=/storage/ofd_packets [21:26:26]CheckFolder done [21:26:26]ProducePacketName [21:26:26]name=ofd_packets/00030751 [21:26:26]NVStorageSaveData ofd_packets/00030751 [21:26:26]File name is /storage/ofd_packets/00030751 [21:26:26]Write 301 bytes [21:26:26]NVStorageSaveData done [21:26:26]OFDSenderStorePacket done [21:26:26]KKMCreateOFDPacket done [21:26:26]NVStorageSaveData kkm_last_timestamp [21:26:26]File name is /storage/kkm_last_timestamp [21:26:26]Write 4 bytes [21:26:26]NVStorageSaveData done [21:26:26]ExternCall_PrintAddStr [21:26:26]wPrintStart [21:26:26]Write to MH i2c: 01 00 00 31 67 98 [21:26:26]Write i2c OK [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 [21:26:26]MH_I2C_Read... [21:26:26]Read from MH i2c: 01 07 00 31 67 00 00 00 00 00 FF 0F AD [21:26:26]RasterBufferAndPrint [21:26:26]line Счет N : (1)343167 [21:26:26]line ИНН: 02508201610067 [21:26:26]line Контрольно-Кассовый Чек [21:26:26]line ПРОДАЖА [21:26:26]line ТРК (МРК, ГНК) : 63 [21:26:26]line Товар: 2710124130 [21:26:26]line Аи-92-К-2 [21:26:26]line 19.740 * 66.90 [21:26:26]line = 1320.61 [21:26:26]line НДС 12% НСП 1% [21:26:26]line > о реализуемом товаре [21:26:26]line ОКРУГЛЕНИЕ: -0.61 [21:26:26]line ИТОГО: 1320.00 [21:26:26]line Внесено: 1320.00 [21:26:26]line СДАЧА: 0.00 [21:26:26]line НСП 1% : 11.69 [21:26:26]line НДС 12% : 140.24 [21:26:26]line Наличными: 1320.00 [21:26:26]line Безнал.: 0.00 [21:26:26]line Место: АЗС № 78 "Партнер Нефть" [21:26:26]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:26:26]line СНО: Общий режим [21:26:26]line Чек 248 21.10.2024 21:26 [21:26:26]line Смена: 115 ФФД: 1.0 [21:26:26]line ЗНМ: 0300000137 [21:26:26]line РНМ: 0000000000186857 [21:26:26]line Версия ККМ: v1.0 [21:26:26]line ФМ: 0000000002094219 [21:26:26]line ФД: 30751 [21:26:26]line ФПД: 83655140928891 [21:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212631&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30751&fm=83655140928891&tin=02508201610067®Number=0000000000186857&sum=132000 [21:26:26]OFD Sender: Processing packet 30751 [packets to send 10, broken 9] [21:26:26]ProducePacketName [21:26:26]name=ofd_packets/00030751 [21:26:26]OFD Sender: To server: pG, [21:26:26]CommunicateWithHost lk.salyk.kg:30040 [21:26:26]ConnectInit lk.salyk.kg [21:26:26]written 0, free lines is 4095 [21:26:27]Connected sock=11 [21:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 12 A9 07 01 53 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1C 4D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DD 03 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 03 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 36 00 00 00 00 07 04 06 00 A0 03 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 07 C7 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 78 00 00 35 04 06 00 4C 15 7A F5 6D 7B 04 30 BB BE BC CD 63 54 [21:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 D9 26 47 00 C0 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 1F 78 00 00 F4 03 04 00 87 71 16 67 B6 04 01 00 00 2A D7 3C D0 4B F1 6A FC [21:26:27]CommunicateWithHost err = 0 [21:26:27]CheckOFDResponse [21:26:27]1017 (14) - 77093643461234 [21:26:27]1041 (16) - 0000000002094219 [21:26:27]1040 (4) - 30751 [21:26:27]1012 (4) - 21.10.2024 15:21 [21:26:27]1206 (1) - 0 [21:26:27]OFD Sender: Remove packet 30751 [21:26:27]ProducePacketName [21:26:27]name=ofd_packets/00030751 [21:26:27]NVStorageDeleteData [21:26:27]Write to MH i2c: 01 00 00 5C 67 C3 [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: 01 07 00 5C 67 00 00 00 00 00 F3 0C C9 [21:26:27]RasterBufferAndPrint [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]line [21:26:27]written 0, free lines is 3321 [21:26:27]MH_Cut [21:26:27]Write to MH i2c: D1 01 00 63 67 01 9C [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 01 00 [21:26:27]MH_I2C_Read... [21:26:27]Read from MH i2c: D1 01 00 63 67 00 9B [21:26:27]Write to MH i2c: 01 00 00 64 67 CB [21:26:27]Write i2c OK [21:26:27]MH_I2C_Read... [21:26:27]int [21:26:27]*** FLAG_PRN_PAP2 set [21:26:27]*** Cut start [21:26:27]*** Partial cut [21:26:27]*** CUTSNS_PIN = 1 [21:26:27]*** CUTSNS_PIN = 0 [21:26:27]OFD Sender: No OFD packet to send [21:26:27]*** Brake cut motor [21:26:28]Read from MH i2c: 01 [21:26:28]MH_I2C_Read... [21:26:28]*** Stop cut motor [21:26:28]*** Cut end [21:26:28]Read from MH i2c: 01 07 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 64 67 00 02 00 00 00 FF 0F E2 [21:26:28]process_action close_receipt done [21:26:28]requested_data is exist [21:26:28]produce_requested_data [21:26:28]requested_item fm.sn is exist - process it [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 11 00 00 [21:26:28]Write to MH i2c: E2 08 00 65 67 80 11 00 00 00 00 00 00 46 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 17 00 65 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 94 [21:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:26:28]wFMCommunicate OK [21:26:28]requested_item fd.num is exist - process it [21:26:28]SAM_PROTO_GetFieldsCounters [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 13 00 00 [21:26:28]Write to MH i2c: E2 08 00 66 67 80 13 00 00 00 00 00 00 49 [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 62 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 62 00 66 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [21:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 1F 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:26:28]wFMCommunicate OK [21:26:28]SAM_PROTO_GetFieldsCounters done [21:26:28]requested_item shift.num is exist - process it [21:26:28]requested_item shift.opened is exist - process it [21:26:28]req_shift_opened [21:26:28]FM_GetShiftState [21:26:28]SAM_PROTO_GetShiftState [21:26:28]wFMCommunicate request_size=4 [21:26:28]MH_SAM_APDU [21:26:28]CAPDU: 80 13 01 00 [21:26:28]Write to MH i2c: 01 00 00 67 67 CE [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: 01 07 00 67 67 00 02 00 00 00 FF 0F E5 [21:26:28]state=0 [21:26:28]Cover opened [21:26:28]Write to MH i2c: E2 08 00 68 67 80 13 01 00 00 00 00 00 4C [21:26:28]Write i2c OK [21:26:28]MH_I2C_Read... [21:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:26:28]Read from MH i2c: E2 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 0E 00 [21:26:28]MH_I2C_Read... [21:26:28]Read from MH i2c: E2 0E 00 68 67 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 C8 [21:26:28]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:26:28]wFMCommunicate OK [21:26:28]SAM_PROTO_GetShiftState done [21:26:28]FM_GetShiftState done [21:26:28]req_shift_opened done [21:26:28]requested_item shift.open_date is exist - process it [21:26:28]req_shift_open_date [21:26:28]req_shift_open_date done [21:26:28]produce_requested_data done [21:26:28]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30751,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:26:28]process_action_free close_receipt [21:26:28]json_value_free [21:26:28]json_value_free done [21:26:28]process_json_proto returns [21:26:28]Send response to host [21:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30751,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:26:28]free response buf [21:26:28]execute_script done [21:26:28]execute_script returns [21:26:28]free content buf [21:26:28]Sock 7.Close socket [21:26:28]Sock 7.Thread stoped [21:26:32]OFD Sender: No OFD packet to send [21:26:33]Write to MH i2c: 01 00 00 69 67 D0 [21:26:33]Write i2c OK [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 [21:26:33]MH_I2C_Read... [21:26:33]Read from MH i2c: 01 07 00 69 67 00 02 00 00 00 FF 0F E7 [21:26:33]state=3 [21:26:33]Cover opened [21:26:37]OFD Sender: No OFD packet to send [21:26:38]Write to MH i2c: 01 00 00 6A 67 D1 [21:26:38]Write i2c OK [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: 01 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: 01 07 00 [21:26:38]MH_I2C_Read... [21:26:38]Read from MH i2c: 01 07 00 6A 67 00 02 00 00 00 FF 0F E8 [21:26:38]state=3 [21:26:38]Cover opened [21:26:42]OFD Sender: No OFD packet to send [21:26:43]Write to MH i2c: 01 00 00 6B 67 D2 [21:26:43]Write i2c OK [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: 01 [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: 01 07 00 [21:26:43]MH_I2C_Read... [21:26:43]Read from MH i2c: 01 07 00 6B 67 00 02 00 00 00 FF 0F E9 [21:26:43]state=3 [21:26:43]Cover opened [21:26:47]OFD Sender: No OFD packet to send [21:26:48]Write to MH i2c: 01 00 00 6C 67 D3 [21:26:48]Write i2c OK [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 07 00 [21:26:48]MH_I2C_Read... [21:26:48]Read from MH i2c: 01 07 00 6C 67 00 02 00 00 00 FF 0F EA [21:26:48]state=3 [21:26:48]Cover opened [21:26:52]OFD Sender: No OFD packet to send [21:26:53]Write to MH i2c: 01 00 00 6D 67 D4 [21:26:53]Write i2c OK [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: 01 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: 01 07 00 [21:26:53]MH_I2C_Read... [21:26:53]Read from MH i2c: 01 07 00 6D 67 00 02 00 00 00 FF 0F EB [21:26:53]state=3 [21:26:53]Cover opened [21:26:57]OFD Sender: No OFD packet to send [21:26:58]Write to MH i2c: 01 00 00 6E 67 D5 [21:26:58]Write i2c OK [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: 01 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: 01 07 00 [21:26:58]MH_I2C_Read... [21:26:58]Read from MH i2c: 01 07 00 6E 67 00 02 00 00 00 FF 0F EC [21:26:58]state=3 [21:26:58]Cover opened [21:27:02]OFD Sender: No OFD packet to send [21:27:03]Write to MH i2c: 01 00 00 6F 67 D6 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 07 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: 01 07 00 6F 67 00 02 00 00 00 FF 0F ED [21:27:03]state=3 [21:27:03]Cover opened [21:27:07]OFD Sender: No OFD packet to send [21:27:08]Write to MH i2c: 01 00 00 70 67 D7 [21:27:08]Write i2c OK [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: 01 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: 01 07 00 [21:27:08]MH_I2C_Read... [21:27:08]Read from MH i2c: 01 07 00 70 67 00 02 00 00 00 FF 0F EE [21:27:08]state=3 [21:27:08]Cover opened [21:27:12]OFD Sender: No OFD packet to send [21:27:13]Write to MH i2c: 01 00 00 71 67 D8 [21:27:13]Write i2c OK [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 [21:27:13]MH_I2C_Read... [21:27:13]Read from MH i2c: 01 07 00 71 67 00 02 00 00 00 FF 0F EF [21:27:13]state=3 [21:27:13]Cover opened [21:27:17]OFD Sender: No OFD packet to send [21:27:18]Write to MH i2c: 01 00 00 72 67 D9 [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 07 00 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: 01 07 00 72 67 00 02 00 00 00 FF 0F F0 [21:27:18]state=3 [21:27:18]Cover opened [21:27:22]OFD Sender: No OFD packet to send [21:27:23]Write to MH i2c: 01 00 00 73 67 DA [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: 01 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: 01 07 00 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: 01 07 00 73 67 00 02 00 00 00 FF 0F F1 [21:27:23]state=3 [21:27:23]Cover opened [21:27:27]OFD Sender: No OFD packet to send [21:27:28]Write to MH i2c: 01 00 00 74 67 DB [21:27:28]Write i2c OK [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 07 00 [21:27:28]MH_I2C_Read... [21:27:28]Read from MH i2c: 01 07 00 74 67 00 02 00 00 00 FF 0F F2 [21:27:28]state=3 [21:27:28]Cover opened [21:27:32]OFD Sender: No OFD packet to send [21:27:33]Write to MH i2c: 01 00 00 75 67 DC [21:27:33]Write i2c OK [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 07 00 [21:27:33]MH_I2C_Read... [21:27:33]Read from MH i2c: 01 07 00 75 67 00 02 00 00 00 FF 0F F3 [21:27:33]state=3 [21:27:33]Cover opened [21:27:37]OFD Sender: No OFD packet to send [21:27:38]Write to MH i2c: 01 00 00 76 67 DD [21:27:38]Write i2c OK [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 [21:27:38]MH_I2C_Read... [21:27:38]Read from MH i2c: 01 07 00 76 67 00 02 00 00 00 FF 0F F4 [21:27:38]state=3 [21:27:38]Cover opened [21:27:42]OFD Sender: No OFD packet to send [21:27:43]Write to MH i2c: 01 00 00 77 67 DE [21:27:43]Write i2c OK [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 07 00 [21:27:43]MH_I2C_Read... [21:27:43]Read from MH i2c: 01 07 00 77 67 00 02 00 00 00 FF 0F F5 [21:27:43]state=3 [21:27:43]Cover opened [21:27:47]OFD Sender: No OFD packet to send [21:27:48]Write to MH i2c: 01 00 00 78 67 DF [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 78 67 00 02 00 00 00 FF 0F F6 [21:27:48]state=3 [21:27:48]Cover opened [21:27:52]OFD Sender: No OFD packet to send [21:27:53]Write to MH i2c: 01 00 00 79 67 E0 [21:27:53]Write i2c OK [21:27:53]MH_I2C_Read... [21:27:53]Read from MH i2c: 01 [21:27:53]MH_I2C_Read... [21:27:53]Read from MH i2c: 01 07 00 [21:27:53]MH_I2C_Read... [21:27:53]Read from MH i2c: 01 07 00 79 67 00 02 00 00 00 FF 0F F7 [21:27:53]state=3 [21:27:53]Cover opened [21:27:57]OFD Sender: No OFD packet to send [21:27:58]Write to MH i2c: 01 00 00 7A 67 E1 [21:27:58]Write i2c OK [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 [21:27:58]MH_I2C_Read... [21:27:58]Read from MH i2c: 01 07 00 7A 67 00 02 00 00 00 FF 0F F8 [21:27:58]state=3 [21:27:58]Cover opened [21:28:02]OFD Sender: No OFD packet to send [21:28:03]Write to MH i2c: 01 00 00 7B 67 E2 [21:28:03]Write i2c OK [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 07 00 [21:28:03]MH_I2C_Read... [21:28:03]Read from MH i2c: 01 07 00 7B 67 00 02 00 00 00 FF 0F F9 [21:28:03]state=3 [21:28:03]Cover opened [21:28:07]OFD Sender: No OFD packet to send [21:28:08]Write to MH i2c: 01 00 00 7C 67 E3 [21:28:08]Write i2c OK [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: 01 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: 01 07 00 [21:28:08]MH_I2C_Read... [21:28:08]Read from MH i2c: 01 07 00 7C 67 00 02 00 00 00 FF 0F FA [21:28:08]state=3 [21:28:08]Cover opened [21:28:12]OFD Sender: No OFD packet to send [21:28:13]Write to MH i2c: 01 00 00 7D 67 E4 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 7D 67 00 02 00 00 00 FF 0F FB [21:28:13]state=3 [21:28:13]Cover opened [21:28:17]OFD Sender: No OFD packet to send [21:28:18]Write to MH i2c: 01 00 00 7E 67 E5 [21:28:18]Write i2c OK [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: 01 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: 01 07 00 [21:28:18]MH_I2C_Read... [21:28:18]Read from MH i2c: 01 07 00 7E 67 00 02 00 00 00 FF 0F FC [21:28:18]state=3 [21:28:18]Cover opened [21:28:22]OFD Sender: No OFD packet to send [21:28:23]Write to MH i2c: 01 00 00 7F 67 E6 [21:28:23]Write i2c OK [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 07 00 [21:28:23]MH_I2C_Read... [21:28:23]Read from MH i2c: 01 07 00 7F 67 00 02 00 00 00 FF 0F FD [21:28:23]state=3 [21:28:23]Cover opened [21:28:27]OFD Sender: No OFD packet to send [21:28:28]Write to MH i2c: 01 00 00 80 67 E7 [21:28:28]Write i2c OK [21:28:28]MH_I2C_Read... [21:28:28]Read from MH i2c: 01 [21:28:28]MH_I2C_Read... [21:28:28]Read from MH i2c: 01 07 00 [21:28:28]MH_I2C_Read... [21:28:28]Read from MH i2c: 01 07 00 80 67 00 02 00 00 00 FF 0F FE [21:28:28]state=3 [21:28:28]Cover opened [21:28:32]OFD Sender: No OFD packet to send [21:28:33]Write to MH i2c: 01 00 00 81 67 E8 [21:28:33]Write i2c OK [21:28:33]MH_I2C_Read... [21:28:33]Read from MH i2c: 01 [21:28:33]MH_I2C_Read... [21:28:33]Read from MH i2c: 01 07 00 [21:28:33]MH_I2C_Read... [21:28:33]Read from MH i2c: 01 07 00 81 67 00 02 00 00 00 FF 0F FF [21:28:33]state=3 [21:28:33]Cover opened [21:28:37]OFD Sender: No OFD packet to send [21:28:38]Write to MH i2c: 01 00 00 82 67 E9 [21:28:38]Write i2c OK [21:28:38]MH_I2C_Read... [21:28:38]Read from MH i2c: 01 [21:28:38]MH_I2C_Read... [21:28:38]Read from MH i2c: 01 07 00 [21:28:38]MH_I2C_Read... [21:28:38]Read from MH i2c: 01 07 00 82 67 00 02 00 00 00 FF 0F 00 [21:28:38]state=3 [21:28:38]Cover opened [21:28:42]OFD Sender: No OFD packet to send [21:28:43]Write to MH i2c: 01 00 00 83 67 EA [21:28:43]Write i2c OK [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 07 00 [21:28:43]MH_I2C_Read... [21:28:43]Read from MH i2c: 01 07 00 83 67 00 02 00 00 00 FF 0F 01 [21:28:43]state=3 [21:28:43]Cover opened [21:28:47]OFD Sender: No OFD packet to send [21:28:48]Write to MH i2c: 01 00 00 84 67 EB [21:28:48]Write i2c OK [21:28:48]MH_I2C_Read... [21:28:48]Read from MH i2c: 01 [21:28:48]MH_I2C_Read... [21:28:48]Read from MH i2c: 01 07 00 [21:28:48]MH_I2C_Read... [21:28:48]Read from MH i2c: 01 07 00 84 67 00 02 00 00 00 FF 0F 02 [21:28:48]state=3 [21:28:48]Cover opened [21:28:52]OFD Sender: No OFD packet to send [21:28:53]Write to MH i2c: 01 00 00 85 67 EC [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: 01 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: 01 07 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: 01 07 00 85 67 00 02 00 00 00 FF 0F 03 [21:28:53]state=3 [21:28:53]Cover opened [21:28:57]OFD Sender: No OFD packet to send [21:28:58]Write to MH i2c: 01 00 00 86 67 ED [21:28:58]Write i2c OK [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 [21:28:58]MH_I2C_Read... [21:28:58]Read from MH i2c: 01 07 00 86 67 00 02 00 00 00 FF 0F 04 [21:28:58]state=3 [21:28:58]Cover opened [21:29:02]OFD Sender: No OFD packet to send [21:29:03]Write to MH i2c: 01 00 00 87 67 EE [21:29:03]Write i2c OK [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: 01 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: 01 07 00 [21:29:03]MH_I2C_Read... [21:29:03]Read from MH i2c: 01 07 00 87 67 00 02 00 00 00 FF 0F 05 [21:29:03]state=3 [21:29:03]Cover opened [21:29:07]OFD Sender: No OFD packet to send [21:29:08]Write to MH i2c: 01 00 00 88 67 EF [21:29:08]Write i2c OK [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 07 00 [21:29:08]MH_I2C_Read... [21:29:08]Read from MH i2c: 01 07 00 88 67 00 02 00 00 00 FF 0F 06 [21:29:08]state=3 [21:29:08]Cover opened [21:29:12]OFD Sender: No OFD packet to send [21:29:13]Write to MH i2c: 01 00 00 89 67 F0 [21:29:13]Write i2c OK [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: 01 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: 01 07 00 [21:29:13]MH_I2C_Read... [21:29:13]Read from MH i2c: 01 07 00 89 67 00 02 00 00 00 FF 0F 07 [21:29:13]state=3 [21:29:13]Cover opened [21:29:17]OFD Sender: No OFD packet to send [21:29:18]Write to MH i2c: 01 00 00 8A 67 F1 [21:29:18]Write i2c OK [21:29:18]MH_I2C_Read... [21:29:18]Read from MH i2c: 01 [21:29:18]MH_I2C_Read... [21:29:18]Read from MH i2c: 01 07 00 [21:29:18]MH_I2C_Read... [21:29:18]Read from MH i2c: 01 07 00 8A 67 00 02 00 00 00 FF 0F 08 [21:29:18]state=3 [21:29:18]Cover opened [21:29:22]OFD Sender: No OFD packet to send [21:29:23]Write to MH i2c: 01 00 00 8B 67 F2 [21:29:23]Write i2c OK [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: 01 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: 01 07 00 [21:29:23]MH_I2C_Read... [21:29:23]Read from MH i2c: 01 07 00 8B 67 00 02 00 00 00 FF 0F 09 [21:29:23]state=3 [21:29:23]Cover opened [21:29:27]OFD Sender: No OFD packet to send [21:29:28]Write to MH i2c: 01 00 00 8C 67 F3 [21:29:28]Write i2c OK [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 [21:29:28]MH_I2C_Read... [21:29:28]Read from MH i2c: 01 07 00 8C 67 00 02 00 00 00 FF 0F 0A [21:29:28]state=3 [21:29:28]Cover opened [21:29:32]OFD Sender: No OFD packet to send [21:29:33]Write to MH i2c: 01 00 00 8D 67 F4 [21:29:33]Write i2c OK [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: 01 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: 01 07 00 [21:29:33]MH_I2C_Read... [21:29:33]Read from MH i2c: 01 07 00 8D 67 00 02 00 00 00 FF 0F 0B [21:29:33]state=3 [21:29:33]Cover opened [21:29:37]OFD Sender: No OFD packet to send [21:29:38]Write to MH i2c: 01 00 00 8E 67 F5 [21:29:38]Write i2c OK [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: 01 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: 01 07 00 [21:29:38]MH_I2C_Read... [21:29:38]Read from MH i2c: 01 07 00 8E 67 00 02 00 00 00 FF 0F 0C [21:29:38]state=3 [21:29:38]Cover opened [21:29:42]OFD Sender: No OFD packet to send [21:29:43]Write to MH i2c: 01 00 00 8F 67 F6 [21:29:43]Write i2c OK [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 07 00 [21:29:43]MH_I2C_Read... [21:29:43]Read from MH i2c: 01 07 00 8F 67 00 02 00 00 00 FF 0F 0D [21:29:43]state=3 [21:29:43]Cover opened [21:29:47]OFD Sender: No OFD packet to send [21:29:48]Write to MH i2c: 01 00 00 90 67 F7 [21:29:48]Write i2c OK [21:29:48]MH_I2C_Read... [21:29:48]Read from MH i2c: 01 [21:29:48]MH_I2C_Read... [21:29:48]Read from MH i2c: 01 07 00 [21:29:48]MH_I2C_Read... [21:29:48]Read from MH i2c: 01 07 00 90 67 00 02 00 00 00 FF 0F 0E [21:29:48]state=3 [21:29:48]Cover opened [21:29:52]OFD Sender: No OFD packet to send [21:29:53]Write to MH i2c: 01 00 00 91 67 F8 [21:29:53]Write i2c OK [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 [21:29:53]MH_I2C_Read... [21:29:53]Read from MH i2c: 01 07 00 91 67 00 02 00 00 00 FF 0F 0F [21:29:53]state=3 [21:29:53]Cover opened [21:29:57]OFD Sender: No OFD packet to send [21:29:58]Write to MH i2c: 01 00 00 92 67 F9 [21:29:58]Write i2c OK [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: 01 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: 01 07 00 [21:29:58]MH_I2C_Read... [21:29:58]Read from MH i2c: 01 07 00 92 67 00 02 00 00 00 FF 0F 10 [21:29:58]state=3 [21:29:58]Cover opened [21:30:02]OFD Sender: No OFD packet to send [21:30:03]Write to MH i2c: 01 00 00 93 67 FA [21:30:03]Write i2c OK [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 [21:30:03]MH_I2C_Read... [21:30:03]Read from MH i2c: 01 07 00 93 67 00 02 00 00 00 FF 0F 11 [21:30:03]state=3 [21:30:03]Cover opened [21:30:07]OFD Sender: No OFD packet to send [21:30:08]Write to MH i2c: 01 00 00 94 67 FB [21:30:08]Write i2c OK [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: 01 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: 01 07 00 [21:30:08]MH_I2C_Read... [21:30:08]Read from MH i2c: 01 07 00 94 67 00 02 00 00 00 FF 0F 12 [21:30:08]state=3 [21:30:08]Cover opened [21:30:12]OFD Sender: No OFD packet to send [21:30:13]Write to MH i2c: 01 00 00 95 67 FC [21:30:13]Write i2c OK [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: 01 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: 01 07 00 [21:30:13]MH_I2C_Read... [21:30:13]Read from MH i2c: 01 07 00 95 67 00 02 00 00 00 FF 0F 13 [21:30:13]state=3 [21:30:13]Cover opened [21:30:17]OFD Sender: No OFD packet to send [21:30:18]Write to MH i2c: 01 00 00 96 67 FD [21:30:18]Write i2c OK [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 07 00 [21:30:18]MH_I2C_Read... [21:30:18]Read from MH i2c: 01 07 00 96 67 00 02 00 00 00 FF 0F 14 [21:30:18]state=3 [21:30:18]Cover opened [21:30:22]OFD Sender: No OFD packet to send [21:30:23]Write to MH i2c: 01 00 00 97 67 FE [21:30:23]Write i2c OK [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: 01 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: 01 07 00 [21:30:23]MH_I2C_Read... [21:30:23]Read from MH i2c: 01 07 00 97 67 00 02 00 00 00 FF 0F 15 [21:30:23]state=3 [21:30:23]Cover opened [21:30:27]OFD Sender: No OFD packet to send [21:30:28]Write to MH i2c: 01 00 00 98 67 FF [21:30:28]Write i2c OK [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: 01 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: 01 07 00 [21:30:28]MH_I2C_Read... [21:30:28]Read from MH i2c: 01 07 00 98 67 00 02 00 00 00 FF 0F 16 [21:30:28]state=3 [21:30:28]Cover opened [21:30:32]OFD Sender: No OFD packet to send [21:30:33]Write to MH i2c: 01 00 00 99 67 00 [21:30:33]Write i2c OK [21:30:33]MH_I2C_Read... [21:30:33]Read from MH i2c: 01 [21:30:33]MH_I2C_Read... [21:30:33]Read from MH i2c: 01 07 00 [21:30:33]MH_I2C_Read... [21:30:33]Read from MH i2c: 01 07 00 99 67 00 02 00 00 00 FF 0F 17 [21:30:33]state=3 [21:30:33]Cover opened [21:30:37]OFD Sender: No OFD packet to send [21:30:38]Write to MH i2c: 01 00 00 9A 67 01 [21:30:38]Write i2c OK [21:30:38]MH_I2C_Read... [21:30:38]Read from MH i2c: 01 [21:30:38]MH_I2C_Read... [21:30:38]Read from MH i2c: 01 07 00 [21:30:38]MH_I2C_Read... [21:30:38]Read from MH i2c: 01 07 00 9A 67 00 02 00 00 00 FF 0F 18 [21:30:38]state=3 [21:30:38]Cover opened [21:30:42]OFD Sender: No OFD packet to send [21:30:43]Write to MH i2c: 01 00 00 9B 67 02 [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 07 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: 01 07 00 9B 67 00 02 00 00 00 FF 0F 19 [21:30:43]state=3 [21:30:43]Cover opened [21:30:47]OFD Sender: No OFD packet to send [21:30:48]Write to MH i2c: 01 00 00 9C 67 03 [21:30:48]Write i2c OK [21:30:48]MH_I2C_Read... [21:30:48]Read from MH i2c: 01 [21:30:48]MH_I2C_Read... [21:30:48]Read from MH i2c: 01 07 00 [21:30:48]MH_I2C_Read... [21:30:48]Read from MH i2c: 01 07 00 9C 67 00 02 00 00 00 FF 0F 1A [21:30:48]state=3 [21:30:48]Cover opened [21:30:52]OFD Sender: No OFD packet to send [21:30:53]Write to MH i2c: 01 00 00 9D 67 04 [21:30:53]Write i2c OK [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 [21:30:53]MH_I2C_Read... [21:30:53]Read from MH i2c: 01 07 00 9D 67 00 02 00 00 00 FF 0F 1B [21:30:53]state=3 [21:30:53]Cover opened [21:30:57]OFD Sender: No OFD packet to send [21:30:58]Write to MH i2c: 01 00 00 9E 67 05 [21:30:58]Write i2c OK [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: 01 [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: 01 07 00 [21:30:58]MH_I2C_Read... [21:30:58]Read from MH i2c: 01 07 00 9E 67 00 02 00 00 00 FF 0F 1C [21:30:58]state=3 [21:30:58]Cover opened [21:31:02]OFD Sender: No OFD packet to send [21:31:03]Write to MH i2c: 01 00 00 9F 67 06 [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 07 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 07 00 9F 67 00 02 00 00 00 FF 0F 1D [21:31:03]state=3 [21:31:03]Cover opened [21:31:07]OFD Sender: No OFD packet to send [21:31:08]Write to MH i2c: 01 00 00 A0 67 07 [21:31:08]Write i2c OK [21:31:08]MH_I2C_Read... [21:31:08]Read from MH i2c: 01 [21:31:08]MH_I2C_Read... [21:31:08]Read from MH i2c: 01 07 00 [21:31:08]MH_I2C_Read... [21:31:08]Read from MH i2c: 01 07 00 A0 67 00 02 00 00 00 FF 0F 1E [21:31:08]state=3 [21:31:08]Cover opened [21:31:12]OFD Sender: No OFD packet to send [21:31:13]Write to MH i2c: 01 00 00 A1 67 08 [21:31:13]Write i2c OK [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 [21:31:13]MH_I2C_Read... [21:31:13]Read from MH i2c: 01 07 00 A1 67 00 02 00 00 00 FF 0F 1F [21:31:13]state=3 [21:31:13]Cover opened [21:31:18]OFD Sender: No OFD packet to send [21:31:18]Write to MH i2c: 01 00 00 A2 67 09 [21:31:18]Write i2c OK [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 [21:31:18]MH_I2C_Read... [21:31:18]Read from MH i2c: 01 07 00 A2 67 00 02 00 00 00 FF 0F 20 [21:31:18]state=3 [21:31:18]Cover opened [21:31:23]OFD Sender: No OFD packet to send [21:31:23]Write to MH i2c: 01 00 00 A3 67 0A [21:31:23]Write i2c OK [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 [21:31:23]MH_I2C_Read... [21:31:23]Read from MH i2c: 01 07 00 A3 67 00 02 00 00 00 FF 0F 21 [21:31:23]state=3 [21:31:23]Cover opened [21:31:28]OFD Sender: No OFD packet to send [21:31:28]Write to MH i2c: 01 00 00 A4 67 0B [21:31:28]Write i2c OK [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: 01 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: 01 07 00 [21:31:28]MH_I2C_Read... [21:31:28]Read from MH i2c: 01 07 00 A4 67 00 02 00 00 00 FF 0F 22 [21:31:28]state=3 [21:31:28]Cover opened [21:31:33]OFD Sender: No OFD packet to send [21:31:33]Write to MH i2c: 01 00 00 A5 67 0C [21:31:33]Write i2c OK [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 [21:31:33]MH_I2C_Read... [21:31:33]Read from MH i2c: 01 07 00 A5 67 00 02 00 00 00 FF 0F 23 [21:31:33]state=3 [21:31:33]Cover opened [21:31:38]OFD Sender: No OFD packet to send [21:31:38]Write to MH i2c: 01 00 00 A6 67 0D [21:31:38]Write i2c OK [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: 01 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: 01 07 00 [21:31:38]MH_I2C_Read... [21:31:38]Read from MH i2c: 01 07 00 A6 67 00 02 00 00 00 FF 0F 24 [21:31:38]state=3 [21:31:38]Cover opened [21:31:43]OFD Sender: No OFD packet to send [21:31:43]Write to MH i2c: 01 00 00 A7 67 0E [21:31:43]Write i2c OK [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 07 00 [21:31:43]MH_I2C_Read... [21:31:43]Read from MH i2c: 01 07 00 A7 67 00 02 00 00 00 FF 0F 25 [21:31:43]state=3 [21:31:43]Cover opened [21:31:48]OFD Sender: No OFD packet to send [21:31:48]Write to MH i2c: 01 00 00 A8 67 0F [21:31:48]Write i2c OK [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 [21:31:48]MH_I2C_Read... [21:31:48]Read from MH i2c: 01 07 00 A8 67 00 02 00 00 00 FF 0F 26 [21:31:48]state=3 [21:31:48]Cover opened [21:31:53]OFD Sender: No OFD packet to send [21:31:53]Write to MH i2c: 01 00 00 A9 67 10 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 07 00 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: 01 07 00 A9 67 00 02 00 00 00 FF 0F 27 [21:31:53]state=3 [21:31:53]Cover opened [21:31:58]OFD Sender: No OFD packet to send [21:31:58]Write to MH i2c: 01 00 00 AA 67 11 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: 01 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: 01 07 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: 01 07 00 AA 67 00 02 00 00 00 FF 0F 28 [21:31:58]state=3 [21:31:58]Cover opened [21:32:03]OFD Sender: No OFD packet to send [21:32:03]Write to MH i2c: 01 00 00 AB 67 12 [21:32:03]Write i2c OK [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: 01 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: 01 07 00 [21:32:03]MH_I2C_Read... [21:32:03]Read from MH i2c: 01 07 00 AB 67 00 02 00 00 00 FF 0F 29 [21:32:03]state=3 [21:32:03]Cover opened [21:32:08]OFD Sender: No OFD packet to send [21:32:08]Write to MH i2c: 01 00 00 AC 67 13 [21:32:08]Write i2c OK [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 07 00 [21:32:08]MH_I2C_Read... [21:32:08]Read from MH i2c: 01 07 00 AC 67 00 02 00 00 00 FF 0F 2A [21:32:08]state=3 [21:32:08]Cover opened [21:32:13]OFD Sender: No OFD packet to send [21:32:13]Write to MH i2c: 01 00 00 AD 67 14 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 AD 67 00 02 00 00 00 FF 0F 2B [21:32:13]state=3 [21:32:13]Cover opened [21:32:18]OFD Sender: No OFD packet to send [21:32:18]Write to MH i2c: 01 00 00 AE 67 15 [21:32:18]Write i2c OK [21:32:18]MH_I2C_Read... [21:32:18]Read from MH i2c: 01 [21:32:18]MH_I2C_Read... [21:32:18]Read from MH i2c: 01 07 00 [21:32:18]MH_I2C_Read... [21:32:18]Read from MH i2c: 01 07 00 AE 67 00 02 00 00 00 FF 0F 2C [21:32:18]state=3 [21:32:18]Cover opened [21:32:23]OFD Sender: No OFD packet to send [21:32:23]Write to MH i2c: 01 00 00 AF 67 16 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 07 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: 01 07 00 AF 67 00 02 00 00 00 FF 0F 2D [21:32:23]state=3 [21:32:23]Cover opened [21:32:28]OFD Sender: No OFD packet to send [21:32:28]Write to MH i2c: 01 00 00 B0 67 17 [21:32:28]Write i2c OK [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 [21:32:28]MH_I2C_Read... [21:32:28]Read from MH i2c: 01 07 00 B0 67 00 02 00 00 00 FF 0F 2E [21:32:28]state=3 [21:32:28]Cover opened [21:32:33]OFD Sender: No OFD packet to send [21:32:33]Write to MH i2c: 01 00 00 B1 67 18 [21:32:33]Write i2c OK [21:32:33]MH_I2C_Read... [21:32:33]Read from MH i2c: 01 [21:32:33]MH_I2C_Read... [21:32:33]Read from MH i2c: 01 07 00 [21:32:33]MH_I2C_Read... [21:32:33]Read from MH i2c: 01 07 00 B1 67 00 02 00 00 00 FF 0F 2F [21:32:33]state=3 [21:32:33]Cover opened [21:32:38]OFD Sender: No OFD packet to send [21:32:38]Write to MH i2c: 01 00 00 B2 67 19 [21:32:38]Write i2c OK [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: 01 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: 01 07 00 [21:32:38]MH_I2C_Read... [21:32:38]Read from MH i2c: 01 07 00 B2 67 00 02 00 00 00 FF 0F 30 [21:32:38]state=3 [21:32:38]Cover opened [21:32:43]OFD Sender: No OFD packet to send [21:32:43]Write to MH i2c: 01 00 00 B3 67 1A [21:32:43]Write i2c OK [21:32:43]MH_I2C_Read... [21:32:43]Read from MH i2c: 01 [21:32:43]MH_I2C_Read... [21:32:43]Read from MH i2c: 01 07 00 [21:32:43]MH_I2C_Read... [21:32:43]Read from MH i2c: 01 07 00 B3 67 00 02 00 00 00 FF 0F 31 [21:32:43]state=3 [21:32:43]Cover opened [21:32:48]OFD Sender: No OFD packet to send [21:32:48]Write to MH i2c: 01 00 00 B4 67 1B [21:32:48]Write i2c OK [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: 01 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: 01 07 00 [21:32:48]MH_I2C_Read... [21:32:48]Read from MH i2c: 01 07 00 B4 67 00 02 00 00 00 FF 0F 32 [21:32:48]state=3 [21:32:48]Cover opened [21:32:53]OFD Sender: No OFD packet to send [21:32:53]Write to MH i2c: 01 00 00 B5 67 1C [21:32:53]Write i2c OK [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 07 00 [21:32:53]MH_I2C_Read... [21:32:53]Read from MH i2c: 01 07 00 B5 67 00 02 00 00 00 FF 0F 33 [21:32:53]state=3 [21:32:53]Cover opened [21:32:58]OFD Sender: No OFD packet to send [21:32:58]Write to MH i2c: 01 00 00 B6 67 1D [21:32:58]Write i2c OK [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 07 00 [21:32:58]MH_I2C_Read... [21:32:58]Read from MH i2c: 01 07 00 B6 67 00 02 00 00 00 FF 0F 34 [21:32:58]state=3 [21:32:58]Cover opened [21:33:03]OFD Sender: No OFD packet to send [21:33:03]Write to MH i2c: 01 00 00 B7 67 1E [21:33:03]Write i2c OK [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: 01 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: 01 07 00 [21:33:03]MH_I2C_Read... [21:33:03]Read from MH i2c: 01 07 00 B7 67 00 02 00 00 00 FF 0F 35 [21:33:03]state=3 [21:33:03]Cover opened [21:33:08]OFD Sender: No OFD packet to send [21:33:08]Write to MH i2c: 01 00 00 B8 67 1F [21:33:08]Write i2c OK [21:33:08]MH_I2C_Read... [21:33:08]Read from MH i2c: 01 [21:33:08]MH_I2C_Read... [21:33:08]Read from MH i2c: 01 07 00 [21:33:08]MH_I2C_Read... [21:33:08]Read from MH i2c: 01 07 00 B8 67 00 02 00 00 00 FF 0F 36 [21:33:08]state=3 [21:33:08]Cover opened [21:33:13]OFD Sender: No OFD packet to send [21:33:13]Write to MH i2c: 01 00 00 B9 67 20 [21:33:13]Write i2c OK [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 07 00 [21:33:13]MH_I2C_Read... [21:33:13]Read from MH i2c: 01 07 00 B9 67 00 02 00 00 00 FF 0F 37 [21:33:13]state=3 [21:33:13]Cover opened [21:33:18]OFD Sender: No OFD packet to send [21:33:18]Write to MH i2c: 01 00 00 BA 67 21 [21:33:18]Write i2c OK [21:33:18]MH_I2C_Read... [21:33:18]Read from MH i2c: 01 [21:33:18]MH_I2C_Read... [21:33:18]Read from MH i2c: 01 07 00 [21:33:18]MH_I2C_Read... [21:33:18]Read from MH i2c: 01 07 00 BA 67 00 02 00 00 00 FF 0F 38 [21:33:18]state=3 [21:33:18]Cover opened [21:33:23]OFD Sender: No OFD packet to send [21:33:23]Write to MH i2c: 01 00 00 BB 67 22 [21:33:23]Write i2c OK [21:33:23]MH_I2C_Read... [21:33:23]Read from MH i2c: 01 [21:33:23]MH_I2C_Read... [21:33:23]Read from MH i2c: 01 07 00 [21:33:23]MH_I2C_Read... [21:33:23]Read from MH i2c: 01 07 00 BB 67 00 02 00 00 00 FF 0F 39 [21:33:23]state=3 [21:33:23]Cover opened [21:33:28]OFD Sender: No OFD packet to send [21:33:28]Write to MH i2c: 01 00 00 BC 67 23 [21:33:28]Write i2c OK [21:33:28]MH_I2C_Read... [21:33:28]Read from MH i2c: 01 [21:33:28]MH_I2C_Read... [21:33:28]Read from MH i2c: 01 07 00 [21:33:28]MH_I2C_Read... [21:33:28]Read from MH i2c: 01 07 00 BC 67 00 02 00 00 00 FF 0F 3A [21:33:28]state=3 [21:33:28]Cover opened [21:33:33]OFD Sender: No OFD packet to send [21:33:33]Write to MH i2c: 01 00 00 BD 67 24 [21:33:33]Write i2c OK [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: 01 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: 01 07 00 [21:33:33]MH_I2C_Read... [21:33:33]Read from MH i2c: 01 07 00 BD 67 00 02 00 00 00 FF 0F 3B [21:33:33]state=3 [21:33:33]Cover opened [21:33:38]OFD Sender: No OFD packet to send [21:33:38]Write to MH i2c: 01 00 00 BE 67 25 [21:33:38]Write i2c OK [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 07 00 [21:33:38]MH_I2C_Read... [21:33:38]Read from MH i2c: 01 07 00 BE 67 00 02 00 00 00 FF 0F 3C [21:33:38]state=3 [21:33:38]Cover opened [21:33:43]OFD Sender: No OFD packet to send [21:33:44]Write to MH i2c: 01 00 00 BF 67 26 [21:33:44]Write i2c OK [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: 01 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: 01 07 00 [21:33:44]MH_I2C_Read... [21:33:44]Read from MH i2c: 01 07 00 BF 67 00 02 00 00 00 FF 0F 3D [21:33:44]state=3 [21:33:44]Cover opened [21:33:48]OFD Sender: No OFD packet to send [21:33:49]Write to MH i2c: 01 00 00 C0 67 27 [21:33:49]Write i2c OK [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 [21:33:49]MH_I2C_Read... [21:33:49]Read from MH i2c: 01 07 00 C0 67 00 02 00 00 00 FF 0F 3E [21:33:49]state=3 [21:33:49]Cover opened [21:33:53]OFD Sender: No OFD packet to send [21:33:54]Write to MH i2c: 01 00 00 C1 67 28 [21:33:54]Write i2c OK [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 07 00 [21:33:54]MH_I2C_Read... [21:33:54]Read from MH i2c: 01 07 00 C1 67 00 02 00 00 00 FF 0F 3F [21:33:54]state=3 [21:33:54]Cover opened [21:33:58]OFD Sender: No OFD packet to send [21:33:59]Write to MH i2c: 01 00 00 C2 67 29 [21:33:59]Write i2c OK [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: 01 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: 01 07 00 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: 01 07 00 C2 67 00 02 00 00 00 FF 0F 40 [21:33:59]state=3 [21:33:59]Cover opened [21:34:03]OFD Sender: No OFD packet to send [21:34:04]Write to MH i2c: 01 00 00 C3 67 2A [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 07 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 07 00 C3 67 00 02 00 00 00 FF 0F 41 [21:34:04]state=3 [21:34:04]Cover opened [21:34:08]OFD Sender: No OFD packet to send [21:34:09]Write to MH i2c: 01 00 00 C4 67 2B [21:34:09]Write i2c OK [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: 01 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: 01 07 00 [21:34:09]MH_I2C_Read... [21:34:09]Read from MH i2c: 01 07 00 C4 67 00 02 00 00 00 FF 0F 42 [21:34:09]state=3 [21:34:09]Cover opened [21:34:12]accept exits with 9 [21:34:12]New connection [21:34:12]New thread 3067346276 created [21:34:12]Thread 3067489636 joined [21:34:12]Waiting for new connection... [21:34:12] Sock 9.Parse request [21:34:12]Sock 9.Check first char [21:34:12]Sock 9.First char is OK [21:34:12]request: POST /json_proto HTTP/1.0 [21:34:12]Method: POST [21:34:12]URL: /json_proto [21:34:12]Method is POST - this is cgi request [21:34:12]url: /json_proto [21:34:12]query_string will be loaded in cgi processing [21:34:12]execute_cgi json_proto POST (null) [21:34:12]execute_cgi path=json_proto method=POST [21:34:12]POST find Content-Length [21:34:12]Host: 172.17.51.3:8080 [21:34:12]Content-Length: 674 [21:34:12]Content-Type: application/json [21:34:12] [21:34:12]POST finish read [21:34:12]Found Content-Length = 674 [21:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:12]execute_script... [21:34:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:12]POST & json_proto [21:34:12]process_json_proto [21:34:12]json parsed OK: [21:34:12]protocol is kg_v1.0 [21:34:12]action value=close_receipt [21:34:12]process_action close_receipt [21:34:12]cmd_close_receipt [21:34:12]MH_GetDate [21:34:12]Write to MH i2c: F0 00 00 C5 67 1B [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: F0 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: F0 09 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: F0 09 00 C5 67 00 DB C8 16 67 04 C1 95 66 04 [21:34:12]GetLastDocTimeStamp 1729545991 [21:34:12]current date 1729546459 [21:34:12]FM_GetShiftState [21:34:12]SAM_PROTO_GetShiftState [21:34:12]wFMCommunicate request_size=4 [21:34:12]MH_SAM_APDU [21:34:12]CAPDU: 80 13 01 00 [21:34:12]Write to MH i2c: E2 08 00 C6 67 80 13 01 00 00 00 00 00 AA [21:34:12]Write i2c OK [21:34:12]MH_I2C_Read... [21:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:12]Read from MH i2c: E2 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 0E 00 [21:34:12]MH_I2C_Read... [21:34:12]Read from MH i2c: E2 0E 00 C6 67 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 26 [21:34:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:34:12]wFMCommunicate OK [21:34:12]SAM_PROTO_GetShiftState done [21:34:12]FM_GetShiftState done [21:34:12]opened in 1729471058 [21:34:12]opened+sec_in_day 1729557458 [21:34:12]quantity*price = 70027 [21:34:12]sum+1 = 70029 [21:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 249 21.10.2024 21:34 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30752 ФПД: 90624796371455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213419&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30752&fm=90624796371455&tin=02508201610067®Number=0000000000186857&sum=70000 [21:34:13]StoreToDocumentArchive [21:34:13]shift 115 fd 30752 [21:34:13]save to /storage/0115/doc_00030752 [21:34:13]save last doc name /storage/0115/doc_00030752 to /storage/kkm_last_doc_name [21:34:13]save OK [21:34:13]Clear old archive folders... [21:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:34:13]tlvbuf is 01F55B20 [21:34:13]SAM_PROTO_ClearQueue [21:34:13]wFMCommunicate request_size=4 [21:34:13]MH_SAM_APDU [21:34:13]CAPDU: 80 09 00 00 [21:34:13]Write to MH i2c: E2 08 00 D3 67 80 09 00 00 00 00 00 00 AC [21:34:13]Write i2c OK [21:34:13]MH_I2C_Read... [21:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:13]Read from MH i2c: E2 [21:34:13]MH_I2C_Read... [21:34:13]Read from MH i2c: E2 03 00 [21:34:13]MH_I2C_Read... [21:34:13]Read from MH i2c: E2 03 00 D3 67 00 90 00 AE [21:34:13]RAPDU: 90 00 [21:34:13]wFMCommunicate OK [21:34:13]SAM_PROTO_ClearQueue done [21:34:13]KKMCreateOFDPacket [21:34:13]OFDProtocolAddRootSTLVToBuf [21:34:13]FM_MakeSignedData [21:34:13]FM_MakeSignedData [21:34:13]SAM_PROTO_SignData [21:34:13]wFMCommunicate request_size=4 [21:34:13]MH_SAM_APDU [21:34:13]CAPDU: 80 0D 01 02 [21:34:13]Write to MH i2c: E2 08 00 D4 67 80 0D 01 02 00 00 00 00 B4 [21:34:13]Write i2c OK [21:34:13]MH_I2C_Read... [21:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:13]Read from MH i2c: E2 [21:34:13]MH_I2C_Read... [21:34:13]Read from MH i2c: E2 03 00 [21:34:13]MH_I2C_Read... [21:34:13]Read from MH i2c: E2 03 00 D4 67 00 90 00 AF [21:34:13]RAPDU: 90 00 [21:34:13]wFMCommunicate OK [21:34:13]wFMCommunicate request_size=255 [21:34:13]MH_SAM_APDU [21:34:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 DB C8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 78 00 00 35 04 06 00 52 6C 3A CB [21:34:14]Write to MH i2c: E2 02 01 D5 67 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 DB C8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 78 00 00 35 04 06 00 52 6C 3A CB 00 00 1E [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 [21:34:14]MH_I2C_Read... [21:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:14]Read from MH i2c: E2 03 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 03 00 D5 67 00 90 00 B0 [21:34:14]RAPDU: Write to MH i2c: 90 01 00 00 [21:34:14]00 wFMCommunicate OK [21:34:14]D6 wFMCommunicate request_size=7 [21:34:14]67 MH_SAM_APDU [21:34:14]3D CAPDU: [21:34:14]80 0D 02 02 02 A9 FF [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 07 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 07 00 D6 67 00 02 00 00 00 FF 0F 54 [21:34:14]state=3 [21:34:14]Cover opened [21:34:14]Write to MH i2c: E2 0A 00 D7 67 80 0D 02 02 02 00 A9 FF 00 00 64 [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:14]Read from MH i2c: E2 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 03 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 03 00 D7 67 00 90 00 B2 [21:34:14]RAPDU: 90 00 [21:34:14]wFMCommunicate OK [21:34:14]wFMCommunicate request_size=4 [21:34:14]MH_SAM_APDU [21:34:14]CAPDU: 80 0D 03 02 [21:34:14]Write to MH i2c: E2 08 00 D8 67 80 0D 03 02 00 00 00 00 BA [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:14]Read from MH i2c: E2 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 0B 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 0B 00 D8 67 00 F3 81 32 F0 19 FB 50 44 90 00 F9 [21:34:14]RAPDU: F3 81 32 F0 19 FB 50 44 90 00 [21:34:14]wFMCommunicate OK [21:34:14]SAM_PROTO_SignData done [21:34:14]FM_MakeSignedData done [21:34:14]CreateOFDProtocolMessage [21:34:14]wFMCommunicate request_size=4 [21:34:14]MH_SAM_APDU [21:34:14]CAPDU: 80 11 00 00 [21:34:14]Write to MH i2c: E2 08 00 D9 67 80 11 00 00 00 00 00 00 BA [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:14]Read from MH i2c: E2 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 17 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: E2 17 00 D9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 08 [21:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:34:14]wFMCommunicate OK [21:34:14]CreateOFDProtocolMessage done [21:34:14]OFDSenderStorePacket 30752 [21:34:14]StoreOFDPacket docnum=30752 [21:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D3 46 04 01 79 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 DB C8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 78 00 00 35 04 06 00 52 6C 3A CB A9 FF F3 81 32 F0 19 FB 50 44 [21:34:14]CheckFolder [21:34:14]dirname=/storage/ofd_packets [21:34:14]CheckFolder done [21:34:14]ProducePacketName [21:34:14]name=ofd_packets/00030752 [21:34:14]NVStorageSaveData ofd_packets/00030752 [21:34:14]File name is /storage/ofd_packets/00030752 [21:34:14]Write 298 bytes [21:34:14]NVStorageSaveData done [21:34:14]OFDSenderStorePacket done [21:34:14]KKMCreateOFDPacket done [21:34:14]NVStorageSaveData kkm_last_timestamp [21:34:14]File name is /storage/kkm_last_timestamp [21:34:14]Write 4 bytes [21:34:14]NVStorageSaveData done [21:34:14]ExternCall_PrintAddStr [21:34:14]wPrintStart [21:34:14]Write to MH i2c: 01 00 00 DA 67 41 [21:34:14]Write i2c OK [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 07 00 [21:34:14]MH_I2C_Read... [21:34:14]Read from MH i2c: 01 07 00 DA 67 00 02 00 00 00 FF 0F 58 [21:34:14]RasterBufferAndPrint [21:34:14]line Счет N : (1)343168 [21:34:14]line ИНН: 02508201610067 [21:34:14]line Контрольно-Кассовый Чек [21:34:14]line ПРОДАЖА [21:34:14]line ТРК (МРК, ГНК) : 64 [21:34:14]line Товар: 2710194210 [21:34:14]line ДТ-К-2 [21:34:14]line 9.190 * 76.20 [21:34:14]line = 700.28 [21:34:14]line НДС 12% НСП 1% [21:34:14]line > о реализуемом товаре [21:34:14]line ОКРУГЛЕНИЕ: -0.28 [21:34:14]line ИТОГО: 700.00 [21:34:14]line Внесено: 700.00 [21:34:14]line СДАЧА: 0.00 [21:34:14]line НСП 1% : 6.20 [21:34:14]line НДС 12% : 74.37 [21:34:14]line Наличными: 700.00 [21:34:14]line Безнал.: 0.00 [21:34:14]line Место: АЗС № 78 "Партнер Нефть" [21:34:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:34:14]line СНО: Общий режим [21:34:14]line Чек 249 21.10.2024 21:34 [21:34:14]line Смена: 115 ФФД: 1.0 [21:34:14]line ЗНМ: 0300000137 [21:34:14]line РНМ: 0000000000186857 [21:34:14]line Версия ККМ: v1.0 [21:34:14]line ФМ: 0000000002094219 [21:34:14]line ФД: 30752 [21:34:14]line ФПД: 90624796371455 [21:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213419&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30752&fm=90624796371455&tin=02508201610067®Number=0000000000186857&sum=70000 [21:34:14]written 0, free lines is 4095 [21:34:14]Error from MH - 05 [21:34:14]process_action_free close_receipt [21:34:14]json_value_free [21:34:14]json_value_free done [21:34:14]process_json_proto returns [21:34:14]Send response to host [21:34:14]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [21:34:14]free response buf [21:34:14]execute_script done [21:34:14]execute_script returns [21:34:14]free content buf [21:34:14]Sock 9.Close socket [21:34:14]Sock 9.Thread stoped [21:34:14]OFD Sender: Processing packet 30752 [packets to send 10, broken 9] [21:34:14]ProducePacketName [21:34:14]name=ofd_packets/00030752 [21:34:14]OFD Sender: To server: pG, [21:34:14]CommunicateWithHost lk.salyk.kg:30040 [21:34:14]ConnectInit lk.salyk.kg [21:34:14]Connected sock=9 [21:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0C 01 00 00 D3 46 04 01 79 B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 DB C8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 20 78 00 00 35 04 06 00 52 6C 3A CB A9 FF F3 81 32 F0 19 FB 50 44 [21:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3A 87 47 00 8D 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 32 30 39 34 32 31 39 10 04 04 00 20 78 00 00 F4 03 04 00 5B 73 16 67 B6 04 01 00 00 1F C3 46 19 55 F3 B1 EA [21:34:15]CommunicateWithHost err = 0 [21:34:15]CheckOFDResponse [21:34:15]1017 (14) - 77093643461234 [21:34:15]1041 (16) - 0000000002094219 [21:34:15]1040 (4) - 30752 [21:34:15]1012 (4) - 21.10.2024 15:29 [21:34:15]1206 (1) - 0 [21:34:15]OFD Sender: Remove packet 30752 [21:34:15]ProducePacketName [21:34:15]name=ofd_packets/00030752 [21:34:15]NVStorageDeleteData [21:34:15]OFD Sender: No OFD packet to send [21:34:19]Write to MH i2c: 01 00 00 DD 67 44 [21:34:19]Write i2c OK [21:34:19]MH_I2C_Read... [21:34:19]Read from MH i2c: 01 [21:34:19]MH_I2C_Read... [21:34:19]Read from MH i2c: 01 07 00 [21:34:19]MH_I2C_Read... [21:34:19]Read from MH i2c: 01 07 00 DD 67 00 02 00 00 00 FF 0F 5B [21:34:19]state=3 [21:34:19]Cover opened [21:34:20]OFD Sender: No OFD packet to send [21:34:24]Write to MH i2c: 01 00 00 DE 67 45 [21:34:24]Write i2c OK [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 07 00 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 07 00 DE 67 00 02 00 00 00 FF 0F 5C [21:34:24]state=3 [21:34:24]Cover opened [21:34:25]OFD Sender: No OFD packet to send [21:34:29]Write to MH i2c: 01 00 00 DF 67 46 [21:34:29]Write i2c OK [21:34:29]MH_I2C_Read... [21:34:29]Read from MH i2c: 01 [21:34:29]MH_I2C_Read... [21:34:29]Read from MH i2c: 01 07 00 [21:34:29]MH_I2C_Read... [21:34:29]Read from MH i2c: 01 07 00 DF 67 00 02 00 00 00 FF 0F 5D [21:34:29]state=3 [21:34:29]Cover opened [21:34:30]OFD Sender: No OFD packet to send [21:34:34]Write to MH i2c: 01 00 00 E0 67 47 [21:34:34]Write i2c OK [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 [21:34:34]MH_I2C_Read... [21:34:34]Read from MH i2c: 01 07 00 E0 67 00 02 00 00 00 FF 0F 5E [21:34:34]state=3 [21:34:34]Cover opened [21:34:35]OFD Sender: No OFD packet to send [21:34:39]Write to MH i2c: 01 00 00 E1 67 48 [21:34:39]Write i2c OK [21:34:39]MH_I2C_Read... [21:34:39]Read from MH i2c: 01 [21:34:39]MH_I2C_Read... [21:34:39]Read from MH i2c: 01 07 00 [21:34:39]MH_I2C_Read... [21:34:39]Read from MH i2c: 01 07 00 E1 67 00 02 00 00 00 FF 0F 5F [21:34:39]state=3 [21:34:39]Cover opened [21:34:40]OFD Sender: No OFD packet to send [21:34:44]Write to MH i2c: 01 00 00 E2 67 49 [21:34:44]Write i2c OK [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: 01 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: 01 07 00 [21:34:44]MH_I2C_Read... [21:34:44]Read from MH i2c: 01 07 00 E2 67 00 02 00 00 00 FF 0F 60 [21:34:44]state=3 [21:34:44]Cover opened [21:34:45]OFD Sender: No OFD packet to send [21:34:49]Write to MH i2c: 01 00 00 E3 67 4A [21:34:49]Write i2c OK [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: 01 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: 01 07 00 [21:34:49]MH_I2C_Read... [21:34:49]Read from MH i2c: 01 07 00 E3 67 00 02 00 00 00 FF 0F 61 [21:34:49]state=3 [21:34:49]Cover opened [21:34:50]OFD Sender: No OFD packet to send [21:34:54]Write to MH i2c: 01 00 00 E4 67 4B [21:34:54]Write i2c OK [21:34:54]MH_I2C_Read... [21:34:54]Read from MH i2c: 01 [21:34:54]MH_I2C_Read... [21:34:54]Read from MH i2c: 01 07 00 [21:34:54]MH_I2C_Read... [21:34:54]Read from MH i2c: 01 07 00 E4 67 00 02 00 00 00 FF 0F 62 [21:34:54]state=3 [21:34:54]Cover opened [21:34:55]OFD Sender: No OFD packet to send [21:34:59]Write to MH i2c: 01 00 00 E5 67 4C [21:34:59]Write i2c OK [21:34:59]MH_I2C_Read... [21:34:59]Read from MH i2c: 01 [21:34:59]MH_I2C_Read... [21:34:59]Read from MH i2c: 01 07 00 [21:34:59]MH_I2C_Read... [21:34:59]Read from MH i2c: 01 07 00 E5 67 00 02 00 00 00 FF 0F 63 [21:34:59]state=3 [21:34:59]Cover opened [21:35:00]OFD Sender: No OFD packet to send [21:35:04]Write to MH i2c: 01 00 00 E6 67 4D [21:35:04]Write i2c OK [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 [21:35:04]MH_I2C_Read... [21:35:04]Read from MH i2c: 01 07 00 E6 67 00 02 00 00 00 FF 0F 64 [21:35:04]state=3 [21:35:04]Cover opened [21:35:05]OFD Sender: No OFD packet to send [21:35:09]Write to MH i2c: 01 00 00 E7 67 4E [21:35:09]Write i2c OK [21:35:09]MH_I2C_Read... [21:35:09]Read from MH i2c: 01 [21:35:09]MH_I2C_Read... [21:35:09]Read from MH i2c: 01 07 00 [21:35:09]MH_I2C_Read... [21:35:09]Read from MH i2c: 01 07 00 E7 67 00 02 00 00 00 FF 0F 65 [21:35:09]state=3 [21:35:09]Cover opened [21:35:10]OFD Sender: No OFD packet to send [21:35:14]Write to MH i2c: 01 00 00 E8 67 4F [21:35:14]Write i2c OK [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 [21:35:14]MH_I2C_Read... [21:35:14]Read from MH i2c: 01 07 00 E8 67 00 02 00 00 00 FF 0F 66 [21:35:14]state=3 [21:35:14]Cover opened [21:35:15]OFD Sender: No OFD packet to send [21:35:19]Write to MH i2c: 01 00 00 E9 67 50 [21:35:19]Write i2c OK [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: 01 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: 01 07 00 [21:35:19]MH_I2C_Read... [21:35:19]Read from MH i2c: 01 07 00 E9 67 00 02 00 00 00 FF 0F 67 [21:35:19]state=3 [21:35:19]Cover opened [21:35:20]OFD Sender: No OFD packet to send [21:35:24]Write to MH i2c: 01 00 00 EA 67 51 [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 07 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: 01 07 00 EA 67 00 02 00 00 00 FF 0F 68 [21:35:24]state=3 [21:35:24]Cover opened [21:35:25]OFD Sender: No OFD packet to send [21:35:29]Write to MH i2c: 01 00 00 EB 67 52 [21:35:29]Write i2c OK [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: 01 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: 01 07 00 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: 01 07 00 EB 67 00 02 00 00 00 FF 0F 69 [21:35:29]state=3 [21:35:29]Cover opened [21:35:30]OFD Sender: No OFD packet to send [21:35:34]Write to MH i2c: 01 00 00 EC 67 53 [21:35:34]Write i2c OK [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: 01 [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: 01 07 00 [21:35:34]MH_I2C_Read... [21:35:34]Read from MH i2c: 01 07 00 EC 67 00 02 00 00 00 FF 0F 6A [21:35:34]state=3 [21:35:34]Cover opened [21:35:35]OFD Sender: No OFD packet to send [21:35:39]Write to MH i2c: 01 00 00 ED 67 54 [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: 01 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: 01 07 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: 01 07 00 ED 67 00 02 00 00 00 FF 0F 6B [21:35:39]state=3 [21:35:39]Cover opened [21:35:40]OFD Sender: No OFD packet to send [21:35:44]Write to MH i2c: 01 00 00 EE 67 55 [21:35:44]Write i2c OK [21:35:44]MH_I2C_Read... [21:35:44]Read from MH i2c: 01 [21:35:44]MH_I2C_Read... [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 EE 67 00 02 00 00 00 FF 0F 6C [21:35:44]state=3 [21:35:44]Cover opened [21:35:45]OFD Sender: No OFD packet to send [21:35:49]Write to MH i2c: 01 00 00 EF 67 56 [21:35:49]Write i2c OK [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 07 00 [21:35:49]MH_I2C_Read... [21:35:49]Read from MH i2c: 01 07 00 EF 67 00 02 00 00 00 FF 0F 6D [21:35:49]state=3 [21:35:49]Cover opened [21:35:50]OFD Sender: No OFD packet to send [21:35:54]Write to MH i2c: 01 00 00 F0 67 57 [21:35:54]Write i2c OK [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 [21:35:54]MH_I2C_Read... [21:35:54]Read from MH i2c: 01 07 00 F0 67 00 02 00 00 00 FF 0F 6E [21:35:54]state=3 [21:35:54]Cover opened [21:35:55]OFD Sender: No OFD packet to send [21:35:59]Write to MH i2c: 01 00 00 F1 67 58 [21:35:59]Write i2c OK [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 07 00 [21:35:59]MH_I2C_Read... [21:35:59]Read from MH i2c: 01 07 00 F1 67 00 02 00 00 00 FF 0F 6F [21:35:59]state=3 [21:35:59]Cover opened [21:36:00]OFD Sender: No OFD packet to send [21:36:04]Write to MH i2c: 01 00 00 F2 67 59 [21:36:04]Write i2c OK [21:36:04]MH_I2C_Read... [21:36:04]Read from MH i2c: 01 [21:36:04]MH_I2C_Read... [21:36:04]Read from MH i2c: 01 07 00 [21:36:04]MH_I2C_Read... [21:36:04]Read from MH i2c: 01 07 00 F2 67 00 02 00 00 00 FF 0F 70 [21:36:04]state=3 [21:36:04]Cover opened [21:36:05]OFD Sender: No OFD packet to send [21:36:09]Write to MH i2c: 01 00 00 F3 67 5A [21:36:09]Write i2c OK [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: 01 [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: 01 07 00 [21:36:09]MH_I2C_Read... [21:36:09]Read from MH i2c: 01 07 00 F3 67 00 02 00 00 00 FF 0F 71 [21:36:09]state=3 [21:36:09]Cover opened [21:36:10]OFD Sender: No OFD packet to send [21:36:14]Write to MH i2c: 01 00 00 F4 67 5B [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 F4 67 00 02 00 00 00 FF 0F 72 [21:36:14]state=3 [21:36:14]Cover opened [21:36:15]OFD Sender: No OFD packet to send [21:36:19]Write to MH i2c: 01 00 00 F5 67 5C [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: 01 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: 01 07 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: 01 07 00 F5 67 00 02 00 00 00 FF 0F 73 [21:36:19]state=3 [21:36:19]Cover opened [21:36:20]OFD Sender: No OFD packet to send [21:36:24]Write to MH i2c: 01 00 00 F6 67 5D [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 07 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 07 00 F6 67 00 02 00 00 00 FF 0F 74 [21:36:24]state=3 [21:36:24]Cover opened [21:36:25]OFD Sender: No OFD packet to send [21:36:29]Write to MH i2c: 01 00 00 F7 67 5E [21:36:29]Write i2c OK [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 07 00 [21:36:29]MH_I2C_Read... [21:36:29]Read from MH i2c: 01 07 00 F7 67 00 02 00 00 00 FF 0F 75 [21:36:29]state=3 [21:36:29]Cover opened [21:36:30]OFD Sender: No OFD packet to send [21:36:34]Write to MH i2c: 01 00 00 F8 67 5F [21:36:34]Write i2c OK [21:36:34]MH_I2C_Read... [21:36:34]Read from MH i2c: 01 [21:36:34]MH_I2C_Read... [21:36:34]Read from MH i2c: 01 07 00 [21:36:34]MH_I2C_Read... [21:36:34]Read from MH i2c: 01 07 00 F8 67 00 02 00 00 00 FF 0F 76 [21:36:34]state=3 [21:36:34]Cover opened [21:36:35]OFD Sender: No OFD packet to send [21:36:39]Write to MH i2c: 01 00 00 F9 67 60 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 F9 67 00 02 00 00 00 FF 0F 77 [21:36:39]state=3 [21:36:39]Cover opened [21:36:40]OFD Sender: No OFD packet to send [21:36:44]Write to MH i2c: 01 00 00 FA 67 61 [21:36:44]Write i2c OK [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 [21:36:44]MH_I2C_Read... [21:36:44]Read from MH i2c: 01 07 00 FA 67 00 02 00 00 00 FF 0F 78 [21:36:44]state=3 [21:36:44]Cover opened [21:36:45]OFD Sender: No OFD packet to send [21:36:49]Write to MH i2c: 01 00 00 FB 67 62 [21:36:49]Write i2c OK [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 07 00 [21:36:49]MH_I2C_Read... [21:36:49]Read from MH i2c: 01 07 00 FB 67 00 02 00 00 00 FF 0F 79 [21:36:49]state=3 [21:36:49]Cover opened [21:36:50]OFD Sender: No OFD packet to send [21:36:54]Write to MH i2c: 01 00 00 FC 67 63 [21:36:54]Write i2c OK [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 07 00 [21:36:54]MH_I2C_Read... [21:36:54]Read from MH i2c: 01 07 00 FC 67 00 02 00 00 00 FF 0F 7A [21:36:54]state=3 [21:36:54]Cover opened [21:36:55]OFD Sender: No OFD packet to send [21:36:59]Write to MH i2c: 01 00 00 FD 67 64 [21:36:59]Write i2c OK [21:36:59]MH_I2C_Read... [21:36:59]Read from MH i2c: 01 [21:36:59]MH_I2C_Read... [21:36:59]Read from MH i2c: 01 07 00 [21:36:59]MH_I2C_Read... [21:36:59]Read from MH i2c: 01 07 00 FD 67 00 02 00 00 00 FF 0F 7B [21:36:59]state=3 [21:36:59]Cover opened [21:37:00]OFD Sender: No OFD packet to send [21:37:04]Write to MH i2c: 01 00 00 FE 67 65 [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 07 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 07 00 FE 67 00 02 00 00 00 FF 0F 7C [21:37:04]state=3 [21:37:04]Cover opened [21:37:05]OFD Sender: No OFD packet to send [21:37:09]Write to MH i2c: 01 00 00 FF 67 66 [21:37:09]Write i2c OK [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 [21:37:09]MH_I2C_Read... [21:37:09]Read from MH i2c: 01 07 00 FF 67 00 02 00 00 00 FF 0F 7D [21:37:09]state=3 [21:37:09]Cover opened [21:37:10]OFD Sender: No OFD packet to send [21:37:14]Write to MH i2c: 01 00 00 00 68 68 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 00 68 00 02 00 00 00 FF 0F 7F [21:37:14]state=3 [21:37:14]Cover opened [21:37:15]OFD Sender: No OFD packet to send [21:37:19]Write to MH i2c: 01 00 00 01 68 69 [21:37:19]Write i2c OK [21:37:19]MH_I2C_Read... [21:37:19]Read from MH i2c: 01 [21:37:19]MH_I2C_Read... [21:37:19]Read from MH i2c: 01 07 00 [21:37:19]MH_I2C_Read... [21:37:19]Read from MH i2c: 01 07 00 01 68 00 02 00 00 00 FF 0F 80 [21:37:19]state=3 [21:37:19]Cover opened [21:37:20]OFD Sender: No OFD packet to send [21:37:24]Write to MH i2c: 01 00 00 02 68 6A [21:37:24]Write i2c OK [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: 01 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: 01 07 00 [21:37:24]MH_I2C_Read... [21:37:24]Read from MH i2c: 01 07 00 02 68 00 02 00 00 00 FF 0F 81 [21:37:24]state=3 [21:37:24]Cover opened [21:37:25]OFD Sender: No OFD packet to send [21:37:29]Write to MH i2c: 01 00 00 03 68 6B [21:37:29]Write i2c OK [21:37:29]MH_I2C_Read... [21:37:29]Read from MH i2c: 01 [21:37:29]MH_I2C_Read... [21:37:29]Read from MH i2c: 01 07 00 [21:37:29]MH_I2C_Read... [21:37:29]Read from MH i2c: 01 07 00 03 68 00 02 00 00 00 FF 0F 82 [21:37:29]state=3 [21:37:29]Cover opened [21:37:30]OFD Sender: No OFD packet to send [21:37:34]Write to MH i2c: 01 00 00 04 68 6C [21:37:34]Write i2c OK [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: 01 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: 01 07 00 [21:37:34]MH_I2C_Read... [21:37:34]Read from MH i2c: 01 07 00 04 68 00 02 00 00 00 FF 0F 83 [21:37:34]state=3 [21:37:34]Cover opened [21:37:35]OFD Sender: No OFD packet to send [21:37:39]Write to MH i2c: 01 00 00 05 68 6D [21:37:39]Write i2c OK [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: 01 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: 01 07 00 [21:37:39]MH_I2C_Read... [21:37:39]Read from MH i2c: 01 07 00 05 68 00 02 00 00 00 FF 0F 84 [21:37:39]state=3 [21:37:39]Cover opened [21:37:40]OFD Sender: No OFD packet to send [21:37:44]Write to MH i2c: 01 00 00 06 68 6E [21:37:44]Write i2c OK [21:37:44]MH_I2C_Read... [21:37:44]Read from MH i2c: 01 [21:37:44]MH_I2C_Read... [21:37:44]Read from MH i2c: 01 07 00 [21:37:44]MH_I2C_Read... [21:37:44]Read from MH i2c: 01 07 00 06 68 00 02 00 00 00 FF 0F 85 [21:37:44]state=3 [21:37:44]Cover opened [21:37:45]OFD Sender: No OFD packet to send [21:37:49]Write to MH i2c: 01 00 00 07 68 6F [21:37:49]Write i2c OK [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 07 00 [21:37:49]MH_I2C_Read... [21:37:49]Read from MH i2c: 01 07 00 07 68 00 02 00 00 00 FF 0F 86 [21:37:49]state=3 [21:37:49]Cover opened [21:37:50]OFD Sender: No OFD packet to send [21:37:51]int [21:37:51]Write to MH i2c: 01 00 00 08 68 70 [21:37:51]*** FLAG_PRN_PAP1 set [21:37:51]Write i2c OK [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 07 00 [21:37:51]MH_I2C_Read... [21:37:51]Read from MH i2c: 01 07 00 08 68 00 03 00 00 00 FF 0F 88 [21:37:51]state=3 [21:37:51]No paper [21:37:51]Cover opened [21:37:55]OFD Sender: No OFD packet to send [21:37:56]Write to MH i2c: 01 00 00 09 68 71 [21:37:56]Write i2c OK [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 07 00 [21:37:56]MH_I2C_Read... [21:37:56]Read from MH i2c: 01 07 00 09 68 00 03 00 00 00 FF 0F 89 [21:37:56]state=3 [21:37:56]No paper [21:37:56]Cover opened [21:38:00]OFD Sender: No OFD packet to send [21:38:01]Write to MH i2c: 01 00 00 0A 68 72 [21:38:01]Write i2c OK [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: 01 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: 01 07 00 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: 01 07 00 0A 68 00 03 00 00 00 FF 0F 8A [21:38:01]state=3 [21:38:01]No paper [21:38:01]Cover opened [21:38:05]OFD Sender: No OFD packet to send [21:38:05]int [21:38:05]Write to MH i2c: 01 00 00 0B 68 73 [21:38:05]*** FLAG_PRN_PAP1 reset [21:38:05]*** FLAG_PRN_PAP2 reset [21:38:05]Write i2c OK [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: 01 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: 01 07 00 [21:38:05]MH_I2C_Read... [21:38:05]Read from MH i2c: 01 07 00 0B 68 00 00 00 00 00 FF 0F 88 [21:38:05]state=3 [21:38:05]Cover closed [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]accept exits with 7 [21:40:40]New connection [21:40:40]New thread 3067489636 created [21:40:40]Thread 3067346276 joined [21:40:40]Waiting for new connection... [21:40:40] Sock 7.Parse request [21:40:40]Sock 7.Check first char [21:40:40]Sock 7.First char is OK [21:40:40]request: POST /json_proto HTTP/1.0 [21:40:40]Method: POST [21:40:40]URL: /json_proto [21:40:40]Method is POST - this is cgi request [21:40:40]url: /json_proto [21:40:40]query_string will be loaded in cgi processing [21:40:40]execute_cgi json_proto POST (null) [21:40:40]execute_cgi path=json_proto method=POST [21:40:40]POST find Content-Length [21:40:40]Host: 172.17.51.3:8080 [21:40:40]Content-Length: 215 [21:40:40]Content-Type: application/json [21:40:40] [21:40:40]POST finish read [21:40:40]Found Content-Length = 215 [21:40:40]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" ] } } [21:40:40]execute_script... [21:40:40]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" ] } } [21:40:40]POST & json_proto [21:40:40]process_json_proto [21:40:40]json parsed OK: [21:40:40]protocol is kg_v1.0 [21:40:40]action value=get_value [21:40:40]process_action get_value [21:40:40]cmd_get_value [21:40:40]process_action get_value done [21:40:40]requested_data is exist [21:40:40]produce_requested_data [21:40:40]requested_item kkm.sn is exist - process it [21:40:40]requested_item kkm.ver is exist - process it [21:40:40]requested_item fm.sn is exist - process it [21:40:40]wFMCommunicate request_size=4 [21:40:40]MH_SAM_APDU [21:40:40]CAPDU: 80 11 00 00 [21:40:40]Write to MH i2c: E2 08 00 0C 68 80 11 00 00 00 00 00 00 EE [21:40:40]Write i2c OK [21:40:40]MH_I2C_Read... [21:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:40]Read from MH i2c: E2 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 17 00 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 17 00 0C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [21:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:40:40]wFMCommunicate OK [21:40:40]requested_item fd.num is exist - process it [21:40:40]SAM_PROTO_GetFieldsCounters [21:40:40]wFMCommunicate request_size=4 [21:40:40]MH_SAM_APDU [21:40:40]CAPDU: 80 13 00 00 [21:40:40]Write to MH i2c: E2 08 00 0D 68 80 13 00 00 00 00 00 00 F1 [21:40:40]Write i2c OK [21:40:40]MH_I2C_Read... [21:40:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:40]Read from MH i2c: E2 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 62 00 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 62 00 0D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [21:40:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 20 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:40:40]wFMCommunicate OK [21:40:40]SAM_PROTO_GetFieldsCounters done [21:40:40]requested_item shift.num is exist - process it [21:40:40]requested_item shift.opened is exist - process it [21:40:40]req_shift_opened [21:40:40]FM_GetShiftState [21:40:40]SAM_PROTO_GetShiftState [21:40:40]wFMCommunicate request_size=4 [21:40:40]MH_SAM_APDU [21:40:40]CAPDU: 80 13 01 00 [21:40:40]Write to MH i2c: E2 08 00 0E 68 80 13 01 00 00 00 00 00 F3 [21:40:40]Write i2c OK [21:40:40]MH_I2C_Read... [21:40:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:40]Read from MH i2c: E2 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 0E 00 [21:40:40]MH_I2C_Read... [21:40:40]Read from MH i2c: E2 0E 00 0E 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6F [21:40:40]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:40:40]wFMCommunicate OK [21:40:40]SAM_PROTO_GetShiftState done [21:40:40]FM_GetShiftState done [21:40:40]req_shift_opened done [21:40:40]requested_item shift.open_date is exist - process it [21:40:40]req_shift_open_date [21:40:40]req_shift_open_date done [21:40:40]produce_requested_data done [21:40:40]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30752,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:40:40]process_action_free get_value [21:40:40]json_value_free [21:40:40]json_value_free done [21:40:40]process_json_proto returns [21:40:40]Send response to host [21:40:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30752,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:40:40]free response buf [21:40:40]execute_script done [21:40:40]execute_script returns [21:40:40]free content buf [21:40:40]Sock 7.Close socket [21:40:40]Sock 7.Thread stoped [21:40:40]accept exits with 9 [21:40:40]New connection [21:40:40]New thread 3067346276 created [21:40:40]Thread 3067489636 joined [21:40:40]Waiting for new connection... [21:40:40] Sock 9.Parse request [21:40:40]Sock 9.Check first char [21:40:40]Sock 9.First char is OK [21:40:40]request: POST /json_proto HTTP/1.0 [21:40:40]Method: POST [21:40:40]URL: /json_proto [21:40:40]Method is POST - this is cgi request [21:40:40]url: /json_proto [21:40:40]query_string will be loaded in cgi processing [21:40:40]execute_cgi json_proto POST (null) [21:40:40]execute_cgi path=json_proto method=POST [21:40:40]POST find Content-Length [21:40:40]Host: 172.17.51.3:8080 [21:40:40]Content-Length: 331 [21:40:40]Content-Type: application/json [21:40:40] [21:40:40]POST finish read [21:40:40]Found Content-Length = 331 [21:40:40]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" ] } } [21:40:40]execute_script... [21:40:40]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" ] } } [21:40:40]POST & json_proto [21:40:40]process_json_proto [21:40:40]json parsed OK: [21:40:40]protocol is kg_v1.0 [21:40:40]action value=get_value [21:40:40]process_action get_value [21:40:40]cmd_get_value [21:40:40]process_action get_value done [21:40:40]requested_data is exist [21:40:40]produce_requested_data [21:40:40]requested_item fm.sale.total is exist - process it [21:40:40]SAM_PROTO_GetFMData [21:40:40]wFMCommunicate request_size=4 [21:40:40]MH_SAM_APDU [21:40:40]CAPDU: 80 13 03 00 [21:40:40]Write to MH i2c: E2 08 00 0F 68 80 13 03 00 00 00 00 00 F6 [21:40:40]Write i2c OK [21:40:40]MH_I2C_Read... [21:40:40]OFD Sender: No OFD packet to send [21:40:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:40:41]Read from MH i2c: E2 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 0F 68 00 BF 04 85 04 BB 04 6E 04 04 00 3A 77 00 00 69 04 A1 00 6F 04 04 00 2B 77 00 00 B1 04 04 00 10 20 F9 A4 70 04 04 00 38 77 3F 84 72 04 04 00 D8 A8 B9 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CE 31 86 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 77 D7 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 C8 [21:40:41]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 3A 77 00 00 69 04 A1 00 6F 04 04 00 2B 77 00 00 B1 04 04 00 10 20 F9 A4 70 04 04 00 38 77 3F 84 72 04 04 00 D8 A8 B9 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CE 31 86 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 77 D7 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [21:40:41]wFMCommunicate OK [21:40:41]wFMCommunicate request_size=4 [21:40:41]MH_SAM_APDU [21:40:41]CAPDU: 80 17 00 00 [21:40:41]Write to MH i2c: E2 08 00 10 68 80 17 00 00 00 00 00 00 F8 [21:40:41]Write i2c OK [21:40:41]MH_I2C_Read... [21:40:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:41]Read from MH i2c: E2 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 10 68 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 C9 [21:40:41]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [21:40:41]wFMCommunicate OK [21:40:41]wFMCommunicate request_size=4 [21:40:41]MH_SAM_APDU [21:40:41]CAPDU: 80 17 00 00 [21:40:41]Write to MH i2c: E2 08 00 11 68 80 17 00 00 00 00 00 00 F9 [21:40:41]Write i2c OK [21:40:41]MH_I2C_Read... [21:40:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:41]Read from MH i2c: E2 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 [21:40:41]MH_I2C_Read... [21:40:41]Read from MH i2c: E2 FD 00 11 68 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 9D [21:40:41]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:40:41]wFMCommunicate OK [21:40:41]wFMCommunicate request_size=4 [21:40:41]MH_SAM_APDU [21:40:41]CAPDU: 80 17 00 00 [21:40:41]Write to MH i2c: E2 08 00 12 68 80 17 00 00 00 00 00 00 FA [21:40:41]Write i2c OK [21:40:41]MH_I2C_Read... [21:40:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:42]Read from MH i2c: E2 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 FD 00 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 FD 00 12 68 00 00 04 F7 03 00 00 EF 03 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 90 00 74 [21:40:42]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [21:40:42]wFMCommunicate OK [21:40:42]wFMCommunicate request_size=4 [21:40:42]MH_SAM_APDU [21:40:42]CAPDU: 80 17 00 00 [21:40:42]Write to MH i2c: E2 08 00 13 68 80 17 00 00 00 00 00 00 FB [21:40:42]Write i2c OK [21:40:42]MH_I2C_Read... [21:40:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [21:40:42]Read from MH i2c: E2 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 DC 00 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 DC 00 13 68 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DF [21:40:42]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:40:42]wFMCommunicate OK [21:40:42]SAM_PROTO_GetFMData done [21:40:42]requested_item fm.sale_refund.total is exist - process it [21:40:42]requested_item fm.buy.total is exist - process it [21:40:42]requested_item shift.sale.total is exist - process it [21:40:42]SAM_PROTO_GetShiftData [21:40:42]wFMCommunicate request_size=4 [21:40:42]MH_SAM_APDU [21:40:42]CAPDU: 80 13 02 00 [21:40:42]Write to MH i2c: E2 08 00 14 68 80 13 02 00 00 00 00 00 FA [21:40:42]Write i2c OK [21:40:42]MH_I2C_Read... [21:40:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:40:42]Read from MH i2c: E2 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 FD 00 [21:40:42]MH_I2C_Read... [21:40:42]Read from MH i2c: E2 FD 00 14 68 00 B0 04 AA 04 AC 04 6E 04 04 00 F9 00 00 00 69 04 9D 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 3F 52 26 01 70 04 03 00 24 C0 F2 72 04 03 00 1B 92 33 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 19 44 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 9A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 40 [21:40:42]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 F9 00 00 00 69 04 9D 00 6F 04 04 00 F9 00 00 00 B1 04 04 00 3F 52 26 01 70 04 03 00 24 C0 F2 72 04 03 00 1B 92 33 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 19 44 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FB 9A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:40:42]wFMCommunicate OK [21:40:42]wFMCommunicate request_size=4 [21:40:42]MH_SAM_APDU [21:40:42]CAPDU: 80 17 00 00 [21:40:42]Write to MH i2c: E2 08 00 15 68 80 17 00 00 00 00 00 00 FD [21:40:42]Write i2c OK [21:40:42]MH_I2C_Read... [21:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:43]Read from MH i2c: E2 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 15 68 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 17 [21:40:43]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [21:40:43]wFMCommunicate OK [21:40:43]wFMCommunicate request_size=4 [21:40:43]MH_SAM_APDU [21:40:43]CAPDU: 80 17 00 00 [21:40:43]Write to MH i2c: E2 08 00 16 68 80 17 00 00 00 00 00 00 FE [21:40:43]Write i2c OK [21:40:43]MH_I2C_Read... [21:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:43]Read from MH i2c: E2 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 16 68 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 BB [21:40:43]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [21:40:43]wFMCommunicate OK [21:40:43]wFMCommunicate request_size=4 [21:40:43]MH_SAM_APDU [21:40:43]CAPDU: 80 17 00 00 [21:40:43]Write to MH i2c: E2 08 00 17 68 80 17 00 00 00 00 00 00 FF [21:40:43]Write i2c OK [21:40:43]MH_I2C_Read... [21:40:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:40:43]Read from MH i2c: E2 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 [21:40:43]MH_I2C_Read... [21:40:43]Read from MH i2c: E2 FD 00 17 68 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 72 [21:40:43]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [21:40:43]wFMCommunicate OK [21:40:43]wFMCommunicate request_size=4 [21:40:43]MH_SAM_APDU [21:40:43]CAPDU: 80 17 00 00 [21:40:43]Write to MH i2c: E2 08 00 18 68 80 17 00 00 00 00 00 00 00 [21:40:43]Write i2c OK [21:40:43]MH_I2C_Read... [21:40:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [21:40:44]Read from MH i2c: E2 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: E2 CD 00 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: E2 CD 00 18 68 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E4 [21:40:44]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:40:44]wFMCommunicate OK [21:40:44]SAM_PROTO_GetShiftData done [21:40:44]requested_item shift.sale.total_cash is exist - process it [21:40:44]requested_item shift.sale_refund.total is exist - process it [21:40:44]requested_item shift.sale_refund.total_cash is exist - process it [21:40:44]requested_item shift.buy.total is exist - process it [21:40:44]requested_item shift.buy.total_cash is exist - process it [21:40:44]produce_requested_data done [21:40:44]produce_requested_data return {"fm.sale.total":27677900.96,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":192886.39,"shift.sale.total_cash":159089.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} [21:40:44]process_action_free get_value [21:40:44]json_value_free [21:40:44]json_value_free done [21:40:44]process_json_proto returns [21:40:44]Send response to host [21:40:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27677900.96,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":192886.39,"shift.sale.total_cash":159089.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}}} [21:40:44]free response buf [21:40:44]execute_script done [21:40:44]execute_script returns [21:40:44]free content buf [21:40:44]Sock 9.Close socket [21:40:44]Sock 9.Thread stoped [21:40:44]accept exits with 7 [21:40:44]New connection [21:40:44]New thread 3067489636 created [21:40:44]Thread 3067346276 joined [21:40:44]Waiting for new connection... [21:40:44] Sock 7.Parse request [21:40:44]Sock 7.Check first char [21:40:44]Sock 7.First char is OK [21:40:44]request: POST /json_proto HTTP/1.0 [21:40:44]Method: POST [21:40:44]URL: /json_proto [21:40:44]Method is POST - this is cgi request [21:40:44]url: /json_proto [21:40:44]query_string will be loaded in cgi processing [21:40:44]execute_cgi json_proto POST (null) [21:40:44]execute_cgi path=json_proto method=POST [21:40:44]POST find Content-Length [21:40:44]Host: 172.17.51.3:8080 [21:40:44]Content-Length: 144 [21:40:44]Content-Type: application/json [21:40:44] [21:40:44]POST finish read [21:40:44]Found Content-Length = 144 [21:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:40:44]execute_script... [21:40:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:40:44]POST & json_proto [21:40:44]process_json_proto [21:40:44]json parsed OK: [21:40:44]protocol is kg_v1.0 [21:40:44]action value=print_doc [21:40:44]process_action print_doc [21:40:44]ExternCall_PrintAddStr [21:40:44]wPrintStart [21:40:44]Write to MH i2c: 01 00 00 19 68 81 [21:40:44]Write i2c OK [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 07 00 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 07 00 19 68 00 00 00 00 00 FF 0F 96 [21:40:44]RasterBufferAndPrint [21:40:44]line Счет N : (1)343168 [21:40:44]line ИНН: 02508201610067 [21:40:44]line Контрольно-Кассовый Чек [21:40:44]line ПРОДАЖА [21:40:44]line ТРК (МРК, ГНК) : 64 [21:40:44]line Товар: 2710194210 [21:40:44]line ДТ-К-2 [21:40:44]line 9.190 * 76.20 [21:40:44]line = 700.28 [21:40:44]line НДС 12% НСП 1% [21:40:44]line > о реализуемом товаре [21:40:44]line ОКРУГЛЕНИЕ: -0.28 [21:40:44]line ИТОГО: 700.00 [21:40:44]line Внесено: 700.00 [21:40:44]line СДАЧА: 0.00 [21:40:44]line НСП 1% : 6.20 [21:40:44]line НДС 12% : 74.37 [21:40:44]line Наличными: 700.00 [21:40:44]line Безнал.: 0.00 [21:40:44]line Место: АЗС № 78 "Партнер Нефть" [21:40:44]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:40:44]line СНО: Общий режим [21:40:44]line Чек 249 21.10.2024 21:34 [21:40:44]line Смена: 115 ФФД: 1.0 [21:40:44]line ЗНМ: 0300000137 [21:40:44]line РНМ: 0000000000186857 [21:40:44]line Версия ККМ: v1.0 [21:40:44]line ФМ: 0000000002094219 [21:40:44]line ФД: 30752 [21:40:44]line ФПД: 90624796371455 [21:40:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213419&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30752&fm=90624796371455&tin=02508201610067®Number=0000000000186857&sum=70000 [21:40:44]written 0, free lines is 4095 [21:40:44]Write to MH i2c: 01 00 00 44 68 AC [21:40:44]Write i2c OK [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 07 00 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: 01 07 00 44 68 00 00 00 00 00 E8 0C A7 [21:40:44]RasterBufferAndPrint [21:40:44]line [21:40:44]line [21:40:44]line [21:40:44]line [21:40:44]line [21:40:44]written 0, free lines is 3319 [21:40:44]MH_Cut [21:40:44]Write to MH i2c: D1 01 00 4B 68 01 85 [21:40:44]Write i2c OK [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: D1 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: D1 01 00 [21:40:44]MH_I2C_Read... [21:40:44]Read from MH i2c: D1 01 00 4B 68 00 84 [21:40:44]Write to MH i2c: 01 00 00 4C 68 B4 [21:40:44]Write i2c OK [21:40:44]MH_I2C_Read... [21:40:45]*** Cut start [21:40:45]*** Partial cut [21:40:45]*** CUTSNS_PIN = 1 [21:40:45]*** CUTSNS_PIN = 0 [21:40:45]*** Brake cut motor [21:40:45]Read from MH i2c: 01 [21:40:45]MH_I2C_Read... [21:40:45]*** Stop cut motor [21:40:45]*** Cut end [21:40:45]Read from MH i2c: 01 07 00 [21:40:45]MH_I2C_Read... [21:40:45]Read from MH i2c: 01 07 00 4C 68 00 00 00 00 00 FF 0F C9 [21:40:45]process_action print_doc done [21:40:45]requested_data is exist [21:40:45]produce_requested_data [21:40:45]produce_requested_data return (null) [21:40:45]process_action_free print_doc [21:40:45]json_value_free [21:40:45]json_value_free done [21:40:45]process_json_proto returns [21:40:45]Send response to host [21:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [21:40:45]free response buf [21:40:45]execute_script done [21:40:45]execute_script returns [21:40:45]free content buf [21:40:45]Sock 7.Close socket [21:40:45]Sock 7.Thread stoped [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41: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:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [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: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: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:11]accept exits with 9 [21:48:11]New connection [21:48:11]New thread 3067346276 created [21:48:11]Thread 3067489636 joined [21:48:11]Waiting for new connection... [21:48:11] Sock 9.Parse request [21:48:11]Sock 9.Check first char [21:48:11]Sock 9.First char is OK [21:48:11]request: POST /json_proto HTTP/1.0 [21:48:11]Method: POST [21:48:11]URL: /json_proto [21:48:11]Method is POST - this is cgi request [21:48:11]url: /json_proto [21:48:11]query_string will be loaded in cgi processing [21:48:11]execute_cgi json_proto POST (null) [21:48:11]execute_cgi path=json_proto method=POST [21:48:11]POST find Content-Length [21:48:11]Host: 172.17.51.3:8080 [21:48:11]Content-Length: 678 [21:48:11]Content-Type: application/json [21:48:11] [21:48:11]POST finish read [21:48:11]Found Content-Length = 678 [21:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.610, "sum" : 910.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:11]execute_script... [21:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 13.610, "sum" : 910.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 910.00, "total" : 910.00, "payments": [ { "type": 0, "sum" : 910.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:11]POST & json_proto [21:48:11]process_json_proto [21:48:11]json parsed OK: [21:48:11]protocol is kg_v1.0 [21:48:11]action value=close_receipt [21:48:11]process_action close_receipt [21:48:11]cmd_close_receipt [21:48:11]MH_GetDate [21:48:11]Write to MH i2c: F0 00 00 4D 68 A4 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 09 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: F0 09 00 4D 68 00 22 CC 16 67 04 C1 95 66 D8 [21:48:11]GetLastDocTimeStamp 1729546459 [21:48:11]current date 1729547298 [21:48:11]FM_GetShiftState [21:48:11]SAM_PROTO_GetShiftState [21:48:11]wFMCommunicate request_size=4 [21:48:11]MH_SAM_APDU [21:48:11]CAPDU: 80 13 01 00 [21:48:11]Write to MH i2c: E2 08 00 4E 68 80 13 01 00 00 00 00 00 33 [21:48:11]Write i2c OK [21:48:11]MH_I2C_Read... [21:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:11]Read from MH i2c: E2 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 [21:48:11]MH_I2C_Read... [21:48:11]Read from MH i2c: E2 0E 00 4E 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 AF [21:48:11]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:48:11]wFMCommunicate OK [21:48:11]SAM_PROTO_GetShiftState done [21:48:11]FM_GetShiftState done [21:48:11]opened in 1729471058 [21:48:11]opened+sec_in_day 1729557458 [21:48:11]quantity*price = 91050 [21:48:11]sum+1 = 91052 [21:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 910.00 Внесено: 910.00 СДАЧА: 0.00 НСП 1% : 8.06 НДС 12% : 96.69 Наличными: 910.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 250 21.10.2024 21:48 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30753 ФПД: 77613281858787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214818&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30753&fm=77613281858787&tin=02508201610067®Number=0000000000186857&sum=91000 [21:48:12]StoreToDocumentArchive [21:48:12]shift 115 fd 30753 [21:48:12]save to /storage/0115/doc_00030753 [21:48:12]save last doc name /storage/0115/doc_00030753 to /storage/kkm_last_doc_name [21:48:12]save OK [21:48:12]Clear old archive folders... [21:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:12]tlvbuf is 01DFD1E0 [21:48:12]SAM_PROTO_ClearQueue [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 09 00 00 [21:48:12]Write to MH i2c: E2 08 00 5B 68 80 09 00 00 00 00 00 00 35 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 5B 68 00 90 00 37 [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]SAM_PROTO_ClearQueue done [21:48:12]KKMCreateOFDPacket [21:48:12]OFDProtocolAddRootSTLVToBuf [21:48:12]FM_MakeSignedData [21:48:12]FM_MakeSignedData [21:48:12]SAM_PROTO_SignData [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 01 02 [21:48:12]Write to MH i2c: E2 08 00 5C 68 80 0D 01 02 00 00 00 00 3D [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 5C 68 00 90 00 38 [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=255 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AB 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 78 00 00 35 04 06 00 46 [21:48:12]Write to MH i2c: E2 02 01 5D 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AB 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 78 00 00 35 04 06 00 46 00 00 75 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 5D 68 00 90 00 39 [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=10 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 02 02 05 96 C0 18 54 E3 [21:48:12]Write to MH i2c: E2 0D 00 5E 68 80 0D 02 02 05 00 96 C0 18 54 E3 00 00 EF [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 03 00 5E 68 00 90 00 3A [21:48:12]RAPDU: 90 00 [21:48:12]wFMCommunicate OK [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 0D 03 02 [21:48:12]Write to MH i2c: E2 08 00 5F 68 80 0D 03 02 00 00 00 00 42 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 0B 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 0B 00 5F 68 00 F7 14 36 96 67 76 56 C5 90 00 12 [21:48:12]RAPDU: F7 14 36 96 67 76 56 C5 90 00 [21:48:12]wFMCommunicate OK [21:48:12]SAM_PROTO_SignData done [21:48:12]FM_MakeSignedData done [21:48:12]CreateOFDProtocolMessage [21:48:12]wFMCommunicate request_size=4 [21:48:12]MH_SAM_APDU [21:48:12]CAPDU: 80 11 00 00 [21:48:12]Write to MH i2c: E2 08 00 60 68 80 11 00 00 00 00 00 00 42 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:12]Read from MH i2c: E2 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 17 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: E2 17 00 60 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 90 [21:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:48:12]wFMCommunicate OK [21:48:12]CreateOFDProtocolMessage done [21:48:12]OFDSenderStorePacket 30753 [21:48:12]StoreOFDPacket docnum=30753 [21:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 C2 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AB 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 78 00 00 35 04 06 00 46 96 C0 18 54 E3 F7 14 36 96 67 76 56 C5 [21:48:12]CheckFolder [21:48:12]dirname=/storage/ofd_packets [21:48:12]CheckFolder done [21:48:12]ProducePacketName [21:48:12]name=ofd_packets/00030753 [21:48:12]NVStorageSaveData ofd_packets/00030753 [21:48:12]File name is /storage/ofd_packets/00030753 [21:48:12]Write 301 bytes [21:48:12]NVStorageSaveData done [21:48:12]OFDSenderStorePacket done [21:48:12]KKMCreateOFDPacket done [21:48:12]NVStorageSaveData kkm_last_timestamp [21:48:12]File name is /storage/kkm_last_timestamp [21:48:12]Write 4 bytes [21:48:12]NVStorageSaveData done [21:48:12]ExternCall_PrintAddStr [21:48:12]wPrintStart [21:48:12]Write to MH i2c: 01 00 00 61 68 C9 [21:48:12]Write i2c OK [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 07 00 [21:48:12]MH_I2C_Read... [21:48:12]Read from MH i2c: 01 07 00 61 68 00 00 00 00 00 FF 0F DE [21:48:12]RasterBufferAndPrint [21:48:12]line Счет N : (1)343172 [21:48:12]line ИНН: 02508201610067 [21:48:12]line Контрольно-Кассовый Чек [21:48:12]line ПРОДАЖА [21:48:12]line ТРК (МРК, ГНК) : 53 [21:48:12]line Товар: 2710124130 [21:48:12]line Аи-92-К-2 [21:48:12]line 13.610 * 66.90 [21:48:12]line = 910.51 [21:48:12]line НДС 12% НСП 1% [21:48:12]line > о реализуемом товаре [21:48:12]line ОКРУГЛЕНИЕ: -0.51 [21:48:12]line ИТОГО: 910.00 [21:48:12]line Внесено: 910.00 [21:48:12]line СДАЧА: 0.00 [21:48:12]line НСП 1% : 8.06 [21:48:12]line НДС 12% : 96.69 [21:48:12]line Наличными: 910.00 [21:48:12]line Безнал.: 0.00 [21:48:12]line Место: АЗС № 78 "Партнер Нефть" [21:48:12]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:48:12]line СНО: Общий режим [21:48:12]line Чек 250 21.10.2024 21:48 [21:48:12]line Смена: 115 ФФД: 1.0 [21:48:12]line ЗНМ: 0300000137 [21:48:12]line РНМ: 0000000000186857 [21:48:12]line Версия ККМ: v1.0 [21:48:12]line ФМ: 0000000002094219 [21:48:12]line ФД: 30753 [21:48:12]line ФПД: 77613281858787 [21:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214818&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30753&fm=77613281858787&tin=02508201610067®Number=0000000000186857&sum=91000 [21:48:13]OFD Sender: Processing packet 30753 [packets to send 10, broken 9] [21:48:13]ProducePacketName [21:48:13]name=ofd_packets/00030753 [21:48:13]OFD Sender: To server: pG, [21:48:13]CommunicateWithHost lk.salyk.kg:30040 [21:48:13]ConnectInit lk.salyk.kg [21:48:13]written 0, free lines is 4095 [21:48:13]Connected sock=10 [21:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 92 C2 07 01 7B 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 2A 35 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AB 63 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 63 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 25 00 00 00 00 07 04 06 00 78 63 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 22 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 78 00 00 35 04 06 00 46 96 C0 18 54 E3 F7 14 36 96 67 76 56 C5 [21:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 A8 4F 47 00 15 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 21 78 00 00 F4 03 04 00 A1 76 16 67 B6 04 01 00 00 00 5A 49 AA 1D 60 C0 6A [21:48:13]CommunicateWithHost err = 0 [21:48:13]CheckOFDResponse [21:48:13]1017 (14) - 77093643461234 [21:48:13]1041 (16) - 0000000002094219 [21:48:13]1040 (4) - 30753 [21:48:13]1012 (4) - 21.10.2024 15:43 [21:48:13]1206 (1) - 0 [21:48:13]OFD Sender: Remove packet 30753 [21:48:13]ProducePacketName [21:48:13]name=ofd_packets/00030753 [21:48:13]NVStorageDeleteData [21:48:13]Write to MH i2c: 01 00 00 8C 68 F4 [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 07 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: 01 07 00 8C 68 00 00 00 00 00 E4 0C EB [21:48:13]RasterBufferAndPrint [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]line [21:48:13]written 0, free lines is 3309 [21:48:13]MH_Cut [21:48:13]Write to MH i2c: D1 01 00 93 68 01 CD [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 01 00 [21:48:13]MH_I2C_Read... [21:48:13]Read from MH i2c: D1 01 00 93 68 00 CC [21:48:13]Write to MH i2c: 01 00 00 94 68 FC [21:48:13]Write i2c OK [21:48:13]MH_I2C_Read... [21:48:14]OFD Sender: No OFD packet to send [21:48:14]*** Cut start [21:48:14]*** Partial cut [21:48:14]*** CUTSNS_PIN = 1 [21:48:14]*** CUTSNS_PIN = 0 [21:48:14]*** Brake cut motor [21:48:15]Read from MH i2c: 01 [21:48:15]MH_I2C_Read... [21:48:15]*** Stop cut motor [21:48:15]*** Cut end [21:48:15]Read from MH i2c: 01 07 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: 01 07 00 94 68 00 00 00 00 00 FF 0F 11 [21:48:15]process_action close_receipt done [21:48:15]requested_data is exist [21:48:15]produce_requested_data [21:48:15]requested_item fm.sn is exist - process it [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 11 00 00 [21:48:15]Write to MH i2c: E2 08 00 95 68 80 11 00 00 00 00 00 00 77 [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 17 00 95 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C5 [21:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:48:15]wFMCommunicate OK [21:48:15]requested_item fd.num is exist - process it [21:48:15]SAM_PROTO_GetFieldsCounters [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 00 00 [21:48:15]Write to MH i2c: E2 08 00 96 68 80 13 00 00 00 00 00 00 7A [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 62 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 62 00 96 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [21:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 21 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:15]wFMCommunicate OK [21:48:15]SAM_PROTO_GetFieldsCounters done [21:48:15]requested_item shift.num is exist - process it [21:48:15]requested_item shift.opened is exist - process it [21:48:15]req_shift_opened [21:48:15]FM_GetShiftState [21:48:15]SAM_PROTO_GetShiftState [21:48:15]wFMCommunicate request_size=4 [21:48:15]MH_SAM_APDU [21:48:15]CAPDU: 80 13 01 00 [21:48:15]Write to MH i2c: E2 08 00 97 68 80 13 01 00 00 00 00 00 7C [21:48:15]Write i2c OK [21:48:15]MH_I2C_Read... [21:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:15]Read from MH i2c: E2 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 [21:48:15]MH_I2C_Read... [21:48:15]Read from MH i2c: E2 0E 00 97 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 F8 [21:48:15]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:48:15]wFMCommunicate OK [21:48:15]SAM_PROTO_GetShiftState done [21:48:15]FM_GetShiftState done [21:48:15]req_shift_opened done [21:48:15]requested_item shift.open_date is exist - process it [21:48:15]req_shift_open_date [21:48:15]req_shift_open_date done [21:48:15]produce_requested_data done [21:48:15]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30753,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:48:15]process_action_free close_receipt [21:48:15]json_value_free [21:48:15]json_value_free done [21:48:15]process_json_proto returns [21:48:15]Send response to host [21:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30753,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:48:15]free response buf [21:48:15]execute_script done [21:48:15]execute_script returns [21:48:15]free content buf [21:48:15]Sock 9.Close socket [21:48:15]Sock 9.Thread stoped [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]accept exits with 7 [21:50:54]New connection [21:50:54]New thread 3067489636 created [21:50:54]Thread 3067346276 joined [21:50:54]Waiting for new connection... [21:50:54] Sock 7.Parse request [21:50:54]Sock 7.Check first char [21:50:54]Sock 7.First char is OK [21:50:54]request: POST /json_proto HTTP/1.0 [21:50:54]Method: POST [21:50:54]URL: /json_proto [21:50:54]Method is POST - this is cgi request [21:50:54]url: /json_proto [21:50:54]query_string will be loaded in cgi processing [21:50:54]execute_cgi json_proto POST (null) [21:50:54]execute_cgi path=json_proto method=POST [21:50:54]POST find Content-Length [21:50:54]Host: 172.17.51.3:8080 [21:50:54]Content-Length: 849 [21:50:54]Content-Type: application/json [21:50:54] [21:50:54]POST finish read [21:50:54]Found Content-Length = 849 [21:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]execute_script... [21:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:54]POST & json_proto [21:50:54]process_json_proto [21:50:54]json parsed OK: [21:50:54]protocol is kg_v1.0 [21:50:54]action value=close_receipt [21:50:54]process_action close_receipt [21:50:54]cmd_close_receipt [21:50:54]MH_GetDate [21:50:54]Write to MH i2c: F0 00 00 98 68 EF [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: F0 09 00 98 68 00 C4 CC 16 67 04 C1 95 66 C5 [21:50:54]GetLastDocTimeStamp 1729547298 [21:50:54]current date 1729547460 [21:50:54]FM_GetShiftState [21:50:54]SAM_PROTO_GetShiftState [21:50:54]wFMCommunicate request_size=4 [21:50:54]MH_SAM_APDU [21:50:54]CAPDU: 80 13 01 00 [21:50:54]Write to MH i2c: E2 08 00 99 68 80 13 01 00 00 00 00 00 7E [21:50:54]Write i2c OK [21:50:54]MH_I2C_Read... [21:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:54]Read from MH i2c: E2 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 [21:50:54]MH_I2C_Read... [21:50:54]Read from MH i2c: E2 0E 00 99 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 FA [21:50:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:50:54]wFMCommunicate OK [21:50:54]SAM_PROTO_GetShiftState done [21:50:54]FM_GetShiftState done [21:50:54]opened in 1729471058 [21:50:54]opened+sec_in_day 1729557458 [21:50:54]quantity*price = 120046 [21:50:54]sum+1 = 120047 [21:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.46 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.46 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 251 21.10.2024 21:51 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30754 ФПД: 110046081838592 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30754&fm=110046081838592&tin=02508201610067®Number=0000000000186857&sum=120046 [21:50:55]StoreToDocumentArchive [21:50:55]shift 115 fd 30754 [21:50:55]save to /storage/0115/doc_00030754 [21:50:55]save last doc name /storage/0115/doc_00030754 to /storage/kkm_last_doc_name [21:50:55]save OK [21:50:55]Clear old archive folders... [21:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:50:55]tlvbuf is 01ED8520 [21:50:55]SAM_PROTO_ClearQueue [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 09 00 00 [21:50:55]Write to MH i2c: E2 08 00 A6 68 80 09 00 00 00 00 00 00 80 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 A6 68 00 90 00 82 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_ClearQueue done [21:50:55]KKMCreateOFDPacket [21:50:55]OFDProtocolAddRootSTLVToBuf [21:50:55]FM_MakeSignedData [21:50:55]FM_MakeSignedData [21:50:55]SAM_PROTO_SignData [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 01 02 [21:50:55]Write to MH i2c: E2 08 00 A7 68 80 0D 01 02 00 00 00 00 88 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 A7 68 00 90 00 83 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]wFMCommunicate request_size=255 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C5 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 78 00 [21:50:55]Write to MH i2c: E2 02 01 A8 68 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C5 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 78 00 00 00 C6 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 A8 68 00 90 00 84 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]wFMCommunicate request_size=16 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 64 16 19 9D EE 00 [21:50:55]Write to MH i2c: E2 13 00 A9 68 80 0D 02 02 0B 00 00 35 04 06 00 64 16 19 9D EE 00 00 00 FE [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 03 00 A9 68 00 90 00 85 [21:50:55]RAPDU: 90 00 [21:50:55]wFMCommunicate OK [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 0D 03 02 [21:50:55]Write to MH i2c: E2 08 00 AA 68 80 0D 03 02 00 00 00 00 8D [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0B 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 0B 00 AA 68 00 36 44 83 0B B1 36 24 C1 90 00 62 [21:50:55]RAPDU: 36 44 83 0B B1 36 24 C1 90 00 [21:50:55]wFMCommunicate OK [21:50:55]SAM_PROTO_SignData done [21:50:55]FM_MakeSignedData done [21:50:55]CreateOFDProtocolMessage [21:50:55]wFMCommunicate request_size=4 [21:50:55]MH_SAM_APDU [21:50:55]CAPDU: 80 11 00 00 [21:50:55]Write to MH i2c: E2 08 00 AB 68 80 11 00 00 00 00 00 00 8D [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:55]Read from MH i2c: E2 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 17 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: E2 17 00 AB 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DB [21:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:50:55]wFMCommunicate OK [21:50:55]CreateOFDProtocolMessage done [21:50:55]OFDSenderStorePacket 30754 [21:50:55]StoreOFDPacket docnum=30754 [21:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 99 2C 0D 01 8B EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C5 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 78 00 00 35 04 06 00 64 16 19 9D EE 00 36 44 83 0B B1 36 24 C1 [21:50:55]CheckFolder [21:50:55]dirname=/storage/ofd_packets [21:50:55]CheckFolder done [21:50:55]ProducePacketName [21:50:55]name=ofd_packets/00030754 [21:50:55]NVStorageSaveData ofd_packets/00030754 [21:50:55]File name is /storage/ofd_packets/00030754 [21:50:55]Write 307 bytes [21:50:55]NVStorageSaveData done [21:50:55]OFDSenderStorePacket done [21:50:55]KKMCreateOFDPacket done [21:50:55]NVStorageSaveData kkm_last_timestamp [21:50:55]File name is /storage/kkm_last_timestamp [21:50:55]Write 4 bytes [21:50:55]NVStorageSaveData done [21:50:55]ExternCall_PrintAddStr [21:50:55]wPrintStart [21:50:55]Write to MH i2c: 01 00 00 AC 68 14 [21:50:55]Write i2c OK [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: 01 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: 01 07 00 [21:50:55]MH_I2C_Read... [21:50:55]Read from MH i2c: 01 07 00 AC 68 00 00 00 00 00 FF 0F 29 [21:50:55]RasterBufferAndPrint [21:50:55]line Счет N : (1)343173 [21:50:55]line ИНН: 02508201610067 [21:50:55]line Контрольно-Кассовый Чек [21:50:55]line ПРОДАЖА [21:50:55]line ТРК (МРК, ГНК) : 51 [21:50:55]line Товар: 2710194210 [21:50:55]line D-ENERGY Дт-К-2 [21:50:55]line 15.550 * 77.20 [21:50:55]line = 1200.46 [21:50:55]line НДС 12% НСП 1% [21:50:55]line > о реализуемом товаре [21:50:55]line ИТОГО: 1200.46 [21:50:55]line НСП 1% : 10.62 [21:50:55]line НДС 12% : 127.48 [21:50:55]line Наличными: 0.00 [21:50:55]line Безнал.: 1200.46 [21:50:55]line Место: АЗС № 78 "Партнер Нефть" [21:50:55]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:50:55]line СНО: Общий режим [21:50:55]line Чек 251 21.10.2024 21:51 [21:50:55]line Смена: 115 ФФД: 1.0 [21:50:55]line ЗНМ: 0300000137 [21:50:55]line РНМ: 0000000000186857 [21:50:55]line Версия ККМ: v1.0 [21:50:55]line Платежная система: АКБ Кыргызстан [21:50:55]line ФМ: 0000000002094219 [21:50:55]line ФД: 30754 [21:50:55]line ФПД: 110046081838592 [21:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30754&fm=110046081838592&tin=02508201610067®Number=0000000000186857&sum=120046 [21:50:56]OFD Sender: Processing packet 30754 [packets to send 10, broken 9] [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00030754 [21:50:56]OFD Sender: To server: pG, [21:50:56]CommunicateWithHost lk.salyk.kg:30040 [21:50:56]ConnectInit lk.salyk.kg [21:50:56]written 0, free lines is 4095 [21:50:56]Connected sock=10 [21:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 99 2C 0D 01 8B EE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EE D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EE D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 C5 CC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 78 00 00 35 04 06 00 64 16 19 9D EE 00 36 44 83 0B B1 36 24 C1 [21:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 61 AE 47 00 DD 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 22 78 00 00 F4 03 04 00 44 77 16 67 B6 04 01 00 00 E0 5B 38 DE 53 AD CF 46 [21:50:56]CommunicateWithHost err = 0 [21:50:56]CheckOFDResponse [21:50:56]1017 (14) - 77093643461234 [21:50:56]1041 (16) - 0000000002094219 [21:50:56]1040 (4) - 30754 [21:50:56]1012 (4) - 21.10.2024 15:46 [21:50:56]1206 (1) - 0 [21:50:56]OFD Sender: Remove packet 30754 [21:50:56]ProducePacketName [21:50:56]name=ofd_packets/00030754 [21:50:56]NVStorageDeleteData [21:50:56]Write to MH i2c: 01 00 00 D6 68 3E [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: 01 07 00 D6 68 00 00 00 00 00 0B 0D 5D [21:50:56]RasterBufferAndPrint [21:50:56]line [21:50:56]line [21:50:56]line [21:50:56]line [21:50:56]line [21:50:56]written 0, free lines is 3347 [21:50:56]MH_Cut [21:50:56]Write to MH i2c: D1 01 00 DD 68 01 17 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: D1 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: D1 01 00 [21:50:56]MH_I2C_Read... [21:50:56]Read from MH i2c: D1 01 00 DD 68 00 16 [21:50:56]Write to MH i2c: 01 00 00 DE 68 46 [21:50:56]Write i2c OK [21:50:56]MH_I2C_Read... [21:50:56]OFD Sender: No OFD packet to send [21:50:57]*** Cut start [21:50:57]*** Partial cut [21:50:57]*** CUTSNS_PIN = 1 [21:50:57]*** CUTSNS_PIN = 0 [21:50:57]*** Brake cut motor [21:50:57]Read from MH i2c: 01 [21:50:57]MH_I2C_Read... [21:50:57]*** Stop cut motor [21:50:57]*** Cut end [21:50:57]Read from MH i2c: 01 07 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: 01 07 00 DE 68 00 00 00 00 00 FF 0F 5B [21:50:57]process_action close_receipt done [21:50:57]requested_data is exist [21:50:57]produce_requested_data [21:50:57]requested_item fm.sn is exist - process it [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 11 00 00 [21:50:57]Write to MH i2c: E2 08 00 DF 68 80 11 00 00 00 00 00 00 C1 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 17 00 DF 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 0F [21:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:50:57]wFMCommunicate OK [21:50:57]requested_item fd.num is exist - process it [21:50:57]SAM_PROTO_GetFieldsCounters [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 13 00 00 [21:50:57]Write to MH i2c: E2 08 00 E0 68 80 13 00 00 00 00 00 00 C4 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:57]Read from MH i2c: E2 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 62 00 [21:50:57]MH_I2C_Read... [21:50:57]Read from MH i2c: E2 62 00 E0 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [21:50:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 22 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:57]wFMCommunicate OK [21:50:57]SAM_PROTO_GetFieldsCounters done [21:50:57]requested_item shift.num is exist - process it [21:50:57]requested_item shift.opened is exist - process it [21:50:57]req_shift_opened [21:50:57]FM_GetShiftState [21:50:57]SAM_PROTO_GetShiftState [21:50:57]wFMCommunicate request_size=4 [21:50:57]MH_SAM_APDU [21:50:57]CAPDU: 80 13 01 00 [21:50:57]Write to MH i2c: E2 08 00 E1 68 80 13 01 00 00 00 00 00 C6 [21:50:57]Write i2c OK [21:50:57]MH_I2C_Read... [21:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:58]Read from MH i2c: E2 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 [21:50:58]MH_I2C_Read... [21:50:58]Read from MH i2c: E2 0E 00 E1 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 42 [21:50:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:50:58]wFMCommunicate OK [21:50:58]SAM_PROTO_GetShiftState done [21:50:58]FM_GetShiftState done [21:50:58]req_shift_opened done [21:50:58]requested_item shift.open_date is exist - process it [21:50:58]req_shift_open_date [21:50:58]req_shift_open_date done [21:50:58]produce_requested_data done [21:50:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30754,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:50:58]process_action_free close_receipt [21:50:58]json_value_free [21:50:58]json_value_free done [21:50:58]process_json_proto returns [21:50:58]Send response to host [21:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30754,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:50:58]free response buf [21:50:58]execute_script done [21:50:58]execute_script returns [21:50:58]free content buf [21:50:58]Sock 7.Close socket [21:50:58]Sock 7.Thread stoped [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:54]accept exits with 9 [21:54:54]New connection [21:54:54]New thread 3067346276 created [21:54:54]Thread 3067489636 joined [21:54:54]Waiting for new connection... [21:54:54] Sock 9.Parse request [21:54:54]Sock 9.Check first char [21:54:54]Sock 9.First char is OK [21:54:54]request: POST /json_proto HTTP/1.0 [21:54:54]Method: POST [21:54:54]URL: /json_proto [21:54:54]Method is POST - this is cgi request [21:54:54]url: /json_proto [21:54:54]query_string will be loaded in cgi processing [21:54:54]execute_cgi json_proto POST (null) [21:54:54]execute_cgi path=json_proto method=POST [21:54:54]POST find Content-Length [21:54:54]Host: 172.17.51.3:8080 [21:54:54]Content-Length: 843 [21:54:54]Content-Type: application/json [21:54:54] [21:54:54]POST finish read [21:54:54]Found Content-Length = 843 [21:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:54]execute_script... [21:54:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 23.920, "sum" : 1600.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1600.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:54]POST & json_proto [21:54:54]process_json_proto [21:54:54]json parsed OK: [21:54:54]protocol is kg_v1.0 [21:54:54]action value=close_receipt [21:54:54]process_action close_receipt [21:54:54]cmd_close_receipt [21:54:54]MH_GetDate [21:54:54]Write to MH i2c: F0 00 00 E2 68 39 [21:54:54]Write i2c OK [21:54:54]MH_I2C_Read... [21:54:54]Read from MH i2c: F0 [21:54:54]MH_I2C_Read... [21:54:54]Read from MH i2c: F0 09 00 [21:54:54]MH_I2C_Read... [21:54:54]Read from MH i2c: F0 09 00 E2 68 00 B5 CD 16 67 04 C1 95 66 01 [21:54:54]GetLastDocTimeStamp 1729547461 [21:54:54]current date 1729547701 [21:54:54]FM_GetShiftState [21:54:54]SAM_PROTO_GetShiftState [21:54:54]wFMCommunicate request_size=4 [21:54:54]MH_SAM_APDU [21:54:54]CAPDU: 80 13 01 00 [21:54:54]Write to MH i2c: E2 08 00 E3 68 80 13 01 00 00 00 00 00 C8 [21:54:54]Write i2c OK [21:54:54]MH_I2C_Read... [21:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:54]Read from MH i2c: E2 [21:54:54]MH_I2C_Read... [21:54:54]Read from MH i2c: E2 0E 00 [21:54:54]MH_I2C_Read... [21:54:54]Read from MH i2c: E2 0E 00 E3 68 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 44 [21:54:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:54:54]wFMCommunicate OK [21:54:54]SAM_PROTO_GetShiftState done [21:54:54]FM_GetShiftState done [21:54:54]opened in 1729471058 [21:54:54]opened+sec_in_day 1729557458 [21:54:54]quantity*price = 160024 [21:54:54]sum+1 = 160026 [21:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1600.25 НСП 1% : 14.16 НДС 12% : 169.94 Наличными: 0.00 Безнал.: 1600.25 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 252 21.10.2024 21:55 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30755 ФПД: 211707748565856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215501&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30755&fm=211707748565856&tin=02508201610067®Number=0000000000186857&sum=160025 [21:54:55]StoreToDocumentArchive [21:54:55]shift 115 fd 30755 [21:54:55]save to /storage/0115/doc_00030755 [21:54:55]save last doc name /storage/0115/doc_00030755 to /storage/kkm_last_doc_name [21:54:55]save OK [21:54:55]Clear old archive folders... [21:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:55]tlvbuf is B6F5D640 [21:54:55]SAM_PROTO_ClearQueue [21:54:55]wFMCommunicate request_size=4 [21:54:55]MH_SAM_APDU [21:54:55]CAPDU: 80 09 00 00 [21:54:55]Write to MH i2c: E2 08 00 F0 68 80 09 00 00 00 00 00 00 CA [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:55]Read from MH i2c: E2 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 F0 68 00 90 00 CC [21:54:55]RAPDU: 90 00 [21:54:55]wFMCommunicate OK [21:54:55]SAM_PROTO_ClearQueue done [21:54:55]KKMCreateOFDPacket [21:54:55]OFDProtocolAddRootSTLVToBuf [21:54:55]FM_MakeSignedData [21:54:55]FM_MakeSignedData [21:54:55]SAM_PROTO_SignData [21:54:55]wFMCommunicate request_size=4 [21:54:55]MH_SAM_APDU [21:54:55]CAPDU: 80 0D 01 02 [21:54:55]Write to MH i2c: E2 08 00 F1 68 80 0D 01 02 00 00 00 00 D2 [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:55]Read from MH i2c: E2 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 F1 68 00 90 00 CD [21:54:55]RAPDU: 90 00 [21:54:55]wFMCommunicate OK [21:54:55]wFMCommunicate request_size=255 [21:54:55]MH_SAM_APDU [21:54:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B5 CD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 78 00 00 35 04 06 00 C0 [21:54:55]Write to MH i2c: E2 02 01 F2 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B5 CD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 78 00 00 35 04 06 00 C0 00 00 85 [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:55]Read from MH i2c: E2 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 [21:54:55]MH_I2C_Read... [21:54:55]Read from MH i2c: E2 03 00 F2 68 00 90 00 CE [21:54:55]RAPDU: 90 00 [21:54:55]wFMCommunicate OK [21:54:55]wFMCommunicate request_size=10 [21:54:55]MH_SAM_APDU [21:54:55]CAPDU: 80 0D 02 02 05 8C 0D 26 43 60 [21:54:55]Write to MH i2c: E2 0D 00 F3 68 80 0D 02 02 05 00 8C 0D 26 43 60 00 00 41 [21:54:55]Write i2c OK [21:54:55]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 03 00 F3 68 00 90 00 CF [21:54:56]RAPDU: 90 00 [21:54:56]wFMCommunicate OK [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 0D 03 02 [21:54:56]Write to MH i2c: E2 08 00 F4 68 80 0D 03 02 00 00 00 00 D7 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 0B 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 0B 00 F4 68 00 D7 6A 19 95 35 1B 42 0B 90 00 64 [21:54:56]RAPDU: D7 6A 19 95 35 1B 42 0B 90 00 [21:54:56]wFMCommunicate OK [21:54:56]SAM_PROTO_SignData done [21:54:56]FM_MakeSignedData done [21:54:56]CreateOFDProtocolMessage [21:54:56]wFMCommunicate request_size=4 [21:54:56]MH_SAM_APDU [21:54:56]CAPDU: 80 11 00 00 [21:54:56]Write to MH i2c: E2 08 00 F5 68 80 11 00 00 00 00 00 00 D7 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:56]Read from MH i2c: E2 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 17 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: E2 17 00 F5 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 25 [21:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:54:56]wFMCommunicate OK [21:54:56]CreateOFDProtocolMessage done [21:54:56]OFDSenderStorePacket 30755 [21:54:56]StoreOFDPacket docnum=30755 [21:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 97 07 01 57 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B5 CD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 78 00 00 35 04 06 00 C0 8C 0D 26 43 60 D7 6A 19 95 35 1B 42 0B [21:54:56]CheckFolder [21:54:56]dirname=/storage/ofd_packets [21:54:56]CheckFolder done [21:54:56]ProducePacketName [21:54:56]name=ofd_packets/00030755 [21:54:56]NVStorageSaveData ofd_packets/00030755 [21:54:56]File name is /storage/ofd_packets/00030755 [21:54:56]Write 301 bytes [21:54:56]NVStorageSaveData done [21:54:56]OFDSenderStorePacket done [21:54:56]KKMCreateOFDPacket done [21:54:56]NVStorageSaveData kkm_last_timestamp [21:54:56]File name is /storage/kkm_last_timestamp [21:54:56]Write 4 bytes [21:54:56]NVStorageSaveData done [21:54:56]ExternCall_PrintAddStr [21:54:56]wPrintStart [21:54:56]Write to MH i2c: 01 00 00 F6 68 5E [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 F6 68 00 00 00 00 00 FF 0F 73 [21:54:56]RasterBufferAndPrint [21:54:56]line Счет N : (1)343174 [21:54:56]line ИНН: 02508201610067 [21:54:56]line Контрольно-Кассовый Чек [21:54:56]line ПРОДАЖА [21:54:56]line ТРК (МРК, ГНК) : 43 [21:54:56]line Товар: 2710124130 [21:54:56]line Аи-92-К-2 [21:54:56]line 23.920 * 66.90 [21:54:56]line = 1600.25 [21:54:56]line НДС 12% НСП 1% [21:54:56]line > о реализуемом товаре [21:54:56]line ИТОГО: 1600.25 [21:54:56]line НСП 1% : 14.16 [21:54:56]line НДС 12% : 169.94 [21:54:56]line Наличными: 0.00 [21:54:56]line Безнал.: 1600.25 [21:54:56]line Место: АЗС № 78 "Партнер Нефть" [21:54:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [21:54:56]line СНО: Общий режим [21:54:56]line Чек 252 21.10.2024 21:55 [21:54:56]line Смена: 115 ФФД: 1.0 [21:54:56]line ЗНМ: 0300000137 [21:54:56]line РНМ: 0000000000186857 [21:54:56]line Версия ККМ: v1.0 [21:54:56]line Платежная система: АКБ Кыргызстан [21:54:56]line ФМ: 0000000002094219 [21:54:56]line ФД: 30755 [21:54:56]line ФПД: 211707748565856 [21:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215501&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30755&fm=211707748565856&tin=02508201610067®Number=0000000000186857&sum=160025 [21:54:56]OFD Sender: Processing packet 30755 [packets to send 10, broken 9] [21:54:56]ProducePacketName [21:54:56]name=ofd_packets/00030755 [21:54:56]OFD Sender: To server: pG, [21:54:56]CommunicateWithHost lk.salyk.kg:30040 [21:54:56]ConnectInit lk.salyk.kg [21:54:56]written 0, free lines is 4095 [21:54:56]Connected sock=10 [21:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 19 97 07 01 57 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 70 5D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 19 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 42 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 19 71 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 B5 CD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 23 78 00 00 35 04 06 00 C0 8C 0D 26 43 60 D7 6A 19 95 35 1B 42 0B [21:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 1E 42 47 00 24 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 32 30 39 34 32 31 39 10 04 04 00 23 78 00 00 F4 03 04 00 34 78 16 67 B6 04 01 00 00 B5 C3 3D 03 1B 5E AF 6F [21:54:56]CommunicateWithHost err = 0 [21:54:56]CheckOFDResponse [21:54:56]1017 (14) - 77093643461234 [21:54:56]1041 (16) - 0000000002094219 [21:54:56]1040 (4) - 30755 [21:54:56]1012 (4) - 21.10.2024 15:50 [21:54:56]1206 (1) - 0 [21:54:56]OFD Sender: Remove packet 30755 [21:54:56]ProducePacketName [21:54:56]name=ofd_packets/00030755 [21:54:56]NVStorageDeleteData [21:54:56]Write to MH i2c: 01 00 00 20 69 89 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: 01 07 00 20 69 00 00 00 00 00 06 0D A3 [21:54:56]RasterBufferAndPrint [21:54:56]line [21:54:56]line [21:54:56]line [21:54:56]line [21:54:56]line [21:54:56]written 0, free lines is 3340 [21:54:56]MH_Cut [21:54:56]Write to MH i2c: D1 01 00 27 69 01 62 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: D1 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: D1 01 00 [21:54:56]MH_I2C_Read... [21:54:56]Read from MH i2c: D1 01 00 27 69 00 61 [21:54:56]Write to MH i2c: 01 00 00 28 69 91 [21:54:56]Write i2c OK [21:54:56]MH_I2C_Read... [21:54:57]OFD Sender: No OFD packet to send [21:54:57]*** Cut start [21:54:57]*** Partial cut [21:54:57]*** CUTSNS_PIN = 1 [21:54:57]*** CUTSNS_PIN = 0 [21:54:57]*** Brake cut motor [21:54:58]Read from MH i2c: 01 [21:54:58]MH_I2C_Read... [21:54:58]*** Stop cut motor [21:54:58]*** Cut end [21:54:58]Read from MH i2c: 01 07 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: 01 07 00 28 69 00 00 00 00 00 FF 0F A6 [21:54:58]process_action close_receipt done [21:54:58]requested_data is exist [21:54:58]produce_requested_data [21:54:58]requested_item fm.sn is exist - process it [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 11 00 00 [21:54:58]Write to MH i2c: E2 08 00 29 69 80 11 00 00 00 00 00 00 0C [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 17 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 17 00 29 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 5A [21:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [21:54:58]wFMCommunicate OK [21:54:58]requested_item fd.num is exist - process it [21:54:58]SAM_PROTO_GetFieldsCounters [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 13 00 00 [21:54:58]Write to MH i2c: E2 08 00 2A 69 80 13 00 00 00 00 00 00 0F [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 62 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 62 00 2A 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [21:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 23 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:58]wFMCommunicate OK [21:54:58]SAM_PROTO_GetFieldsCounters done [21:54:58]requested_item shift.num is exist - process it [21:54:58]requested_item shift.opened is exist - process it [21:54:58]req_shift_opened [21:54:58]FM_GetShiftState [21:54:58]SAM_PROTO_GetShiftState [21:54:58]wFMCommunicate request_size=4 [21:54:58]MH_SAM_APDU [21:54:58]CAPDU: 80 13 01 00 [21:54:58]Write to MH i2c: E2 08 00 2B 69 80 13 01 00 00 00 00 00 11 [21:54:58]Write i2c OK [21:54:58]MH_I2C_Read... [21:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:58]Read from MH i2c: E2 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 [21:54:58]MH_I2C_Read... [21:54:58]Read from MH i2c: E2 0E 00 2B 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8D [21:54:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [21:54:58]wFMCommunicate OK [21:54:58]SAM_PROTO_GetShiftState done [21:54:58]FM_GetShiftState done [21:54:58]req_shift_opened done [21:54:58]requested_item shift.open_date is exist - process it [21:54:58]req_shift_open_date [21:54:58]req_shift_open_date done [21:54:58]produce_requested_data done [21:54:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30755,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [21:54:58]process_action_free close_receipt [21:54:58]json_value_free [21:54:58]json_value_free done [21:54:58]process_json_proto returns [21:54:58]Send response to host [21:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30755,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [21:54:58]free response buf [21:54:58]execute_script done [21:54:58]execute_script returns [21:54:58]free content buf [21:54:58]Sock 9.Close socket [21:54:58]Sock 9.Thread stoped [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:20]accept exits with 7 [22:00:20]New connection [22:00:20]New thread 3067489636 created [22:00:20]Thread 3067346276 joined [22:00:20]Waiting for new connection... [22:00:20] Sock 7.Parse request [22:00:20]Sock 7.Check first char [22:00:20]Sock 7.First char is OK [22:00:20]request: POST /json_proto HTTP/1.0 [22:00:20]Method: POST [22:00:20]URL: /json_proto [22:00:20]Method is POST - this is cgi request [22:00:20]url: /json_proto [22:00:20]query_string will be loaded in cgi processing [22:00:20]execute_cgi json_proto POST (null) [22:00:20]execute_cgi path=json_proto method=POST [22:00:20]POST find Content-Length [22:00:20]Host: 172.17.51.3:8080 [22:00:20]Content-Length: 688 [22:00:20]Content-Type: application/json [22:00:20] [22:00:20]POST finish read [22:00:20]Found Content-Length = 688 [22:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:20]execute_script... [22:00:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:00:20]POST & json_proto [22:00:20]process_json_proto [22:00:20]json parsed OK: [22:00:20]protocol is kg_v1.0 [22:00:20]action value=close_receipt [22:00:20]process_action close_receipt [22:00:20]cmd_close_receipt [22:00:20]MH_GetDate [22:00:20]Write to MH i2c: F0 00 00 2C 69 84 [22:00:20]Write i2c OK [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: F0 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: F0 09 00 [22:00:20]MH_I2C_Read... [22:00:20]Read from MH i2c: F0 09 00 2C 69 00 FB CE 16 67 04 C1 95 66 93 [22:00:20]GetLastDocTimeStamp 1729547701 [22:00:20]current date 1729548027 [22:00:20]FM_GetShiftState [22:00:20]SAM_PROTO_GetShiftState [22:00:20]wFMCommunicate request_size=4 [22:00:20]MH_SAM_APDU [22:00:20]CAPDU: 80 13 01 00 [22:00:20]Write to MH i2c: E2 08 00 2D 69 80 13 01 00 00 00 00 00 13 [22:00:20]Write i2c OK [22:00:20]MH_I2C_Read... [22:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:21]Read from MH i2c: E2 [22:00:21]MH_I2C_Read... [22:00:21]Read from MH i2c: E2 0E 00 [22:00:21]MH_I2C_Read... [22:00:21]Read from MH i2c: E2 0E 00 2D 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 8F [22:00:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:00:21]wFMCommunicate OK [22:00:21]SAM_PROTO_GetShiftState done [22:00:21]FM_GetShiftState done [22:00:21]opened in 1729471058 [22:00:21]opened+sec_in_day 1729557458 [22:00:21]quantity*price = 300076 [22:00:21]sum+1 = 300077 [22:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 253 21.10.2024 22:00 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30756 ФПД: 202945198821336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30756&fm=202945198821336&tin=02508201610067®Number=0000000000186857&sum=300000 [22:00:22]StoreToDocumentArchive [22:00:22]shift 115 fd 30756 [22:00:22]save to /storage/0115/doc_00030756 [22:00:22]save last doc name /storage/0115/doc_00030756 to /storage/kkm_last_doc_name [22:00:22]save OK [22:00:22]Clear old archive folders... [22:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:00:22]tlvbuf is 01F3C610 [22:00:22]SAM_PROTO_ClearQueue [22:00:22]wFMCommunicate request_size=4 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 09 00 00 [22:00:22]Write to MH i2c: E2 08 00 3A 69 80 09 00 00 00 00 00 00 15 [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 3A 69 00 90 00 17 [22:00:22]RAPDU: 90 00 [22:00:22]wFMCommunicate OK [22:00:22]SAM_PROTO_ClearQueue done [22:00:22]KKMCreateOFDPacket [22:00:22]OFDProtocolAddRootSTLVToBuf [22:00:22]FM_MakeSignedData [22:00:22]FM_MakeSignedData [22:00:22]SAM_PROTO_SignData [22:00:22]wFMCommunicate request_size=4 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 0D 01 02 [22:00:22]Write to MH i2c: E2 08 00 3B 69 80 0D 01 02 00 00 00 00 1D [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 3B 69 00 90 00 18 [22:00:22]RAPDU: 90 00 [22:00:22]wFMCommunicate OK [22:00:22]wFMCommunicate request_size=255 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FC CE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 78 00 [22:00:22]Write to MH i2c: E2 02 01 3C 69 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FC CE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 78 00 00 00 AC [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 3C 69 00 90 00 19 [22:00:22]RAPDU: 90 00 [22:00:22]wFMCommunicate OK [22:00:22]wFMCommunicate request_size=16 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B8 93 DC 7C 0F D8 [22:00:22]Write to MH i2c: E2 13 00 3D 69 80 0D 02 02 0B 00 00 35 04 06 00 B8 93 DC 7C 0F D8 00 00 FF [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 03 00 3D 69 00 90 00 1A [22:00:22]RAPDU: 90 00 [22:00:22]wFMCommunicate OK [22:00:22]wFMCommunicate request_size=4 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 0D 03 02 [22:00:22]Write to MH i2c: E2 08 00 3E 69 80 0D 03 02 00 00 00 00 22 [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 0B 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 0B 00 3E 69 00 EB 51 A9 40 C9 28 8C BA 90 00 7F [22:00:22]RAPDU: EB 51 A9 40 C9 28 8C BA 90 00 [22:00:22]wFMCommunicate OK [22:00:22]SAM_PROTO_SignData done [22:00:22]FM_MakeSignedData done [22:00:22]CreateOFDProtocolMessage [22:00:22]wFMCommunicate request_size=4 [22:00:22]MH_SAM_APDU [22:00:22]CAPDU: 80 11 00 00 [22:00:22]Write to MH i2c: E2 08 00 3F 69 80 11 00 00 00 00 00 00 22 [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]OFD Sender: No OFD packet to send [22:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:22]Read from MH i2c: E2 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 17 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: E2 17 00 3F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 70 [22:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:00:22]wFMCommunicate OK [22:00:22]CreateOFDProtocolMessage done [22:00:22]OFDSenderStorePacket 30756 [22:00:22]StoreOFDPacket docnum=30756 [22:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 18 32 0D 01 AD F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FC CE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 78 00 00 35 04 06 00 B8 93 DC 7C 0F D8 EB 51 A9 40 C9 28 8C BA [22:00:22]CheckFolder [22:00:22]dirname=/storage/ofd_packets [22:00:22]CheckFolder done [22:00:22]ProducePacketName [22:00:22]name=ofd_packets/00030756 [22:00:22]NVStorageSaveData ofd_packets/00030756 [22:00:22]File name is /storage/ofd_packets/00030756 [22:00:22]Write 307 bytes [22:00:22]NVStorageSaveData done [22:00:22]OFDSenderStorePacket done [22:00:22]KKMCreateOFDPacket done [22:00:22]NVStorageSaveData kkm_last_timestamp [22:00:22]File name is /storage/kkm_last_timestamp [22:00:22]Write 4 bytes [22:00:22]NVStorageSaveData done [22:00:22]ExternCall_PrintAddStr [22:00:22]wPrintStart [22:00:22]Write to MH i2c: 01 00 00 40 69 A9 [22:00:22]Write i2c OK [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: 01 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: 01 07 00 [22:00:22]MH_I2C_Read... [22:00:22]Read from MH i2c: 01 07 00 40 69 00 00 00 00 00 FF 0F BE [22:00:22]RasterBufferAndPrint [22:00:22]line Счет N : (1)343175 [22:00:22]line ИНН: 02508201610067 [22:00:22]line Контрольно-Кассовый Чек [22:00:22]line ПРОДАЖА [22:00:22]line ТРК (МРК, ГНК) : 51 [22:00:22]line Товар: 2710194210 [22:00:22]line D-ENERGY Дт-К-2 [22:00:22]line 38.870 * 77.20 [22:00:22]line = 3000.76 [22:00:22]line НДС 12% НСП 1% [22:00:22]line > о реализуемом товаре [22:00:22]line ОКРУГЛЕНИЕ: -0.76 [22:00:22]line ИТОГО: 3000.00 [22:00:22]line Внесено: 3000.00 [22:00:22]line СДАЧА: 0.00 [22:00:22]line НСП 1% : 26.55 [22:00:22]line НДС 12% : 318.66 [22:00:22]line Наличными: 3000.00 [22:00:22]line Безнал.: 0.00 [22:00:22]line Место: АЗС № 78 "Партнер Нефть" [22:00:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:00:22]line СНО: Общий режим [22:00:22]line Чек 253 21.10.2024 22:00 [22:00:22]line Смена: 115 ФФД: 1.0 [22:00:22]line ЗНМ: 0300000137 [22:00:22]line РНМ: 0000000000186857 [22:00:22]line Версия ККМ: v1.0 [22:00:22]line ФМ: 0000000002094219 [22:00:22]line ФД: 30756 [22:00:22]line ФПД: 202945198821336 [22:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220028&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30756&fm=202945198821336&tin=02508201610067®Number=0000000000186857&sum=300000 [22:00:23]OFD Sender: Processing packet 30756 [packets to send 10, broken 9] [22:00:23]ProducePacketName [22:00:23]name=ofd_packets/00030756 [22:00:23]OFD Sender: To server: pG, [22:00:23]CommunicateWithHost lk.salyk.kg:30040 [22:00:23]ConnectInit lk.salyk.kg [22:00:23]written 0, free lines is 4095 [22:00:23]Connected sock=10 [22:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 15 01 00 00 18 32 0D 01 AD F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 FC CE 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 78 00 00 35 04 06 00 B8 93 DC 7C 0F D8 EB 51 A9 40 C9 28 8C BA [22:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 81 74 47 00 4B 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 24 78 00 00 F4 03 04 00 7B 79 16 67 B6 04 01 00 00 5E C4 9D 91 B5 64 05 F4 [22:00:23]CommunicateWithHost err = 0 [22:00:23]CheckOFDResponse [22:00:23]1017 (14) - 77093643461234 [22:00:23]1041 (16) - 0000000002094219 [22:00:23]1040 (4) - 30756 [22:00:23]1012 (4) - 21.10.2024 15:55 [22:00:23]1206 (1) - 0 [22:00:23]OFD Sender: Remove packet 30756 [22:00:23]ProducePacketName [22:00:23]name=ofd_packets/00030756 [22:00:23]NVStorageDeleteData [22:00:23]Write to MH i2c: 01 00 00 6B 69 D4 [22:00:23]Write i2c OK [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: 01 [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: 01 07 00 [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: 01 07 00 6B 69 00 00 00 00 00 EA 0C D1 [22:00:23]RasterBufferAndPrint [22:00:23]line [22:00:23]line [22:00:23]line [22:00:23]line [22:00:23]line [22:00:23]written 0, free lines is 3316 [22:00:23]MH_Cut [22:00:23]Write to MH i2c: D1 01 00 72 69 01 AD [22:00:23]Write i2c OK [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: D1 [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: D1 01 00 [22:00:23]MH_I2C_Read... [22:00:23]Read from MH i2c: D1 01 00 72 69 00 AC [22:00:23]Write to MH i2c: 01 00 00 73 69 DC [22:00:23]Write i2c OK [22:00:23]MH_I2C_Read... [22:00:23]OFD Sender: No OFD packet to send [22:00:24]*** Cut start [22:00:24]*** Partial cut [22:00:24]*** CUTSNS_PIN = 1 [22:00:24]*** CUTSNS_PIN = 0 [22:00:24]*** Brake cut motor [22:00:24]Read from MH i2c: 01 [22:00:24]MH_I2C_Read... [22:00:24]*** Stop cut motor [22:00:24]*** Cut end [22:00:24]Read from MH i2c: 01 07 00 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: 01 07 00 73 69 00 00 00 00 00 FF 0F F1 [22:00:24]process_action close_receipt done [22:00:24]requested_data is exist [22:00:24]produce_requested_data [22:00:24]requested_item fm.sn is exist - process it [22:00:24]wFMCommunicate request_size=4 [22:00:24]MH_SAM_APDU [22:00:24]CAPDU: 80 11 00 00 [22:00:24]Write to MH i2c: E2 08 00 74 69 80 11 00 00 00 00 00 00 57 [22:00:24]Write i2c OK [22:00:24]MH_I2C_Read... [22:00:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:00:24]Read from MH i2c: E2 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: E2 17 00 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: E2 17 00 74 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 A5 [22:00:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:00:24]wFMCommunicate OK [22:00:24]requested_item fd.num is exist - process it [22:00:24]SAM_PROTO_GetFieldsCounters [22:00:24]wFMCommunicate request_size=4 [22:00:24]MH_SAM_APDU [22:00:24]CAPDU: 80 13 00 00 [22:00:24]Write to MH i2c: E2 08 00 75 69 80 13 00 00 00 00 00 00 5A [22:00:24]Write i2c OK [22:00:24]MH_I2C_Read... [22:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:00:24]Read from MH i2c: E2 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: E2 62 00 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: E2 62 00 75 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [22:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 24 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:00:24]wFMCommunicate OK [22:00:24]SAM_PROTO_GetFieldsCounters done [22:00:24]requested_item shift.num is exist - process it [22:00:24]requested_item shift.opened is exist - process it [22:00:24]req_shift_opened [22:00:24]FM_GetShiftState [22:00:24]SAM_PROTO_GetShiftState [22:00:24]wFMCommunicate request_size=4 [22:00:24]MH_SAM_APDU [22:00:24]CAPDU: 80 13 01 00 [22:00:24]Write to MH i2c: E2 08 00 76 69 80 13 01 00 00 00 00 00 5C [22:00:24]Write i2c OK [22:00:24]MH_I2C_Read... [22:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:00:24]Read from MH i2c: E2 [22:00:24]MH_I2C_Read... [22:00:24]Read from MH i2c: E2 0E 00 [22:00:24]MH_I2C_Read... [22:00:25]Read from MH i2c: E2 0E 00 76 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 D8 [22:00:25]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:00:25]wFMCommunicate OK [22:00:25]SAM_PROTO_GetShiftState done [22:00:25]FM_GetShiftState done [22:00:25]req_shift_opened done [22:00:25]requested_item shift.open_date is exist - process it [22:00:25]req_shift_open_date [22:00:25]req_shift_open_date done [22:00:25]produce_requested_data done [22:00:25]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30756,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:00:25]process_action_free close_receipt [22:00:25]json_value_free [22:00:25]json_value_free done [22:00:25]process_json_proto returns [22:00:25]Send response to host [22:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30756,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:00:25]free response buf [22:00:25]execute_script done [22:00:25]execute_script returns [22:00:25]free content buf [22:00:25]Sock 7.Close socket [22:00:25]Sock 7.Thread stoped [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:31]accept exits with 9 [22:11:31]New connection [22:11:31]New thread 3067346276 created [22:11:31]Thread 3067489636 joined [22:11:31]Waiting for new connection... [22:11:31] Sock 9.Parse request [22:11:31]Sock 9.Check first char [22:11:31]Sock 9.First char is OK [22:11:31]request: POST /json_proto HTTP/1.0 [22:11:31]Method: POST [22:11:31]URL: /json_proto [22:11:31]Method is POST - this is cgi request [22:11:31]url: /json_proto [22:11:31]query_string will be loaded in cgi processing [22:11:31]execute_cgi json_proto POST (null) [22:11:31]execute_cgi path=json_proto method=POST [22:11:31]POST find Content-Length [22:11:31]Host: 172.17.51.3:8080 [22:11:31]Content-Length: 677 [22:11:31]Content-Type: application/json [22:11:31] [22:11:31]POST finish read [22:11:31]Found Content-Length = 677 [22:11:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:31]execute_script... [22:11:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:31]POST & json_proto [22:11:31]process_json_proto [22:11:31]json parsed OK: [22:11:31]protocol is kg_v1.0 [22:11:31]action value=close_receipt [22:11:31]process_action close_receipt [22:11:31]cmd_close_receipt [22:11:31]MH_GetDate [22:11:31]Write to MH i2c: F0 00 00 77 69 CF [22:11:31]Write i2c OK [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: F0 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: F0 09 00 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: F0 09 00 77 69 00 9A D1 16 67 04 C1 95 66 80 [22:11:31]GetLastDocTimeStamp 1729548028 [22:11:31]current date 1729548698 [22:11:31]FM_GetShiftState [22:11:31]SAM_PROTO_GetShiftState [22:11:31]wFMCommunicate request_size=4 [22:11:31]MH_SAM_APDU [22:11:31]CAPDU: 80 13 01 00 [22:11:31]Write to MH i2c: E2 08 00 78 69 80 13 01 00 00 00 00 00 5E [22:11:31]Write i2c OK [22:11:31]MH_I2C_Read... [22:11:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:31]Read from MH i2c: E2 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: E2 0E 00 [22:11:31]MH_I2C_Read... [22:11:31]Read from MH i2c: E2 0E 00 78 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 DA [22:11:31]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:11:31]wFMCommunicate OK [22:11:31]SAM_PROTO_GetShiftState done [22:11:31]FM_GetShiftState done [22:11:31]opened in 1729471058 [22:11:31]opened+sec_in_day 1729557458 [22:11:31]quantity*price = 30038 [22:11:31]sum+1 = 30039 [22:11:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 254 21.10.2024 22:11 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30757 ФПД: 72033556153884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30757&fm=72033556153884&tin=02508201610067®Number=0000000000186857&sum=30000 [22:11:32]StoreToDocumentArchive [22:11:32]shift 115 fd 30757 [22:11:32]save to /storage/0115/doc_00030757 [22:11:32]save last doc name /storage/0115/doc_00030757 to /storage/kkm_last_doc_name [22:11:32]save OK [22:11:32]Clear old archive folders... [22:11:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:11:32]tlvbuf is 01F4B710 [22:11:32]SAM_PROTO_ClearQueue [22:11:32]wFMCommunicate request_size=4 [22:11:32]MH_SAM_APDU [22:11:32]CAPDU: 80 09 00 00 [22:11:32]Write to MH i2c: E2 08 00 85 69 80 09 00 00 00 00 00 00 60 [22:11:32]Write i2c OK [22:11:32]MH_I2C_Read... [22:11:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:32]Read from MH i2c: E2 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 03 00 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 03 00 85 69 00 90 00 62 [22:11:32]RAPDU: 90 00 [22:11:32]wFMCommunicate OK [22:11:32]SAM_PROTO_ClearQueue done [22:11:32]KKMCreateOFDPacket [22:11:32]OFDProtocolAddRootSTLVToBuf [22:11:32]FM_MakeSignedData [22:11:32]FM_MakeSignedData [22:11:32]SAM_PROTO_SignData [22:11:32]wFMCommunicate request_size=4 [22:11:32]MH_SAM_APDU [22:11:32]CAPDU: 80 0D 01 02 [22:11:32]Write to MH i2c: E2 08 00 86 69 80 0D 01 02 00 00 00 00 68 [22:11:32]Write i2c OK [22:11:32]MH_I2C_Read... [22:11:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:32]Read from MH i2c: E2 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 03 00 [22:11:32]MH_I2C_Read... [22:11:32]Read from MH i2c: E2 03 00 86 69 00 90 00 63 [22:11:32]RAPDU: 90 00 [22:11:32]wFMCommunicate OK [22:11:32]wFMCommunicate request_size=255 [22:11:32]MH_SAM_APDU [22:11:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9A D1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 78 00 00 35 04 06 00 41 [22:11:32]Write to MH i2c: E2 02 01 87 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9A D1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 78 00 00 35 04 06 00 41 00 00 24 [22:11:32]Write i2c OK [22:11:32]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 03 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 03 00 87 69 00 90 00 64 [22:11:33]RAPDU: 90 00 [22:11:33]wFMCommunicate OK [22:11:33]wFMCommunicate request_size=10 [22:11:33]MH_SAM_APDU [22:11:33]CAPDU: 80 0D 02 02 05 83 9E 86 C6 1C [22:11:33]Write to MH i2c: E2 0D 00 88 69 80 0D 02 02 05 00 83 9E 86 C6 1C 00 00 FE [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 03 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 03 00 88 69 00 90 00 65 [22:11:33]RAPDU: 90 00 [22:11:33]wFMCommunicate OK [22:11:33]wFMCommunicate request_size=4 [22:11:33]MH_SAM_APDU [22:11:33]CAPDU: 80 0D 03 02 [22:11:33]Write to MH i2c: E2 08 00 89 69 80 0D 03 02 00 00 00 00 6D [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 0B 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 0B 00 89 69 00 24 E5 91 F5 24 42 73 3C 90 00 12 [22:11:33]RAPDU: 24 E5 91 F5 24 42 73 3C 90 00 [22:11:33]wFMCommunicate OK [22:11:33]SAM_PROTO_SignData done [22:11:33]FM_MakeSignedData done [22:11:33]CreateOFDProtocolMessage [22:11:33]wFMCommunicate request_size=4 [22:11:33]MH_SAM_APDU [22:11:33]CAPDU: 80 11 00 00 [22:11:33]Write to MH i2c: E2 08 00 8A 69 80 11 00 00 00 00 00 00 6D [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:33]Read from MH i2c: E2 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 17 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: E2 17 00 8A 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 BB [22:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:11:33]wFMCommunicate OK [22:11:33]CreateOFDProtocolMessage done [22:11:33]OFDSenderStorePacket 30757 [22:11:33]StoreOFDPacket docnum=30757 [22:11:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 F6 07 01 A8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9A D1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 78 00 00 35 04 06 00 41 83 9E 86 C6 1C 24 E5 91 F5 24 42 73 3C [22:11:33]CheckFolder [22:11:33]dirname=/storage/ofd_packets [22:11:33]CheckFolder done [22:11:33]ProducePacketName [22:11:33]name=ofd_packets/00030757 [22:11:33]NVStorageSaveData ofd_packets/00030757 [22:11:33]File name is /storage/ofd_packets/00030757 [22:11:33]Write 301 bytes [22:11:33]NVStorageSaveData done [22:11:33]OFDSenderStorePacket done [22:11:33]KKMCreateOFDPacket done [22:11:33]NVStorageSaveData kkm_last_timestamp [22:11:33]File name is /storage/kkm_last_timestamp [22:11:33]Write 4 bytes [22:11:33]NVStorageSaveData done [22:11:33]ExternCall_PrintAddStr [22:11:33]wPrintStart [22:11:33]Write to MH i2c: 01 00 00 8B 69 F4 [22:11:33]Write i2c OK [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: 01 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: 01 07 00 [22:11:33]MH_I2C_Read... [22:11:33]Read from MH i2c: 01 07 00 8B 69 00 00 00 00 00 FF 0F 09 [22:11:33]RasterBufferAndPrint [22:11:33]line Счет N : (1)343176 [22:11:33]line ИНН: 02508201610067 [22:11:33]line Контрольно-Кассовый Чек [22:11:33]line ПРОДАЖА [22:11:33]line ТРК (МРК, ГНК) : 63 [22:11:33]line Товар: 2710124130 [22:11:33]line Аи-92-К-2 [22:11:33]line 4.490 * 66.90 [22:11:33]line = 300.38 [22:11:33]line НДС 12% НСП 1% [22:11:33]line > о реализуемом товаре [22:11:33]line ОКРУГЛЕНИЕ: -0.38 [22:11:33]line ИТОГО: 300.00 [22:11:33]line Внесено: 300.00 [22:11:33]line СДАЧА: 0.00 [22:11:33]line НСП 1% : 2.66 [22:11:33]line НДС 12% : 31.90 [22:11:33]line Наличными: 300.00 [22:11:33]line Безнал.: 0.00 [22:11:33]line Место: АЗС № 78 "Партнер Нефть" [22:11:33]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:11:33]line СНО: Общий режим [22:11:33]line Чек 254 21.10.2024 22:11 [22:11:33]line Смена: 115 ФФД: 1.0 [22:11:33]line ЗНМ: 0300000137 [22:11:33]line РНМ: 0000000000186857 [22:11:33]line Версия ККМ: v1.0 [22:11:33]line ФМ: 0000000002094219 [22:11:33]line ФД: 30757 [22:11:33]line ФПД: 72033556153884 [22:11:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221138&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30757&fm=72033556153884&tin=02508201610067®Number=0000000000186857&sum=30000 [22:11:33]OFD Sender: Processing packet 30757 [packets to send 10, broken 9] [22:11:33]ProducePacketName [22:11:33]name=ofd_packets/00030757 [22:11:33]OFD Sender: To server: pG, [22:11:33]CommunicateWithHost lk.salyk.kg:30040 [22:11:33]ConnectInit lk.salyk.kg [22:11:33]written 0, free lines is 4095 [22:11:33]Connected sock=10 [22:11:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 A5 F6 07 01 A8 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 9A D1 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 78 00 00 35 04 06 00 41 83 9E 86 C6 1C 24 E5 91 F5 24 42 73 3C [22:11:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E7 C9 47 00 FC E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 25 78 00 00 F4 03 04 00 1A 7C 16 67 B6 04 01 00 00 79 C8 E2 81 C5 22 DC FC [22:11:34]CommunicateWithHost err = 0 [22:11:34]CheckOFDResponse [22:11:34]1017 (14) - 77093643461234 [22:11:34]1041 (16) - 0000000002094219 [22:11:34]1040 (4) - 30757 [22:11:34]1012 (4) - 21.10.2024 16:06 [22:11:34]1206 (1) - 0 [22:11:34]OFD Sender: Remove packet 30757 [22:11:34]ProducePacketName [22:11:34]name=ofd_packets/00030757 [22:11:34]NVStorageDeleteData [22:11:34]Write to MH i2c: 01 00 00 B6 69 1F [22:11:34]Write i2c OK [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: 01 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: 01 07 00 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: 01 07 00 B6 69 00 00 00 00 00 F8 0C 2A [22:11:34]RasterBufferAndPrint [22:11:34]line [22:11:34]line [22:11:34]line [22:11:34]line [22:11:34]line [22:11:34]written 0, free lines is 3327 [22:11:34]MH_Cut [22:11:34]Write to MH i2c: D1 01 00 BD 69 01 F8 [22:11:34]Write i2c OK [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: D1 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: D1 01 00 [22:11:34]MH_I2C_Read... [22:11:34]Read from MH i2c: D1 01 00 BD 69 00 F7 [22:11:34]Write to MH i2c: 01 00 00 BE 69 27 [22:11:34]Write i2c OK [22:11:34]MH_I2C_Read... [22:11:34]OFD Sender: No OFD packet to send [22:11:34]*** Cut start [22:11:34]*** Partial cut [22:11:34]*** CUTSNS_PIN = 1 [22:11:34]*** CUTSNS_PIN = 0 [22:11:35]*** Brake cut motor [22:11:35]Read from MH i2c: 01 [22:11:35]MH_I2C_Read... [22:11:35]*** Stop cut motor [22:11:35]*** Cut end [22:11:35]Read from MH i2c: 01 07 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: 01 07 00 BE 69 00 00 00 00 00 FF 0F 3C [22:11:35]process_action close_receipt done [22:11:35]requested_data is exist [22:11:35]produce_requested_data [22:11:35]requested_item fm.sn is exist - process it [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 11 00 00 [22:11:35]Write to MH i2c: E2 08 00 BF 69 80 11 00 00 00 00 00 00 A2 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 17 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 17 00 BF 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 F0 [22:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:11:35]wFMCommunicate OK [22:11:35]requested_item fd.num is exist - process it [22:11:35]SAM_PROTO_GetFieldsCounters [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 13 00 00 [22:11:35]Write to MH i2c: E2 08 00 C0 69 80 13 00 00 00 00 00 00 A5 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 62 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 62 00 C0 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [22:11:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 25 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:35]wFMCommunicate OK [22:11:35]SAM_PROTO_GetFieldsCounters done [22:11:35]requested_item shift.num is exist - process it [22:11:35]requested_item shift.opened is exist - process it [22:11:35]req_shift_opened [22:11:35]FM_GetShiftState [22:11:35]SAM_PROTO_GetShiftState [22:11:35]wFMCommunicate request_size=4 [22:11:35]MH_SAM_APDU [22:11:35]CAPDU: 80 13 01 00 [22:11:35]Write to MH i2c: E2 08 00 C1 69 80 13 01 00 00 00 00 00 A7 [22:11:35]Write i2c OK [22:11:35]MH_I2C_Read... [22:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:35]Read from MH i2c: E2 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 0E 00 [22:11:35]MH_I2C_Read... [22:11:35]Read from MH i2c: E2 0E 00 C1 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 23 [22:11:35]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:11:35]wFMCommunicate OK [22:11:35]SAM_PROTO_GetShiftState done [22:11:35]FM_GetShiftState done [22:11:35]req_shift_opened done [22:11:35]requested_item shift.open_date is exist - process it [22:11:35]req_shift_open_date [22:11:35]req_shift_open_date done [22:11:35]produce_requested_data done [22:11:35]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30757,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:11:35]process_action_free close_receipt [22:11:35]json_value_free [22:11:35]json_value_free done [22:11:35]process_json_proto returns [22:11:35]Send response to host [22:11:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30757,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:11:35]free response buf [22:11:35]execute_script done [22:11:35]execute_script returns [22:11:35]free content buf [22:11:35]Sock 9.Close socket [22:11:35]Sock 9.Thread stoped [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:08]accept exits with 7 [22:16:08]New connection [22:16:08]New thread 3067489636 created [22:16:08]Thread 3067346276 joined [22:16:08]Waiting for new connection... [22:16:08] Sock 7.Parse request [22:16:08]Sock 7.Check first char [22:16:08]Sock 7.First char is OK [22:16:08]request: POST /json_proto HTTP/1.0 [22:16:08]Method: POST [22:16:08]URL: /json_proto [22:16:08]Method is POST - this is cgi request [22:16:08]url: /json_proto [22:16:08]query_string will be loaded in cgi processing [22:16:08]execute_cgi json_proto POST (null) [22:16:08]execute_cgi path=json_proto method=POST [22:16:08]POST find Content-Length [22:16:08]Host: 172.17.51.3:8080 [22:16:08]Content-Length: 677 [22:16:08]Content-Type: application/json [22:16:08] [22:16:08]POST finish read [22:16:08]Found Content-Length = 677 [22:16:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:08]execute_script... [22:16:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:08]POST & json_proto [22:16:08]process_json_proto [22:16:08]json parsed OK: [22:16:08]protocol is kg_v1.0 [22:16:08]action value=close_receipt [22:16:08]process_action close_receipt [22:16:08]cmd_close_receipt [22:16:08]MH_GetDate [22:16:08]Write to MH i2c: F0 00 00 C2 69 1A [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: F0 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: F0 09 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: F0 09 00 C2 69 00 AF D2 16 67 04 C1 95 66 E1 [22:16:08]GetLastDocTimeStamp 1729548698 [22:16:08]current date 1729548975 [22:16:08]FM_GetShiftState [22:16:08]SAM_PROTO_GetShiftState [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 13 01 00 [22:16:08]Write to MH i2c: E2 08 00 C3 69 80 13 01 00 00 00 00 00 A9 [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:08]Read from MH i2c: E2 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 0E 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 0E 00 C3 69 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 25 [22:16:08]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:16:08]wFMCommunicate OK [22:16:08]SAM_PROTO_GetShiftState done [22:16:08]FM_GetShiftState done [22:16:08]opened in 1729471058 [22:16:08]opened+sec_in_day 1729557458 [22:16:08]quantity*price = 14049 [22:16:08]sum+1 = 14050 [22:16:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 255 21.10.2024 22:16 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30758 ФПД: 263664334998615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30758&fm=263664334998615&tin=02508201610067®Number=0000000000186857&sum=14000 [22:16:09]StoreToDocumentArchive [22:16:09]shift 115 fd 30758 [22:16:09]save to /storage/0115/doc_00030758 [22:16:09]save last doc name /storage/0115/doc_00030758 to /storage/kkm_last_doc_name [22:16:09]save OK [22:16:09]Clear old archive folders... [22:16:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:09]tlvbuf is 01F4B5D0 [22:16:09]SAM_PROTO_ClearQueue [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 09 00 00 [22:16:09]Write to MH i2c: E2 08 00 D0 69 80 09 00 00 00 00 00 00 AB [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 D0 69 00 90 00 AD [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_ClearQueue done [22:16:09]KKMCreateOFDPacket [22:16:09]OFDProtocolAddRootSTLVToBuf [22:16:09]FM_MakeSignedData [22:16:09]FM_MakeSignedData [22:16:09]SAM_PROTO_SignData [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 01 02 [22:16:09]Write to MH i2c: E2 08 00 D1 69 80 0D 01 02 00 00 00 00 B3 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 D1 69 00 90 00 AE [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=255 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 FF 00 00 00 F4 03 04 00 AF D2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 78 00 00 35 04 06 00 EF [22:16:09]Write to MH i2c: E2 02 01 D2 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 FF 00 00 00 F4 03 04 00 AF D2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 78 00 00 35 04 06 00 EF 00 00 6C [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 D2 69 00 90 00 AF [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=10 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 02 02 05 CD 23 07 0C 57 [22:16:09]Write to MH i2c: E2 0D 00 D3 69 80 0D 02 02 05 00 CD 23 07 0C 57 00 00 1A [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 D3 69 00 90 00 B0 [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 03 02 [22:16:09]Write to MH i2c: E2 08 00 D4 69 80 0D 03 02 00 00 00 00 B8 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 D4 69 00 F2 09 D6 E4 03 B0 13 9C 90 00 D0 [22:16:09]RAPDU: F2 09 D6 E4 03 B0 13 9C 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_SignData done [22:16:09]FM_MakeSignedData done [22:16:09]CreateOFDProtocolMessage [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 11 00 00 [22:16:09]Write to MH i2c: E2 08 00 D5 69 80 11 00 00 00 00 00 00 B8 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 17 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 17 00 D5 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 06 [22:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:16:09]wFMCommunicate OK [22:16:09]CreateOFDProtocolMessage done [22:16:09]OFDSenderStorePacket 30758 [22:16:09]StoreOFDPacket docnum=30758 [22:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7D 5F 07 01 83 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 FF 00 00 00 F4 03 04 00 AF D2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 78 00 00 35 04 06 00 EF CD 23 07 0C 57 F2 09 D6 E4 03 B0 13 9C [22:16:09]CheckFolder [22:16:09]dirname=/storage/ofd_packets [22:16:09]CheckFolder done [22:16:09]ProducePacketName [22:16:09]name=ofd_packets/00030758 [22:16:09]NVStorageSaveData ofd_packets/00030758 [22:16:09]File name is /storage/ofd_packets/00030758 [22:16:09]Write 301 bytes [22:16:09]NVStorageSaveData done [22:16:09]OFDSenderStorePacket done [22:16:09]KKMCreateOFDPacket done [22:16:09]NVStorageSaveData kkm_last_timestamp [22:16:09]File name is /storage/kkm_last_timestamp [22:16:09]Write 4 bytes [22:16:09]NVStorageSaveData done [22:16:09]ExternCall_PrintAddStr [22:16:09]wPrintStart [22:16:09]Write to MH i2c: 01 00 00 D6 69 3F [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 D6 69 00 00 00 00 00 FF 0F 54 [22:16:09]RasterBufferAndPrint [22:16:09]line Счет N : (1)343177 [22:16:09]line ИНН: 02508201610067 [22:16:09]line Контрольно-Кассовый Чек [22:16:09]line ПРОДАЖА [22:16:09]line ТРК (МРК, ГНК) : 63 [22:16:09]line Товар: 2710124130 [22:16:09]line Аи-92-К-2 [22:16:09]line 2.100 * 66.90 [22:16:09]line = 140.49 [22:16:09]line НДС 12% НСП 1% [22:16:09]line > о реализуемом товаре [22:16:09]line ОКРУГЛЕНИЕ: -0.49 [22:16:09]line ИТОГО: 140.00 [22:16:09]line Внесено: 140.00 [22:16:09]line СДАЧА: 0.00 [22:16:09]line НСП 1% : 1.24 [22:16:09]line НДС 12% : 14.92 [22:16:09]line Наличными: 140.00 [22:16:09]line Безнал.: 0.00 [22:16:09]line Место: АЗС № 78 "Партнер Нефть" [22:16:09]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:16:09]line СНО: Общий режим [22:16:09]line Чек 255 21.10.2024 22:16 [22:16:09]line Смена: 115 ФФД: 1.0 [22:16:09]line ЗНМ: 0300000137 [22:16:09]line РНМ: 0000000000186857 [22:16:09]line Версия ККМ: v1.0 [22:16:09]line ФМ: 0000000002094219 [22:16:09]line ФД: 30758 [22:16:09]line ФПД: 263664334998615 [22:16:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221615&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30758&fm=263664334998615&tin=02508201610067®Number=0000000000186857&sum=14000 [22:16:10]OFD Sender: Processing packet 30758 [packets to send 10, broken 9] [22:16:10]ProducePacketName [22:16:10]name=ofd_packets/00030758 [22:16:10]OFD Sender: To server: pG, [22:16:10]CommunicateWithHost lk.salyk.kg:30040 [22:16:10]ConnectInit lk.salyk.kg [22:16:10]written 0, free lines is 4095 [22:16:10]Connected sock=10 [22:16:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 7D 5F 07 01 83 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 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 D4 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 FF 00 00 00 F4 03 04 00 AF D2 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 26 78 00 00 35 04 06 00 EF CD 23 07 0C 57 F2 09 D6 E4 03 B0 13 9C [22:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 3C 77 47 00 19 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 32 30 39 34 32 31 39 10 04 04 00 26 78 00 00 F4 03 04 00 2E 7D 16 67 B6 04 01 00 00 DF ED 31 A3 6D 91 BB FD [22:16:10]CommunicateWithHost err = 0 [22:16:10]CheckOFDResponse [22:16:10]1017 (14) - 77093643461234 [22:16:10]1041 (16) - 0000000002094219 [22:16:10]1040 (4) - 30758 [22:16:10]1012 (4) - 21.10.2024 16:11 [22:16:10]1206 (1) - 0 [22:16:10]OFD Sender: Remove packet 30758 [22:16:10]ProducePacketName [22:16:10]name=ofd_packets/00030758 [22:16:10]NVStorageDeleteData [22:16:10]Write to MH i2c: 01 00 00 01 6A 6B [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 01 6A 00 00 00 00 00 E3 0C 61 [22:16:10]RasterBufferAndPrint [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]written 0, free lines is 3308 [22:16:10]MH_Cut [22:16:10]Write to MH i2c: D1 01 00 08 6A 01 44 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 08 6A 00 43 [22:16:10]Write to MH i2c: 01 00 00 09 6A 73 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]OFD Sender: No OFD packet to send [22:16:11]*** Cut start [22:16:11]*** Partial cut [22:16:11]*** CUTSNS_PIN = 1 [22:16:11]*** CUTSNS_PIN = 0 [22:16:11]*** Brake cut motor [22:16:11]Read from MH i2c: 01 [22:16:11]MH_I2C_Read... [22:16:11]*** Stop cut motor [22:16:11]*** Cut end [22:16:11]Read from MH i2c: 01 07 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: 01 07 00 09 6A 00 00 00 00 00 FF 0F 88 [22:16:11]process_action close_receipt done [22:16:11]requested_data is exist [22:16:11]produce_requested_data [22:16:11]requested_item fm.sn is exist - process it [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 11 00 00 [22:16:11]Write to MH i2c: E2 08 00 0A 6A 80 11 00 00 00 00 00 00 EE [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 17 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 17 00 0A 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 3C [22:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:16:11]wFMCommunicate OK [22:16:11]requested_item fd.num is exist - process it [22:16:11]SAM_PROTO_GetFieldsCounters [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 13 00 00 [22:16:11]Write to MH i2c: E2 08 00 0B 6A 80 13 00 00 00 00 00 00 F1 [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 62 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 62 00 0B 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 26 [22:16:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 26 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:11]wFMCommunicate OK [22:16:11]SAM_PROTO_GetFieldsCounters done [22:16:11]requested_item shift.num is exist - process it [22:16:11]requested_item shift.opened is exist - process it [22:16:11]req_shift_opened [22:16:11]FM_GetShiftState [22:16:11]SAM_PROTO_GetShiftState [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 13 01 00 [22:16:11]Write to MH i2c: E2 08 00 0C 6A 80 13 01 00 00 00 00 00 F3 [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 0C 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 6F [22:16:12]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_GetShiftState done [22:16:12]FM_GetShiftState done [22:16:12]req_shift_opened done [22:16:12]requested_item shift.open_date is exist - process it [22:16:12]req_shift_open_date [22:16:12]req_shift_open_date done [22:16:12]produce_requested_data done [22:16:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30758,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:16:12]process_action_free close_receipt [22:16:12]json_value_free [22:16:12]json_value_free done [22:16:12]process_json_proto returns [22:16:12]Send response to host [22:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30758,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:16:12]free response buf [22:16:12]execute_script done [22:16:12]execute_script returns [22:16:12]free content buf [22:16:12]Sock 7.Close socket [22:16:12]Sock 7.Thread stoped [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:54]accept exits with 9 [22:40:54]New connection [22:40:54]New thread 3067346276 created [22:40:54]Thread 3067489636 joined [22:40:54]Waiting for new connection... [22:40:54] Sock 9.Parse request [22:40:54]Sock 9.Check first char [22:40:54]Sock 9.First char is OK [22:40:54]request: POST /json_proto HTTP/1.0 [22:40:54]Method: POST [22:40:54]URL: /json_proto [22:40:54]Method is POST - this is cgi request [22:40:54]url: /json_proto [22:40:54]query_string will be loaded in cgi processing [22:40:54]execute_cgi json_proto POST (null) [22:40:54]execute_cgi path=json_proto method=POST [22:40:54]POST find Content-Length [22:40:54]Host: 172.17.51.3:8080 [22:40:54]Content-Length: 677 [22:40:54]Content-Type: application/json [22:40:54] [22:40:54]POST finish read [22:40:54]Found Content-Length = 677 [22:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:54]execute_script... [22:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:54]POST & json_proto [22:40:54]process_json_proto [22:40:54]json parsed OK: [22:40:54]protocol is kg_v1.0 [22:40:54]action value=close_receipt [22:40:54]process_action close_receipt [22:40:54]cmd_close_receipt [22:40:54]MH_GetDate [22:40:54]Write to MH i2c: F0 00 00 0D 6A 66 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 09 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: F0 09 00 0D 6A 00 7D D8 16 67 04 C1 95 66 01 [22:40:54]GetLastDocTimeStamp 1729548975 [22:40:54]current date 1729550461 [22:40:54]FM_GetShiftState [22:40:54]SAM_PROTO_GetShiftState [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 13 01 00 [22:40:54]Write to MH i2c: E2 08 00 0E 6A 80 13 01 00 00 00 00 00 F5 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0E 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0E 00 0E 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 71 [22:40:54]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:40:54]wFMCommunicate OK [22:40:54]SAM_PROTO_GetShiftState done [22:40:54]FM_GetShiftState done [22:40:54]opened in 1729471058 [22:40:54]opened+sec_in_day 1729557458 [22:40:54]quantity*price = 50041 [22:40:54]sum+1 = 50042 [22:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 256 21.10.2024 22:41 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30759 ФПД: 169251628407124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30759&fm=169251628407124&tin=02508201610067®Number=0000000000186857&sum=50000 [22:40:55]StoreToDocumentArchive [22:40:55]shift 115 fd 30759 [22:40:55]save to /storage/0115/doc_00030759 [22:40:55]save last doc name /storage/0115/doc_00030759 to /storage/kkm_last_doc_name [22:40:55]save OK [22:40:55]Clear old archive folders... [22:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:55]tlvbuf is 01FE0CD0 [22:40:55]SAM_PROTO_ClearQueue [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 09 00 00 [22:40:55]Write to MH i2c: E2 08 00 1B 6A 80 09 00 00 00 00 00 00 F7 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 1B 6A 00 90 00 F9 [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_ClearQueue done [22:40:55]KKMCreateOFDPacket [22:40:55]OFDProtocolAddRootSTLVToBuf [22:40:55]FM_MakeSignedData [22:40:55]FM_MakeSignedData [22:40:55]SAM_PROTO_SignData [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 01 02 [22:40:55]Write to MH i2c: E2 08 00 1C 6A 80 0D 01 02 00 00 00 00 FF [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 03 00 1C 6A 00 90 00 FA [22:40:55]RAPDU: 90 00 [22:40:55]wFMCommunicate OK [22:40:55]wFMCommunicate request_size=255 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 7D D8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 78 00 00 35 04 06 00 99 [22:40:55]Write to MH i2c: E2 02 01 1D 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 7D D8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 78 00 00 35 04 06 00 99 00 00 0E [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 03 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 03 00 1D 6A 00 90 00 FB [22:40:56]RAPDU: 90 00 [22:40:56]wFMCommunicate OK [22:40:56]wFMCommunicate request_size=10 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 0D 02 02 05 EE F7 30 59 54 [22:40:56]Write to MH i2c: E2 0D 00 1E 6A 80 0D 02 02 05 00 EE F7 30 59 54 00 00 CE [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 03 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 03 00 1E 6A 00 90 00 FC [22:40:56]RAPDU: 90 00 [22:40:56]wFMCommunicate OK [22:40:56]wFMCommunicate request_size=4 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 0D 03 02 [22:40:56]Write to MH i2c: E2 08 00 1F 6A 80 0D 03 02 00 00 00 00 04 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 0B 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 0B 00 1F 6A 00 5F 59 0C C1 F6 15 C8 B2 90 00 0F [22:40:56]RAPDU: 5F 59 0C C1 F6 15 C8 B2 90 00 [22:40:56]wFMCommunicate OK [22:40:56]SAM_PROTO_SignData done [22:40:56]FM_MakeSignedData done [22:40:56]CreateOFDProtocolMessage [22:40:56]wFMCommunicate request_size=4 [22:40:56]MH_SAM_APDU [22:40:56]CAPDU: 80 11 00 00 [22:40:56]Write to MH i2c: E2 08 00 20 6A 80 11 00 00 00 00 00 00 04 [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:56]Read from MH i2c: E2 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 17 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: E2 17 00 20 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 52 [22:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:40:56]wFMCommunicate OK [22:40:56]CreateOFDProtocolMessage done [22:40:56]OFDSenderStorePacket 30759 [22:40:56]StoreOFDPacket docnum=30759 [22:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A 73 07 01 AA E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 7D D8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 78 00 00 35 04 06 00 99 EE F7 30 59 54 5F 59 0C C1 F6 15 C8 B2 [22:40:56]CheckFolder [22:40:56]dirname=/storage/ofd_packets [22:40:56]CheckFolder done [22:40:56]ProducePacketName [22:40:56]name=ofd_packets/00030759 [22:40:56]NVStorageSaveData ofd_packets/00030759 [22:40:56]File name is /storage/ofd_packets/00030759 [22:40:56]Write 301 bytes [22:40:56]NVStorageSaveData done [22:40:56]OFDSenderStorePacket done [22:40:56]KKMCreateOFDPacket done [22:40:56]NVStorageSaveData kkm_last_timestamp [22:40:56]File name is /storage/kkm_last_timestamp [22:40:56]Write 4 bytes [22:40:56]NVStorageSaveData done [22:40:56]ExternCall_PrintAddStr [22:40:56]wPrintStart [22:40:56]Write to MH i2c: 01 00 00 21 6A 8B [22:40:56]Write i2c OK [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 [22:40:56]MH_I2C_Read... [22:40:56]Read from MH i2c: 01 07 00 21 6A 00 00 00 00 00 FF 0F A0 [22:40:56]RasterBufferAndPrint [22:40:56]line Счет N : (1)343178 [22:40:56]line ИНН: 02508201610067 [22:40:56]line Контрольно-Кассовый Чек [22:40:56]line ПРОДАЖА [22:40:56]line ТРК (МРК, ГНК) : 53 [22:40:56]line Товар: 2710124130 [22:40:56]line Аи-92-К-2 [22:40:56]line 7.480 * 66.90 [22:40:56]line = 500.41 [22:40:56]line НДС 12% НСП 1% [22:40:56]line > о реализуемом товаре [22:40:56]line ОКРУГЛЕНИЕ: -0.41 [22:40:56]line ИТОГО: 500.00 [22:40:56]line Внесено: 500.00 [22:40:56]line СДАЧА: 0.00 [22:40:56]line НСП 1% : 4.43 [22:40:56]line НДС 12% : 53.14 [22:40:56]line Наличными: 500.00 [22:40:56]line Безнал.: 0.00 [22:40:56]line Место: АЗС № 78 "Партнер Нефть" [22:40:56]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:40:56]line СНО: Общий режим [22:40:56]line Чек 256 21.10.2024 22:41 [22:40:56]line Смена: 115 ФФД: 1.0 [22:40:56]line ЗНМ: 0300000137 [22:40:56]line РНМ: 0000000000186857 [22:40:56]line Версия ККМ: v1.0 [22:40:56]line ФМ: 0000000002094219 [22:40:56]line ФД: 30759 [22:40:56]line ФПД: 169251628407124 [22:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T224101&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30759&fm=169251628407124&tin=02508201610067®Number=0000000000186857&sum=50000 [22:40:56]OFD Sender: Processing packet 30759 [packets to send 10, broken 9] [22:40:56]ProducePacketName [22:40:56]name=ofd_packets/00030759 [22:40:56]OFD Sender: To server: pG, [22:40:56]CommunicateWithHost lk.salyk.kg:30040 [22:40:56]ConnectInit lk.salyk.kg [22:40:56]written 0, free lines is 4095 [22:40:57]Connected sock=10 [22:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 8A 73 07 01 AA E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 7D D8 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 78 00 00 35 04 06 00 99 EE F7 30 59 54 5F 59 0C C1 F6 15 C8 B2 [22:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 66 99 47 00 21 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 27 78 00 00 F4 03 04 00 FD 82 16 67 B6 04 01 00 00 D3 3A 34 BE F4 BA 5A A2 [22:40:57]CommunicateWithHost err = 0 [22:40:57]CheckOFDResponse [22:40:57]1017 (14) - 77093643461234 [22:40:57]1041 (16) - 0000000002094219 [22:40:57]1040 (4) - 30759 [22:40:57]1012 (4) - 21.10.2024 16:36 [22:40:57]1206 (1) - 0 [22:40:57]OFD Sender: Remove packet 30759 [22:40:57]ProducePacketName [22:40:57]name=ofd_packets/00030759 [22:40:57]NVStorageDeleteData [22:40:57]Write to MH i2c: 01 00 00 4C 6A B6 [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: 01 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: 01 07 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: 01 07 00 4C 6A 00 00 00 00 00 F5 0C BE [22:40:57]RasterBufferAndPrint [22:40:57]line [22:40:57]line [22:40:57]line [22:40:57]line [22:40:57]line [22:40:57]written 0, free lines is 3327 [22:40:57]MH_Cut [22:40:57]Write to MH i2c: D1 01 00 53 6A 01 8F [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: D1 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: D1 01 00 [22:40:57]MH_I2C_Read... [22:40:57]Read from MH i2c: D1 01 00 53 6A 00 8E [22:40:57]Write to MH i2c: 01 00 00 54 6A BE [22:40:57]Write i2c OK [22:40:57]MH_I2C_Read... [22:40:57]OFD Sender: No OFD packet to send [22:40:57]*** Cut start [22:40:57]*** Partial cut [22:40:57]*** CUTSNS_PIN = 1 [22:40:57]*** CUTSNS_PIN = 0 [22:40:58]*** Brake cut motor [22:40:58]Read from MH i2c: 01 [22:40:58]MH_I2C_Read... [22:40:58]*** Stop cut motor [22:40:58]*** Cut end [22:40:58]Read from MH i2c: 01 07 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: 01 07 00 54 6A 00 00 00 00 00 FF 0F D3 [22:40:58]process_action close_receipt done [22:40:58]requested_data is exist [22:40:58]produce_requested_data [22:40:58]requested_item fm.sn is exist - process it [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 11 00 00 [22:40:58]Write to MH i2c: E2 08 00 55 6A 80 11 00 00 00 00 00 00 39 [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 17 00 55 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 87 [22:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:40:58]wFMCommunicate OK [22:40:58]requested_item fd.num is exist - process it [22:40:58]SAM_PROTO_GetFieldsCounters [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 00 00 [22:40:58]Write to MH i2c: E2 08 00 56 6A 80 13 00 00 00 00 00 00 3C [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 62 00 56 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [22:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 27 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetFieldsCounters done [22:40:58]requested_item shift.num is exist - process it [22:40:58]requested_item shift.opened is exist - process it [22:40:58]req_shift_opened [22:40:58]FM_GetShiftState [22:40:58]SAM_PROTO_GetShiftState [22:40:58]wFMCommunicate request_size=4 [22:40:58]MH_SAM_APDU [22:40:58]CAPDU: 80 13 01 00 [22:40:58]Write to MH i2c: E2 08 00 57 6A 80 13 01 00 00 00 00 00 3E [22:40:58]Write i2c OK [22:40:58]MH_I2C_Read... [22:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:58]Read from MH i2c: E2 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 [22:40:58]MH_I2C_Read... [22:40:58]Read from MH i2c: E2 0E 00 57 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BA [22:40:58]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:40:58]wFMCommunicate OK [22:40:58]SAM_PROTO_GetShiftState done [22:40:58]FM_GetShiftState done [22:40:58]req_shift_opened done [22:40:58]requested_item shift.open_date is exist - process it [22:40:58]req_shift_open_date [22:40:58]req_shift_open_date done [22:40:58]produce_requested_data done [22:40:58]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30759,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:40:58]process_action_free close_receipt [22:40:58]json_value_free [22:40:58]json_value_free done [22:40:58]process_json_proto returns [22:40:58]Send response to host [22:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30759,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:40:58]free response buf [22:40:58]execute_script done [22:40:58]execute_script returns [22:40:58]free content buf [22:40:58]Sock 9.Close socket [22:40:58]Sock 9.Thread stoped [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:20]accept exits with 7 [22:56:20]New connection [22:56:20]New thread 3067489636 created [22:56:20]Thread 3067346276 joined [22:56:20]Waiting for new connection... [22:56:20] Sock 7.Parse request [22:56:20]Sock 7.Check first char [22:56:20]Sock 7.First char is OK [22:56:20]request: POST /json_proto HTTP/1.0 [22:56:20]Method: POST [22:56:20]URL: /json_proto [22:56:20]Method is POST - this is cgi request [22:56:20]url: /json_proto [22:56:20]query_string will be loaded in cgi processing [22:56:20]execute_cgi json_proto POST (null) [22:56:20]execute_cgi path=json_proto method=POST [22:56:20]POST find Content-Length [22:56:20]Host: 172.17.51.3:8080 [22:56:20]Content-Length: 840 [22:56:20]Content-Type: application/json [22:56:20] [22:56:20]POST finish read [22:56:20]Found Content-Length = 840 [22:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:20]execute_script... [22:56:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:20]POST & json_proto [22:56:20]process_json_proto [22:56:20]json parsed OK: [22:56:20]protocol is kg_v1.0 [22:56:20]action value=close_receipt [22:56:20]process_action close_receipt [22:56:20]cmd_close_receipt [22:56:20]MH_GetDate [22:56:20]Write to MH i2c: F0 00 00 58 6A B1 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 [22:56:20]MH_I2C_Read... [22:56:20]Read from MH i2c: F0 09 00 58 6A 00 1C DC 16 67 04 C1 95 66 EF [22:56:20]GetLastDocTimeStamp 1729550461 [22:56:20]current date 1729551388 [22:56:20]FM_GetShiftState [22:56:20]SAM_PROTO_GetShiftState [22:56:20]wFMCommunicate request_size=4 [22:56:20]MH_SAM_APDU [22:56:20]CAPDU: 80 13 01 00 [22:56:20]Write to MH i2c: E2 08 00 59 6A 80 13 01 00 00 00 00 00 40 [22:56:20]Write i2c OK [22:56:20]MH_I2C_Read... [22:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:21]Read from MH i2c: E2 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 0E 00 [22:56:21]MH_I2C_Read... [22:56:21]Read from MH i2c: E2 0E 00 59 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 BC [22:56:21]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:56:21]wFMCommunicate OK [22:56:21]SAM_PROTO_GetShiftState done [22:56:21]FM_GetShiftState done [22:56:21]opened in 1729471058 [22:56:21]opened+sec_in_day 1729557458 [22:56:21]quantity*price = 40006 [22:56:21]sum+1 = 40007 [22:56:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 257 21.10.2024 22:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30760 ФПД: 197113373861469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225628&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30760&fm=197113373861469&tin=02508201610067®Number=0000000000186857&sum=40006 [22:56:22]StoreToDocumentArchive [22:56:22]shift 115 fd 30760 [22:56:22]save to /storage/0115/doc_00030760 [22:56:22]save last doc name /storage/0115/doc_00030760 to /storage/kkm_last_doc_name [22:56:22]save OK [22:56:22]Clear old archive folders... [22:56:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:22]tlvbuf is 01F4B740 [22:56:22]SAM_PROTO_ClearQueue [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 09 00 00 [22:56:22]Write to MH i2c: E2 08 00 66 6A 80 09 00 00 00 00 00 00 42 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 66 6A 00 90 00 44 [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_ClearQueue done [22:56:22]KKMCreateOFDPacket [22:56:22]OFDProtocolAddRootSTLVToBuf [22:56:22]FM_MakeSignedData [22:56:22]FM_MakeSignedData [22:56:22]SAM_PROTO_SignData [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 01 02 [22:56:22]Write to MH i2c: E2 08 00 67 6A 80 0D 01 02 00 00 00 00 4A [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 67 6A 00 90 00 45 [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=255 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 1C DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 78 00 00 35 04 06 00 B3 [22:56:22]Write to MH i2c: E2 02 01 68 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 1C DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 78 00 00 35 04 06 00 B3 00 00 F3 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 68 6A 00 90 00 46 [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=10 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 02 02 05 46 08 A1 26 5D [22:56:22]Write to MH i2c: E2 0D 00 69 6A 80 0D 02 02 05 00 46 08 A1 26 5D 00 00 C9 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 03 00 69 6A 00 90 00 47 [22:56:22]RAPDU: 90 00 [22:56:22]wFMCommunicate OK [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 0D 03 02 [22:56:22]Write to MH i2c: E2 08 00 6A 6A 80 0D 03 02 00 00 00 00 4F [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0B 00 6A 6A 00 3C AE 07 7F 45 C2 C0 B3 90 00 3A [22:56:22]RAPDU: 3C AE 07 7F 45 C2 C0 B3 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_SignData done [22:56:22]FM_MakeSignedData done [22:56:22]CreateOFDProtocolMessage [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 11 00 00 [22:56:22]Write to MH i2c: E2 08 00 6B 6A 80 11 00 00 00 00 00 00 4F [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 17 00 6B 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 9D [22:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:56:22]wFMCommunicate OK [22:56:22]CreateOFDProtocolMessage done [22:56:22]OFDSenderStorePacket 30760 [22:56:22]StoreOFDPacket docnum=30760 [22:56:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 9B 07 01 CB E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 1C DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 78 00 00 35 04 06 00 B3 46 08 A1 26 5D 3C AE 07 7F 45 C2 C0 B3 [22:56:22]CheckFolder [22:56:22]dirname=/storage/ofd_packets [22:56:22]CheckFolder done [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00030760 [22:56:22]NVStorageSaveData ofd_packets/00030760 [22:56:22]File name is /storage/ofd_packets/00030760 [22:56:22]Write 301 bytes [22:56:22]NVStorageSaveData done [22:56:22]OFDSenderStorePacket done [22:56:22]KKMCreateOFDPacket done [22:56:22]NVStorageSaveData kkm_last_timestamp [22:56:22]File name is /storage/kkm_last_timestamp [22:56:22]Write 4 bytes [22:56:22]NVStorageSaveData done [22:56:22]ExternCall_PrintAddStr [22:56:22]wPrintStart [22:56:22]Write to MH i2c: 01 00 00 6C 6A D6 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: 01 07 00 6C 6A 00 00 00 00 00 FF 0F EB [22:56:22]RasterBufferAndPrint [22:56:22]line Счет N : (1)343179 [22:56:22]line ИНН: 02508201610067 [22:56:22]line Контрольно-Кассовый Чек [22:56:22]line ПРОДАЖА [22:56:22]line ТРК (МРК, ГНК) : 33 [22:56:22]line Товар: 2710124130 [22:56:22]line Аи-92-К-2 [22:56:22]line 5.980 * 66.90 [22:56:22]line = 400.06 [22:56:22]line НДС 12% НСП 1% [22:56:22]line > о реализуемом товаре [22:56:22]line ИТОГО: 400.06 [22:56:22]line НСП 1% : 3.54 [22:56:22]line НДС 12% : 42.48 [22:56:22]line Наличными: 0.00 [22:56:22]line Безнал.: 400.06 [22:56:22]line Место: АЗС № 78 "Партнер Нефть" [22:56:22]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:56:22]line СНО: Общий режим [22:56:22]line Чек 257 21.10.2024 22:56 [22:56:22]line Смена: 115 ФФД: 1.0 [22:56:22]line ЗНМ: 0300000137 [22:56:22]line РНМ: 0000000000186857 [22:56:22]line Версия ККМ: v1.0 [22:56:22]line Платежная система: АКБ Кыргызстан [22:56:22]line ФМ: 0000000002094219 [22:56:22]line ФД: 30760 [22:56:22]line ФПД: 197113373861469 [22:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225628&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30760&fm=197113373861469&tin=02508201610067®Number=0000000000186857&sum=40006 [22:56:22]written 0, free lines is 4095 [22:56:22]OFD Sender: Processing packet 30760 [packets to send 10, broken 9] [22:56:22]ProducePacketName [22:56:22]name=ofd_packets/00030760 [22:56:22]OFD Sender: To server: pG, [22:56:22]CommunicateWithHost lk.salyk.kg:30040 [22:56:22]ConnectInit lk.salyk.kg [22:56:22]Connected sock=11 [22:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 91 9B 07 01 CB E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 1C DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 78 00 00 35 04 06 00 B3 46 08 A1 26 5D 3C AE 07 7F 45 C2 C0 B3 [22:56:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 0E 92 47 00 64 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 28 78 00 00 F4 03 04 00 9B 86 16 67 B6 04 01 00 00 16 17 57 A5 06 C7 BF 2D [22:56:23]CommunicateWithHost err = 0 [22:56:23]CheckOFDResponse [22:56:23]1017 (14) - 77093643461234 [22:56:23]1041 (16) - 0000000002094219 [22:56:23]1040 (4) - 30760 [22:56:23]1012 (4) - 21.10.2024 16:51 [22:56:23]1206 (1) - 0 [22:56:23]OFD Sender: Remove packet 30760 [22:56:23]ProducePacketName [22:56:23]name=ofd_packets/00030760 [22:56:23]NVStorageDeleteData [22:56:23]Write to MH i2c: 01 00 00 96 6A 00 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: 01 07 00 96 6A 00 00 00 00 00 03 0D 17 [22:56:23]RasterBufferAndPrint [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]line [22:56:23]written 0, free lines is 3337 [22:56:23]MH_Cut [22:56:23]Write to MH i2c: D1 01 00 9D 6A 01 D9 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: D1 01 00 9D 6A 00 D8 [22:56:23]Write to MH i2c: 01 00 00 9E 6A 08 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]OFD Sender: No OFD packet to send [22:56:23]*** Cut start [22:56:23]*** Partial cut [22:56:23]*** CUTSNS_PIN = 1 [22:56:23]*** CUTSNS_PIN = 0 [22:56:24]*** Brake cut motor [22:56:24]Read from MH i2c: 01 [22:56:24]MH_I2C_Read... [22:56:24]*** Stop cut motor [22:56:24]*** Cut end [22:56:24]Read from MH i2c: 01 07 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 07 00 9E 6A 00 00 00 00 00 FF 0F 1D [22:56:24]process_action close_receipt done [22:56:24]requested_data is exist [22:56:24]produce_requested_data [22:56:24]requested_item fm.sn is exist - process it [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 11 00 00 [22:56:24]Write to MH i2c: E2 08 00 9F 6A 80 11 00 00 00 00 00 00 83 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 9F 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 D1 [22:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:56:24]wFMCommunicate OK [22:56:24]requested_item fd.num is exist - process it [22:56:24]SAM_PROTO_GetFieldsCounters [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 00 00 [22:56:24]Write to MH i2c: E2 08 00 A0 6A 80 13 00 00 00 00 00 00 86 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 62 00 A0 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 C5 [22:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 28 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetFieldsCounters done [22:56:24]requested_item shift.num is exist - process it [22:56:24]requested_item shift.opened is exist - process it [22:56:24]req_shift_opened [22:56:24]FM_GetShiftState [22:56:24]SAM_PROTO_GetShiftState [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 01 00 [22:56:24]Write to MH i2c: E2 08 00 A1 6A 80 13 01 00 00 00 00 00 88 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 A1 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 04 [22:56:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetShiftState done [22:56:24]FM_GetShiftState done [22:56:24]req_shift_opened done [22:56:24]requested_item shift.open_date is exist - process it [22:56:24]req_shift_open_date [22:56:24]req_shift_open_date done [22:56:24]produce_requested_data done [22:56:24]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30760,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:56:24]process_action_free close_receipt [22:56:24]json_value_free [22:56:24]json_value_free done [22:56:24]process_json_proto returns [22:56:24]Send response to host [22:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30760,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:56:24]free response buf [22:56:24]execute_script done [22:56:24]execute_script returns [22:56:24]free content buf [22:56:24]Sock 7.Close socket [22:56:24]Sock 7.Thread stoped [22:56:24]accept exits with 9 [22:56:24]New connection [22:56:24]New thread 3067346276 created [22:56:24]Thread 3067489636 joined [22:56:24]Waiting for new connection... [22:56:24] Sock 9.Parse request [22:56:24]Sock 9.Check first char [22:56:24]Sock 9.First char is OK [22:56:24]request: POST /json_proto HTTP/1.0 [22:56:24]Method: POST [22:56:24]URL: /json_proto [22:56:24]Method is POST - this is cgi request [22:56:24]url: /json_proto [22:56:24]query_string will be loaded in cgi processing [22:56:24]execute_cgi json_proto POST (null) [22:56:24]execute_cgi path=json_proto method=POST [22:56:24]POST find Content-Length [22:56:24]Host: 172.17.51.3:8080 [22:56:24]Content-Length: 677 [22:56:24]Content-Type: application/json [22:56:24] [22:56:24]POST finish read [22:56:24]Found Content-Length = 677 [22:56:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:24]execute_script... [22:56:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:24]POST & json_proto [22:56:24]process_json_proto [22:56:24]json parsed OK: [22:56:24]protocol is kg_v1.0 [22:56:24]action value=close_receipt [22:56:24]process_action close_receipt [22:56:24]cmd_close_receipt [22:56:24]MH_GetDate [22:56:24]Write to MH i2c: F0 00 00 A2 6A FB [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 09 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: F0 09 00 A2 6A 00 20 DC 16 67 04 C1 95 66 3D [22:56:24]GetLastDocTimeStamp 1729551388 [22:56:24]current date 1729551392 [22:56:24]FM_GetShiftState [22:56:24]SAM_PROTO_GetShiftState [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 13 01 00 [22:56:24]Write to MH i2c: E2 08 00 A3 6A 80 13 01 00 00 00 00 00 8A [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0E 00 A3 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 06 [22:56:24]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_GetShiftState done [22:56:24]FM_GetShiftState done [22:56:24]opened in 1729471058 [22:56:24]opened+sec_in_day 1729557458 [22:56:24]quantity*price = 50041 [22:56:25]sum+1 = 50042 [22:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 258 21.10.2024 22:56 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30761 ФПД: 200082223778850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225632&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30761&fm=200082223778850&tin=02508201610067®Number=0000000000186857&sum=50000 [22:56:26]StoreToDocumentArchive [22:56:26]shift 115 fd 30761 [22:56:26]save to /storage/0115/doc_00030761 [22:56:26]save last doc name /storage/0115/doc_00030761 to /storage/kkm_last_doc_name [22:56:26]save OK [22:56:26]Clear old archive folders... [22:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:26]tlvbuf is 01E1E890 [22:56:26]SAM_PROTO_ClearQueue [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 09 00 00 [22:56:26]Write to MH i2c: E2 08 00 B0 6A 80 09 00 00 00 00 00 00 8C [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 B0 6A 00 90 00 8E [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]SAM_PROTO_ClearQueue done [22:56:26]KKMCreateOFDPacket [22:56:26]OFDProtocolAddRootSTLVToBuf [22:56:26]FM_MakeSignedData [22:56:26]FM_MakeSignedData [22:56:26]SAM_PROTO_SignData [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 01 02 [22:56:26]Write to MH i2c: E2 08 00 B1 6A 80 0D 01 02 00 00 00 00 94 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 B1 6A 00 90 00 8F [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]wFMCommunicate request_size=255 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 20 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 78 00 00 35 04 06 00 B5 [22:56:26]Write to MH i2c: E2 02 01 B2 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 20 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 78 00 00 35 04 06 00 B5 00 00 6A [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 B2 6A 00 90 00 90 [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]wFMCommunicate request_size=10 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 02 02 05 F9 45 DF CC 22 [22:56:26]Write to MH i2c: E2 0D 00 B3 6A 80 0D 02 02 05 00 F9 45 DF CC 22 00 00 AC [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 03 00 B3 6A 00 90 00 91 [22:56:26]RAPDU: 90 00 [22:56:26]wFMCommunicate OK [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 0D 03 02 [22:56:26]Write to MH i2c: E2 08 00 B4 6A 80 0D 03 02 00 00 00 00 99 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:27]Read from MH i2c: E2 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 0B 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 0B 00 B4 6A 00 A8 62 14 11 08 EA E8 2B 90 00 CE [22:56:27]RAPDU: A8 62 14 11 08 EA E8 2B 90 00 [22:56:27]wFMCommunicate OK [22:56:27]SAM_PROTO_SignData done [22:56:27]FM_MakeSignedData done [22:56:27]CreateOFDProtocolMessage [22:56:27]wFMCommunicate request_size=4 [22:56:27]MH_SAM_APDU [22:56:27]CAPDU: 80 11 00 00 [22:56:27]Write to MH i2c: E2 08 00 B5 6A 80 11 00 00 00 00 00 00 99 [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:27]Read from MH i2c: E2 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 17 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 17 00 B5 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E7 [22:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:56:27]wFMCommunicate OK [22:56:27]CreateOFDProtocolMessage done [22:56:27]OFDSenderStorePacket 30761 [22:56:27]StoreOFDPacket docnum=30761 [22:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6B A2 07 01 DA E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 20 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 78 00 00 35 04 06 00 B5 F9 45 DF CC 22 A8 62 14 11 08 EA E8 2B [22:56:27]CheckFolder [22:56:27]dirname=/storage/ofd_packets [22:56:27]CheckFolder done [22:56:27]ProducePacketName [22:56:27]name=ofd_packets/00030761 [22:56:27]NVStorageSaveData ofd_packets/00030761 [22:56:27]File name is /storage/ofd_packets/00030761 [22:56:27]Write 301 bytes [22:56:27]NVStorageSaveData done [22:56:27]OFDSenderStorePacket done [22:56:27]KKMCreateOFDPacket done [22:56:27]NVStorageSaveData kkm_last_timestamp [22:56:27]File name is /storage/kkm_last_timestamp [22:56:27]Write 4 bytes [22:56:27]NVStorageSaveData done [22:56:27]ExternCall_PrintAddStr [22:56:27]wPrintStart [22:56:27]Write to MH i2c: 01 00 00 B6 6A 20 [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 07 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 07 00 B6 6A 00 00 00 00 00 FF 0F 35 [22:56:27]RasterBufferAndPrint [22:56:27]line Счет N : (1)343180 [22:56:27]line ИНН: 02508201610067 [22:56:27]line Контрольно-Кассовый Чек [22:56:27]line ПРОДАЖА [22:56:27]line ТРК (МРК, ГНК) : 43 [22:56:27]line Товар: 2710124130 [22:56:27]line Аи-92-К-2 [22:56:27]line 7.480 * 66.90 [22:56:27]line = 500.41 [22:56:27]line НДС 12% НСП 1% [22:56:27]line > о реализуемом товаре [22:56:27]line ОКРУГЛЕНИЕ: -0.41 [22:56:27]line ИТОГО: 500.00 [22:56:27]line Внесено: 500.00 [22:56:27]line СДАЧА: 0.00 [22:56:27]line НСП 1% : 4.43 [22:56:27]line НДС 12% : 53.14 [22:56:27]line Наличными: 500.00 [22:56:27]line Безнал.: 0.00 [22:56:27]line Место: АЗС № 78 "Партнер Нефть" [22:56:27]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:56:27]line СНО: Общий режим [22:56:27]line Чек 258 21.10.2024 22:56 [22:56:27]line Смена: 115 ФФД: 1.0 [22:56:27]line ЗНМ: 0300000137 [22:56:27]line РНМ: 0000000000186857 [22:56:27]line Версия ККМ: v1.0 [22:56:27]line ФМ: 0000000002094219 [22:56:27]line ФД: 30761 [22:56:27]line ФПД: 200082223778850 [22:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225632&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30761&fm=200082223778850&tin=02508201610067®Number=0000000000186857&sum=50000 [22:56:27]OFD Sender: Processing packet 30761 [packets to send 10, broken 9] [22:56:27]ProducePacketName [22:56:27]name=ofd_packets/00030761 [22:56:27]OFD Sender: To server: pG, [22:56:27]CommunicateWithHost lk.salyk.kg:30040 [22:56:27]ConnectInit lk.salyk.kg [22:56:27]written 0, free lines is 4095 [22:56:27]Connected sock=10 [22:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 6B A2 07 01 DA E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 20 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 78 00 00 35 04 06 00 B5 F9 45 DF CC 22 A8 62 14 11 08 EA E8 2B [22:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C2 97 47 00 92 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 29 78 00 00 F4 03 04 00 A0 86 16 67 B6 04 01 00 00 9D 46 B5 E2 52 77 19 6F [22:56:27]CommunicateWithHost err = 0 [22:56:27]CheckOFDResponse [22:56:27]1017 (14) - 77093643461234 [22:56:27]1041 (16) - 0000000002094219 [22:56:27]1040 (4) - 30761 [22:56:27]1012 (4) - 21.10.2024 16:51 [22:56:27]1206 (1) - 0 [22:56:27]OFD Sender: Remove packet 30761 [22:56:27]ProducePacketName [22:56:27]name=ofd_packets/00030761 [22:56:27]NVStorageDeleteData [22:56:27]Write to MH i2c: 01 00 00 E1 6A 4B [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 07 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: 01 07 00 E1 6A 00 00 00 00 00 F9 0C 57 [22:56:27]RasterBufferAndPrint [22:56:27]line [22:56:27]line [22:56:27]line [22:56:27]line [22:56:27]line [22:56:27]written 0, free lines is 3333 [22:56:27]MH_Cut [22:56:27]Write to MH i2c: D1 01 00 E8 6A 01 24 [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: D1 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: D1 01 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: D1 01 00 E8 6A 00 23 [22:56:27]Write to MH i2c: 01 00 00 E9 6A 53 [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:28]OFD Sender: No OFD packet to send [22:56:28]*** Cut start [22:56:28]*** Partial cut [22:56:28]*** CUTSNS_PIN = 1 [22:56:28]*** CUTSNS_PIN = 0 [22:56:28]*** Brake cut motor [22:56:29]Read from MH i2c: 01 [22:56:29]MH_I2C_Read... [22:56:29]*** Stop cut motor [22:56:29]*** Cut end [22:56:29]Read from MH i2c: 01 07 00 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: 01 07 00 E9 6A 00 00 00 00 00 FF 0F 68 [22:56:29]process_action close_receipt done [22:56:29]requested_data is exist [22:56:29]produce_requested_data [22:56:29]requested_item fm.sn is exist - process it [22:56:29]wFMCommunicate request_size=4 [22:56:29]MH_SAM_APDU [22:56:29]CAPDU: 80 11 00 00 [22:56:29]Write to MH i2c: E2 08 00 EA 6A 80 11 00 00 00 00 00 00 CE [22:56:29]Write i2c OK [22:56:29]MH_I2C_Read... [22:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:29]Read from MH i2c: E2 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 17 00 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 17 00 EA 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 1C [22:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:56:29]wFMCommunicate OK [22:56:29]requested_item fd.num is exist - process it [22:56:29]SAM_PROTO_GetFieldsCounters [22:56:29]wFMCommunicate request_size=4 [22:56:29]MH_SAM_APDU [22:56:29]CAPDU: 80 13 00 00 [22:56:29]Write to MH i2c: E2 08 00 EB 6A 80 13 00 00 00 00 00 00 D1 [22:56:29]Write i2c OK [22:56:29]MH_I2C_Read... [22:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:29]Read from MH i2c: E2 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 62 00 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 62 00 EB 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 29 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:29]wFMCommunicate OK [22:56:29]SAM_PROTO_GetFieldsCounters done [22:56:29]requested_item shift.num is exist - process it [22:56:29]requested_item shift.opened is exist - process it [22:56:29]req_shift_opened [22:56:29]FM_GetShiftState [22:56:29]SAM_PROTO_GetShiftState [22:56:29]wFMCommunicate request_size=4 [22:56:29]MH_SAM_APDU [22:56:29]CAPDU: 80 13 01 00 [22:56:29]Write to MH i2c: E2 08 00 EC 6A 80 13 01 00 00 00 00 00 D3 [22:56:29]Write i2c OK [22:56:29]MH_I2C_Read... [22:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:29]Read from MH i2c: E2 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 0E 00 [22:56:29]MH_I2C_Read... [22:56:29]Read from MH i2c: E2 0E 00 EC 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 4F [22:56:29]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:56:29]wFMCommunicate OK [22:56:29]SAM_PROTO_GetShiftState done [22:56:29]FM_GetShiftState done [22:56:29]req_shift_opened done [22:56:29]requested_item shift.open_date is exist - process it [22:56:29]req_shift_open_date [22:56:29]req_shift_open_date done [22:56:29]produce_requested_data done [22:56:29]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30761,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:56:29]process_action_free close_receipt [22:56:29]json_value_free [22:56:29]json_value_free done [22:56:29]process_json_proto returns [22:56:29]Send response to host [22:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30761,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:56:29]free response buf [22:56:29]execute_script done [22:56:29]execute_script returns [22:56:29]free content buf [22:56:29]Sock 9.Close socket [22:56:29]Sock 9.Thread stoped [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:39]accept exits with 7 [22:58:39]New connection [22:58:39]New thread 3067489636 created [22:58:39]Thread 3067346276 joined [22:58:39]Waiting for new connection... [22:58:39] Sock 7.Parse request [22:58:39]Sock 7.Check first char [22:58:39]Sock 7.First char is OK [22:58:39]request: POST /json_proto HTTP/1.0 [22:58:39]Method: POST [22:58:39]URL: /json_proto [22:58:39]Method is POST - this is cgi request [22:58:39]url: /json_proto [22:58:39]query_string will be loaded in cgi processing [22:58:39]execute_cgi json_proto POST (null) [22:58:39]execute_cgi path=json_proto method=POST [22:58:39]POST find Content-Length [22:58:39]Host: 172.17.51.3:8080 [22:58:39]Content-Length: 682 [22:58:39]Content-Type: application/json [22:58:39] [22:58:39]POST finish read [22:58:39]Found Content-Length = 682 [22:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:39]execute_script... [22:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:39]POST & json_proto [22:58:39]process_json_proto [22:58:39]json parsed OK: [22:58:39]protocol is kg_v1.0 [22:58:39]action value=close_receipt [22:58:39]process_action close_receipt [22:58:39]cmd_close_receipt [22:58:39]MH_GetDate [22:58:39]Write to MH i2c: F0 00 00 ED 6A 46 [22:58:39]Write i2c OK [22:58:39]MH_I2C_Read... [22:58:39]Read from MH i2c: F0 [22:58:39]MH_I2C_Read... [22:58:39]Read from MH i2c: F0 09 00 [22:58:39]MH_I2C_Read... [22:58:39]Read from MH i2c: F0 09 00 ED 6A 00 A6 DC 16 67 04 C1 95 66 0E [22:58:39]GetLastDocTimeStamp 1729551392 [22:58:39]current date 1729551526 [22:58:39]FM_GetShiftState [22:58:39]SAM_PROTO_GetShiftState [22:58:39]wFMCommunicate request_size=4 [22:58:39]MH_SAM_APDU [22:58:39]CAPDU: 80 13 01 00 [22:58:39]Write to MH i2c: E2 08 00 EE 6A 80 13 01 00 00 00 00 00 D5 [22:58:39]Write i2c OK [22:58:39]MH_I2C_Read... [22:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:39]Read from MH i2c: E2 [22:58:39]MH_I2C_Read... [22:58:39]Read from MH i2c: E2 0E 00 [22:58:39]MH_I2C_Read... [22:58:39]Read from MH i2c: E2 0E 00 EE 6A 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 51 [22:58:39]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:58:39]wFMCommunicate OK [22:58:39]SAM_PROTO_GetShiftState done [22:58:39]FM_GetShiftState done [22:58:39]opened in 1729471058 [22:58:39]opened+sec_in_day 1729557458 [22:58:39]quantity*price = 100021 [22:58:39]sum+1 = 100023 [22:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 259 21.10.2024 22:58 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30762 ФПД: 88203008231660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225846&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30762&fm=88203008231660&tin=02508201610067®Number=0000000000186857&sum=100000 [22:58:40]StoreToDocumentArchive [22:58:40]shift 115 fd 30762 [22:58:40]save to /storage/0115/doc_00030762 [22:58:40]save last doc name /storage/0115/doc_00030762 to /storage/kkm_last_doc_name [22:58:40]save OK [22:58:40]Clear old archive folders... [22:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:58:40]tlvbuf is 01E55C90 [22:58:40]SAM_PROTO_ClearQueue [22:58:40]wFMCommunicate request_size=4 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 09 00 00 [22:58:40]Write to MH i2c: E2 08 00 FB 6A 80 09 00 00 00 00 00 00 D7 [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 FB 6A 00 90 00 D9 [22:58:40]RAPDU: 90 00 [22:58:40]wFMCommunicate OK [22:58:40]SAM_PROTO_ClearQueue done [22:58:40]KKMCreateOFDPacket [22:58:40]OFDProtocolAddRootSTLVToBuf [22:58:40]FM_MakeSignedData [22:58:40]FM_MakeSignedData [22:58:40]SAM_PROTO_SignData [22:58:40]wFMCommunicate request_size=4 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 0D 01 02 [22:58:40]Write to MH i2c: E2 08 00 FC 6A 80 0D 01 02 00 00 00 00 DF [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 FC 6A 00 90 00 DA [22:58:40]RAPDU: 90 00 [22:58:40]wFMCommunicate OK [22:58:40]wFMCommunicate request_size=255 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 A6 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 78 00 00 35 04 06 00 50 [22:58:40]Write to MH i2c: E2 02 01 FD 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 A6 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 78 00 00 35 04 06 00 50 00 00 F6 [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 FD 6A 00 90 00 DB [22:58:40]RAPDU: 90 00 [22:58:40]wFMCommunicate OK [22:58:40]wFMCommunicate request_size=10 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 0D 02 02 05 38 5C F9 48 EC [22:58:40]Write to MH i2c: E2 0D 00 FE 6A 80 0D 02 02 05 00 38 5C F9 48 EC 00 00 AD [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 03 00 FE 6A 00 90 00 DC [22:58:40]RAPDU: 90 00 [22:58:40]wFMCommunicate OK [22:58:40]wFMCommunicate request_size=4 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 0D 03 02 [22:58:40]Write to MH i2c: E2 08 00 FF 6A 80 0D 03 02 00 00 00 00 E4 [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 0B 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 0B 00 FF 6A 00 FA 0C AF 00 4C C1 BB 5E 90 00 C0 [22:58:40]RAPDU: FA 0C AF 00 4C C1 BB 5E 90 00 [22:58:40]wFMCommunicate OK [22:58:40]SAM_PROTO_SignData done [22:58:40]FM_MakeSignedData done [22:58:40]CreateOFDProtocolMessage [22:58:40]wFMCommunicate request_size=4 [22:58:40]MH_SAM_APDU [22:58:40]CAPDU: 80 11 00 00 [22:58:40]Write to MH i2c: E2 08 00 00 6B 80 11 00 00 00 00 00 00 E5 [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:40]Read from MH i2c: E2 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 17 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: E2 17 00 00 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 33 [22:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:58:40]wFMCommunicate OK [22:58:40]CreateOFDProtocolMessage done [22:58:40]OFDSenderStorePacket 30762 [22:58:40]StoreOFDPacket docnum=30762 [22:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 A4 07 01 95 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 A6 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 78 00 00 35 04 06 00 50 38 5C F9 48 EC FA 0C AF 00 4C C1 BB 5E [22:58:40]CheckFolder [22:58:40]dirname=/storage/ofd_packets [22:58:40]CheckFolder done [22:58:40]ProducePacketName [22:58:40]name=ofd_packets/00030762 [22:58:40]NVStorageSaveData ofd_packets/00030762 [22:58:40]File name is /storage/ofd_packets/00030762 [22:58:40]Write 301 bytes [22:58:40]NVStorageSaveData done [22:58:40]OFDSenderStorePacket done [22:58:40]KKMCreateOFDPacket done [22:58:40]NVStorageSaveData kkm_last_timestamp [22:58:40]File name is /storage/kkm_last_timestamp [22:58:40]Write 4 bytes [22:58:40]NVStorageSaveData done [22:58:40]ExternCall_PrintAddStr [22:58:40]wPrintStart [22:58:40]Write to MH i2c: 01 00 00 01 6B 6C [22:58:40]Write i2c OK [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: 01 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: 01 07 00 [22:58:40]MH_I2C_Read... [22:58:40]Read from MH i2c: 01 07 00 01 6B 00 00 00 00 00 FF 0F 81 [22:58:40]RasterBufferAndPrint [22:58:40]line Счет N : (1)343181 [22:58:40]line ИНН: 02508201610067 [22:58:40]line Контрольно-Кассовый Чек [22:58:40]line ПРОДАЖА [22:58:40]line ТРК (МРК, ГНК) : 32 [22:58:40]line Товар: 2710124500 [22:58:40]line Аи-95-К-3 [22:58:40]line 13.480 * 74.20 [22:58:40]line = 1000.22 [22:58:40]line НДС 12% НСП 1% [22:58:40]line > о реализуемом товаре [22:58:40]line ОКРУГЛЕНИЕ: -0.22 [22:58:40]line ИТОГО: 1000.00 [22:58:40]line Внесено: 1000.00 [22:58:40]line СДАЧА: 0.00 [22:58:40]line НСП 1% : 8.85 [22:58:40]line НДС 12% : 106.22 [22:58:40]line Наличными: 1000.00 [22:58:40]line Безнал.: 0.00 [22:58:40]line Место: АЗС № 78 "Партнер Нефть" [22:58:40]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [22:58:40]line СНО: Общий режим [22:58:40]line Чек 259 21.10.2024 22:58 [22:58:40]line Смена: 115 ФФД: 1.0 [22:58:40]line ЗНМ: 0300000137 [22:58:40]line РНМ: 0000000000186857 [22:58:40]line Версия ККМ: v1.0 [22:58:40]line ФМ: 0000000002094219 [22:58:40]line ФД: 30762 [22:58:40]line ФПД: 88203008231660 [22:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225846&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30762&fm=88203008231660&tin=02508201610067®Number=0000000000186857&sum=100000 [22:58:41]OFD Sender: Processing packet 30762 [packets to send 10, broken 9] [22:58:41]ProducePacketName [22:58:41]name=ofd_packets/00030762 [22:58:41]OFD Sender: To server: pG, [22:58:41]CommunicateWithHost lk.salyk.kg:30040 [22:58:41]ConnectInit lk.salyk.kg [22:58:41]written 0, free lines is 4095 [22:58:41]Connected sock=10 [22:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 79 A4 07 01 95 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 A6 DC 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2A 78 00 00 35 04 06 00 50 38 5C F9 48 EC FA 0C AF 00 4C C1 BB 5E [22:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 FB 2C 47 00 5D 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 32 30 39 34 32 31 39 10 04 04 00 2A 78 00 00 F4 03 04 00 25 87 16 67 B6 04 01 00 00 CD F3 AF B4 7A CC F9 C7 [22:58:41]CommunicateWithHost err = 0 [22:58:41]CheckOFDResponse [22:58:41]1017 (14) - 77093643461234 [22:58:41]1041 (16) - 0000000002094219 [22:58:41]1040 (4) - 30762 [22:58:41]1012 (4) - 21.10.2024 16:53 [22:58:41]1206 (1) - 0 [22:58:41]OFD Sender: Remove packet 30762 [22:58:41]ProducePacketName [22:58:41]name=ofd_packets/00030762 [22:58:41]NVStorageDeleteData [22:58:41]Write to MH i2c: 01 00 00 2C 6B 97 [22:58:41]Write i2c OK [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: 01 [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: 01 07 00 [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: 01 07 00 2C 6B 00 00 00 00 00 00 0D AB [22:58:41]RasterBufferAndPrint [22:58:41]line [22:58:41]line [22:58:41]line [22:58:41]line [22:58:41]line [22:58:41]written 0, free lines is 3334 [22:58:41]MH_Cut [22:58:41]Write to MH i2c: D1 01 00 33 6B 01 70 [22:58:41]Write i2c OK [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: D1 [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: D1 01 00 [22:58:41]MH_I2C_Read... [22:58:41]Read from MH i2c: D1 01 00 33 6B 00 6F [22:58:41]Write to MH i2c: 01 00 00 34 6B 9F [22:58:41]Write i2c OK [22:58:41]MH_I2C_Read... [22:58:41]OFD Sender: No OFD packet to send [22:58:42]*** Cut start [22:58:42]*** Partial cut [22:58:42]*** CUTSNS_PIN = 1 [22:58:42]*** CUTSNS_PIN = 0 [22:58:42]*** Brake cut motor [22:58:42]Read from MH i2c: 01 [22:58:42]MH_I2C_Read... [22:58:42]*** Stop cut motor [22:58:42]*** Cut end [22:58:42]Read from MH i2c: 01 07 00 [22:58:42]MH_I2C_Read... [22:58:42]Read from MH i2c: 01 07 00 34 6B 00 00 00 00 00 FF 0F B4 [22:58:42]process_action close_receipt done [22:58:42]requested_data is exist [22:58:42]produce_requested_data [22:58:42]requested_item fm.sn is exist - process it [22:58:42]wFMCommunicate request_size=4 [22:58:42]MH_SAM_APDU [22:58:42]CAPDU: 80 11 00 00 [22:58:42]Write to MH i2c: E2 08 00 35 6B 80 11 00 00 00 00 00 00 1A [22:58:42]Write i2c OK [22:58:42]MH_I2C_Read... [22:58:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:42]Read from MH i2c: E2 [22:58:42]MH_I2C_Read... [22:58:42]Read from MH i2c: E2 17 00 [22:58:42]MH_I2C_Read... [22:58:42]Read from MH i2c: E2 17 00 35 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 68 [22:58:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [22:58:42]wFMCommunicate OK [22:58:42]requested_item fd.num is exist - process it [22:58:42]SAM_PROTO_GetFieldsCounters [22:58:42]wFMCommunicate request_size=4 [22:58:42]MH_SAM_APDU [22:58:42]CAPDU: 80 13 00 00 [22:58:42]Write to MH i2c: E2 08 00 36 6B 80 13 00 00 00 00 00 00 1D [22:58:42]Write i2c OK [22:58:42]MH_I2C_Read... [22:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:43]Read from MH i2c: E2 [22:58:43]MH_I2C_Read... [22:58:43]Read from MH i2c: E2 62 00 [22:58:43]MH_I2C_Read... [22:58:43]Read from MH i2c: E2 62 00 36 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [22:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2A 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:43]wFMCommunicate OK [22:58:43]SAM_PROTO_GetFieldsCounters done [22:58:43]requested_item shift.num is exist - process it [22:58:43]requested_item shift.opened is exist - process it [22:58:43]req_shift_opened [22:58:43]FM_GetShiftState [22:58:43]SAM_PROTO_GetShiftState [22:58:43]wFMCommunicate request_size=4 [22:58:43]MH_SAM_APDU [22:58:43]CAPDU: 80 13 01 00 [22:58:43]Write to MH i2c: E2 08 00 37 6B 80 13 01 00 00 00 00 00 1F [22:58:43]Write i2c OK [22:58:43]MH_I2C_Read... [22:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:43]Read from MH i2c: E2 [22:58:43]MH_I2C_Read... [22:58:43]Read from MH i2c: E2 0E 00 [22:58:43]MH_I2C_Read... [22:58:43]Read from MH i2c: E2 0E 00 37 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9B [22:58:43]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [22:58:43]wFMCommunicate OK [22:58:43]SAM_PROTO_GetShiftState done [22:58:43]FM_GetShiftState done [22:58:43]req_shift_opened done [22:58:43]requested_item shift.open_date is exist - process it [22:58:43]req_shift_open_date [22:58:43]req_shift_open_date done [22:58:43]produce_requested_data done [22:58:43]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30762,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [22:58:43]process_action_free close_receipt [22:58:43]json_value_free [22:58:43]json_value_free done [22:58:43]process_json_proto returns [22:58:43]Send response to host [22:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30762,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [22:58:43]free response buf [22:58:43]execute_script done [22:58:43]execute_script returns [22:58:43]free content buf [22:58:43]Sock 7.Close socket [22:58:43]Sock 7.Thread stoped [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:37]accept exits with 9 [23:01:37]New connection [23:01:37]New thread 3067346276 created [23:01:37]Thread 3067489636 joined [23:01:37]Waiting for new connection... [23:01:37] Sock 9.Parse request [23:01:37]Sock 9.Check first char [23:01:37]Sock 9.First char is OK [23:01:37]request: POST /json_proto HTTP/1.0 [23:01:37]Method: POST [23:01:37]URL: /json_proto [23:01:37]Method is POST - this is cgi request [23:01:37]url: /json_proto [23:01:37]query_string will be loaded in cgi processing [23:01:37]execute_cgi json_proto POST (null) [23:01:37]execute_cgi path=json_proto method=POST [23:01:37]POST find Content-Length [23:01:37]Host: 172.17.51.3:8080 [23:01:37]Content-Length: 677 [23:01:37]Content-Type: application/json [23:01:37] [23:01:37]POST finish read [23:01:37]Found Content-Length = 677 [23:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:37]execute_script... [23:01:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:37]POST & json_proto [23:01:37]process_json_proto [23:01:37]json parsed OK: [23:01:37]protocol is kg_v1.0 [23:01:37]action value=close_receipt [23:01:37]process_action close_receipt [23:01:37]cmd_close_receipt [23:01:37]MH_GetDate [23:01:37]Write to MH i2c: F0 00 00 38 6B 92 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 09 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: F0 09 00 38 6B 00 58 DD 16 67 04 C1 95 66 0D [23:01:37]GetLastDocTimeStamp 1729551526 [23:01:37]current date 1729551704 [23:01:37]FM_GetShiftState [23:01:37]SAM_PROTO_GetShiftState [23:01:37]wFMCommunicate request_size=4 [23:01:37]MH_SAM_APDU [23:01:37]CAPDU: 80 13 01 00 [23:01:37]Write to MH i2c: E2 08 00 39 6B 80 13 01 00 00 00 00 00 21 [23:01:37]Write i2c OK [23:01:37]MH_I2C_Read... [23:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:37]Read from MH i2c: E2 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: E2 0E 00 [23:01:37]MH_I2C_Read... [23:01:37]Read from MH i2c: E2 0E 00 39 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 9D [23:01:37]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [23:01:37]wFMCommunicate OK [23:01:37]SAM_PROTO_GetShiftState done [23:01:37]FM_GetShiftState done [23:01:37]opened in 1729471058 [23:01:37]opened+sec_in_day 1729557458 [23:01:37]quantity*price = 50041 [23:01:37]sum+1 = 50042 [23:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 260 21.10.2024 23:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30763 ФПД: 181173167347907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30763&fm=181173167347907&tin=02508201610067®Number=0000000000186857&sum=50000 [23:01:38]StoreToDocumentArchive [23:01:38]shift 115 fd 30763 [23:01:38]save to /storage/0115/doc_00030763 [23:01:38]save last doc name /storage/0115/doc_00030763 to /storage/kkm_last_doc_name [23:01:38]save OK [23:01:38]Clear old archive folders... [23:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:38]tlvbuf is 01E49790 [23:01:38]SAM_PROTO_ClearQueue [23:01:38]wFMCommunicate request_size=4 [23:01:38]MH_SAM_APDU [23:01:38]CAPDU: 80 09 00 00 [23:01:38]Write to MH i2c: E2 08 00 46 6B 80 09 00 00 00 00 00 00 23 [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:38]Read from MH i2c: E2 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 46 6B 00 90 00 25 [23:01:38]RAPDU: 90 00 [23:01:38]wFMCommunicate OK [23:01:38]SAM_PROTO_ClearQueue done [23:01:38]KKMCreateOFDPacket [23:01:38]OFDProtocolAddRootSTLVToBuf [23:01:38]FM_MakeSignedData [23:01:38]FM_MakeSignedData [23:01:38]SAM_PROTO_SignData [23:01:38]wFMCommunicate request_size=4 [23:01:38]MH_SAM_APDU [23:01:38]CAPDU: 80 0D 01 02 [23:01:38]Write to MH i2c: E2 08 00 47 6B 80 0D 01 02 00 00 00 00 2B [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:38]Read from MH i2c: E2 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 47 6B 00 90 00 26 [23:01:38]RAPDU: 90 00 [23:01:38]wFMCommunicate OK [23:01:38]wFMCommunicate request_size=255 [23:01:38]MH_SAM_APDU [23:01:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 58 DD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 78 00 00 35 04 06 00 A4 [23:01:38]Write to MH i2c: E2 02 01 48 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 58 DD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 78 00 00 35 04 06 00 A4 00 00 2D [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:38]Read from MH i2c: E2 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 [23:01:38]MH_I2C_Read... [23:01:38]Read from MH i2c: E2 03 00 48 6B 00 90 00 27 [23:01:38]RAPDU: 90 00 [23:01:38]wFMCommunicate OK [23:01:38]wFMCommunicate request_size=10 [23:01:38]MH_SAM_APDU [23:01:38]CAPDU: 80 0D 02 02 05 C6 AA 48 58 C3 [23:01:38]Write to MH i2c: E2 0D 00 49 6B 80 0D 02 02 05 00 C6 AA 48 58 C3 00 00 0B [23:01:38]Write i2c OK [23:01:38]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 03 00 49 6B 00 90 00 28 [23:01:39]RAPDU: 90 00 [23:01:39]wFMCommunicate OK [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 0D 03 02 [23:01:39]Write to MH i2c: E2 08 00 4A 6B 80 0D 03 02 00 00 00 00 30 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0B 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 0B 00 4A 6B 00 92 81 E4 24 6F 16 24 0E 90 00 03 [23:01:39]RAPDU: 92 81 E4 24 6F 16 24 0E 90 00 [23:01:39]wFMCommunicate OK [23:01:39]SAM_PROTO_SignData done [23:01:39]FM_MakeSignedData done [23:01:39]CreateOFDProtocolMessage [23:01:39]wFMCommunicate request_size=4 [23:01:39]MH_SAM_APDU [23:01:39]CAPDU: 80 11 00 00 [23:01:39]Write to MH i2c: E2 08 00 4B 6B 80 11 00 00 00 00 00 00 30 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:39]Read from MH i2c: E2 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: E2 17 00 4B 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7E [23:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:01:39]wFMCommunicate OK [23:01:39]CreateOFDProtocolMessage done [23:01:39]OFDSenderStorePacket 30763 [23:01:39]StoreOFDPacket docnum=30763 [23:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B AF 07 01 D3 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 58 DD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 78 00 00 35 04 06 00 A4 C6 AA 48 58 C3 92 81 E4 24 6F 16 24 0E [23:01:39]CheckFolder [23:01:39]dirname=/storage/ofd_packets [23:01:39]CheckFolder done [23:01:39]ProducePacketName [23:01:39]name=ofd_packets/00030763 [23:01:39]NVStorageSaveData ofd_packets/00030763 [23:01:39]File name is /storage/ofd_packets/00030763 [23:01:39]Write 301 bytes [23:01:39]NVStorageSaveData done [23:01:39]OFDSenderStorePacket done [23:01:39]KKMCreateOFDPacket done [23:01:39]NVStorageSaveData kkm_last_timestamp [23:01:39]File name is /storage/kkm_last_timestamp [23:01:39]Write 4 bytes [23:01:39]NVStorageSaveData done [23:01:39]ExternCall_PrintAddStr [23:01:39]wPrintStart [23:01:39]Write to MH i2c: 01 00 00 4C 6B B7 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 4C 6B 00 00 00 00 00 FF 0F CC [23:01:39]RasterBufferAndPrint [23:01:39]line Счет N : (1)343182 [23:01:39]line ИНН: 02508201610067 [23:01:39]line Контрольно-Кассовый Чек [23:01:39]line ПРОДАЖА [23:01:39]line ТРК (МРК, ГНК) : 43 [23:01:39]line Товар: 2710124130 [23:01:39]line Аи-92-К-2 [23:01:39]line 7.480 * 66.90 [23:01:39]line = 500.41 [23:01:39]line НДС 12% НСП 1% [23:01:39]line > о реализуемом товаре [23:01:39]line ОКРУГЛЕНИЕ: -0.41 [23:01:39]line ИТОГО: 500.00 [23:01:39]line Внесено: 500.00 [23:01:39]line СДАЧА: 0.00 [23:01:39]line НСП 1% : 4.43 [23:01:39]line НДС 12% : 53.14 [23:01:39]line Наличными: 500.00 [23:01:39]line Безнал.: 0.00 [23:01:39]line Место: АЗС № 78 "Партнер Нефть" [23:01:39]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [23:01:39]line СНО: Общий режим [23:01:39]line Чек 260 21.10.2024 23:01 [23:01:39]line Смена: 115 ФФД: 1.0 [23:01:39]line ЗНМ: 0300000137 [23:01:39]line РНМ: 0000000000186857 [23:01:39]line Версия ККМ: v1.0 [23:01:39]line ФМ: 0000000002094219 [23:01:39]line ФД: 30763 [23:01:39]line ФПД: 181173167347907 [23:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230144&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30763&fm=181173167347907&tin=02508201610067®Number=0000000000186857&sum=50000 [23:01:39]OFD Sender: Processing packet 30763 [packets to send 10, broken 9] [23:01:39]ProducePacketName [23:01:39]name=ofd_packets/00030763 [23:01:39]OFD Sender: To server: pG, [23:01:39]CommunicateWithHost lk.salyk.kg:30040 [23:01:39]ConnectInit lk.salyk.kg [23:01:39]written 0, free lines is 4095 [23:01:39]Connected sock=10 [23:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 2B AF 07 01 D3 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 58 DD 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 78 00 00 35 04 06 00 A4 C6 AA 48 58 C3 92 81 E4 24 6F 16 24 0E [23:01:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 C8 D0 47 00 05 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2B 78 00 00 F4 03 04 00 D8 87 16 67 B6 04 01 00 00 BF 86 CE 57 0B BA B2 8F [23:01:39]CommunicateWithHost err = 0 [23:01:39]CheckOFDResponse [23:01:39]1017 (14) - 77093643461234 [23:01:39]1041 (16) - 0000000002094219 [23:01:39]1040 (4) - 30763 [23:01:39]1012 (4) - 21.10.2024 16:56 [23:01:39]1206 (1) - 0 [23:01:39]OFD Sender: Remove packet 30763 [23:01:39]ProducePacketName [23:01:39]name=ofd_packets/00030763 [23:01:39]NVStorageDeleteData [23:01:39]Write to MH i2c: 01 00 00 77 6B E2 [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: 01 07 00 77 6B 00 00 00 00 00 EB 0C E0 [23:01:39]RasterBufferAndPrint [23:01:39]line [23:01:39]line [23:01:39]line [23:01:39]line [23:01:39]line [23:01:39]written 0, free lines is 3316 [23:01:39]MH_Cut [23:01:39]Write to MH i2c: D1 01 00 7E 6B 01 BB [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: D1 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: D1 01 00 [23:01:39]MH_I2C_Read... [23:01:39]Read from MH i2c: D1 01 00 7E 6B 00 BA [23:01:39]Write to MH i2c: 01 00 00 7F 6B EA [23:01:39]Write i2c OK [23:01:39]MH_I2C_Read... [23:01:40]OFD Sender: No OFD packet to send [23:01:40]*** Cut start [23:01:40]*** Partial cut [23:01:40]*** CUTSNS_PIN = 1 [23:01:40]*** CUTSNS_PIN = 0 [23:01:40]*** Brake cut motor [23:01:41]Read from MH i2c: 01 [23:01:41]MH_I2C_Read... [23:01:41]*** Stop cut motor [23:01:41]*** Cut end [23:01:41]Read from MH i2c: 01 07 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: 01 07 00 7F 6B 00 00 00 00 00 FF 0F FF [23:01:41]process_action close_receipt done [23:01:41]requested_data is exist [23:01:41]produce_requested_data [23:01:41]requested_item fm.sn is exist - process it [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 11 00 00 [23:01:41]Write to MH i2c: E2 08 00 80 6B 80 11 00 00 00 00 00 00 65 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 17 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 17 00 80 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B3 [23:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [23:01:41]wFMCommunicate OK [23:01:41]requested_item fd.num is exist - process it [23:01:41]SAM_PROTO_GetFieldsCounters [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 13 00 00 [23:01:41]Write to MH i2c: E2 08 00 81 6B 80 13 00 00 00 00 00 00 68 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 62 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 62 00 81 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [23:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2B 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_GetFieldsCounters done [23:01:41]requested_item shift.num is exist - process it [23:01:41]requested_item shift.opened is exist - process it [23:01:41]req_shift_opened [23:01:41]FM_GetShiftState [23:01:41]SAM_PROTO_GetShiftState [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 13 01 00 [23:01:41]Write to MH i2c: E2 08 00 82 6B 80 13 01 00 00 00 00 00 6A [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0E 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0E 00 82 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E6 [23:01:41]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_GetShiftState done [23:01:41]FM_GetShiftState done [23:01:41]req_shift_opened done [23:01:41]requested_item shift.open_date is exist - process it [23:01:41]req_shift_open_date [23:01:41]req_shift_open_date done [23:01:41]produce_requested_data done [23:01:41]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30763,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [23:01:41]process_action_free close_receipt [23:01:41]json_value_free [23:01:41]json_value_free done [23:01:41]process_json_proto returns [23:01:41]Send response to host [23:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30763,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [23:01:41]free response buf [23:01:41]execute_script done [23:01:41]execute_script returns [23:01:41]free content buf [23:01:41]Sock 9.Close socket [23:01:41]Sock 9.Thread stoped [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35: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:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:44]accept exits with 7 [00:01:44]New connection [00:01:44]New thread 3067489636 created [00:01:44]Thread 3067346276 joined [00:01:44]Waiting for new connection... [00:01:44] Sock 7.Parse request [00:01:44]Sock 7.Check first char [00:01:44]Sock 7.First char is OK [00:01:44]request: POST /json_proto HTTP/1.0 [00:01:44]Method: POST [00:01:44]URL: /json_proto [00:01:44]Method is POST - this is cgi request [00:01:44]url: /json_proto [00:01:44]query_string will be loaded in cgi processing [00:01:44]execute_cgi json_proto POST (null) [00:01:44]execute_cgi path=json_proto method=POST [00:01:44]POST find Content-Length [00:01:44]Host: 172.17.51.3:8080 [00:01:44]Content-Length: 677 [00:01:44]Content-Type: application/json [00:01:44] [00:01:44]POST finish read [00:01:44]Found Content-Length = 677 [00:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:44]execute_script... [00:01:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:44]POST & json_proto [00:01:44]process_json_proto [00:01:44]json parsed OK: [00:01:44]protocol is kg_v1.0 [00:01:44]action value=close_receipt [00:01:44]process_action close_receipt [00:01:44]cmd_close_receipt [00:01:44]MH_GetDate [00:01:44]Write to MH i2c: F0 00 00 83 6B DD [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: F0 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: F0 09 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: F0 09 00 83 6B 00 6F EB 16 67 04 C1 95 66 7D [00:01:44]GetLastDocTimeStamp 1729551704 [00:01:44]current date 1729555311 [00:01:44]FM_GetShiftState [00:01:44]SAM_PROTO_GetShiftState [00:01:44]wFMCommunicate request_size=4 [00:01:44]MH_SAM_APDU [00:01:44]CAPDU: 80 13 01 00 [00:01:44]Write to MH i2c: E2 08 00 84 6B 80 13 01 00 00 00 00 00 6C [00:01:44]Write i2c OK [00:01:44]MH_I2C_Read... [00:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:44]Read from MH i2c: E2 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 0E 00 [00:01:44]MH_I2C_Read... [00:01:44]Read from MH i2c: E2 0E 00 84 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 E8 [00:01:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:01:44]wFMCommunicate OK [00:01:44]SAM_PROTO_GetShiftState done [00:01:44]FM_GetShiftState done [00:01:44]opened in 1729471058 [00:01:44]opened+sec_in_day 1729557458 [00:01:44]quantity*price = 30038 [00:01:44]sum+1 = 30039 [00:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 261 22.10.2024 00:01 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30764 ФПД: 60963461451045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000151&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30764&fm=60963461451045&tin=02508201610067®Number=0000000000186857&sum=30000 [00:01:45]StoreToDocumentArchive [00:01:45]shift 115 fd 30764 [00:01:45]save to /storage/0115/doc_00030764 [00:01:45]save last doc name /storage/0115/doc_00030764 to /storage/kkm_last_doc_name [00:01:45]save OK [00:01:45]Clear old archive folders... [00:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:01:45]tlvbuf is 01ED88D0 [00:01:45]SAM_PROTO_ClearQueue [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 09 00 00 [00:01:45]Write to MH i2c: E2 08 00 91 6B 80 09 00 00 00 00 00 00 6E [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 91 6B 00 90 00 70 [00:01:45]RAPDU: 90 00 [00:01:45]wFMCommunicate OK [00:01:45]SAM_PROTO_ClearQueue done [00:01:45]KKMCreateOFDPacket [00:01:45]OFDProtocolAddRootSTLVToBuf [00:01:45]FM_MakeSignedData [00:01:45]FM_MakeSignedData [00:01:45]SAM_PROTO_SignData [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 0D 01 02 [00:01:45]Write to MH i2c: E2 08 00 92 6B 80 0D 01 02 00 00 00 00 76 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 92 6B 00 90 00 71 [00:01:45]RAPDU: 90 00 [00:01:45]wFMCommunicate OK [00:01:45]wFMCommunicate request_size=255 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 6F EB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 78 00 00 35 04 06 00 37 [00:01:45]Write to MH i2c: E2 02 01 93 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 6F EB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 78 00 00 35 04 06 00 37 00 00 26 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 93 6B 00 90 00 72 [00:01:45]RAPDU: 90 00 [00:01:45]wFMCommunicate OK [00:01:45]wFMCommunicate request_size=10 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 0D 02 02 05 72 29 76 CD 25 [00:01:45]Write to MH i2c: E2 0D 00 94 6B 80 0D 02 02 05 00 72 29 76 CD 25 00 00 86 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 03 00 94 6B 00 90 00 73 [00:01:45]RAPDU: 90 00 [00:01:45]wFMCommunicate OK [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 0D 03 02 [00:01:45]Write to MH i2c: E2 08 00 95 6B 80 0D 03 02 00 00 00 00 7B [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 0B 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 0B 00 95 6B 00 AE D3 7A F5 DE D9 1D 89 90 00 C9 [00:01:45]RAPDU: AE D3 7A F5 DE D9 1D 89 90 00 [00:01:45]wFMCommunicate OK [00:01:45]SAM_PROTO_SignData done [00:01:45]FM_MakeSignedData done [00:01:45]CreateOFDProtocolMessage [00:01:45]wFMCommunicate request_size=4 [00:01:45]MH_SAM_APDU [00:01:45]CAPDU: 80 11 00 00 [00:01:45]Write to MH i2c: E2 08 00 96 6B 80 11 00 00 00 00 00 00 7B [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:45]Read from MH i2c: E2 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 17 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: E2 17 00 96 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 C9 [00:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:01:45]wFMCommunicate OK [00:01:45]CreateOFDProtocolMessage done [00:01:45]OFDSenderStorePacket 30764 [00:01:45]StoreOFDPacket docnum=30764 [00:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 34 07 01 B2 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 6F EB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 78 00 00 35 04 06 00 37 72 29 76 CD 25 AE D3 7A F5 DE D9 1D 89 [00:01:45]CheckFolder [00:01:45]dirname=/storage/ofd_packets [00:01:45]CheckFolder done [00:01:45]ProducePacketName [00:01:45]name=ofd_packets/00030764 [00:01:45]NVStorageSaveData ofd_packets/00030764 [00:01:45]File name is /storage/ofd_packets/00030764 [00:01:45]Write 301 bytes [00:01:45]NVStorageSaveData done [00:01:45]OFDSenderStorePacket done [00:01:45]KKMCreateOFDPacket done [00:01:45]NVStorageSaveData kkm_last_timestamp [00:01:45]File name is /storage/kkm_last_timestamp [00:01:45]Write 4 bytes [00:01:45]NVStorageSaveData done [00:01:45]ExternCall_PrintAddStr [00:01:45]wPrintStart [00:01:45]Write to MH i2c: 01 00 00 97 6B 02 [00:01:45]Write i2c OK [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 07 00 [00:01:45]MH_I2C_Read... [00:01:45]Read from MH i2c: 01 07 00 97 6B 00 00 00 00 00 FF 0F 17 [00:01:45]RasterBufferAndPrint [00:01:45]line Счет N : (1)343183 [00:01:45]line ИНН: 02508201610067 [00:01:45]line Контрольно-Кассовый Чек [00:01:45]line ПРОДАЖА [00:01:45]line ТРК (МРК, ГНК) : 63 [00:01:45]line Товар: 2710124130 [00:01:45]line Аи-92-К-2 [00:01:45]line 4.490 * 66.90 [00:01:45]line = 300.38 [00:01:45]line НДС 12% НСП 1% [00:01:45]line > о реализуемом товаре [00:01:45]line ОКРУГЛЕНИЕ: -0.38 [00:01:45]line ИТОГО: 300.00 [00:01:45]line Внесено: 300.00 [00:01:45]line СДАЧА: 0.00 [00:01:45]line НСП 1% : 2.66 [00:01:45]line НДС 12% : 31.90 [00:01:45]line Наличными: 300.00 [00:01:45]line Безнал.: 0.00 [00:01:45]line Место: АЗС № 78 "Партнер Нефть" [00:01:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:01:45]line СНО: Общий режим [00:01:45]line Чек 261 22.10.2024 00:01 [00:01:45]line Смена: 115 ФФД: 1.0 [00:01:45]line ЗНМ: 0300000137 [00:01:45]line РНМ: 0000000000186857 [00:01:45]line Версия ККМ: v1.0 [00:01:45]line ФМ: 0000000002094219 [00:01:45]line ФД: 30764 [00:01:45]line ФПД: 60963461451045 [00:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000151&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30764&fm=60963461451045&tin=02508201610067®Number=0000000000186857&sum=30000 [00:01:46]OFD Sender: Processing packet 30764 [packets to send 10, broken 9] [00:01:46]ProducePacketName [00:01:46]name=ofd_packets/00030764 [00:01:46]OFD Sender: To server: pG, [00:01:46]CommunicateWithHost lk.salyk.kg:30040 [00:01:46]ConnectInit lk.salyk.kg [00:01:46]written 0, free lines is 4095 [00:01:46]Connected sock=10 [00:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 13 34 07 01 B2 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 6F EB 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 78 00 00 35 04 06 00 37 72 29 76 CD 25 AE D3 7A F5 DE D9 1D 89 [00:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 92 F7 47 00 EF 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2C 78 00 00 F4 03 04 00 EE 95 16 67 B6 04 01 00 00 3E 5E 97 AF 85 B6 EC CF [00:01:46]CommunicateWithHost err = 0 [00:01:46]CheckOFDResponse [00:01:46]1017 (14) - 77093643461234 [00:01:46]1041 (16) - 0000000002094219 [00:01:46]1040 (4) - 30764 [00:01:46]1012 (4) - 21.10.2024 17:57 [00:01:46]1206 (1) - 0 [00:01:46]OFD Sender: Remove packet 30764 [00:01:46]ProducePacketName [00:01:46]name=ofd_packets/00030764 [00:01:46]NVStorageDeleteData [00:01:46]Write to MH i2c: 01 00 00 C2 6B 2D [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: 01 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: 01 07 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: 01 07 00 C2 6B 00 00 00 00 00 F6 0C 36 [00:01:46]RasterBufferAndPrint [00:01:46]line [00:01:46]line [00:01:46]line [00:01:46]line [00:01:46]line [00:01:46]written 0, free lines is 3324 [00:01:46]MH_Cut [00:01:46]Write to MH i2c: D1 01 00 C9 6B 01 06 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: D1 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: D1 01 00 [00:01:46]MH_I2C_Read... [00:01:46]Read from MH i2c: D1 01 00 C9 6B 00 05 [00:01:46]Write to MH i2c: 01 00 00 CA 6B 35 [00:01:46]Write i2c OK [00:01:46]MH_I2C_Read... [00:01:47]OFD Sender: No OFD packet to send [00:01:47]*** Cut start [00:01:47]*** Partial cut [00:01:47]*** CUTSNS_PIN = 1 [00:01:47]*** CUTSNS_PIN = 0 [00:01:47]*** Brake cut motor [00:01:47]Read from MH i2c: 01 [00:01:47]MH_I2C_Read... [00:01:47]*** Stop cut motor [00:01:47]*** Cut end [00:01:47]Read from MH i2c: 01 07 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: 01 07 00 CA 6B 00 00 00 00 00 FF 0F 4A [00:01:47]process_action close_receipt done [00:01:47]requested_data is exist [00:01:47]produce_requested_data [00:01:47]requested_item fm.sn is exist - process it [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 11 00 00 [00:01:47]Write to MH i2c: E2 08 00 CB 6B 80 11 00 00 00 00 00 00 B0 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:47]Read from MH i2c: E2 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 17 00 [00:01:47]MH_I2C_Read... [00:01:47]Read from MH i2c: E2 17 00 CB 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FE [00:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:01:47]wFMCommunicate OK [00:01:47]requested_item fd.num is exist - process it [00:01:47]SAM_PROTO_GetFieldsCounters [00:01:47]wFMCommunicate request_size=4 [00:01:47]MH_SAM_APDU [00:01:47]CAPDU: 80 13 00 00 [00:01:47]Write to MH i2c: E2 08 00 CC 6B 80 13 00 00 00 00 00 00 B3 [00:01:47]Write i2c OK [00:01:47]MH_I2C_Read... [00:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:48]Read from MH i2c: E2 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 62 00 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 62 00 CC 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 02 [00:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2C 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:48]wFMCommunicate OK [00:01:48]SAM_PROTO_GetFieldsCounters done [00:01:48]requested_item shift.num is exist - process it [00:01:48]requested_item shift.opened is exist - process it [00:01:48]req_shift_opened [00:01:48]FM_GetShiftState [00:01:48]SAM_PROTO_GetShiftState [00:01:48]wFMCommunicate request_size=4 [00:01:48]MH_SAM_APDU [00:01:48]CAPDU: 80 13 01 00 [00:01:48]Write to MH i2c: E2 08 00 CD 6B 80 13 01 00 00 00 00 00 B5 [00:01:48]Write i2c OK [00:01:48]MH_I2C_Read... [00:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:48]Read from MH i2c: E2 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 0E 00 [00:01:48]MH_I2C_Read... [00:01:48]Read from MH i2c: E2 0E 00 CD 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 31 [00:01:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:01:48]wFMCommunicate OK [00:01:48]SAM_PROTO_GetShiftState done [00:01:48]FM_GetShiftState done [00:01:48]req_shift_opened done [00:01:48]requested_item shift.open_date is exist - process it [00:01:48]req_shift_open_date [00:01:48]req_shift_open_date done [00:01:48]produce_requested_data done [00:01:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30764,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:01:48]process_action_free close_receipt [00:01:48]json_value_free [00:01:48]json_value_free done [00:01:48]process_json_proto returns [00:01:48]Send response to host [00:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30764,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:01:48]free response buf [00:01:48]execute_script done [00:01:48]execute_script returns [00:01:48]free content buf [00:01:48]Sock 7.Close socket [00:01:48]Sock 7.Thread stoped [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:44]accept exits with 9 [00:09:44]New connection [00:09:44]New thread 3067346276 created [00:09:44]Thread 3067489636 joined [00:09:44]Waiting for new connection... [00:09:44] Sock 9.Parse request [00:09:44]Sock 9.Check first char [00:09:44]Sock 9.First char is OK [00:09:44]request: POST /json_proto HTTP/1.0 [00:09:44]Method: POST [00:09:44]URL: /json_proto [00:09:44]Method is POST - this is cgi request [00:09:44]url: /json_proto [00:09:44]query_string will be loaded in cgi processing [00:09:44]execute_cgi json_proto POST (null) [00:09:44]execute_cgi path=json_proto method=POST [00:09:44]POST find Content-Length [00:09:44]Host: 172.17.51.3:8080 [00:09:44]Content-Length: 840 [00:09:44]Content-Type: application/json [00:09:44] [00:09:44]POST finish read [00:09:44]Found Content-Length = 840 [00:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:44]execute_script... [00:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:44]POST & json_proto [00:09:44]process_json_proto [00:09:44]json parsed OK: [00:09:44]protocol is kg_v1.0 [00:09:44]action value=close_receipt [00:09:44]process_action close_receipt [00:09:44]cmd_close_receipt [00:09:44]MH_GetDate [00:09:44]Write to MH i2c: F0 00 00 CE 6B 28 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 09 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: F0 09 00 CE 6B 00 4F ED 16 67 04 C1 95 66 AA [00:09:44]GetLastDocTimeStamp 1729555311 [00:09:44]current date 1729555791 [00:09:44]FM_GetShiftState [00:09:44]SAM_PROTO_GetShiftState [00:09:44]wFMCommunicate request_size=4 [00:09:44]MH_SAM_APDU [00:09:44]CAPDU: 80 13 01 00 [00:09:44]Write to MH i2c: E2 08 00 CF 6B 80 13 01 00 00 00 00 00 B7 [00:09:44]Write i2c OK [00:09:44]MH_I2C_Read... [00:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:44]Read from MH i2c: E2 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 0E 00 [00:09:44]MH_I2C_Read... [00:09:44]Read from MH i2c: E2 0E 00 CF 6B 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 33 [00:09:44]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:09:44]wFMCommunicate OK [00:09:44]SAM_PROTO_GetShiftState done [00:09:44]FM_GetShiftState done [00:09:44]opened in 1729471058 [00:09:44]opened+sec_in_day 1729557458 [00:09:44]quantity*price = 30038 [00:09:44]sum+1 = 30039 [00:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 262 22.10.2024 00:09 Смена: 115 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30765 ФПД: 39064338970377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30765&fm=39064338970377&tin=02508201610067®Number=0000000000186857&sum=30038 [00:09:45]StoreToDocumentArchive [00:09:45]shift 115 fd 30765 [00:09:45]save to /storage/0115/doc_00030765 [00:09:45]save last doc name /storage/0115/doc_00030765 to /storage/kkm_last_doc_name [00:09:45]save OK [00:09:45]Clear old archive folders... [00:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:45]tlvbuf is 01E11050 [00:09:45]SAM_PROTO_ClearQueue [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 09 00 00 [00:09:45]Write to MH i2c: E2 08 00 DC 6B 80 09 00 00 00 00 00 00 B9 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 DC 6B 00 90 00 BB [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_ClearQueue done [00:09:45]KKMCreateOFDPacket [00:09:45]OFDProtocolAddRootSTLVToBuf [00:09:45]FM_MakeSignedData [00:09:45]FM_MakeSignedData [00:09:45]SAM_PROTO_SignData [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 01 02 [00:09:45]Write to MH i2c: E2 08 00 DD 6B 80 0D 01 02 00 00 00 00 C1 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 DD 6B 00 90 00 BC [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=255 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F ED 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 78 00 00 35 04 06 00 23 [00:09:45]Write to MH i2c: E2 02 01 DE 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F ED 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 78 00 00 35 04 06 00 23 00 00 8D [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 DE 6B 00 90 00 BD [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=10 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 02 02 05 87 60 0C 37 09 [00:09:45]Write to MH i2c: E2 0D 00 DF 6B 80 0D 02 02 05 00 87 60 0C 37 09 00 00 01 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 03 00 DF 6B 00 90 00 BE [00:09:45]RAPDU: 90 00 [00:09:45]wFMCommunicate OK [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 0D 03 02 [00:09:45]Write to MH i2c: E2 08 00 E0 6B 80 0D 03 02 00 00 00 00 C6 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 0B 00 E0 6B 00 55 7F FE F2 CC BB 31 51 90 00 94 [00:09:45]RAPDU: 55 7F FE F2 CC BB 31 51 90 00 [00:09:45]wFMCommunicate OK [00:09:45]SAM_PROTO_SignData done [00:09:45]FM_MakeSignedData done [00:09:45]CreateOFDProtocolMessage [00:09:45]wFMCommunicate request_size=4 [00:09:45]MH_SAM_APDU [00:09:45]CAPDU: 80 11 00 00 [00:09:45]Write to MH i2c: E2 08 00 E1 6B 80 11 00 00 00 00 00 00 C6 [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:45]Read from MH i2c: E2 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: E2 17 00 E1 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 14 [00:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:09:45]wFMCommunicate OK [00:09:45]CreateOFDProtocolMessage done [00:09:45]OFDSenderStorePacket 30765 [00:09:45]StoreOFDPacket docnum=30765 [00:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 14 07 01 9F 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F ED 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 78 00 00 35 04 06 00 23 87 60 0C 37 09 55 7F FE F2 CC BB 31 51 [00:09:45]CheckFolder [00:09:45]dirname=/storage/ofd_packets [00:09:45]CheckFolder done [00:09:45]ProducePacketName [00:09:45]name=ofd_packets/00030765 [00:09:45]NVStorageSaveData ofd_packets/00030765 [00:09:45]File name is /storage/ofd_packets/00030765 [00:09:45]Write 301 bytes [00:09:45]NVStorageSaveData done [00:09:45]OFDSenderStorePacket done [00:09:45]KKMCreateOFDPacket done [00:09:45]NVStorageSaveData kkm_last_timestamp [00:09:45]File name is /storage/kkm_last_timestamp [00:09:45]Write 4 bytes [00:09:45]NVStorageSaveData done [00:09:45]ExternCall_PrintAddStr [00:09:45]wPrintStart [00:09:45]Write to MH i2c: 01 00 00 E2 6B 4D [00:09:45]Write i2c OK [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 [00:09:45]MH_I2C_Read... [00:09:45]Read from MH i2c: 01 07 00 E2 6B 00 00 00 00 00 FF 0F 62 [00:09:45]RasterBufferAndPrint [00:09:45]line Счет N : (1)343184 [00:09:45]line ИНН: 02508201610067 [00:09:45]line Контрольно-Кассовый Чек [00:09:45]line ПРОДАЖА [00:09:45]line ТРК (МРК, ГНК) : 43 [00:09:45]line Товар: 2710124130 [00:09:45]line Аи-92-К-2 [00:09:45]line 4.490 * 66.90 [00:09:45]line = 300.38 [00:09:45]line НДС 12% НСП 1% [00:09:45]line > о реализуемом товаре [00:09:45]line ИТОГО: 300.38 [00:09:45]line НСП 1% : 2.66 [00:09:45]line НДС 12% : 31.90 [00:09:45]line Наличными: 0.00 [00:09:45]line Безнал.: 300.38 [00:09:45]line Место: АЗС № 78 "Партнер Нефть" [00:09:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:09:45]line СНО: Общий режим [00:09:45]line Чек 262 22.10.2024 00:09 [00:09:45]line Смена: 115 ФФД: 1.0 [00:09:45]line ЗНМ: 0300000137 [00:09:45]line РНМ: 0000000000186857 [00:09:45]line Версия ККМ: v1.0 [00:09:45]line Платежная система: АКБ Кыргызстан [00:09:45]line ФМ: 0000000002094219 [00:09:45]line ФД: 30765 [00:09:45]line ФПД: 39064338970377 [00:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000951&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30765&fm=39064338970377&tin=02508201610067®Number=0000000000186857&sum=30038 [00:09:46]OFD Sender: Processing packet 30765 [packets to send 10, broken 9] [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00030765 [00:09:46]OFD Sender: To server: pG, [00:09:46]CommunicateWithHost lk.salyk.kg:30040 [00:09:46]ConnectInit lk.salyk.kg [00:09:46]written 0, free lines is 4095 [00:09:46]Connected sock=11 [00:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 88 14 07 01 9F 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 4F ED 16 67 0E 04 04 00 73 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2D 78 00 00 35 04 06 00 23 87 60 0C 37 09 55 7F FE F2 CC BB 31 51 [00:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 DA 52 47 00 D7 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 32 30 39 34 32 31 39 10 04 04 00 2D 78 00 00 F4 03 04 00 CE 97 16 67 B6 04 01 00 00 C2 C9 C8 D5 39 73 ED 9B [00:09:46]CommunicateWithHost err = 0 [00:09:46]CheckOFDResponse [00:09:46]1017 (14) - 77093643461234 [00:09:46]1041 (16) - 0000000002094219 [00:09:46]1040 (4) - 30765 [00:09:46]1012 (4) - 21.10.2024 18:05 [00:09:46]1206 (1) - 0 [00:09:46]OFD Sender: Remove packet 30765 [00:09:46]ProducePacketName [00:09:46]name=ofd_packets/00030765 [00:09:46]NVStorageDeleteData [00:09:46]Write to MH i2c: 01 00 00 0C 6C 78 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: 01 07 00 0C 6C 00 00 00 00 00 14 0D A0 [00:09:46]RasterBufferAndPrint [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]line [00:09:46]written 0, free lines is 3354 [00:09:46]MH_Cut [00:09:46]Write to MH i2c: D1 01 00 13 6C 01 51 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 [00:09:46]MH_I2C_Read... [00:09:46]Read from MH i2c: D1 01 00 13 6C 00 50 [00:09:46]Write to MH i2c: 01 00 00 14 6C 80 [00:09:46]Write i2c OK [00:09:46]MH_I2C_Read... [00:09:47]OFD Sender: No OFD packet to send [00:09:47]*** Cut start [00:09:47]*** Partial cut [00:09:47]*** CUTSNS_PIN = 1 [00:09:47]*** CUTSNS_PIN = 0 [00:09:47]*** Brake cut motor [00:09:47]Read from MH i2c: 01 [00:09:47]MH_I2C_Read... [00:09:47]*** Stop cut motor [00:09:47]*** Cut end [00:09:47]Read from MH i2c: 01 07 00 [00:09:47]MH_I2C_Read... [00:09:47]Read from MH i2c: 01 07 00 14 6C 00 00 00 00 00 FF 0F 95 [00:09:47]process_action close_receipt done [00:09:47]requested_data is exist [00:09:47]produce_requested_data [00:09:47]requested_item fm.sn is exist - process it [00:09:47]wFMCommunicate request_size=4 [00:09:47]MH_SAM_APDU [00:09:47]CAPDU: 80 11 00 00 [00:09:47]Write to MH i2c: E2 08 00 15 6C 80 11 00 00 00 00 00 00 FB [00:09:47]Write i2c OK [00:09:47]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 17 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 17 00 15 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 49 [00:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:09:48]wFMCommunicate OK [00:09:48]requested_item fd.num is exist - process it [00:09:48]SAM_PROTO_GetFieldsCounters [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 13 00 00 [00:09:48]Write to MH i2c: E2 08 00 16 6C 80 13 00 00 00 00 00 00 FE [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 62 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 62 00 16 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [00:09:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:48]wFMCommunicate OK [00:09:48]SAM_PROTO_GetFieldsCounters done [00:09:48]requested_item shift.num is exist - process it [00:09:48]requested_item shift.opened is exist - process it [00:09:48]req_shift_opened [00:09:48]FM_GetShiftState [00:09:48]SAM_PROTO_GetShiftState [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 13 01 00 [00:09:48]Write to MH i2c: E2 08 00 17 6C 80 13 01 00 00 00 00 00 00 [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 0E 00 17 6C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7C [00:09:48]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:09:48]wFMCommunicate OK [00:09:48]SAM_PROTO_GetShiftState done [00:09:48]FM_GetShiftState done [00:09:48]req_shift_opened done [00:09:48]requested_item shift.open_date is exist - process it [00:09:48]req_shift_open_date [00:09:48]req_shift_open_date done [00:09:48]produce_requested_data done [00:09:48]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30765,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:09:48]process_action_free close_receipt [00:09:48]json_value_free [00:09:48]json_value_free done [00:09:48]process_json_proto returns [00:09:48]Send response to host [00:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30765,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:09:48]free response buf [00:09:48]execute_script done [00:09:48]execute_script returns [00:09:48]free content buf [00:09:48]Sock 9.Close socket [00:09:48]Sock 9.Thread stoped [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18: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: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: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: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:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:55]accept exits with 7 [00:23:55]New connection [00:23:55]New thread 3067489636 created [00:23:55]Thread 3067346276 joined [00:23:55]Waiting for new connection... [00:23:55] Sock 7.Parse request [00:23:55]Sock 7.Check first char [00:23:55]Sock 7.First char is OK [00:23:55]request: POST /json_proto HTTP/1.0 [00:23:55]Method: POST [00:23:55]URL: /json_proto [00:23:55]Method is POST - this is cgi request [00:23:55]url: /json_proto [00:23:55]query_string will be loaded in cgi processing [00:23:55]execute_cgi json_proto POST (null) [00:23:55]execute_cgi path=json_proto method=POST [00:23:55]POST find Content-Length [00:23:55]Host: 172.17.51.3:8080 [00:23:55]Content-Length: 215 [00:23:55]Content-Type: application/json [00:23:55] [00:23:55]POST finish read [00:23:55]Found Content-Length = 215 [00:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:55]execute_script... [00:23:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:55]POST & json_proto [00:23:55]process_json_proto [00:23:55]json parsed OK: [00:23:55]protocol is kg_v1.0 [00:23:55]action value=get_value [00:23:55]process_action get_value [00:23:55]cmd_get_value [00:23:55]process_action get_value done [00:23:55]requested_data is exist [00:23:55]produce_requested_data [00:23:55]requested_item kkm.sn is exist - process it [00:23:55]requested_item kkm.ver is exist - process it [00:23:55]requested_item fm.sn is exist - process it [00:23:55]wFMCommunicate request_size=4 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 11 00 00 [00:23:55]Write to MH i2c: E2 08 00 18 6C 80 11 00 00 00 00 00 00 FE [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 17 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 17 00 18 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4C [00:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:23:55]wFMCommunicate OK [00:23:55]requested_item fd.num is exist - process it [00:23:55]SAM_PROTO_GetFieldsCounters [00:23:55]wFMCommunicate request_size=4 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 13 00 00 [00:23:55]Write to MH i2c: E2 08 00 19 6C 80 13 00 00 00 00 00 00 01 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 62 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 62 00 19 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [00:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2D 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:55]wFMCommunicate OK [00:23:55]SAM_PROTO_GetFieldsCounters done [00:23:55]requested_item shift.num is exist - process it [00:23:55]requested_item shift.opened is exist - process it [00:23:55]req_shift_opened [00:23:55]FM_GetShiftState [00:23:55]SAM_PROTO_GetShiftState [00:23:55]wFMCommunicate request_size=4 [00:23:55]MH_SAM_APDU [00:23:55]CAPDU: 80 13 01 00 [00:23:55]Write to MH i2c: E2 08 00 1A 6C 80 13 01 00 00 00 00 00 03 [00:23:55]Write i2c OK [00:23:55]MH_I2C_Read... [00:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:55]Read from MH i2c: E2 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 0E 00 [00:23:55]MH_I2C_Read... [00:23:55]Read from MH i2c: E2 0E 00 1A 6C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 7F [00:23:55]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:23:55]wFMCommunicate OK [00:23:55]SAM_PROTO_GetShiftState done [00:23:55]FM_GetShiftState done [00:23:55]req_shift_opened done [00:23:55]requested_item shift.open_date is exist - process it [00:23:55]req_shift_open_date [00:23:55]req_shift_open_date done [00:23:55]produce_requested_data done [00:23:55]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30765,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058} [00:23:55]process_action_free get_value [00:23:55]json_value_free [00:23:55]json_value_free done [00:23:55]process_json_proto returns [00:23:55]Send response to host [00:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30765,"shift.num":115,"shift.opened":1,"shift.open_date":1729471058}}} [00:23:55]free response buf [00:23:55]execute_script done [00:23:55]execute_script returns [00:23:55]free content buf [00:23:55]Sock 7.Close socket [00:23:55]Sock 7.Thread stoped [00:23:55]accept exits with 10 [00:23:55]New connection [00:23:55]New thread 3067346276 created [00:23:55]Thread 3067489636 joined [00:23:55]Waiting for new connection... [00:23:55] Sock 10.Parse request [00:23:55]Sock 10.Check first char [00:23:55]Sock 10.First char is OK [00:23:55]request: POST /json_proto HTTP/1.0 [00:23:55]Method: POST [00:23:55]URL: /json_proto [00:23:55]Method is POST - this is cgi request [00:23:55]url: /json_proto [00:23:55]query_string will be loaded in cgi processing [00:23:55]execute_cgi json_proto POST (null) [00:23:55]execute_cgi path=json_proto method=POST [00:23:55]POST find Content-Length [00:23:55]Host: 172.17.51.3:8080 [00:23:55]Content-Length: 331 [00:23:55]Content-Type: application/json [00:23:55] [00:23:55]POST finish read [00:23:55]Found Content-Length = 331 [00:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:55]execute_script... [00:23:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:55]POST & json_proto [00:23:55]process_json_proto [00:23:55]json parsed OK: [00:23:55]protocol is kg_v1.0 [00:23:55]action value=get_value [00:23:56]process_action get_value [00:23:56]cmd_get_value [00:23:56]process_action get_value done [00:23:56]requested_data is exist [00:23:56]produce_requested_data [00:23:56]requested_item fm.sale.total is exist - process it [00:23:56]SAM_PROTO_GetFMData [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 13 03 00 [00:23:56]Write to MH i2c: E2 08 00 1B 6C 80 13 03 00 00 00 00 00 06 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 1B 6C 00 BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 7F [00:23:56]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 17 00 00 [00:23:56]Write to MH i2c: E2 08 00 1C 6C 80 17 00 00 00 00 00 00 08 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 1C 6C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 D9 [00:23:56]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 17 00 00 [00:23:56]Write to MH i2c: E2 08 00 1D 6C 80 17 00 00 00 00 00 00 09 [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:56]Read from MH i2c: E2 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 [00:23:56]MH_I2C_Read... [00:23:56]Read from MH i2c: E2 FD 00 1D 6C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 AD [00:23:56]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:23:56]wFMCommunicate OK [00:23:56]wFMCommunicate request_size=4 [00:23:56]MH_SAM_APDU [00:23:56]CAPDU: 80 17 00 00 [00:23:56]Write to MH i2c: E2 08 00 1E 6C 80 17 00 00 00 00 00 00 0A [00:23:56]Write i2c OK [00:23:56]MH_I2C_Read... [00:23:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:57]Read from MH i2c: E2 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 FD 00 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 FD 00 1E 6C 00 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:23:57]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:23:57]wFMCommunicate OK [00:23:57]wFMCommunicate request_size=4 [00:23:57]MH_SAM_APDU [00:23:57]CAPDU: 80 17 00 00 [00:23:57]Write to MH i2c: E2 08 00 1F 6C 80 17 00 00 00 00 00 00 0B [00:23:57]Write i2c OK [00:23:57]MH_I2C_Read... [00:23:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:23:57]Read from MH i2c: E2 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 DC 00 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 DC 00 1F 6C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EF [00:23:57]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:57]wFMCommunicate OK [00:23:57]SAM_PROTO_GetFMData done [00:23:57]requested_item fm.sale_refund.total is exist - process it [00:23:57]requested_item fm.buy.total is exist - process it [00:23:57]requested_item shift.sale.total is exist - process it [00:23:57]SAM_PROTO_GetShiftData [00:23:57]wFMCommunicate request_size=4 [00:23:57]MH_SAM_APDU [00:23:57]CAPDU: 80 13 02 00 [00:23:57]Write to MH i2c: E2 08 00 20 6C 80 13 02 00 00 00 00 00 0A [00:23:57]Write i2c OK [00:23:57]MH_I2C_Read... [00:23:57]OFD Sender: No OFD packet to send [00:23:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:57]Read from MH i2c: E2 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 FD 00 [00:23:57]MH_I2C_Read... [00:23:57]Read from MH i2c: E2 FD 00 20 6C 00 B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F6 [00:23:57]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:23:58]wFMCommunicate OK [00:23:58]wFMCommunicate request_size=4 [00:23:58]MH_SAM_APDU [00:23:58]CAPDU: 80 17 00 00 [00:23:58]Write to MH i2c: E2 08 00 21 6C 80 17 00 00 00 00 00 00 0D [00:23:58]Write i2c OK [00:23:58]MH_I2C_Read... [00:23:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:58]Read from MH i2c: E2 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 21 6C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 27 [00:23:58]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [00:23:58]wFMCommunicate OK [00:23:58]wFMCommunicate request_size=4 [00:23:58]MH_SAM_APDU [00:23:58]CAPDU: 80 17 00 00 [00:23:58]Write to MH i2c: E2 08 00 22 6C 80 17 00 00 00 00 00 00 0E [00:23:58]Write i2c OK [00:23:58]MH_I2C_Read... [00:23:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:58]Read from MH i2c: E2 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 22 6C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 CB [00:23:58]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:23:58]wFMCommunicate OK [00:23:58]wFMCommunicate request_size=4 [00:23:58]MH_SAM_APDU [00:23:58]CAPDU: 80 17 00 00 [00:23:58]Write to MH i2c: E2 08 00 23 6C 80 17 00 00 00 00 00 00 0F [00:23:58]Write i2c OK [00:23:58]MH_I2C_Read... [00:23:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:58]Read from MH i2c: E2 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 [00:23:58]MH_I2C_Read... [00:23:58]Read from MH i2c: E2 FD 00 23 6C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 82 [00:23:58]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:23:58]wFMCommunicate OK [00:23:58]wFMCommunicate request_size=4 [00:23:58]MH_SAM_APDU [00:23:58]CAPDU: 80 17 00 00 [00:23:58]Write to MH i2c: E2 08 00 24 6C 80 17 00 00 00 00 00 00 10 [00:23:58]Write i2c OK [00:23:58]MH_I2C_Read... [00:23:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:23:59]Read from MH i2c: E2 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 CD 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 CD 00 24 6C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F4 [00:23:59]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:59]wFMCommunicate OK [00:23:59]SAM_PROTO_GetShiftData done [00:23:59]requested_item shift.sale.total_cash is exist - process it [00:23:59]requested_item shift.sale_refund.total is exist - process it [00:23:59]requested_item shift.sale_refund.total_cash is exist - process it [00:23:59]requested_item shift.buy.total is exist - process it [00:23:59]requested_item shift.buy.total_cash is exist - process it [00:23:59]produce_requested_data done [00:23:59]produce_requested_data return {"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.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:23:59]process_action_free get_value [00:23:59]json_value_free [00:23:59]json_value_free done [00:23:59]process_json_proto returns [00:23:59]Send response to host [00:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.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:23:59]free response buf [00:23:59]execute_script done [00:23:59]execute_script returns [00:23:59]free content buf [00:23:59]Sock 10.Close socket [00:23:59]Sock 10.Thread stoped [00:23:59]accept exits with 7 [00:23:59]New connection [00:23:59]New thread 3067489636 created [00:23:59]Thread 3067346276 joined [00:23:59]Waiting for new connection... [00:23:59] Sock 7.Parse request [00:23:59]Sock 7.Check first char [00:23:59]Sock 7.First char is OK [00:23:59]request: POST /json_proto HTTP/1.0 [00:23:59]Method: POST [00:23:59]URL: /json_proto [00:23:59]Method is POST - this is cgi request [00:23:59]url: /json_proto [00:23:59]query_string will be loaded in cgi processing [00:23:59]execute_cgi json_proto POST (null) [00:23:59]execute_cgi path=json_proto method=POST [00:23:59]POST find Content-Length [00:23:59]Host: 172.17.51.3:8080 [00:23:59]Content-Length: 331 [00:23:59]Content-Type: application/json [00:23:59] [00:23:59]POST finish read [00:23:59]Found Content-Length = 331 [00:23:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:59]execute_script... [00:23:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:59]POST & json_proto [00:23:59]process_json_proto [00:23:59]json parsed OK: [00:23:59]protocol is kg_v1.0 [00:23:59]action value=get_value [00:23:59]process_action get_value [00:23:59]cmd_get_value [00:23:59]process_action get_value done [00:23:59]requested_data is exist [00:23:59]produce_requested_data [00:23:59]requested_item fm.sale.total is exist - process it [00:23:59]SAM_PROTO_GetFMData [00:23:59]wFMCommunicate request_size=4 [00:23:59]MH_SAM_APDU [00:23:59]CAPDU: 80 13 03 00 [00:23:59]Write to MH i2c: E2 08 00 25 6C 80 13 03 00 00 00 00 00 10 [00:23:59]Write i2c OK [00:23:59]MH_I2C_Read... [00:23:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:59]Read from MH i2c: E2 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 FD 00 [00:23:59]MH_I2C_Read... [00:23:59]Read from MH i2c: E2 FD 00 25 6C 00 BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 89 [00:23:59]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:24:00]wFMCommunicate OK [00:24:00]wFMCommunicate request_size=4 [00:24:00]MH_SAM_APDU [00:24:00]CAPDU: 80 17 00 00 [00:24:00]Write to MH i2c: E2 08 00 26 6C 80 17 00 00 00 00 00 00 12 [00:24:00]Write i2c OK [00:24:00]MH_I2C_Read... [00:24:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:00]Read from MH i2c: E2 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 FD 00 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 FD 00 26 6C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 E3 [00:24:00]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:24:00]wFMCommunicate OK [00:24:00]wFMCommunicate request_size=4 [00:24:00]MH_SAM_APDU [00:24:00]CAPDU: 80 17 00 00 [00:24:00]Write to MH i2c: E2 08 00 27 6C 80 17 00 00 00 00 00 00 13 [00:24:00]Write i2c OK [00:24:00]MH_I2C_Read... [00:24:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:00]Read from MH i2c: E2 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 FD 00 [00:24:00]MH_I2C_Read... [00:24:00]Read from MH i2c: E2 FD 00 27 6C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B7 [00:24:00]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:00]wFMCommunicate OK [00:24:00]wFMCommunicate request_size=4 [00:24:00]MH_SAM_APDU [00:24:00]CAPDU: 80 17 00 00 [00:24:00]Write to MH i2c: E2 08 00 28 6C 80 17 00 00 00 00 00 00 14 [00:24:00]Write i2c OK [00:24:00]MH_I2C_Read... [00:24:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:01]Read from MH i2c: E2 [00:24:01]MH_I2C_Read... [00:24:01]Read from MH i2c: E2 FD 00 [00:24:01]MH_I2C_Read... [00:24:01]Read from MH i2c: E2 FD 00 28 6C 00 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:24:01]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:01]wFMCommunicate OK [00:24:01]wFMCommunicate request_size=4 [00:24:01]MH_SAM_APDU [00:24:01]CAPDU: 80 17 00 00 [00:24:01]Write to MH i2c: E2 08 00 29 6C 80 17 00 00 00 00 00 00 15 [00:24:01]Write i2c OK [00:24:01]MH_I2C_Read... [00:24:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:24:01]Read from MH i2c: E2 [00:24:01]MH_I2C_Read... [00:24:01]Read from MH i2c: E2 DC 00 [00:24:01]MH_I2C_Read... [00:24:01]Read from MH i2c: E2 DC 00 29 6C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [00:24:01]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:24:01]wFMCommunicate OK [00:24:01]SAM_PROTO_GetFMData done [00:24:01]requested_item fm.sale_refund.total is exist - process it [00:24:01]requested_item fm.buy.total is exist - process it [00:24:01]requested_item shift.sale.total is exist - process it [00:24:01]SAM_PROTO_GetShiftData [00:24:01]wFMCommunicate request_size=4 [00:24:01]MH_SAM_APDU [00:24:01]CAPDU: 80 13 02 00 [00:24:01]Write to MH i2c: E2 08 00 2A 6C 80 13 02 00 00 00 00 00 14 [00:24:01]Write i2c OK [00:24:01]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 2A 6C 00 B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 00 [00:24:02]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:02]wFMCommunicate OK [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 17 00 00 [00:24:02]Write to MH i2c: E2 08 00 2B 6C 80 17 00 00 00 00 00 00 17 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 2B 6C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 31 [00:24:02]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [00:24:02]wFMCommunicate OK [00:24:02]wFMCommunicate request_size=4 [00:24:02]MH_SAM_APDU [00:24:02]CAPDU: 80 17 00 00 [00:24:02]Write to MH i2c: E2 08 00 2C 6C 80 17 00 00 00 00 00 00 18 [00:24:02]Write i2c OK [00:24:02]MH_I2C_Read... [00:24:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:02]Read from MH i2c: E2 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 [00:24:02]MH_I2C_Read... [00:24:02]Read from MH i2c: E2 FD 00 2C 6C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 D5 [00:24:03]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:24:03]wFMCommunicate OK [00:24:03]wFMCommunicate request_size=4 [00:24:03]MH_SAM_APDU [00:24:03]CAPDU: 80 17 00 00 [00:24:03]Write to MH i2c: E2 08 00 2D 6C 80 17 00 00 00 00 00 00 19 [00:24:03]OFD Sender: No OFD packet to send [00:24:03]Write i2c OK [00:24:03]MH_I2C_Read... [00:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:03]Read from MH i2c: E2 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: E2 FD 00 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: E2 FD 00 2D 6C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 8C [00:24:03]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:24:03]wFMCommunicate OK [00:24:03]wFMCommunicate request_size=4 [00:24:03]MH_SAM_APDU [00:24:03]CAPDU: 80 17 00 00 [00:24:03]Write to MH i2c: E2 08 00 2E 6C 80 17 00 00 00 00 00 00 1A [00:24:03]Write i2c OK [00:24:03]MH_I2C_Read... [00:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:24:03]Read from MH i2c: E2 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: E2 CD 00 [00:24:03]MH_I2C_Read... [00:24:03]Read from MH i2c: E2 CD 00 2E 6C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FE [00:24:04]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:24:04]wFMCommunicate OK [00:24:04]SAM_PROTO_GetShiftData done [00:24:04]requested_item shift.sale.total_cash is exist - process it [00:24:04]requested_item shift.sale_refund.total is exist - process it [00:24:04]requested_item shift.sale_refund.total_cash is exist - process it [00:24:04]requested_item shift.buy.total is exist - process it [00:24:04]requested_item shift.buy.total_cash is exist - process it [00:24:04]produce_requested_data done [00:24:04]produce_requested_data return {"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.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:24:04]process_action_free get_value [00:24:04]json_value_free [00:24:04]json_value_free done [00:24:04]process_json_proto returns [00:24:04]Send response to host [00:24:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.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:24:04]free response buf [00:24:04]execute_script done [00:24:04]execute_script returns [00:24:04]free content buf [00:24:04]Sock 7.Close socket [00:24:04]Sock 7.Thread stoped [00:24:04]accept exits with 9 [00:24:04]New connection [00:24:04]New thread 3067346276 created [00:24:04]Thread 3067489636 joined [00:24:04]Waiting for new connection... [00:24:04] Sock 9.Parse request [00:24:04]Sock 9.Check first char [00:24:04]Sock 9.First char is OK [00:24:04]request: POST /json_proto HTTP/1.0 [00:24:04]Method: POST [00:24:04]URL: /json_proto [00:24:04]Method is POST - this is cgi request [00:24:04]url: /json_proto [00:24:04]query_string will be loaded in cgi processing [00:24:04]execute_cgi json_proto POST (null) [00:24:04]execute_cgi path=json_proto method=POST [00:24:04]POST find Content-Length [00:24:04]Host: 172.17.51.3:8080 [00:24:04]Content-Length: 297 [00:24:04]Content-Type: application/json [00:24:04] [00:24:04]POST finish read [00:24:04]Found Content-Length = 297 [00:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u044B\u043D\u0447\u0442\u044B\u043A\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:04]execute_script... [00:24:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u044B\u043D\u0447\u0442\u044B\u043A\u0431\u0435\u043A \u0443\u0443\u043B\u0443 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:04]POST & json_proto [00:24:04]process_json_proto [00:24:04]json parsed OK: [00:24:04]protocol is kg_v1.0 [00:24:04]action value=close_shift [00:24:04]process_action close_shift [00:24:04]cmd_close_shift [00:24:04]MH_GetDate [00:24:04]Write to MH i2c: F0 00 00 2F 6C 8A [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 09 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 09 00 2F 6C 00 AB F0 16 67 04 C1 95 66 6B [00:24:04]GetLastDocTimeStamp 1729555791 [00:24:04]current date 1729556651 [00:24:04]FM_GetShiftState [00:24:04]SAM_PROTO_GetShiftState [00:24:04]wFMCommunicate request_size=4 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 13 01 00 [00:24:04]Write to MH i2c: E2 08 00 30 6C 80 13 01 00 00 00 00 00 19 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 0E 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 0E 00 30 6C 00 09 00 01 52 A2 15 67 00 00 00 00 90 00 95 [00:24:04]RAPDU: 09 00 01 52 A2 15 67 00 00 00 00 90 00 [00:24:04]wFMCommunicate OK [00:24:04]SAM_PROTO_GetShiftState done [00:24:04]FM_GetShiftState done [00:24:04]KKMCreateCloseShiftDocument [00:24:04]Load OK [00:24:04]Malloc new data [00:24:04]MH_GetDate [00:24:04]Write to MH i2c: F0 00 00 31 6C 8C [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 09 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: F0 09 00 31 6C 00 AB F0 16 67 04 C1 95 66 6D [00:24:04]Malloc new data [00:24:04]Malloc new data [00:24:04]Malloc new data [00:24:04]Malloc new data [00:24:04]KKMCreateCloseShiftDocument OK [00:24:04]KKMSetCloseShiftData OK [00:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=84 [00:24:04]tlvbuf is 02078620 [00:24:04]KKMLoadAndSignCloseShiftData [00:24:04]SAM_PROTO_ProcessDocument [00:24:04]wFMCommunicate request_size=9 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 15 01 00 04 05 00 54 00 [00:24:04]Write to MH i2c: E2 0C 00 32 6C 80 15 01 00 04 00 05 00 54 00 00 00 7E [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 32 6C 00 90 00 12 [00:24:04]RAPDU: 90 00 [00:24:04]wFMCommunicate OK [00:24:04]wFMCommunicate request_size=23 [00:24:04]MH_SAM_APDU [00:24:04]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:24:04]Write to MH i2c: E2 1A 00 33 6C 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 14 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 33 6C 00 90 00 13 [00:24:04]RAPDU: 90 00 [00:24:04]wFMCommunicate OK [00:24:04]wFMCommunicate request_size=43 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 15 02 00 26 FD 03 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 [00:24:04]Write to MH i2c: E2 2E 00 34 6C 80 15 02 00 26 00 FD 03 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 00 00 89 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 34 6C 00 90 00 14 [00:24:04]RAPDU: 90 00 [00:24:04]wFMCommunicate OK [00:24:04]wFMCommunicate request_size=13 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 15 02 00 08 F4 03 04 00 AB F0 16 67 [00:24:04]Write to MH i2c: E2 10 00 35 6C 80 15 02 00 08 00 F4 03 04 00 AB F0 16 67 00 00 44 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 35 6C 00 90 00 15 [00:24:04]RAPDU: 90 00 [00:24:04]wFMCommunicate OK [00:24:04]wFMCommunicate request_size=25 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 [00:24:04]Write to MH i2c: E2 1C 00 36 6C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 00 00 8E [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:24:04]Read from MH i2c: E2 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 [00:24:04]MH_I2C_Read... [00:24:04]Read from MH i2c: E2 03 00 36 6C 00 90 00 16 [00:24:04]RAPDU: 90 00 [00:24:04]wFMCommunicate OK [00:24:04]wFMCommunicate request_size=4 [00:24:04]MH_SAM_APDU [00:24:04]CAPDU: 80 15 03 00 [00:24:04]Write to MH i2c: E2 08 00 37 6C 80 15 03 00 00 00 00 00 24 [00:24:04]Write i2c OK [00:24:04]MH_I2C_Read... [00:24:05]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:24:05]Read from MH i2c: E2 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 FD 00 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 FD 00 37 6C 00 F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 CB [00:24:05]RAPDU: F3 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:24:05]wFMCommunicate OK [00:24:05]SAM_PROTO_ProcessDocument answer len = 1267 [00:24:05]SAM_PROTO_ProcessDocument remain to read = 1019 [00:24:05]wFMCommunicate request_size=4 [00:24:05]MH_SAM_APDU [00:24:05]CAPDU: 80 17 00 00 [00:24:05]Write to MH i2c: E2 08 00 38 6C 80 17 00 00 00 00 00 00 24 [00:24:05]Write i2c OK [00:24:05]MH_I2C_Read... [00:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:05]Read from MH i2c: E2 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 FD 00 [00:24:05]MH_I2C_Read... [00:24:05]Read from MH i2c: E2 FD 00 38 6C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 74 [00:24:05]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 90 00 [00:24:06]wFMCommunicate OK [00:24:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:24:06]SAM_PROTO_ProcessDocument remain to read = 769 [00:24:06]wFMCommunicate request_size=4 [00:24:06]MH_SAM_APDU [00:24:06]CAPDU: 80 17 00 00 [00:24:06]Write to MH i2c: E2 08 00 39 6C 80 17 00 00 00 00 00 00 25 [00:24:06]Write i2c OK [00:24:06]MH_I2C_Read... [00:24:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:06]Read from MH i2c: E2 [00:24:06]MH_I2C_Read... [00:24:06]Read from MH i2c: E2 FD 00 [00:24:06]MH_I2C_Read... [00:24:06]Read from MH i2c: E2 FD 00 39 6C 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 87 [00:24:06]RAPDU: F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:24:06]wFMCommunicate OK [00:24:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:24:06]SAM_PROTO_ProcessDocument remain to read = 519 [00:24:06]wFMCommunicate request_size=4 [00:24:06]MH_SAM_APDU [00:24:06]CAPDU: 80 17 00 00 [00:24:06]Write to MH i2c: E2 08 00 3A 6C 80 17 00 00 00 00 00 00 26 [00:24:06]Write i2c OK [00:24:06]MH_I2C_Read... [00:24:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:06]Read from MH i2c: E2 [00:24:06]MH_I2C_Read... [00:24:06]Read from MH i2c: E2 FD 00 [00:24:06]MH_I2C_Read... [00:24:06]Read from MH i2c: E2 FD 00 3A 6C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 90 00 B7 [00:24:06]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 90 00 [00:24:07]wFMCommunicate OK [00:24:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:24:07]SAM_PROTO_ProcessDocument remain to read = 269 [00:24:07]wFMCommunicate request_size=4 [00:24:07]MH_SAM_APDU [00:24:07]CAPDU: 80 17 00 00 [00:24:07]Write to MH i2c: E2 08 00 3B 6C 80 17 00 00 00 00 00 00 27 [00:24:07]Write i2c OK [00:24:07]MH_I2C_Read... [00:24:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:07]Read from MH i2c: E2 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 FD 00 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 FD 00 3B 6C 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 E8 [00:24:07]RAPDU: 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 90 00 [00:24:07]wFMCommunicate OK [00:24:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:24:07]SAM_PROTO_ProcessDocument remain to read = 19 [00:24:07]wFMCommunicate request_size=4 [00:24:07]MH_SAM_APDU [00:24:07]CAPDU: 80 17 00 00 [00:24:07]Write to MH i2c: E2 08 00 3C 6C 80 17 00 00 00 00 00 00 28 [00:24:07]Write i2c OK [00:24:07]MH_I2C_Read... [00:24:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 19! [00:24:07]Read from MH i2c: E2 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 16 00 [00:24:07]MH_I2C_Read... [00:24:07]Read from MH i2c: E2 16 00 3C 6C 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 D6 F1 3A 48 0D 6F 90 00 2D [00:24:07]RAPDU: F6 03 01 00 06 F7 03 00 00 35 04 06 00 D6 F1 3A 48 0D 6F 90 00 [00:24:07]wFMCommunicate OK [00:24:07]SAM_PROTO_ProcessDocument received (without SW) 19 bytes [00:24:07]SAM_PROTO_ProcessDocument done [00:24:07]1209 (1) - 1.0 - номер версии ФФД [00:24:07]1041 (16) - 0000000002094219 - номер ФМ [00:24:07]1040 (4) - 30766 - номер ФД [00:24:07]1038 (4) - 115 - номер смены [00:24:07]1118 (4) - 262 - количество кассовых чеков за смену [00:24:07]1111 (4) - 264 - общее количество ФД за смену [00:24:07]1194 (1196) - счетчики итогов смены [00:24:07] 1134 (4) - 262 - количество чеков со всеми признаками расчетов [00:24:07] 1129 (157) - счетчики операций «приход» [00:24:07] 1135 (4) - 262 - количество чеков по признаку расчетов [00:24:07] 1201 (4) - 203537.54 - общая итоговая сумма в чеках [00:24:07] 1136 (3) - 166239.00 - итоговая сумма в чеках наличными [00:24:07] 1138 (3) - 37298.54 - итоговая сумма в чеках безналичными [00:24:07] 1024 (123) - суммы налогов [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 0% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1006 (12) - суммы НДС [00:24:07] 1010 (1) - 12% - код ставки НДС [00:24:07] 1011 (3) - 21622.00 - сумма НДС по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (12) - суммы НСП [00:24:07] 1014 (1) - 1% - код ставки НСП [00:24:07] 1015 (3) - 1801.76 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 2% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 3% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 5% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1130 (141) - счетчики операций «возврат прихода» [00:24:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:07] 1024 (117) - суммы налогов [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 0% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 12% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 2% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 3% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 5% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1131 (141) - счетчики операций «расход» [00:24:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:07] 1024 (117) - суммы налогов [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 0% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 12% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 2% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 3% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 5% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1132 (141) - счетчики операций «возврат расхода» [00:24:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:24:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:24:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:24:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:24:07] 1024 (117) - суммы налогов [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 0% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1006 (9) - суммы НДС [00:24:07] 1010 (1) - 12% - код ставки НДС [00:24:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 2% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 3% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 5% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 0,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1007 (9) - суммы НСП [00:24:07] 1014 (1) - 1,50% - код ставки НСП [00:24:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:24:07] 1133 (588) - - счетчики коррекции - не используются [00:24:07]1077 (6) - 236331553262959 - ФПД [00:24:07]SetTLVBufToDocument [00:24:07]Processing tag 1209 (04B9) [00:24:07]Malloc new data [00:24:07]Processing tag 1041 (0411) [00:24:07]Processing tag 1040 (0410) [00:24:07]Malloc new data [00:24:07]Processing tag 1038 (040E) [00:24:07]Malloc new data [00:24:07]Processing tag 1118 (045E) [00:24:07]Malloc new data [00:24:07]Processing tag 1111 (0457) [00:24:07]Malloc new data [00:24:07]Processing tag 1194 (04AA) [00:24:07]Load OK [00:24:07]SetTLVBufToDocument [00:24:07]Processing tag 1134 (046E) [00:24:07]Malloc new data [00:24:07]Processing tag 1129 (0469) [00:24:07]Load OK [00:24:07]SetTLVBufToDocument [00:24:07]Processing tag 1135 (046F) [00:24:07]Malloc new data [00:24:07]Processing tag 1201 (04B1) [00:24:07]Malloc new data [00:24:07]Processing tag 1136 (0470) [00:24:07]Malloc new data [00:24:07]Processing tag 1138 (0472) [00:24:08]Malloc new data [00:24:08]Processing tag 1024 (0400) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1130 (046A) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1135 (046F) [00:24:08]Malloc new data [00:24:08]Processing tag 1201 (04B1) [00:24:08]Malloc new data [00:24:08]Processing tag 1136 (0470) [00:24:08]Malloc new data [00:24:08]Processing tag 1138 (0472) [00:24:08]Malloc new data [00:24:08]Processing tag 1024 (0400) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1131 (046B) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1135 (046F) [00:24:08]Malloc new data [00:24:08]Processing tag 1201 (04B1) [00:24:08]Malloc new data [00:24:08]Processing tag 1136 (0470) [00:24:08]Malloc new data [00:24:08]Processing tag 1138 (0472) [00:24:08]Malloc new data [00:24:08]Processing tag 1024 (0400) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1132 (046C) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1135 (046F) [00:24:08]Malloc new data [00:24:08]Processing tag 1201 (04B1) [00:24:08]Malloc new data [00:24:08]Processing tag 1136 (0470) [00:24:08]Malloc new data [00:24:08]Processing tag 1138 (0472) [00:24:08]Malloc new data [00:24:08]Processing tag 1024 (0400) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1006 (03EE) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1010 (03F2) [00:24:08]Malloc new data [00:24:08]Processing tag 1011 (03F3) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1007 (03EF) [00:24:08]Load OK [00:24:08]SetTLVBufToDocument [00:24:08]Processing tag 1014 (03F6) [00:24:08]Malloc new data [00:24:08]Processing tag 1015 (03F7) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1133 (046D) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Processing tag 1077 (0435) [00:24:08]Malloc new data [00:24:08]SetTLVBufToDocument err=0 [00:24:08]Malloc new data [00:24:08]SAM_PROTO_GetFMData [00:24:08]wFMCommunicate request_size=4 [00:24:08]MH_SAM_APDU [00:24:08]CAPDU: 80 13 03 00 [00:24:08]Write to MH i2c: E2 08 00 3D 6C 80 13 03 00 00 00 00 00 28 [00:24:08]OFD Sender: No OFD packet to send [00:24:08]Write i2c OK [00:24:08]MH_I2C_Read... [00:24:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:24:09]Read from MH i2c: E2 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: E2 FD 00 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: E2 FD 00 3D 6C 00 BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 A1 [00:24:09]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:24:09]wFMCommunicate OK [00:24:09]wFMCommunicate request_size=4 [00:24:09]MH_SAM_APDU [00:24:09]CAPDU: 80 17 00 00 [00:24:09]Write to MH i2c: E2 08 00 3E 6C 80 17 00 00 00 00 00 00 2A [00:24:09]Write i2c OK [00:24:09]MH_I2C_Read... [00:24:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:09]Read from MH i2c: E2 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: E2 FD 00 [00:24:09]MH_I2C_Read... [00:24:09]Read from MH i2c: E2 FD 00 3E 6C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 FB [00:24:09]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:24:09]wFMCommunicate OK [00:24:09]wFMCommunicate request_size=4 [00:24:09]MH_SAM_APDU [00:24:09]CAPDU: 80 17 00 00 [00:24:09]Write to MH i2c: E2 08 00 3F 6C 80 17 00 00 00 00 00 00 2B [00:24:09]Write i2c OK [00:24:09]MH_I2C_Read... [00:24:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:10]Read from MH i2c: E2 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 FD 00 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 FD 00 3F 6C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 CF [00:24:10]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:24:10]wFMCommunicate OK [00:24:10]wFMCommunicate request_size=4 [00:24:10]MH_SAM_APDU [00:24:10]CAPDU: 80 17 00 00 [00:24:10]Write to MH i2c: E2 08 00 40 6C 80 17 00 00 00 00 00 00 2C [00:24:10]Write i2c OK [00:24:10]MH_I2C_Read... [00:24:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:24:10]Read from MH i2c: E2 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 FD 00 [00:24:10]MH_I2C_Read... [00:24:10]Read from MH i2c: E2 FD 00 40 6C 00 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:24:10]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:24:11]wFMCommunicate OK [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 17 00 00 [00:24:11]Write to MH i2c: E2 08 00 41 6C 80 17 00 00 00 00 00 00 2D [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 DC 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 DC 00 41 6C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [00:24:11]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:24:11]wFMCommunicate OK [00:24:11]SAM_PROTO_GetFMData done [00:24:11]Malloc new data [00:24:11]Malloc new data [00:24:11]Malloc new data [00:24:11]Malloc new data [00:24:11]KKMLoadAndSignCloseShiftData err=0 [00:24:11]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Тынчтыкбек уулу К. 22.10.2024 00:24 Смена: 115 РНМ: 0000000000186857 ЗНМ: 0300000137 СНО: Общий режим Чеков за смену: 262 ФД за смену: 264 Всего чеков: 262 ИТОГИ ПРИХОД Чеков: 262 Общий итог: 203537.54 Итого наличными: 166239.00 Итого безнал.: 37298.54 НДС 0% : 0.00 НДС 12% : 21622.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1801.76 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 166239.00 НС Приход: 27688552.11 НС Возвр.Прихода: 54066.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 30766 ФМ: 0000000002094219 ФПД: 236331553262959 [00:24:11]StoreToDocumentArchive [00:24:11]shift 115 fd 30766 [00:24:11]save to /storage/0115/doc_00030766 [00:24:11]save last doc name /storage/0115/doc_00030766 to /storage/kkm_last_doc_name [00:24:11]save OK [00:24:11]Clear old archive folders... [00:24:11]NVStorageSaveData kkm_registers [00:24:11]File name is /storage/kkm_registers [00:24:11]Write 24 bytes [00:24:11]NVStorageSaveData done [00:24:11]NVStorageSaveData kkm_registers [00:24:11]File name is /storage/kkm_registers [00:24:11]Write 24 bytes [00:24:11]NVStorageSaveData done [00:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [00:24:11]tlvbuf is 01DC9350 [00:24:11]SAM_PROTO_ClearQueue [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 09 00 00 [00:24:11]Write to MH i2c: E2 08 00 42 6C 80 09 00 00 00 00 00 00 20 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 42 6C 00 90 00 22 [00:24:11]RAPDU: 90 00 [00:24:11]wFMCommunicate OK [00:24:11]SAM_PROTO_ClearQueue done [00:24:11]KKMCreateOFDPacket [00:24:11]OFDProtocolAddRootSTLVToBuf [00:24:11]FM_MakeSignedData [00:24:11]FM_MakeSignedData [00:24:11]SAM_PROTO_SignData [00:24:11]wFMCommunicate request_size=4 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 0D 01 02 [00:24:11]Write to MH i2c: E2 08 00 43 6C 80 0D 01 02 00 00 00 00 28 [00:24:11]Write i2c OK [00:24:11]MH_I2C_Read... [00:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:11]Read from MH i2c: E2 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 [00:24:11]MH_I2C_Read... [00:24:11]Read from MH i2c: E2 03 00 43 6C 00 90 00 23 [00:24:11]RAPDU: 90 00 [00:24:11]wFMCommunicate OK [00:24:11]wFMCommunicate request_size=255 [00:24:11]MH_SAM_APDU [00:24:11]CAPDU: 80 0D 02 02 FA 05 00 72 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 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 F4 03 04 00 AB F0 16 67 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 D7 04 6E 04 04 00 06 01 00 00 69 04 A4 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 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 [00:24:11]Write to MH i2c: E2 02 01 44 6C 80 0D 02 02 FA 00 05 00 72 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 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 F4 03 04 00 AB F0 16 67 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 D7 04 6E 04 04 00 06 01 00 00 69 04 A4 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 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 00 00 E2 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 44 6C 00 90 00 24 [00:24:12]RAPDU: 90 00 [00:24:12]wFMCommunicate OK [00:24:12]wFMCommunicate request_size=255 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE [00:24:12]Write to MH i2c: E2 02 01 45 6C 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 00 00 27 [00:24:12]Write i2c OK [00:24:12]MH_I2C_Read... [00:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:12]Read from MH i2c: E2 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 [00:24:12]MH_I2C_Read... [00:24:12]Read from MH i2c: E2 03 00 45 6C 00 90 00 25 [00:24:12]RAPDU: 90 00 [00:24:12]wFMCommunicate OK [00:24:12]wFMCommunicate request_size=255 [00:24:12]MH_SAM_APDU [00:24:12]CAPDU: 80 0D 02 02 FA 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 [00:24:13]Write to MH i2c: E2 02 01 46 6C 80 0D 02 02 FA 00 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 00 00 F3 [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:13]Read from MH i2c: E2 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 03 00 [00:24:13]MH_I2C_Read... [00:24:13]Read from MH i2c: E2 03 00 46 6C 00 90 00 26 [00:24:13]RAPDU: 90 00 [00:24:13]wFMCommunicate OK [00:24:13]wFMCommunicate request_size=255 [00:24:13]MH_SAM_APDU [00:24:13]CAPDU: 80 0D 02 02 FA 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 [00:24:13]Write to MH i2c: E2 02 01 47 6C 80 0D 02 02 FA 00 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 OFD Sender: No OFD packet to send [00:24:13]03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 00 00 FC [00:24:13]Write i2c OK [00:24:13]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 47 6C 00 90 00 27 [00:24:14]RAPDU: 90 00 [00:24:14]wFMCommunicate OK [00:24:14]wFMCommunicate request_size=255 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 [00:24:14]Write to MH i2c: E2 02 01 48 6C 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 C3 [00:24:14]Write i2c OK [00:24:14]MH_I2C_Read... [00:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:14]Read from MH i2c: E2 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 [00:24:14]MH_I2C_Read... [00:24:14]Read from MH i2c: E2 03 00 48 6C 00 90 00 28 [00:24:14]RAPDU: 90 00 [00:24:14]wFMCommunicate OK [00:24:14]wFMCommunicate request_size=153 [00:24:14]MH_SAM_APDU [00:24:14]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2E 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 D6 F1 3A 48 0D 6F [00:24:14]Write to MH i2c: E2 9C 00 49 6C 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 2E 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 D6 F1 3A 48 0D 6F 00 00 D4 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:15]Read from MH i2c: E2 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 03 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 03 00 49 6C 00 90 00 29 [00:24:15]RAPDU: 90 00 [00:24:15]wFMCommunicate OK [00:24:15]wFMCommunicate request_size=4 [00:24:15]MH_SAM_APDU [00:24:15]CAPDU: 80 0D 03 02 [00:24:15]Write to MH i2c: E2 08 00 4A 6C 80 0D 03 02 00 00 00 00 31 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:15]Read from MH i2c: E2 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 0B 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 0B 00 4A 6C 00 19 53 0A 39 B8 AD 76 0B 90 00 C7 [00:24:15]RAPDU: 19 53 0A 39 B8 AD 76 0B 90 00 [00:24:15]wFMCommunicate OK [00:24:15]SAM_PROTO_SignData done [00:24:15]FM_MakeSignedData done [00:24:15]CreateOFDProtocolMessage [00:24:15]wFMCommunicate request_size=4 [00:24:15]MH_SAM_APDU [00:24:15]CAPDU: 80 11 00 00 [00:24:15]Write to MH i2c: E2 08 00 4B 6C 80 11 00 00 00 00 00 00 31 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:15]Read from MH i2c: E2 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 17 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: E2 17 00 4B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 7F [00:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:24:15]wFMCommunicate OK [00:24:15]CreateOFDProtocolMessage done [00:24:15]OFDSenderStorePacket 30766 [00:24:15]StoreOFDPacket docnum=30766 [00:24:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 86 05 00 00 19 FB 7E 05 3A F4 5A 05 01 00 05 00 72 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 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 F4 03 04 00 AB F0 16 67 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 D7 04 6E 04 04 00 06 01 00 00 69 04 A4 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 2E 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 D6 F1 3A 48 0D 6F 19 53 0A 39 B8 AD 76 0B [00:24:15]CheckFolder [00:24:15]dirname=/storage/ofd_packets [00:24:15]CheckFolder done [00:24:15]ProducePacketName [00:24:15]name=ofd_packets/00030766 [00:24:15]NVStorageSaveData ofd_packets/00030766 [00:24:15]File name is /storage/ofd_packets/00030766 [00:24:15]Write 1444 bytes [00:24:15]NVStorageSaveData done [00:24:15]OFDSenderStorePacket done [00:24:15]KKMCreateOFDPacket done [00:24:15]NVStorageSaveData kkm_last_timestamp [00:24:15]File name is /storage/kkm_last_timestamp [00:24:15]Write 4 bytes [00:24:15]NVStorageSaveData done [00:24:15]ExternCall_PrintAddStr [00:24:15]wPrintStart [00:24:15]Write to MH i2c: 01 00 00 4C 6C B8 [00:24:15]Write i2c OK [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 07 00 [00:24:15]MH_I2C_Read... [00:24:15]Read from MH i2c: 01 07 00 4C 6C 00 00 00 00 00 FF 0F CD [00:24:15]RasterBufferAndPrint [00:24:15]line Отчет о закрытии смены [00:24:15]line ФФД: 1.0 [00:24:15]line ИНН: 02508201610067 [00:24:15]line Кассир: Тынчтыкбек уулу К. [00:24:15]line 22.10.2024 00:24 [00:24:15]line Смена: 115 [00:24:15]line РНМ: 0000000000186857 [00:24:15]line ЗНМ: 0300000137 [00:24:15]line СНО: Общий режим [00:24:15]line Чеков за смену: 262 [00:24:15]line ФД за смену: 264 [00:24:15]line Всего чеков: 262 [00:24:15]line ИТОГИ ПРИХОД [00:24:15]line Чеков: 262 [00:24:15]line Общий итог: 203537.54 [00:24:15]line Итого наличными: 166239.00 [00:24:15]line Итого безнал.: 37298.54 [00:24:15]line НДС 0% : 0.00 [00:24:15]line НДС 12% : 21622.00 [00:24:15]line НСП 0% : 0.00 [00:24:15]line НСП 1,50% : 0.00 [00:24:15]line НСП 0,50% : 0.00 [00:24:15]line НСП 5% : 0.00 [00:24:15]line НСП 3% : 0.00 [00:24:15]line НСП 2% : 0.00 [00:24:15]line НСП 1% : 1801.76 [00:24:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:24:15]line Чеков: 0 [00:24:15]line Общий итог: 0.00 [00:24:15]line Итого наличными: 0.00 [00:24:15]line Итого безнал.: 0.00 [00:24:15]line НДС 0% : 0.00 [00:24:15]line НДС 12% : 0.00 [00:24:15]line НСП 0% : 0.00 [00:24:15]line НСП 1,50% : 0.00 [00:24:15]line НСП 0,50% : 0.00 [00:24:15]line НСП 5% : 0.00 [00:24:15]line НСП 3% : 0.00 [00:24:15]line НСП 2% : 0.00 [00:24:15]line НСП 1% : 0.00 [00:24:15]line ИТОГИ РАСХОД [00:24:15]line Чеков: 0 [00:24:15]line Общий итог: 0.00 [00:24:15]line Итого наличными: 0.00 [00:24:15]line Итого безнал.: 0.00 [00:24:15]line НДС 0% : 0.00 [00:24:15]line НДС 12% : 0.00 [00:24:15]line НСП 0% : 0.00 [00:24:15]line НСП 1,50% : 0.00 [00:24:15]line НСП 0,50% : 0.00 [00:24:15]line НСП 5% : 0.00 [00:24:15]line НСП 3% : 0.00 [00:24:15]line НСП 2% : 0.00 [00:24:15]line НСП 1% : 0.00 [00:24:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:24:15]line Чеков: 0 [00:24:15]line Общий итог: 0.00 [00:24:15]line Итого наличными: 0.00 [00:24:15]line Итого безнал.: 0.00 [00:24:15]line НДС 0% : 0.00 [00:24:15]line НДС 12% : 0.00 [00:24:15]line НСП 0% : 0.00 [00:24:15]line НСП 1,50% : 0.00 [00:24:15]line НСП 0,50% : 0.00 [00:24:15]line НСП 5% : 0.00 [00:24:15]line НСП 3% : 0.00 [00:24:15]line НСП 2% : 0.00 [00:24:15]line НСП 1% : 0.00 [00:24:15]line Сумма внесений: 0.00 [00:24:15]line Сумма выплат: 0.00 [00:24:15]line Нал. в кассе: 166239.00 [00:24:15]line НС Приход: 27688552.11 [00:24:15]line НС Возвр.Прихода: 54066.00 [00:24:15]line НС Расход: 0.00 [00:24:15]line НС Возвр.Расхода: 0.00 [00:24:15]line ФД: 30766 [00:24:15]line ФМ: 0000000002094219 [00:24:15]line ФПД: 236331553262959 [00:24:15]OFD Sender: Processing packet 30766 [packets to send 10, broken 9] [00:24:15]ProducePacketName [00:24:15]name=ofd_packets/00030766 [00:24:15]OFD Sender: To server: pG, [00:24:15]CommunicateWithHost lk.salyk.kg:30040 [00:24:15]ConnectInit lk.salyk.kg [00:24:15]written 0, free lines is 4095 [00:24:15]Connected sock=10 [00:24:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 86 05 00 00 19 FB 7E 05 3A F4 5A 05 01 00 05 00 72 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 22 00 D0 A2 D1 8B D0 BD D1 87 D1 82 D1 8B D0 BA D0 B1 D0 B5 D0 BA 20 D1 83 D1 83 D0 BB D1 83 20 D0 9A 2E 20 F4 03 04 00 AB F0 16 67 0E 04 04 00 73 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 AA 04 D7 04 6E 04 04 00 06 01 00 00 69 04 A4 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Write to MH i2c: F7 01 03 00 00 00 00 9C EF 6C 03 08 09 [00:24:17]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 Write i2c OK [00:24:17]F6 MH_I2C_Read... [00:24:17]03 Read from MH i2c: 01 01 00 [00:24:17]03 MH_I2C_Read... [00:24:17]F7 03 00 00 Read from MH i2c: EF 01 03 07 09 00 00 [00:24:17]F6 MH_I2C_Read... [00:24:17]03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Read from MH i2c: EF 01 03 07 09 00 00 9C F6 03 6C 01 00 00 00 00 00 00 3E 0F 5C [00:24:17]RasterBufferAndPrint [00:24:17]line [00:24:17]line [00:24:17]line [00:24:17]line [00:24:17]line [00:24:17]06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 written 0, free lines is 4014 [00:24:17]01 00 06 F7 03 00 00 10 04 04 00 2E 78 00 00 11 04 10 00 MH_Cut [00:24:17]30 Write to MH i2c: 30 D1 30 01 30 00 30 A3 30 6C 30 01 30 E1 30 [00:24:17]32 30 39 34 32 31 39 35 04 06 00 D6 F1 3A 48 0D Write i2c OK [00:24:17]6F MH_I2C_Read... [00:24:17]19 53 0A 39 B8 AD 76 0B [00:24:17]Read from MH i2c: D1 [00:24:17]MH_I2C_Read... [00:24:17]Read from MH i2c: D1 01 00 [00:24:17]MH_I2C_Read... [00:24:17]Read from MH i2c: D1 01 00 A3 6C 00 E0 [00:24:17]Write to MH i2c: 01 00 00 A4 6C 10 [00:24:17]Write i2c OK [00:24:17]MH_I2C_Read... [00:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BD CA 47 00 11 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 *** Cut start [00:24:18]30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2E 78 00 00 F4 03 04 00 36 9B 16 67 B6 04 01 00 00 45 F4 C2 E1 5C 7E 18 42 [00:24:18]CommunicateWithHost err = 0 [00:24:18]CheckOFDResponse [00:24:18]1017 (14) - 77093643461234 [00:24:18]*** Partial cut [00:24:18]1041 (16) - 0000000002094219 [00:24:18]1040 (4) - 30766 [00:24:18]*** CUTSNS_PIN = 1 [00:24:18]1012 (4) - 21.10.2024 18:19 [00:24:18]*** CUTSNS_PIN = 0 [00:24:18]1206 (1) - 0 [00:24:18]OFD Sender: Remove packet 30766 [00:24:18]ProducePacketName [00:24:18]name=ofd_packets/00030766 [00:24:18]NVStorageDeleteData [00:24:18]*** Brake cut motor [00:24:18]Read from MH i2c: 01 [00:24:18]MH_I2C_Read... [00:24:18]*** Stop cut motor [00:24:18]*** Cut end [00:24:18]Read from MH i2c: 01 07 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: 01 07 00 A4 6C 00 00 00 00 00 FF 0F 25 [00:24:18]process_action close_shift done [00:24:18]requested_data is exist [00:24:18]produce_requested_data [00:24:18]requested_item fd.num is exist - process it [00:24:18]SAM_PROTO_GetFieldsCounters [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 00 00 [00:24:18]Write to MH i2c: E2 08 00 A5 6C 80 13 00 00 00 00 00 00 8D [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]OFD Sender: No OFD packet to send [00:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 62 00 A5 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E2 [00:24:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetFieldsCounters done [00:24:18]requested_item shift.num is exist - process it [00:24:18]requested_item shift.opened is exist - process it [00:24:18]req_shift_opened [00:24:18]FM_GetShiftState [00:24:18]SAM_PROTO_GetShiftState [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 01 00 [00:24:18]Write to MH i2c: E2 08 00 A6 6C 80 13 01 00 00 00 00 00 8F [00:24:18]Write i2c OK [00:24:18]MH_I2C_Read... [00:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:18]Read from MH i2c: E2 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 [00:24:18]MH_I2C_Read... [00:24:18]Read from MH i2c: E2 0E 00 A6 6C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9A [00:24:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:24:18]wFMCommunicate OK [00:24:18]SAM_PROTO_GetShiftState done [00:24:18]FM_GetShiftState done [00:24:18]req_shift_opened done [00:24:18]requested_item shift.open_date is exist - process it [00:24:18]req_shift_open_date [00:24:18]FM_GetShiftState [00:24:18]SAM_PROTO_GetShiftState [00:24:18]wFMCommunicate request_size=4 [00:24:18]MH_SAM_APDU [00:24:18]CAPDU: 80 13 01 00 [00:24:18]Write to MH i2c: E2 08 00 A7 6C 80 13 01 00 00 00 00 00 90 [00:24:19]Write i2c OK [00:24:19]MH_I2C_Read... [00:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:19]Read from MH i2c: E2 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 0E 00 [00:24:19]MH_I2C_Read... [00:24:19]Read from MH i2c: E2 0E 00 A7 6C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9B [00:24:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:24:19]wFMCommunicate OK [00:24:19]SAM_PROTO_GetShiftState done [00:24:19]FM_GetShiftState done [00:24:19]req_shift_open_date done [00:24:19]produce_requested_data done [00:24:19]produce_requested_data return {"fd.num":30766,"shift.num":115,"shift.opened":0,"shift.open_date":0} [00:24:19]process_action_free close_shift [00:24:19]json_value_free [00:24:19]json_value_free done [00:24:19]process_json_proto returns [00:24:19]Send response to host [00:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30766,"shift.num":115,"shift.opened":0,"shift.open_date":0}}} [00:24:19]free response buf [00:24:19]execute_script done [00:24:19]execute_script returns [00:24:19]free content buf [00:24:19]Sock 9.Close socket [00:24:19]Sock 9.Thread stoped [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:04]OFD Sender: No OFD packet to send [00:32:09]OFD Sender: No OFD packet to send [00:32:14]OFD Sender: No OFD packet to send [00:32:19]OFD Sender: No OFD packet to send [00:32:24]OFD Sender: No OFD packet to send [00:32:29]OFD Sender: No OFD packet to send [00:32:34]OFD Sender: No OFD packet to send [00:32:39]OFD Sender: No OFD packet to send [00:32:44]OFD Sender: No OFD packet to send [00:32:49]OFD Sender: No OFD packet to send [00:32:54]OFD Sender: No OFD packet to send [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:31]accept exits with 7 [00:35:31]New connection [00:35:31]New thread 3067489636 created [00:35:31]Thread 3067346276 joined [00:35:31]Waiting for new connection... [00:35:31] Sock 7.Parse request [00:35:31]Sock 7.Check first char [00:35:31]Sock 7.First char is OK [00:35:31]request: POST /json_proto HTTP/1.0 [00:35:31]Method: POST [00:35:31]URL: /json_proto [00:35:31]Method is POST - this is cgi request [00:35:31]url: /json_proto [00:35:31]query_string will be loaded in cgi processing [00:35:31]execute_cgi json_proto POST (null) [00:35:31]execute_cgi path=json_proto method=POST [00:35:31]POST find Content-Length [00:35:31]Host: 172.17.51.3:8080 [00:35:31]Content-Length: 215 [00:35:31]Content-Type: application/json [00:35:31] [00:35:31]POST finish read [00:35:31]Found Content-Length = 215 [00:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:31]execute_script... [00:35:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:31]POST & json_proto [00:35:31]process_json_proto [00:35:31]json parsed OK: [00:35:31]protocol is kg_v1.0 [00:35:31]action value=get_value [00:35:31]process_action get_value [00:35:31]cmd_get_value [00:35:31]process_action get_value done [00:35:31]requested_data is exist [00:35:31]produce_requested_data [00:35:31]requested_item kkm.sn is exist - process it [00:35:31]requested_item kkm.ver is exist - process it [00:35:31]requested_item fm.sn is exist - process it [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 11 00 00 [00:35:31]Write to MH i2c: E2 08 00 A8 6C 80 11 00 00 00 00 00 00 8E [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 17 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 17 00 A8 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 DC [00:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:35:31]wFMCommunicate OK [00:35:31]requested_item fd.num is exist - process it [00:35:31]SAM_PROTO_GetFieldsCounters [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 00 00 [00:35:31]Write to MH i2c: E2 08 00 A9 6C 80 13 00 00 00 00 00 00 91 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 62 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 62 00 A9 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2E 78 00 00 0E 04 04 00 73 00 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetFieldsCounters done [00:35:31]requested_item shift.num is exist - process it [00:35:31]requested_item shift.opened is exist - process it [00:35:31]req_shift_opened [00:35:31]FM_GetShiftState [00:35:31]SAM_PROTO_GetShiftState [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 01 00 [00:35:31]Write to MH i2c: E2 08 00 AA 6C 80 13 01 00 00 00 00 00 93 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 AA 6C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [00:35:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftState done [00:35:31]FM_GetShiftState done [00:35:31]req_shift_opened done [00:35:31]requested_item shift.open_date is exist - process it [00:35:31]req_shift_open_date [00:35:31]FM_GetShiftState [00:35:31]SAM_PROTO_GetShiftState [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 01 00 [00:35:31]Write to MH i2c: E2 08 00 AB 6C 80 13 01 00 00 00 00 00 94 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 0E 00 AB 6C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [00:35:31]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:31]wFMCommunicate OK [00:35:31]SAM_PROTO_GetShiftState done [00:35:31]FM_GetShiftState done [00:35:31]req_shift_open_date done [00:35:31]produce_requested_data done [00:35:31]produce_requested_data return {"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30766,"shift.num":115,"shift.opened":0,"shift.open_date":0} [00:35:31]process_action_free get_value [00:35:31]json_value_free [00:35:31]json_value_free done [00:35:31]process_json_proto returns [00:35:31]Send response to host [00:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000137","kkm.ver":"v1.0","fm.sn":"0000000002094219","fd.num":30766,"shift.num":115,"shift.opened":0,"shift.open_date":0}}} [00:35:31]free response buf [00:35:31]execute_script done [00:35:31]execute_script returns [00:35:31]free content buf [00:35:31]Sock 7.Close socket [00:35:31]Sock 7.Thread stoped [00:35:31]accept exits with 9 [00:35:31]New connection [00:35:31]New thread 3067346276 created [00:35:31]Thread 3067489636 joined [00:35:31]Waiting for new connection... [00:35:31] Sock 9.Parse request [00:35:31]Sock 9.Check first char [00:35:31]Sock 9.First char is OK [00:35:31]request: POST /json_proto HTTP/1.0 [00:35:31]Method: POST [00:35:31]URL: /json_proto [00:35:31]Method is POST - this is cgi request [00:35:31]url: /json_proto [00:35:31]query_string will be loaded in cgi processing [00:35:31]execute_cgi json_proto POST (null) [00:35:31]execute_cgi path=json_proto method=POST [00:35:31]POST find Content-Length [00:35:31]Host: 172.17.51.3:8080 [00:35:31]Content-Length: 331 [00:35:31]Content-Type: application/json [00:35:31] [00:35:31]POST finish read [00:35:31]Found Content-Length = 331 [00:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:31]execute_script... [00:35:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:31]POST & json_proto [00:35:31]process_json_proto [00:35:31]json parsed OK: [00:35:31]protocol is kg_v1.0 [00:35:31]action value=get_value [00:35:31]process_action get_value [00:35:31]cmd_get_value [00:35:31]process_action get_value done [00:35:31]requested_data is exist [00:35:31]produce_requested_data [00:35:31]requested_item fm.sale.total is exist - process it [00:35:31]SAM_PROTO_GetFMData [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 03 00 [00:35:31]Write to MH i2c: E2 08 00 AC 6C 80 13 03 00 00 00 00 00 97 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 AC 6C 00 BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 10 [00:35:32]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 17 00 00 [00:35:32]Write to MH i2c: E2 08 00 AD 6C 80 17 00 00 00 00 00 00 99 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 AD 6C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 6A [00:35:32]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 17 00 00 [00:35:32]Write to MH i2c: E2 08 00 AE 6C 80 17 00 00 00 00 00 00 9A [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 AE 6C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 3E [00:35:32]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 17 00 00 [00:35:32]Write to MH i2c: E2 08 00 AF 6C 80 17 00 00 00 00 00 00 9B [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 AF 6C 00 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:35:33]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:33]wFMCommunicate OK [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 17 00 00 [00:35:33]Write to MH i2c: E2 08 00 B0 6C 80 17 00 00 00 00 00 00 9C [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 DC 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 DC 00 B0 6C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [00:35:33]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:33]wFMCommunicate OK [00:35:33]SAM_PROTO_GetFMData done [00:35:33]requested_item fm.sale_refund.total is exist - process it [00:35:33]requested_item fm.buy.total is exist - process it [00:35:33]requested_item shift.sale.total is exist - process it [00:35:33]SAM_PROTO_GetShiftData [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 13 02 00 [00:35:33]Write to MH i2c: E2 08 00 B1 6C 80 13 02 00 00 00 00 00 9B [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 B1 6C 00 B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 87 [00:35:33]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 06 01 00 00 69 04 9D 00 6F 04 04 00 06 01 00 00 B1 04 04 00 DA 92 36 01 70 04 03 00 1C A9 FD 72 04 03 00 BE E9 38 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 18 FE 20 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 BF 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:35:33]wFMCommunicate OK [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 17 00 00 [00:35:33]Write to MH i2c: E2 08 00 B2 6C 80 17 00 00 00 00 00 00 9E [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 B2 6C 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B8 [00:35:34]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [00:35:34]wFMCommunicate OK [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 17 00 00 [00:35:34]Write to MH i2c: E2 08 00 B3 6C 80 17 00 00 00 00 00 00 9F [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]OFD Sender: No OFD packet to send [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 B3 6C 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 5C [00:35:34]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:35:34]wFMCommunicate OK [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 17 00 00 [00:35:34]Write to MH i2c: E2 08 00 B4 6C 80 17 00 00 00 00 00 00 A0 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 B4 6C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 13 [00:35:34]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:35:34]wFMCommunicate OK [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 17 00 00 [00:35:34]Write to MH i2c: E2 08 00 B5 6C 80 17 00 00 00 00 00 00 A1 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 CD 00 [00:35:34]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 CD 00 B5 6C 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 85 [00:35:35]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:35]wFMCommunicate OK [00:35:35]SAM_PROTO_GetShiftData done [00:35:35]requested_item shift.sale.total_cash is exist - process it [00:35:35]requested_item shift.sale_refund.total is exist - process it [00:35:35]requested_item shift.sale_refund.total_cash is exist - process it [00:35:35]requested_item shift.buy.total is exist - process it [00:35:35]requested_item shift.buy.total_cash is exist - process it [00:35:35]produce_requested_data done [00:35:35]produce_requested_data return {"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:35]process_action_free get_value [00:35:35]json_value_free [00:35:35]json_value_free done [00:35:35]process_json_proto returns [00:35:35]Send response to host [00:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":203537.54,"shift.sale.total_cash":166239.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:35]free response buf [00:35:35]execute_script done [00:35:35]execute_script returns [00:35:35]free content buf [00:35:35]Sock 9.Close socket [00:35:35]Sock 9.Thread stoped [00:35:35]accept exits with 7 [00:35:35]New connection [00:35:35]New thread 3067489636 created [00:35:35]Thread 3067346276 joined [00:35:35]Waiting for new connection... [00:35:35] Sock 7.Parse request [00:35:35]Sock 7.Check first char [00:35:35]Sock 7.First char is OK [00:35:35]request: POST /json_proto HTTP/1.0 [00:35:35]Method: POST [00:35:35]URL: /json_proto [00:35:35]Method is POST - this is cgi request [00:35:35]url: /json_proto [00:35:35]query_string will be loaded in cgi processing [00:35:35]execute_cgi json_proto POST (null) [00:35:35]execute_cgi path=json_proto method=POST [00:35:35]POST find Content-Length [00:35:35]Host: 172.17.51.3:8080 [00:35:35]Content-Length: 290 [00:35:35]Content-Type: application/json [00:35:35] [00:35:35]POST finish read [00:35:35]Found Content-Length = 290 [00:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:35]execute_script... [00:35:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A\u044B\u0437\u044B \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:35]POST & json_proto [00:35:35]process_json_proto [00:35:35]json parsed OK: [00:35:35]protocol is kg_v1.0 [00:35:35]action value=open_shift [00:35:35]process_action open_shift [00:35:35]cmd_open_shift [00:35:35]MH_GetDate [00:35:35]Write to MH i2c: F0 00 00 B6 6C 11 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 B6 6C 00 5E F3 16 67 04 C1 95 66 A8 [00:35:35]GetLastDocTimeStamp 1729556651 [00:35:35]current date 1729557342 [00:35:35]FM_GetShiftState [00:35:35]SAM_PROTO_GetShiftState [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 13 01 00 [00:35:35]Write to MH i2c: E2 08 00 B7 6C 80 13 01 00 00 00 00 00 A0 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 0E 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 0E 00 B7 6C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 AB [00:35:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:35]wFMCommunicate OK [00:35:35]SAM_PROTO_GetShiftState done [00:35:35]FM_GetShiftState done [00:35:35]KKMCreateOpenShiftDocument [00:35:35]Load OK [00:35:35]Malloc new data [00:35:35]MH_GetDate [00:35:35]Write to MH i2c: F0 00 00 B8 6C 13 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 B8 6C 00 5E F3 16 67 04 C1 95 66 AA [00:35:35]Malloc new data [00:35:35]KKMCreateOpenShiftDocument OK [00:35:35]KKMSetOpenShiftData OK [00:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=213 [00:35:35]tlvbuf is 01EDF370 [00:35:35]KKMLoadAndSignOpenShiftData [00:35:35]SAM_PROTO_ProcessDocument [00:35:35]wFMCommunicate request_size=9 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 01 00 04 02 00 D5 00 [00:35:35]Write to MH i2c: E2 0C 00 B9 6C 80 15 01 00 04 00 02 00 D5 00 00 00 83 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 B9 6C 00 90 00 99 [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=23 [00:35:35]MH_SAM_APDU [00:35:35]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:35:35]Write to MH i2c: E2 1A 00 BA 6C 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 9B [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BA 6C 00 90 00 9A [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=41 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 24 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 [00:35:35]Write to MH i2c: E2 2C 00 BB 6C 80 15 02 00 24 00 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 00 00 5C [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BB 6C 00 90 00 9B [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=91 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 [00:35:35]Write to MH i2c: E2 5E 00 BC 6C 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 00 00 88 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BC 6C 00 90 00 9C [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=50 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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:35:35]Write to MH i2c: E2 35 00 BD 6C 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 27 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BD 6C 00 90 00 9D [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=13 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 08 F4 03 04 00 5E F3 16 67 [00:35:35]Write to MH i2c: E2 10 00 BE 6C 80 15 02 00 08 00 F4 03 04 00 5E F3 16 67 00 00 83 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BE 6C 00 90 00 9E [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=25 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 [00:35:35]Write to MH i2c: E2 1C 00 BF 6C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 00 00 17 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 BF 6C 00 90 00 9F [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 03 00 [00:35:35]Write to MH i2c: E2 08 00 C0 6C 80 15 03 00 00 00 00 00 AD [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 38 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 38 00 C0 6C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 78 00 00 0E 04 04 00 74 00 00 00 35 04 06 00 1B 7E 48 4D 4F 99 90 00 A5 [00:35:36]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 78 00 00 0E 04 04 00 74 00 00 00 35 04 06 00 1B 7E 48 4D 4F 99 90 00 [00:35:36]wFMCommunicate OK [00:35:36]SAM_PROTO_ProcessDocument answer len = 51 [00:35:36]SAM_PROTO_ProcessDocument done [00:35:36]SetTLVBufToDocument [00:35:36]Processing tag 1209 (04B9) [00:35:36]Malloc new data [00:35:36]Processing tag 1041 (0411) [00:35:36]Processing tag 1040 (0410) [00:35:36]Malloc new data [00:35:36]Processing tag 1038 (040E) [00:35:36]Malloc new data [00:35:36]Processing tag 1077 (0435) [00:35:36]Malloc new data [00:35:36]SetTLVBufToDocument err=0 [00:35:36]KKMLoadAndSignOpenShiftData store KKM data [00:35:36]KKMLoadAndSignOpenShiftData err=0 [00:35:36]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таалайбек кызы А. Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 Место: АЗС № 78 "Партнер Нефть" 22.10.2024 00:35 Смена: 116 РНМ: 0000000000186857 ЗНМ: 0300000137 ФД: 30767 ФМ: 0000000002094219 ФПД: 30229192855449 [00:35:36]StoreToDocumentArchive [00:35:36]shift 116 fd 30767 [00:35:36]Create dir for shift 0116 [00:35:36]save to /storage/0116/doc_00030767 [00:35:36]save last doc name /storage/0116/doc_00030767 to /storage/kkm_last_doc_name [00:35:36]save OK [00:35:36]Clear old archive folders... [00:35:36]Remove dir /storage/0115 [00:35:36]opendir ok [00:35:36]file . [00:35:36]file .. [00:35:36]file doc_00030503 [00:35:36]remove file /storage/0115/doc_00030503 [00:35:36]file doc_00030504 [00:35:36]remove file /storage/0115/doc_00030504 [00:35:36]file doc_00030505 [00:35:36]remove file /storage/0115/doc_00030505 [00:35:36]file doc_00030506 [00:35:36]remove file /storage/0115/doc_00030506 [00:35:36]file doc_00030507 [00:35:36]remove file /storage/0115/doc_00030507 [00:35:36]file doc_00030508 [00:35:36]remove file /storage/0115/doc_00030508 [00:35:36]file doc_00030509 [00:35:36]remove file /storage/0115/doc_00030509 [00:35:36]file doc_00030510 [00:35:36]remove file /storage/0115/doc_00030510 [00:35:36]file doc_00030511 [00:35:36]remove file /storage/0115/doc_00030511 [00:35:36]file doc_00030512 [00:35:36]remove file /storage/0115/doc_00030512 [00:35:36]file doc_00030513 [00:35:36]remove file /storage/0115/doc_00030513 [00:35:36]file doc_00030514 [00:35:36]remove file /storage/0115/doc_00030514 [00:35:36]file doc_00030515 [00:35:36]remove file /storage/0115/doc_00030515 [00:35:36]file doc_00030516 [00:35:36]remove file /storage/0115/doc_00030516 [00:35:36]file doc_00030517 [00:35:36]remove file /storage/0115/doc_00030517 [00:35:36]file doc_00030518 [00:35:36]remove file /storage/0115/doc_00030518 [00:35:36]file doc_00030519 [00:35:36]remove file /storage/0115/doc_00030519 [00:35:36]file doc_00030520 [00:35:36]remove file /storage/0115/doc_00030520 [00:35:36]file doc_00030521 [00:35:36]remove file /storage/0115/doc_00030521 [00:35:36]file doc_00030522 [00:35:36]remove file /storage/0115/doc_00030522 [00:35:36]file doc_00030523 [00:35:36]remove file /storage/0115/doc_00030523 [00:35:36]file doc_00030524 [00:35:36]remove file /storage/0115/doc_00030524 [00:35:36]file doc_00030525 [00:35:36]remove file /storage/0115/doc_00030525 [00:35:36]file doc_00030526 [00:35:36]remove file /storage/0115/doc_00030526 [00:35:36]file doc_00030527 [00:35:36]remove file /storage/0115/doc_00030527 [00:35:36]file doc_00030528 [00:35:36]remove file /storage/0115/doc_00030528 [00:35:36]file doc_00030529 [00:35:36]remove file /storage/0115/doc_00030529 [00:35:36]file doc_00030530 [00:35:36]remove file /storage/0115/doc_00030530 [00:35:36]file doc_00030531 [00:35:36]remove file /storage/0115/doc_00030531 [00:35:36]file doc_00030532 [00:35:36]remove file /storage/0115/doc_00030532 [00:35:36]file doc_00030533 [00:35:36]remove file /storage/0115/doc_00030533 [00:35:36]file doc_00030534 [00:35:36]remove file /storage/0115/doc_00030534 [00:35:36]file doc_00030535 [00:35:36]remove file /storage/0115/doc_00030535 [00:35:36]file doc_00030536 [00:35:36]remove file /storage/0115/doc_00030536 [00:35:36]file doc_00030537 [00:35:36]remove file /storage/0115/doc_00030537 [00:35:36]file doc_00030538 [00:35:36]remove file /storage/0115/doc_00030538 [00:35:36]file doc_00030539 [00:35:36]remove file /storage/0115/doc_00030539 [00:35:36]file doc_00030540 [00:35:36]remove file /storage/0115/doc_00030540 [00:35:36]file doc_00030541 [00:35:36]remove file /storage/0115/doc_00030541 [00:35:36]file doc_00030542 [00:35:36]remove file /storage/0115/doc_00030542 [00:35:36]file doc_00030543 [00:35:36]remove file /storage/0115/doc_00030543 [00:35:36]file doc_00030544 [00:35:36]remove file /storage/0115/doc_00030544 [00:35:36]file doc_00030545 [00:35:36]remove file /storage/0115/doc_00030545 [00:35:36]file doc_00030546 [00:35:36]remove file /storage/0115/doc_00030546 [00:35:36]file doc_00030547 [00:35:36]remove file /storage/0115/doc_00030547 [00:35:36]file doc_00030548 [00:35:36]remove file /storage/0115/doc_00030548 [00:35:36]file doc_00030549 [00:35:36]remove file /storage/0115/doc_00030549 [00:35:36]file doc_00030550 [00:35:36]remove file /storage/0115/doc_00030550 [00:35:36]file doc_00030551 [00:35:36]remove file /storage/0115/doc_00030551 [00:35:36]file doc_00030552 [00:35:36]remove file /storage/0115/doc_00030552 [00:35:36]file doc_00030553 [00:35:36]remove file /storage/0115/doc_00030553 [00:35:36]file doc_00030554 [00:35:36]remove file /storage/0115/doc_00030554 [00:35:36]file doc_00030555 [00:35:36]remove file /storage/0115/doc_00030555 [00:35:36]file doc_00030556 [00:35:36]remove file /storage/0115/doc_00030556 [00:35:36]file doc_00030557 [00:35:36]remove file /storage/0115/doc_00030557 [00:35:36]file doc_00030558 [00:35:36]remove file /storage/0115/doc_00030558 [00:35:36]file doc_00030559 [00:35:36]remove file /storage/0115/doc_00030559 [00:35:36]file doc_00030560 [00:35:36]remove file /storage/0115/doc_00030560 [00:35:36]file doc_00030561 [00:35:36]remove file /storage/0115/doc_00030561 [00:35:36]file doc_00030562 [00:35:36]remove file /storage/0115/doc_00030562 [00:35:36]file doc_00030563 [00:35:36]remove file /storage/0115/doc_00030563 [00:35:36]file doc_00030564 [00:35:36]remove file /storage/0115/doc_00030564 [00:35:36]file doc_00030565 [00:35:36]remove file /storage/0115/doc_00030565 [00:35:36]file doc_00030566 [00:35:36]remove file /storage/0115/doc_00030566 [00:35:36]file doc_00030567 [00:35:36]remove file /storage/0115/doc_00030567 [00:35:36]file doc_00030568 [00:35:36]remove file /storage/0115/doc_00030568 [00:35:36]file doc_00030569 [00:35:36]remove file /storage/0115/doc_00030569 [00:35:36]file doc_00030570 [00:35:36]remove file /storage/0115/doc_00030570 [00:35:36]file doc_00030571 [00:35:36]remove file /storage/0115/doc_00030571 [00:35:36]file doc_00030572 [00:35:36]remove file /storage/0115/doc_00030572 [00:35:36]file doc_00030573 [00:35:36]remove file /storage/0115/doc_00030573 [00:35:36]file doc_00030574 [00:35:36]remove file /storage/0115/doc_00030574 [00:35:36]file doc_00030575 [00:35:36]remove file /storage/0115/doc_00030575 [00:35:36]file doc_00030576 [00:35:36]remove file /storage/0115/doc_00030576 [00:35:36]file doc_00030577 [00:35:36]remove file /storage/0115/doc_00030577 [00:35:36]file doc_00030578 [00:35:36]remove file /storage/0115/doc_00030578 [00:35:36]file doc_00030579 [00:35:36]remove file /storage/0115/doc_00030579 [00:35:36]file doc_00030580 [00:35:36]remove file /storage/0115/doc_00030580 [00:35:36]file doc_00030581 [00:35:36]remove file /storage/0115/doc_00030581 [00:35:36]file doc_00030582 [00:35:36]remove file /storage/0115/doc_00030582 [00:35:36]file doc_00030583 [00:35:36]remove file /storage/0115/doc_00030583 [00:35:36]file doc_00030584 [00:35:36]remove file /storage/0115/doc_00030584 [00:35:36]file doc_00030585 [00:35:36]remove file /storage/0115/doc_00030585 [00:35:36]file doc_00030586 [00:35:36]remove file /storage/0115/doc_00030586 [00:35:36]file doc_00030587 [00:35:36]remove file /storage/0115/doc_00030587 [00:35:36]file doc_00030588 [00:35:36]remove file /storage/0115/doc_00030588 [00:35:36]file doc_00030589 [00:35:36]remove file /storage/0115/doc_00030589 [00:35:36]file doc_00030590 [00:35:36]remove file /storage/0115/doc_00030590 [00:35:36]file doc_00030591 [00:35:36]remove file /storage/0115/doc_00030591 [00:35:36]file doc_00030592 [00:35:36]remove file /storage/0115/doc_00030592 [00:35:36]file doc_00030593 [00:35:36]remove file /storage/0115/doc_00030593 [00:35:36]file doc_00030594 [00:35:36]remove file /storage/0115/doc_00030594 [00:35:36]file doc_00030595 [00:35:36]remove file /storage/0115/doc_00030595 [00:35:36]file doc_00030596 [00:35:36]remove file /storage/0115/doc_00030596 [00:35:36]file doc_00030597 [00:35:36]remove file /storage/0115/doc_00030597 [00:35:36]file doc_00030598 [00:35:36]remove file /storage/0115/doc_00030598 [00:35:36]file doc_00030599 [00:35:36]remove file /storage/0115/doc_00030599 [00:35:36]file doc_00030600 [00:35:36]remove file /storage/0115/doc_00030600 [00:35:36]file doc_00030601 [00:35:36]remove file /storage/0115/doc_00030601 [00:35:36]file doc_00030602 [00:35:36]remove file /storage/0115/doc_00030602 [00:35:36]file doc_00030603 [00:35:36]remove file /storage/0115/doc_00030603 [00:35:36]file doc_00030604 [00:35:36]remove file /storage/0115/doc_00030604 [00:35:36]file doc_00030605 [00:35:36]remove file /storage/0115/doc_00030605 [00:35:36]file doc_00030606 [00:35:36]remove file /storage/0115/doc_00030606 [00:35:36]file doc_00030607 [00:35:36]remove file /storage/0115/doc_00030607 [00:35:36]file doc_00030608 [00:35:36]remove file /storage/0115/doc_00030608 [00:35:36]file doc_00030609 [00:35:36]remove file /storage/0115/doc_00030609 [00:35:36]file doc_00030610 [00:35:36]remove file /storage/0115/doc_00030610 [00:35:36]file doc_00030611 [00:35:36]remove file /storage/0115/doc_00030611 [00:35:36]file doc_00030612 [00:35:36]remove file /storage/0115/doc_00030612 [00:35:36]file doc_00030613 [00:35:36]remove file /storage/0115/doc_00030613 [00:35:36]file doc_00030614 [00:35:36]remove file /storage/0115/doc_00030614 [00:35:36]file doc_00030615 [00:35:36]remove file /storage/0115/doc_00030615 [00:35:36]file doc_00030616 [00:35:36]remove file /storage/0115/doc_00030616 [00:35:36]file doc_00030617 [00:35:36]remove file /storage/0115/doc_00030617 [00:35:36]file doc_00030618 [00:35:36]remove file /storage/0115/doc_00030618 [00:35:36]file doc_00030619 [00:35:36]remove file /storage/0115/doc_00030619 [00:35:36]file doc_00030620 [00:35:36]remove file /storage/0115/doc_00030620 [00:35:36]file doc_00030621 [00:35:36]remove file /storage/0115/doc_00030621 [00:35:36]file doc_00030622 [00:35:36]remove file /storage/0115/doc_00030622 [00:35:36]file doc_00030623 [00:35:36]remove file /storage/0115/doc_00030623 [00:35:36]file doc_00030624 [00:35:36]remove file /storage/0115/doc_00030624 [00:35:36]file doc_00030625 [00:35:36]remove file /storage/0115/doc_00030625 [00:35:36]file doc_00030626 [00:35:36]remove file /storage/0115/doc_00030626 [00:35:36]file doc_00030627 [00:35:36]remove file /storage/0115/doc_00030627 [00:35:36]file doc_00030628 [00:35:36]remove file /storage/0115/doc_00030628 [00:35:37]file doc_00030629 [00:35:37]remove file /storage/0115/doc_00030629 [00:35:37]file doc_00030630 [00:35:37]remove file /storage/0115/doc_00030630 [00:35:37]file doc_00030631 [00:35:37]remove file /storage/0115/doc_00030631 [00:35:37]file doc_00030632 [00:35:37]remove file /storage/0115/doc_00030632 [00:35:37]file doc_00030633 [00:35:37]remove file /storage/0115/doc_00030633 [00:35:37]file doc_00030634 [00:35:37]remove file /storage/0115/doc_00030634 [00:35:37]file doc_00030635 [00:35:37]remove file /storage/0115/doc_00030635 [00:35:37]file doc_00030636 [00:35:37]remove file /storage/0115/doc_00030636 [00:35:37]file doc_00030637 [00:35:37]remove file /storage/0115/doc_00030637 [00:35:37]file doc_00030638 [00:35:37]remove file /storage/0115/doc_00030638 [00:35:37]file doc_00030639 [00:35:37]remove file /storage/0115/doc_00030639 [00:35:37]file doc_00030640 [00:35:37]remove file /storage/0115/doc_00030640 [00:35:37]file doc_00030641 [00:35:37]remove file /storage/0115/doc_00030641 [00:35:37]file doc_00030642 [00:35:37]remove file /storage/0115/doc_00030642 [00:35:37]file doc_00030643 [00:35:37]remove file /storage/0115/doc_00030643 [00:35:37]file doc_00030644 [00:35:37]remove file /storage/0115/doc_00030644 [00:35:37]file doc_00030645 [00:35:37]remove file /storage/0115/doc_00030645 [00:35:37]file doc_00030646 [00:35:37]remove file /storage/0115/doc_00030646 [00:35:37]file doc_00030647 [00:35:37]remove file /storage/0115/doc_00030647 [00:35:37]file doc_00030648 [00:35:37]remove file /storage/0115/doc_00030648 [00:35:37]file doc_00030649 [00:35:37]remove file /storage/0115/doc_00030649 [00:35:37]file doc_00030650 [00:35:37]remove file /storage/0115/doc_00030650 [00:35:37]file doc_00030651 [00:35:37]remove file /storage/0115/doc_00030651 [00:35:37]file doc_00030652 [00:35:37]remove file /storage/0115/doc_00030652 [00:35:37]file doc_00030653 [00:35:37]remove file /storage/0115/doc_00030653 [00:35:37]file doc_00030654 [00:35:37]remove file /storage/0115/doc_00030654 [00:35:37]file doc_00030655 [00:35:37]remove file /storage/0115/doc_00030655 [00:35:37]file doc_00030656 [00:35:37]remove file /storage/0115/doc_00030656 [00:35:37]file doc_00030657 [00:35:37]remove file /storage/0115/doc_00030657 [00:35:37]file doc_00030658 [00:35:37]remove file /storage/0115/doc_00030658 [00:35:37]file doc_00030659 [00:35:37]remove file /storage/0115/doc_00030659 [00:35:37]file doc_00030660 [00:35:37]remove file /storage/0115/doc_00030660 [00:35:37]file doc_00030661 [00:35:37]remove file /storage/0115/doc_00030661 [00:35:37]file doc_00030662 [00:35:37]remove file /storage/0115/doc_00030662 [00:35:37]file doc_00030663 [00:35:37]remove file /storage/0115/doc_00030663 [00:35:37]file doc_00030664 [00:35:37]remove file /storage/0115/doc_00030664 [00:35:37]file doc_00030665 [00:35:37]remove file /storage/0115/doc_00030665 [00:35:37]file doc_00030666 [00:35:37]remove file /storage/0115/doc_00030666 [00:35:37]file doc_00030667 [00:35:37]remove file /storage/0115/doc_00030667 [00:35:37]file doc_00030668 [00:35:37]remove file /storage/0115/doc_00030668 [00:35:37]file doc_00030669 [00:35:37]remove file /storage/0115/doc_00030669 [00:35:37]file doc_00030670 [00:35:37]remove file /storage/0115/doc_00030670 [00:35:37]file doc_00030671 [00:35:37]remove file /storage/0115/doc_00030671 [00:35:37]file doc_00030672 [00:35:37]remove file /storage/0115/doc_00030672 [00:35:37]file doc_00030673 [00:35:37]remove file /storage/0115/doc_00030673 [00:35:37]file doc_00030674 [00:35:37]remove file /storage/0115/doc_00030674 [00:35:37]file doc_00030675 [00:35:37]remove file /storage/0115/doc_00030675 [00:35:37]file doc_00030676 [00:35:37]remove file /storage/0115/doc_00030676 [00:35:37]file doc_00030677 [00:35:37]remove file /storage/0115/doc_00030677 [00:35:37]file doc_00030678 [00:35:37]remove file /storage/0115/doc_00030678 [00:35:37]file doc_00030679 [00:35:37]remove file /storage/0115/doc_00030679 [00:35:37]file doc_00030680 [00:35:37]remove file /storage/0115/doc_00030680 [00:35:37]file doc_00030681 [00:35:37]remove file /storage/0115/doc_00030681 [00:35:37]file doc_00030682 [00:35:37]remove file /storage/0115/doc_00030682 [00:35:37]file doc_00030683 [00:35:37]remove file /storage/0115/doc_00030683 [00:35:37]file doc_00030684 [00:35:37]remove file /storage/0115/doc_00030684 [00:35:37]file doc_00030685 [00:35:37]remove file /storage/0115/doc_00030685 [00:35:37]file doc_00030686 [00:35:37]remove file /storage/0115/doc_00030686 [00:35:37]file doc_00030687 [00:35:37]remove file /storage/0115/doc_00030687 [00:35:37]file doc_00030688 [00:35:37]remove file /storage/0115/doc_00030688 [00:35:37]file doc_00030689 [00:35:37]remove file /storage/0115/doc_00030689 [00:35:37]file doc_00030690 [00:35:37]remove file /storage/0115/doc_00030690 [00:35:37]file doc_00030691 [00:35:37]remove file /storage/0115/doc_00030691 [00:35:37]file doc_00030692 [00:35:37]remove file /storage/0115/doc_00030692 [00:35:37]file doc_00030693 [00:35:37]remove file /storage/0115/doc_00030693 [00:35:37]file doc_00030694 [00:35:37]remove file /storage/0115/doc_00030694 [00:35:37]file doc_00030695 [00:35:37]remove file /storage/0115/doc_00030695 [00:35:37]file doc_00030696 [00:35:37]remove file /storage/0115/doc_00030696 [00:35:37]file doc_00030697 [00:35:37]remove file /storage/0115/doc_00030697 [00:35:37]file doc_00030698 [00:35:37]remove file /storage/0115/doc_00030698 [00:35:37]file doc_00030699 [00:35:37]remove file /storage/0115/doc_00030699 [00:35:37]file doc_00030700 [00:35:37]remove file /storage/0115/doc_00030700 [00:35:37]file doc_00030701 [00:35:37]remove file /storage/0115/doc_00030701 [00:35:37]file doc_00030702 [00:35:37]remove file /storage/0115/doc_00030702 [00:35:37]file doc_00030703 [00:35:37]remove file /storage/0115/doc_00030703 [00:35:37]file doc_00030704 [00:35:37]remove file /storage/0115/doc_00030704 [00:35:37]file doc_00030705 [00:35:37]remove file /storage/0115/doc_00030705 [00:35:37]file doc_00030706 [00:35:37]remove file /storage/0115/doc_00030706 [00:35:37]file doc_00030707 [00:35:37]remove file /storage/0115/doc_00030707 [00:35:37]file doc_00030708 [00:35:37]remove file /storage/0115/doc_00030708 [00:35:37]file doc_00030709 [00:35:37]remove file /storage/0115/doc_00030709 [00:35:37]file doc_00030710 [00:35:37]remove file /storage/0115/doc_00030710 [00:35:37]file doc_00030711 [00:35:37]remove file /storage/0115/doc_00030711 [00:35:37]file doc_00030712 [00:35:37]remove file /storage/0115/doc_00030712 [00:35:37]file doc_00030713 [00:35:37]remove file /storage/0115/doc_00030713 [00:35:37]file doc_00030714 [00:35:37]remove file /storage/0115/doc_00030714 [00:35:37]file doc_00030715 [00:35:37]remove file /storage/0115/doc_00030715 [00:35:37]file doc_00030716 [00:35:37]remove file /storage/0115/doc_00030716 [00:35:37]file doc_00030717 [00:35:37]remove file /storage/0115/doc_00030717 [00:35:37]file doc_00030718 [00:35:37]remove file /storage/0115/doc_00030718 [00:35:37]file doc_00030719 [00:35:37]remove file /storage/0115/doc_00030719 [00:35:37]file doc_00030720 [00:35:37]remove file /storage/0115/doc_00030720 [00:35:37]file doc_00030721 [00:35:37]remove file /storage/0115/doc_00030721 [00:35:37]file doc_00030722 [00:35:37]remove file /storage/0115/doc_00030722 [00:35:37]file doc_00030723 [00:35:37]remove file /storage/0115/doc_00030723 [00:35:37]file doc_00030724 [00:35:37]remove file /storage/0115/doc_00030724 [00:35:37]file doc_00030725 [00:35:37]remove file /storage/0115/doc_00030725 [00:35:37]file doc_00030726 [00:35:37]remove file /storage/0115/doc_00030726 [00:35:37]file doc_00030727 [00:35:37]remove file /storage/0115/doc_00030727 [00:35:37]file doc_00030728 [00:35:37]remove file /storage/0115/doc_00030728 [00:35:37]file doc_00030729 [00:35:37]remove file /storage/0115/doc_00030729 [00:35:37]file doc_00030730 [00:35:37]remove file /storage/0115/doc_00030730 [00:35:37]file doc_00030731 [00:35:37]remove file /storage/0115/doc_00030731 [00:35:37]file doc_00030732 [00:35:37]remove file /storage/0115/doc_00030732 [00:35:37]file doc_00030733 [00:35:37]remove file /storage/0115/doc_00030733 [00:35:37]file doc_00030734 [00:35:37]remove file /storage/0115/doc_00030734 [00:35:37]file doc_00030735 [00:35:37]remove file /storage/0115/doc_00030735 [00:35:37]file doc_00030736 [00:35:37]remove file /storage/0115/doc_00030736 [00:35:37]file doc_00030737 [00:35:37]remove file /storage/0115/doc_00030737 [00:35:37]file doc_00030738 [00:35:37]remove file /storage/0115/doc_00030738 [00:35:37]file doc_00030739 [00:35:37]remove file /storage/0115/doc_00030739 [00:35:37]file doc_00030740 [00:35:37]remove file /storage/0115/doc_00030740 [00:35:37]file doc_00030741 [00:35:37]remove file /storage/0115/doc_00030741 [00:35:37]file doc_00030742 [00:35:37]remove file /storage/0115/doc_00030742 [00:35:37]file doc_00030743 [00:35:37]remove file /storage/0115/doc_00030743 [00:35:37]file doc_00030744 [00:35:37]remove file /storage/0115/doc_00030744 [00:35:37]file doc_00030745 [00:35:37]remove file /storage/0115/doc_00030745 [00:35:37]file doc_00030746 [00:35:37]remove file /storage/0115/doc_00030746 [00:35:37]file doc_00030747 [00:35:37]remove file /storage/0115/doc_00030747 [00:35:37]file doc_00030748 [00:35:37]remove file /storage/0115/doc_00030748 [00:35:37]file doc_00030749 [00:35:37]remove file /storage/0115/doc_00030749 [00:35:37]file doc_00030750 [00:35:37]remove file /storage/0115/doc_00030750 [00:35:37]file doc_00030751 [00:35:37]remove file /storage/0115/doc_00030751 [00:35:37]file doc_00030752 [00:35:37]remove file /storage/0115/doc_00030752 [00:35:37]file doc_00030753 [00:35:37]remove file /storage/0115/doc_00030753 [00:35:37]file doc_00030754 [00:35:37]remove file /storage/0115/doc_00030754 [00:35:37]file doc_00030755 [00:35:37]remove file /storage/0115/doc_00030755 [00:35:37]file doc_00030756 [00:35:37]remove file /storage/0115/doc_00030756 [00:35:37]file doc_00030757 [00:35:37]remove file /storage/0115/doc_00030757 [00:35:37]file doc_00030758 [00:35:37]remove file /storage/0115/doc_00030758 [00:35:37]file doc_00030759 [00:35:37]remove file /storage/0115/doc_00030759 [00:35:37]file doc_00030760 [00:35:37]remove file /storage/0115/doc_00030760 [00:35:37]file doc_00030761 [00:35:37]remove file /storage/0115/doc_00030761 [00:35:37]file doc_00030762 [00:35:37]remove file /storage/0115/doc_00030762 [00:35:37]file doc_00030763 [00:35:37]remove file /storage/0115/doc_00030763 [00:35:37]file doc_00030764 [00:35:37]remove file /storage/0115/doc_00030764 [00:35:37]file doc_00030765 [00:35:37]remove file /storage/0115/doc_00030765 [00:35:37]file doc_00030766 [00:35:37]remove file /storage/0115/doc_00030766 [00:35:37]remove dir /storage/0115 [00:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=264 [00:35:37]tlvbuf is 02037B60 [00:35:37]SAM_PROTO_ClearQueue [00:35:37]wFMCommunicate request_size=4 [00:35:37]MH_SAM_APDU [00:35:37]CAPDU: 80 09 00 00 [00:35:37]Write to MH i2c: E2 08 00 C1 6C 80 09 00 00 00 00 00 00 9F [00:35:37]Write i2c OK [00:35:37]MH_I2C_Read... [00:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:37]Read from MH i2c: E2 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 03 00 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 03 00 C1 6C 00 90 00 A1 [00:35:37]RAPDU: 90 00 [00:35:37]wFMCommunicate OK [00:35:37]SAM_PROTO_ClearQueue done [00:35:37]KKMCreateOFDPacket [00:35:37]OFDProtocolAddRootSTLVToBuf [00:35:37]FM_MakeSignedData [00:35:37]FM_MakeSignedData [00:35:37]SAM_PROTO_SignData [00:35:37]wFMCommunicate request_size=4 [00:35:37]MH_SAM_APDU [00:35:37]CAPDU: 80 0D 01 02 [00:35:37]Write to MH i2c: E2 08 00 C2 6C 80 0D 01 02 00 00 00 00 A7 [00:35:37]Write i2c OK [00:35:37]MH_I2C_Read... [00:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:37]Read from MH i2c: E2 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 03 00 [00:35:37]MH_I2C_Read... [00:35:37]Read from MH i2c: E2 03 00 C2 6C 00 90 00 A2 [00:35:37]RAPDU: 90 00 [00:35:37]wFMCommunicate OK [00:35:37]wFMCommunicate request_size=255 [00:35:37]MH_SAM_APDU [00:35:37]CAPDU: 80 0D 02 02 FA 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 5E F3 16 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 [00:35:37]Write to MH i2c: E2 02 01 C3 6C 80 0D 02 02 FA 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 5E F3 16 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F9 [00:35:37]Write i2c OK [00:35:37]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 03 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 03 00 C3 6C 00 90 00 A3 [00:35:38]RAPDU: 90 00 [00:35:38]wFMCommunicate OK [00:35:38]wFMCommunicate request_size=23 [00:35:38]MH_SAM_APDU [00:35:38]CAPDU: 80 0D 02 02 12 30 32 30 39 34 32 31 39 35 04 06 00 1B 7E 48 4D 4F 99 [00:35:38]Write to MH i2c: E2 1A 00 C4 6C 80 0D 02 02 12 00 30 32 30 39 34 32 31 39 35 04 06 00 1B 7E 48 4D 4F 99 00 00 BE [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 03 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 03 00 C4 6C 00 90 00 A4 [00:35:38]RAPDU: 90 00 [00:35:38]wFMCommunicate OK [00:35:38]wFMCommunicate request_size=4 [00:35:38]MH_SAM_APDU [00:35:38]CAPDU: 80 0D 03 02 [00:35:38]Write to MH i2c: E2 08 00 C5 6C 80 0D 03 02 00 00 00 00 AC [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 0B 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 0B 00 C5 6C 00 97 66 74 D6 05 EF E3 26 90 00 F1 [00:35:38]RAPDU: 97 66 74 D6 05 EF E3 26 90 00 [00:35:38]wFMCommunicate OK [00:35:38]SAM_PROTO_SignData done [00:35:38]FM_MakeSignedData done [00:35:38]CreateOFDProtocolMessage [00:35:38]wFMCommunicate request_size=4 [00:35:38]MH_SAM_APDU [00:35:38]CAPDU: 80 11 00 00 [00:35:38]Write to MH i2c: E2 08 00 C6 6C 80 11 00 00 00 00 00 00 AC [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:38]Read from MH i2c: E2 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 17 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: E2 17 00 C6 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FA [00:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:35:38]wFMCommunicate OK [00:35:38]CreateOFDProtocolMessage done [00:35:38]OFDSenderStorePacket 30767 [00:35:38]StoreOFDPacket docnum=30767 [00:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 1C 01 00 00 18 BA 14 01 08 EF 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 5E F3 16 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 1B 7E 48 4D 4F 99 97 66 74 D6 05 EF E3 26 [00:35:38]CheckFolder [00:35:38]dirname=/storage/ofd_packets [00:35:38]CheckFolder done [00:35:38]ProducePacketName [00:35:38]name=ofd_packets/00030767 [00:35:38]NVStorageSaveData ofd_packets/00030767 [00:35:38]File name is /storage/ofd_packets/00030767 [00:35:38]Write 314 bytes [00:35:38]NVStorageSaveData done [00:35:38]OFDSenderStorePacket done [00:35:38]KKMCreateOFDPacket done [00:35:38]NVStorageSaveData kkm_last_timestamp [00:35:38]File name is /storage/kkm_last_timestamp [00:35:38]Write 4 bytes [00:35:38]NVStorageSaveData done [00:35:38]ExternCall_PrintAddStr [00:35:38]wPrintStart [00:35:38]Write to MH i2c: 01 00 00 C7 6C 33 [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 07 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 07 00 C7 6C 00 00 00 00 00 FF 0F 48 [00:35:38]RasterBufferAndPrint [00:35:38]line Отчет об открытии смены [00:35:38]line ФФД: 1.0 [00:35:38]line ИНН: 02508201610067 [00:35:38]line Кассир: Таалайбек кызы А. [00:35:38]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:35:38]line Место: АЗС № 78 "Партнер Нефть" [00:35:38]line 22.10.2024 00:35 [00:35:38]line Смена: 116 [00:35:38]line РНМ: 0000000000186857 [00:35:38]line ЗНМ: 0300000137 [00:35:38]line ФД: 30767 [00:35:38]line ФМ: 0000000002094219 [00:35:38]line ФПД: 30229192855449 [00:35:38]written 0, free lines is 4095 [00:35:38]OFD Sender: Processing packet 30767 [packets to send 10, broken 9] [00:35:38]ProducePacketName [00:35:38]name=ofd_packets/00030767 [00:35:38]OFD Sender: To server: pG, [00:35:38]CommunicateWithHost lk.salyk.kg:30040 [00:35:38]ConnectInit lk.salyk.kg [00:35:38]Connected sock=11 [00:35:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 1C 01 00 00 18 BA 14 01 08 EF 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 20 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA D1 8B D0 B7 D1 8B 20 D0 90 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 BE D0 BC D0 B1 D0 B5 D0 BA D0 BE D0 B2 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 30 34 31 36 39 30 2C 20 37 32 2E 34 32 37 36 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 37 38 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 5E F3 16 67 0E 04 04 00 74 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 35 04 06 00 1B 7E 48 4D 4F 99 97 66 74 D6 05 EF E3 26 [00:35:38]Write to MH i2c: 01 00 00 D9 6C 45 [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 07 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: 01 07 00 D9 6C 00 00 00 00 00 80 0E DA [00:35:38]RasterBufferAndPrint [00:35:38]line [00:35:38]line [00:35:38]line [00:35:38]line [00:35:38]line [00:35:38]written 0, free lines is 3727 [00:35:38]MH_Cut [00:35:38]Write to MH i2c: D1 01 00 E0 6C 01 1E [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: D1 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: D1 01 00 [00:35:38]MH_I2C_Read... [00:35:38]Read from MH i2c: D1 01 00 E0 6C 00 1D [00:35:38]Write to MH i2c: 01 00 00 E1 6C 4D [00:35:38]Write i2c OK [00:35:38]MH_I2C_Read... [00:35:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 15 E5 47 00 28 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 2F 78 00 00 F4 03 04 00 DF 9D 16 67 B6 04 01 00 00 0A EA E0 B5 4B 5A 8A 51 [00:35:38]CommunicateWithHost err = 0 [00:35:38]CheckOFDResponse [00:35:38]1017 (14) - 77093643461234 [00:35:38]1041 (16) - 0000000002094219 [00:35:38]1040 (4) - 30767 [00:35:38]1012 (4) - 21.10.2024 18:30 [00:35:38]1206 (1) - 0 [00:35:38]OFD Sender: Remove packet 30767 [00:35:38]ProducePacketName [00:35:38]name=ofd_packets/00030767 [00:35:38]NVStorageDeleteData [00:35:38]*** Cut start [00:35:38]*** Partial cut [00:35:38]*** CUTSNS_PIN = 1 [00:35:39]*** CUTSNS_PIN = 0 [00:35:39]*** Brake cut motor [00:35:39]OFD Sender: No OFD packet to send [00:35:39]Read from MH i2c: 01 [00:35:39]MH_I2C_Read... [00:35:39]*** Stop cut motor [00:35:39]*** Cut end [00:35:39]Read from MH i2c: 01 07 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: 01 07 00 E1 6C 00 00 00 00 00 FF 0F 62 [00:35:39]process_action open_shift done [00:35:39]requested_data is exist [00:35:39]produce_requested_data [00:35:39]requested_item fd.num is exist - process it [00:35:39]SAM_PROTO_GetFieldsCounters [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 13 00 00 [00:35:39]Write to MH i2c: E2 08 00 E2 6C 80 13 00 00 00 00 00 00 CA [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 62 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 62 00 E2 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [00:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 2F 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:39]wFMCommunicate OK [00:35:39]SAM_PROTO_GetFieldsCounters done [00:35:39]requested_item shift.num is exist - process it [00:35:39]requested_item shift.opened is exist - process it [00:35:39]req_shift_opened [00:35:39]FM_GetShiftState [00:35:39]SAM_PROTO_GetShiftState [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 13 01 00 [00:35:39]Write to MH i2c: E2 08 00 E3 6C 80 13 01 00 00 00 00 00 CC [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 0E 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 0E 00 E3 6C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 A6 [00:35:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:35:39]wFMCommunicate OK [00:35:39]SAM_PROTO_GetShiftState done [00:35:39]FM_GetShiftState done [00:35:39]req_shift_opened done [00:35:39]requested_item shift.open_date is exist - process it [00:35:39]req_shift_open_date [00:35:39]req_shift_open_date done [00:35:39]produce_requested_data done [00:35:39]produce_requested_data return {"fd.num":30767,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:35:39]process_action_free open_shift [00:35:39]json_value_free [00:35:39]json_value_free done [00:35:39]process_json_proto returns [00:35:39]Send response to host [00:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":30767,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:35:39]free response buf [00:35:39]execute_script done [00:35:39]execute_script returns [00:35:39]free content buf [00:35:39]Sock 7.Close socket [00:35:39]Sock 7.Thread stoped [00:35:39]accept exits with 9 [00:35:39]New connection [00:35:39]New thread 3067346276 created [00:35:39]Thread 3067489636 joined [00:35:39]Waiting for new connection... [00:35:39] Sock 9.Parse request [00:35:39]Sock 9.Check first char [00:35:39]Sock 9.First char is OK [00:35:39]request: POST /json_proto HTTP/1.0 [00:35:39]Method: POST [00:35:39]URL: /json_proto [00:35:39]Method is POST - this is cgi request [00:35:39]url: /json_proto [00:35:39]query_string will be loaded in cgi processing [00:35:39]execute_cgi json_proto POST (null) [00:35:39]execute_cgi path=json_proto method=POST [00:35:39]POST find Content-Length [00:35:39]Host: 172.17.51.3:8080 [00:35:39]Content-Length: 331 [00:35:39]Content-Type: application/json [00:35:39] [00:35:39]POST finish read [00:35:39]Found Content-Length = 331 [00:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:39]execute_script... [00:35:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:39]POST & json_proto [00:35:39]process_json_proto [00:35:39]json parsed OK: [00:35:39]protocol is kg_v1.0 [00:35:39]action value=get_value [00:35:39]process_action get_value [00:35:39]cmd_get_value [00:35:39]process_action get_value done [00:35:39]requested_data is exist [00:35:39]produce_requested_data [00:35:39]requested_item fm.sale.total is exist - process it [00:35:39]SAM_PROTO_GetFMData [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 13 03 00 [00:35:39]Write to MH i2c: E2 08 00 E4 6C 80 13 03 00 00 00 00 00 CF [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:40]Read from MH i2c: E2 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: E2 FD 00 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: E2 FD 00 E4 6C 00 BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 48 [00:35:40]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 47 77 00 00 69 04 A1 00 6F 04 04 00 38 77 00 00 B1 04 04 00 AB 60 09 A5 70 04 04 00 30 60 4A 84 72 04 04 00 7B 00 BF 20 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 CD EB 87 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 4C FC 75 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 6A 04 98 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 88 7F 52 70 04 03 00 88 7F 52 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 FE C2 08 EF 03 09 00 F6 03 01 00 90 00 [00:35:40]wFMCommunicate OK [00:35:40]wFMCommunicate request_size=4 [00:35:40]MH_SAM_APDU [00:35:40]CAPDU: 80 17 00 00 [00:35:40]Write to MH i2c: E2 08 00 E5 6C 80 17 00 00 00 00 00 00 D1 [00:35:40]Write i2c OK [00:35:40]MH_I2C_Read... [00:35:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:40]Read from MH i2c: E2 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: E2 FD 00 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: E2 FD 00 E5 6C 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 A2 [00:35:40]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E9 BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 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 90 00 [00:35:40]wFMCommunicate OK [00:35:40]wFMCommunicate request_size=4 [00:35:40]MH_SAM_APDU [00:35:40]CAPDU: 80 17 00 00 [00:35:40]Write to MH i2c: E2 08 00 E6 6C 80 17 00 00 00 00 00 00 D2 [00:35:40]Write i2c OK [00:35:40]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 FD 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 FD 00 E6 6C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 76 [00:35:41]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:35:41]wFMCommunicate OK [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 17 00 00 [00:35:41]Write to MH i2c: E2 08 00 E7 6C 80 17 00 00 00 00 00 00 D3 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 FD 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 FD 00 E7 6C 00 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:35:41]RAPDU: 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:41]wFMCommunicate OK [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 17 00 00 [00:35:41]Write to MH i2c: E2 08 00 E8 6C 80 17 00 00 00 00 00 00 D4 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 DC 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 DC 00 E8 6C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B8 [00:35:42]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:42]wFMCommunicate OK [00:35:42]SAM_PROTO_GetFMData done [00:35:42]requested_item fm.sale_refund.total is exist - process it [00:35:42]requested_item fm.buy.total is exist - process it [00:35:42]requested_item shift.sale.total is exist - process it [00:35:42]SAM_PROTO_GetShiftData [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 13 02 00 [00:35:42]Write to MH i2c: E2 08 00 E9 6C 80 13 02 00 00 00 00 00 D3 [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:42]Read from MH i2c: E2 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 E9 6C 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 46 [00:35:42]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:35:42]wFMCommunicate OK [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 17 00 00 [00:35:42]Write to MH i2c: E2 08 00 EA 6C 80 17 00 00 00 00 00 00 D6 [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 EA 6C 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 DE [00:35:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 17 00 00 [00:35:43]Write to MH i2c: E2 08 00 EB 6C 80 17 00 00 00 00 00 00 D7 [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 EB 6C 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 A9 [00:35:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 17 00 00 [00:35:43]Write to MH i2c: E2 08 00 EC 6C 80 17 00 00 00 00 00 00 D8 [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 EC 6C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 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 4A [00:35:44]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:35:44]wFMCommunicate OK [00:35:44]wFMCommunicate request_size=4 [00:35:44]MH_SAM_APDU [00:35:44]CAPDU: 80 17 00 00 [00:35:44]Write to MH i2c: E2 08 00 ED 6C 80 17 00 00 00 00 00 00 D9 [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]OFD Sender: No OFD packet to send [00:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:44]Read from MH i2c: E2 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: E2 BD 00 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: E2 BD 00 ED 6C 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 BF [00:35:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:44]wFMCommunicate OK [00:35:44]SAM_PROTO_GetShiftData done [00:35:44]requested_item shift.sale.total_cash is exist - process it [00:35:44]requested_item shift.sale_refund.total is exist - process it [00:35:44]requested_item shift.sale_refund.total_cash is exist - process it [00:35:44]requested_item shift.buy.total is exist - process it [00:35:44]requested_item shift.buy.total_cash is exist - process it [00:35:44]produce_requested_data done [00:35:44]produce_requested_data return {"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:44]process_action_free get_value [00:35:44]json_value_free [00:35:44]json_value_free done [00:35:44]process_json_proto returns [00:35:44]Send response to host [00:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":27688552.11,"fm.sale_refund.total":54066.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:44]free response buf [00:35:44]execute_script done [00:35:44]execute_script returns [00:35:44]free content buf [00:35:44]Sock 9.Close socket [00:35:44]Sock 9.Thread stoped [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:08]accept exits with 7 [00:38:08]New connection [00:38:08]New thread 3067489636 created [00:38:08]Thread 3067346276 joined [00:38:08]Waiting for new connection... [00:38:08] Sock 7.Parse request [00:38:08]Sock 7.Check first char [00:38:08]Sock 7.First char is OK [00:38:08]request: POST /json_proto HTTP/1.0 [00:38:08]Method: POST [00:38:08]URL: /json_proto [00:38:08]Method is POST - this is cgi request [00:38:08]url: /json_proto [00:38:08]query_string will be loaded in cgi processing [00:38:08]execute_cgi json_proto POST (null) [00:38:08]execute_cgi path=json_proto method=POST [00:38:08]POST find Content-Length [00:38:08]Host: 172.17.51.3:8080 [00:38:08]Content-Length: 840 [00:38:08]Content-Type: application/json [00:38:08] [00:38:08]POST finish read [00:38:08]Found Content-Length = 840 [00:38:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:08]execute_script... [00:38:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:08]POST & json_proto [00:38:08]process_json_proto [00:38:08]json parsed OK: [00:38:08]protocol is kg_v1.0 [00:38:08]action value=close_receipt [00:38:08]process_action close_receipt [00:38:08]cmd_close_receipt [00:38:08]MH_GetDate [00:38:08]Write to MH i2c: F0 00 00 EE 6C 49 [00:38:08]Write i2c OK [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: F0 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: F0 09 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: F0 09 00 EE 6C 00 F8 F3 16 67 04 C1 95 66 7A [00:38:08]GetLastDocTimeStamp 1729557342 [00:38:08]current date 1729557496 [00:38:08]FM_GetShiftState [00:38:08]SAM_PROTO_GetShiftState [00:38:08]wFMCommunicate request_size=4 [00:38:08]MH_SAM_APDU [00:38:08]CAPDU: 80 13 01 00 [00:38:08]Write to MH i2c: E2 08 00 EF 6C 80 13 01 00 00 00 00 00 D8 [00:38:08]Write i2c OK [00:38:08]MH_I2C_Read... [00:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:08]Read from MH i2c: E2 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 0E 00 [00:38:08]MH_I2C_Read... [00:38:08]Read from MH i2c: E2 0E 00 EF 6C 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 B2 [00:38:08]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:38:08]wFMCommunicate OK [00:38:08]SAM_PROTO_GetShiftState done [00:38:08]FM_GetShiftState done [00:38:08]opened in 1729557342 [00:38:08]opened+sec_in_day 1729643742 [00:38:08]quantity*price = 20003 [00:38:08]sum+1 = 20004 [00:38:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 1 22.10.2024 00:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30768 ФПД: 19472816836036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30768&fm=19472816836036&tin=02508201610067®Number=0000000000186857&sum=20003 [00:38:09]StoreToDocumentArchive [00:38:09]shift 116 fd 30768 [00:38:09]save to /storage/0116/doc_00030768 [00:38:09]save last doc name /storage/0116/doc_00030768 to /storage/kkm_last_doc_name [00:38:09]save OK [00:38:09]Clear old archive folders... [00:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:09]tlvbuf is 01E490A0 [00:38:09]SAM_PROTO_ClearQueue [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 09 00 00 [00:38:09]Write to MH i2c: E2 08 00 FC 6C 80 09 00 00 00 00 00 00 DA [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 FC 6C 00 90 00 DC [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]SAM_PROTO_ClearQueue done [00:38:09]KKMCreateOFDPacket [00:38:09]OFDProtocolAddRootSTLVToBuf [00:38:09]FM_MakeSignedData [00:38:09]FM_MakeSignedData [00:38:09]SAM_PROTO_SignData [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 01 02 [00:38:09]Write to MH i2c: E2 08 00 FD 6C 80 0D 01 02 00 00 00 00 E2 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 FD 6C 00 90 00 DD [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]wFMCommunicate request_size=255 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 F3 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 78 00 00 35 04 06 00 11 [00:38:09]Write to MH i2c: E2 02 01 FE 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 F3 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 78 00 00 35 04 06 00 11 00 00 D1 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:10]Read from MH i2c: E2 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 03 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 03 00 FE 6C 00 90 00 DE [00:38:10]RAPDU: 90 00 [00:38:10]wFMCommunicate OK [00:38:10]wFMCommunicate request_size=10 [00:38:10]MH_SAM_APDU [00:38:10]CAPDU: 80 0D 02 02 05 B5 DE 54 8D C4 [00:38:10]Write to MH i2c: E2 0D 00 FF 6C 80 0D 02 02 05 00 B5 DE 54 8D C4 00 00 27 [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:10]Read from MH i2c: E2 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 03 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 03 00 FF 6C 00 90 00 DF [00:38:10]RAPDU: 90 00 [00:38:10]wFMCommunicate OK [00:38:10]wFMCommunicate request_size=4 [00:38:10]MH_SAM_APDU [00:38:10]CAPDU: 80 0D 03 02 [00:38:10]Write to MH i2c: E2 08 00 00 6D 80 0D 03 02 00 00 00 00 E8 [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:10]Read from MH i2c: E2 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 0B 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 0B 00 00 6D 00 1B 80 BB A0 AE 3D 3F E4 90 00 ED [00:38:10]RAPDU: 1B 80 BB A0 AE 3D 3F E4 90 00 [00:38:10]wFMCommunicate OK [00:38:10]SAM_PROTO_SignData done [00:38:10]FM_MakeSignedData done [00:38:10]CreateOFDProtocolMessage [00:38:10]wFMCommunicate request_size=4 [00:38:10]MH_SAM_APDU [00:38:10]CAPDU: 80 11 00 00 [00:38:10]Write to MH i2c: E2 08 00 01 6D 80 11 00 00 00 00 00 00 E8 [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:10]Read from MH i2c: E2 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 17 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: E2 17 00 01 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 36 [00:38:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:38:10]wFMCommunicate OK [00:38:10]CreateOFDProtocolMessage done [00:38:10]OFDSenderStorePacket 30768 [00:38:10]StoreOFDPacket docnum=30768 [00:38:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 23 07 07 01 9F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 F3 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 78 00 00 35 04 06 00 11 B5 DE 54 8D C4 1B 80 BB A0 AE 3D 3F E4 [00:38:10]CheckFolder [00:38:10]dirname=/storage/ofd_packets [00:38:10]CheckFolder done [00:38:10]ProducePacketName [00:38:10]name=ofd_packets/00030768 [00:38:10]NVStorageSaveData ofd_packets/00030768 [00:38:10]File name is /storage/ofd_packets/00030768 [00:38:10]Write 301 bytes [00:38:10]NVStorageSaveData done [00:38:10]OFDSenderStorePacket done [00:38:10]KKMCreateOFDPacket done [00:38:10]NVStorageSaveData kkm_last_timestamp [00:38:10]File name is /storage/kkm_last_timestamp [00:38:10]Write 4 bytes [00:38:10]NVStorageSaveData done [00:38:10]ExternCall_PrintAddStr [00:38:10]wPrintStart [00:38:10]Write to MH i2c: 01 00 00 02 6D 6F [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 07 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 07 00 02 6D 00 00 00 00 00 FF 0F 84 [00:38:10]RasterBufferAndPrint [00:38:10]line Счет N : (1)343185 [00:38:10]line ИНН: 02508201610067 [00:38:10]line Контрольно-Кассовый Чек [00:38:10]line ПРОДАЖА [00:38:10]line ТРК (МРК, ГНК) : 53 [00:38:10]line Товар: 2710124130 [00:38:10]line Аи-92-К-2 [00:38:10]line 2.990 * 66.90 [00:38:10]line = 200.03 [00:38:10]line НДС 12% НСП 1% [00:38:10]line > о реализуемом товаре [00:38:10]line ИТОГО: 200.03 [00:38:10]line НСП 1% : 1.77 [00:38:10]line НДС 12% : 21.24 [00:38:10]line Наличными: 0.00 [00:38:10]line Безнал.: 200.03 [00:38:10]line Место: АЗС № 78 "Партнер Нефть" [00:38:10]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:38:10]line СНО: Общий режим [00:38:10]line Чек 1 22.10.2024 00:38 [00:38:10]line Смена: 116 ФФД: 1.0 [00:38:10]line ЗНМ: 0300000137 [00:38:10]line РНМ: 0000000000186857 [00:38:10]line Версия ККМ: v1.0 [00:38:10]line Платежная система: АКБ Кыргызстан [00:38:10]line ФМ: 0000000002094219 [00:38:10]line ФД: 30768 [00:38:10]line ФПД: 19472816836036 [00:38:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003816&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30768&fm=19472816836036&tin=02508201610067®Number=0000000000186857&sum=20003 [00:38:10]OFD Sender: Processing packet 30768 [packets to send 10, broken 9] [00:38:10]ProducePacketName [00:38:10]name=ofd_packets/00030768 [00:38:10]OFD Sender: To server: pG, [00:38:10]CommunicateWithHost lk.salyk.kg:30040 [00:38:10]ConnectInit lk.salyk.kg [00:38:10]written 0, free lines is 4095 [00:38:10]Connected sock=10 [00:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 23 07 07 01 9F 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 F3 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 78 00 00 35 04 06 00 11 B5 DE 54 8D C4 1B 80 BB A0 AE 3D 3F E4 [00:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 23 B5 47 00 CC 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 30 78 00 00 F4 03 04 00 77 9E 16 67 B6 04 01 00 00 A0 A1 6D 5E 33 35 4D 27 [00:38:10]CommunicateWithHost err = 0 [00:38:10]CheckOFDResponse [00:38:10]1017 (14) - 77093643461234 [00:38:10]1041 (16) - 0000000002094219 [00:38:10]1040 (4) - 30768 [00:38:10]1012 (4) - 21.10.2024 18:33 [00:38:10]1206 (1) - 0 [00:38:10]OFD Sender: Remove packet 30768 [00:38:10]ProducePacketName [00:38:10]name=ofd_packets/00030768 [00:38:10]NVStorageDeleteData [00:38:11]Write to MH i2c: 01 00 00 2C 6D 99 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: 01 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: 01 07 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: 01 07 00 2C 6D 00 00 00 00 00 09 0D B6 [00:38:11]RasterBufferAndPrint [00:38:11]line [00:38:11]line [00:38:11]line [00:38:11]line [00:38:11]line [00:38:11]written 0, free lines is 3348 [00:38:11]MH_Cut [00:38:11]Write to MH i2c: D1 01 00 33 6D 01 72 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: D1 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: D1 01 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: D1 01 00 33 6D 00 71 [00:38:11]Write to MH i2c: 01 00 00 34 6D A1 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]OFD Sender: No OFD packet to send [00:38:11]*** Cut start [00:38:11]*** Partial cut [00:38:11]*** CUTSNS_PIN = 1 [00:38:11]*** CUTSNS_PIN = 0 [00:38:12]*** Brake cut motor [00:38:12]Read from MH i2c: 01 [00:38:12]MH_I2C_Read... [00:38:12]*** Stop cut motor [00:38:12]*** Cut end [00:38:12]Read from MH i2c: 01 07 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: 01 07 00 34 6D 00 00 00 00 00 FF 0F B6 [00:38:12]process_action close_receipt done [00:38:12]requested_data is exist [00:38:12]produce_requested_data [00:38:12]requested_item fm.sn is exist - process it [00:38:12]wFMCommunicate request_size=4 [00:38:12]MH_SAM_APDU [00:38:12]CAPDU: 80 11 00 00 [00:38:12]Write to MH i2c: E2 08 00 35 6D 80 11 00 00 00 00 00 00 1C [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:12]Read from MH i2c: E2 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 17 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 17 00 35 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 6A [00:38:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:38:12]wFMCommunicate OK [00:38:12]requested_item fd.num is exist - process it [00:38:12]SAM_PROTO_GetFieldsCounters [00:38:12]wFMCommunicate request_size=4 [00:38:12]MH_SAM_APDU [00:38:12]CAPDU: 80 13 00 00 [00:38:12]Write to MH i2c: E2 08 00 36 6D 80 13 00 00 00 00 00 00 1F [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:12]Read from MH i2c: E2 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 62 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 62 00 36 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [00:38:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 30 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:12]wFMCommunicate OK [00:38:12]SAM_PROTO_GetFieldsCounters done [00:38:12]requested_item shift.num is exist - process it [00:38:12]requested_item shift.opened is exist - process it [00:38:12]req_shift_opened [00:38:12]FM_GetShiftState [00:38:12]SAM_PROTO_GetShiftState [00:38:12]wFMCommunicate request_size=4 [00:38:12]MH_SAM_APDU [00:38:12]CAPDU: 80 13 01 00 [00:38:12]Write to MH i2c: E2 08 00 37 6D 80 13 01 00 00 00 00 00 21 [00:38:12]Write i2c OK [00:38:12]MH_I2C_Read... [00:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:12]Read from MH i2c: E2 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 0E 00 [00:38:12]MH_I2C_Read... [00:38:12]Read from MH i2c: E2 0E 00 37 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FB [00:38:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:38:12]wFMCommunicate OK [00:38:12]SAM_PROTO_GetShiftState done [00:38:12]FM_GetShiftState done [00:38:12]req_shift_opened done [00:38:12]requested_item shift.open_date is exist - process it [00:38:12]req_shift_open_date [00:38:12]req_shift_open_date done [00:38:12]produce_requested_data done [00:38:12]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30768,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:38:12]process_action_free close_receipt [00:38:12]json_value_free [00:38:12]json_value_free done [00:38:12]process_json_proto returns [00:38:12]Send response to host [00:38:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30768,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:38:12]free response buf [00:38:12]execute_script done [00:38:12]execute_script returns [00:38:12]free content buf [00:38:12]Sock 7.Close socket [00:38:12]Sock 7.Thread stoped [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:30]accept exits with 9 [00:38:30]New connection [00:38:30]New thread 3067346276 created [00:38:30]Thread 3067489636 joined [00:38:30]Waiting for new connection... [00:38:30] Sock 9.Parse request [00:38:30]Sock 9.Check first char [00:38:30]Sock 9.First char is OK [00:38:30]request: POST /json_proto HTTP/1.0 [00:38:30]Method: POST [00:38:30]URL: /json_proto [00:38:30]Method is POST - this is cgi request [00:38:30]url: /json_proto [00:38:30]query_string will be loaded in cgi processing [00:38:30]execute_cgi json_proto POST (null) [00:38:30]execute_cgi path=json_proto method=POST [00:38:30]POST find Content-Length [00:38:30]Host: 172.17.51.3:8080 [00:38:30]Content-Length: 677 [00:38:30]Content-Type: application/json [00:38:30] [00:38:30]POST finish read [00:38:30]Found Content-Length = 677 [00:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:30]execute_script... [00:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:30]POST & json_proto [00:38:30]process_json_proto [00:38:30]json parsed OK: [00:38:30]protocol is kg_v1.0 [00:38:30]action value=close_receipt [00:38:30]process_action close_receipt [00:38:30]cmd_close_receipt [00:38:30]MH_GetDate [00:38:30]Write to MH i2c: F0 00 00 38 6D 94 [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 09 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: F0 09 00 38 6D 00 0D F4 16 67 04 C1 95 66 DB [00:38:30]GetLastDocTimeStamp 1729557496 [00:38:30]current date 1729557517 [00:38:30]FM_GetShiftState [00:38:30]SAM_PROTO_GetShiftState [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 13 01 00 [00:38:30]Write to MH i2c: E2 08 00 39 6D 80 13 01 00 00 00 00 00 23 [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:30]Read from MH i2c: E2 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 0E 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 0E 00 39 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 FD [00:38:30]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:38:30]wFMCommunicate OK [00:38:30]SAM_PROTO_GetShiftState done [00:38:30]FM_GetShiftState done [00:38:30]opened in 1729557342 [00:38:30]opened+sec_in_day 1729643742 [00:38:30]quantity*price = 27027 [00:38:30]sum+1 = 27029 [00:38:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 2 22.10.2024 00:38 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30769 ФПД: 108820678336917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003837&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30769&fm=108820678336917&tin=02508201610067®Number=0000000000186857&sum=27000 [00:38:31]StoreToDocumentArchive [00:38:31]shift 116 fd 30769 [00:38:31]save to /storage/0116/doc_00030769 [00:38:31]save last doc name /storage/0116/doc_00030769 to /storage/kkm_last_doc_name [00:38:31]save OK [00:38:31]Clear old archive folders... [00:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:31]tlvbuf is 01FC0A40 [00:38:31]SAM_PROTO_ClearQueue [00:38:31]wFMCommunicate request_size=4 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 09 00 00 [00:38:31]Write to MH i2c: E2 08 00 46 6D 80 09 00 00 00 00 00 00 25 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 46 6D 00 90 00 27 [00:38:31]RAPDU: 90 00 [00:38:31]wFMCommunicate OK [00:38:31]SAM_PROTO_ClearQueue done [00:38:31]KKMCreateOFDPacket [00:38:31]OFDProtocolAddRootSTLVToBuf [00:38:31]FM_MakeSignedData [00:38:31]FM_MakeSignedData [00:38:31]SAM_PROTO_SignData [00:38:31]wFMCommunicate request_size=4 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 0D 01 02 [00:38:31]Write to MH i2c: E2 08 00 47 6D 80 0D 01 02 00 00 00 00 2D [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 47 6D 00 90 00 28 [00:38:31]RAPDU: 90 00 [00:38:31]wFMCommunicate OK [00:38:31]wFMCommunicate request_size=255 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0D F4 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 78 00 00 35 04 06 00 62 [00:38:31]Write to MH i2c: E2 02 01 48 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0D F4 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 78 00 00 35 04 06 00 62 00 00 3A [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]OFD Sender: No OFD packet to send [00:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 48 6D 00 90 00 29 [00:38:31]RAPDU: 90 00 [00:38:31]wFMCommunicate OK [00:38:31]wFMCommunicate request_size=10 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 0D 02 02 05 F8 C9 E0 61 95 [00:38:31]Write to MH i2c: E2 0D 00 49 6D 80 0D 02 02 05 00 F8 C9 E0 61 95 00 00 D1 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 03 00 49 6D 00 90 00 2A [00:38:31]RAPDU: 90 00 [00:38:31]wFMCommunicate OK [00:38:31]wFMCommunicate request_size=4 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 0D 03 02 [00:38:31]Write to MH i2c: E2 08 00 4A 6D 80 0D 03 02 00 00 00 00 32 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0B 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0B 00 4A 6D 00 2E 08 FD 69 46 75 D5 35 90 00 94 [00:38:31]RAPDU: 2E 08 FD 69 46 75 D5 35 90 00 [00:38:31]wFMCommunicate OK [00:38:31]SAM_PROTO_SignData done [00:38:31]FM_MakeSignedData done [00:38:31]CreateOFDProtocolMessage [00:38:31]wFMCommunicate request_size=4 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 11 00 00 [00:38:31]Write to MH i2c: E2 08 00 4B 6D 80 11 00 00 00 00 00 00 32 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 17 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 17 00 4B 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 80 [00:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:38:31]wFMCommunicate OK [00:38:31]CreateOFDProtocolMessage done [00:38:31]OFDSenderStorePacket 30769 [00:38:31]StoreOFDPacket docnum=30769 [00:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 31 07 01 6F 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0D F4 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 78 00 00 35 04 06 00 62 F8 C9 E0 61 95 2E 08 FD 69 46 75 D5 35 [00:38:31]CheckFolder [00:38:31]dirname=/storage/ofd_packets [00:38:31]CheckFolder done [00:38:31]ProducePacketName [00:38:31]name=ofd_packets/00030769 [00:38:31]NVStorageSaveData ofd_packets/00030769 [00:38:31]File name is /storage/ofd_packets/00030769 [00:38:31]Write 301 bytes [00:38:31]NVStorageSaveData done [00:38:31]OFDSenderStorePacket done [00:38:31]KKMCreateOFDPacket done [00:38:31]NVStorageSaveData kkm_last_timestamp [00:38:31]File name is /storage/kkm_last_timestamp [00:38:31]Write 4 bytes [00:38:31]NVStorageSaveData done [00:38:31]ExternCall_PrintAddStr [00:38:31]wPrintStart [00:38:31]Write to MH i2c: 01 00 00 4C 6D B9 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: 01 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: 01 07 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: 01 07 00 4C 6D 00 00 00 00 00 FF 0F CE [00:38:31]RasterBufferAndPrint [00:38:31]line Счет N : (1)343186 [00:38:31]line ИНН: 02508201610067 [00:38:31]line Контрольно-Кассовый Чек [00:38:31]line ПРОДАЖА [00:38:31]line ТРК (МРК, ГНК) : 53 [00:38:31]line Товар: 2710124130 [00:38:31]line Аи-92-К-2 [00:38:31]line 4.040 * 66.90 [00:38:31]line = 270.28 [00:38:31]line НДС 12% НСП 1% [00:38:31]line > о реализуемом товаре [00:38:31]line ОКРУГЛЕНИЕ: -0.28 [00:38:31]line ИТОГО: 270.00 [00:38:31]line Внесено: 270.00 [00:38:31]line СДАЧА: 0.00 [00:38:31]line НСП 1% : 2.39 [00:38:31]line НДС 12% : 28.70 [00:38:31]line Наличными: 270.00 [00:38:31]line Безнал.: 0.00 [00:38:31]line Место: АЗС № 78 "Партнер Нефть" [00:38:31]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:38:31]line СНО: Общий режим [00:38:31]line Чек 2 22.10.2024 00:38 [00:38:31]line Смена: 116 ФФД: 1.0 [00:38:31]line ЗНМ: 0300000137 [00:38:31]line РНМ: 0000000000186857 [00:38:31]line Версия ККМ: v1.0 [00:38:31]line ФМ: 0000000002094219 [00:38:31]line ФД: 30769 [00:38:31]line ФПД: 108820678336917 [00:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T003837&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30769&fm=108820678336917&tin=02508201610067®Number=0000000000186857&sum=27000 [00:38:32]OFD Sender: Processing packet 30769 [packets to send 10, broken 9] [00:38:32]ProducePacketName [00:38:32]name=ofd_packets/00030769 [00:38:32]OFD Sender: To server: pG, [00:38:32]CommunicateWithHost lk.salyk.kg:30040 [00:38:32]ConnectInit lk.salyk.kg [00:38:32]written 0, free lines is 4095 [00:38:32]Connected sock=10 [00:38:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 B6 31 07 01 6F 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 0D F4 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 31 78 00 00 35 04 06 00 62 F8 C9 E0 61 95 2E 08 FD 69 46 75 D5 35 [00:38:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 F9 E8 47 00 23 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 32 30 39 34 32 31 39 10 04 04 00 31 78 00 00 F4 03 04 00 8C 9E 16 67 B6 04 01 00 00 81 32 BE 7B 30 BC DF D8 [00:38:32]CommunicateWithHost err = 0 [00:38:32]CheckOFDResponse [00:38:32]1017 (14) - 77093643461234 [00:38:32]1041 (16) - 0000000002094219 [00:38:32]1040 (4) - 30769 [00:38:32]1012 (4) - 21.10.2024 18:33 [00:38:32]1206 (1) - 0 [00:38:32]OFD Sender: Remove packet 30769 [00:38:32]ProducePacketName [00:38:32]name=ofd_packets/00030769 [00:38:32]NVStorageDeleteData [00:38:32]Write to MH i2c: 01 00 00 77 6D E4 [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 07 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: 01 07 00 77 6D 00 00 00 00 00 EE 0C E5 [00:38:32]RasterBufferAndPrint [00:38:32]line [00:38:32]line [00:38:32]line [00:38:32]line [00:38:32]line [00:38:32]written 0, free lines is 3316 [00:38:32]MH_Cut [00:38:32]Write to MH i2c: D1 01 00 7E 6D 01 BD [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: D1 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: D1 01 00 [00:38:32]MH_I2C_Read... [00:38:32]Read from MH i2c: D1 01 00 7E 6D 00 BC [00:38:32]Write to MH i2c: 01 00 00 7F 6D EC [00:38:32]Write i2c OK [00:38:32]MH_I2C_Read... [00:38:32]OFD Sender: No OFD packet to send [00:38:33]*** Cut start [00:38:33]*** Partial cut [00:38:33]*** CUTSNS_PIN = 1 [00:38:33]*** CUTSNS_PIN = 0 [00:38:33]*** Brake cut motor [00:38:33]Read from MH i2c: 01 [00:38:33]MH_I2C_Read... [00:38:33]*** Stop cut motor [00:38:33]*** Cut end [00:38:33]Read from MH i2c: 01 07 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: 01 07 00 7F 6D 00 00 00 00 00 FF 0F 01 [00:38:33]process_action close_receipt done [00:38:33]requested_data is exist [00:38:33]produce_requested_data [00:38:33]requested_item fm.sn is exist - process it [00:38:33]wFMCommunicate request_size=4 [00:38:33]MH_SAM_APDU [00:38:33]CAPDU: 80 11 00 00 [00:38:33]Write to MH i2c: E2 08 00 80 6D 80 11 00 00 00 00 00 00 67 [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:33]Read from MH i2c: E2 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 17 00 [00:38:33]MH_I2C_Read... [00:38:33]Read from MH i2c: E2 17 00 80 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 B5 [00:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:38:33]wFMCommunicate OK [00:38:33]requested_item fd.num is exist - process it [00:38:33]SAM_PROTO_GetFieldsCounters [00:38:33]wFMCommunicate request_size=4 [00:38:33]MH_SAM_APDU [00:38:33]CAPDU: 80 13 00 00 [00:38:33]Write to MH i2c: E2 08 00 81 6D 80 13 00 00 00 00 00 00 6A [00:38:33]Write i2c OK [00:38:33]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 62 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 62 00 81 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [00:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 31 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:34]wFMCommunicate OK [00:38:34]SAM_PROTO_GetFieldsCounters done [00:38:34]requested_item shift.num is exist - process it [00:38:34]requested_item shift.opened is exist - process it [00:38:34]req_shift_opened [00:38:34]FM_GetShiftState [00:38:34]SAM_PROTO_GetShiftState [00:38:34]wFMCommunicate request_size=4 [00:38:34]MH_SAM_APDU [00:38:34]CAPDU: 80 13 01 00 [00:38:34]Write to MH i2c: E2 08 00 82 6D 80 13 01 00 00 00 00 00 6C [00:38:34]Write i2c OK [00:38:34]MH_I2C_Read... [00:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:34]Read from MH i2c: E2 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0E 00 [00:38:34]MH_I2C_Read... [00:38:34]Read from MH i2c: E2 0E 00 82 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 46 [00:38:34]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:38:34]wFMCommunicate OK [00:38:34]SAM_PROTO_GetShiftState done [00:38:34]FM_GetShiftState done [00:38:34]req_shift_opened done [00:38:34]requested_item shift.open_date is exist - process it [00:38:34]req_shift_open_date [00:38:34]req_shift_open_date done [00:38:34]produce_requested_data done [00:38:34]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30769,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:38:34]process_action_free close_receipt [00:38:34]json_value_free [00:38:34]json_value_free done [00:38:34]process_json_proto returns [00:38:34]Send response to host [00:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30769,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:38:34]free response buf [00:38:34]execute_script done [00:38:34]execute_script returns [00:38:34]free content buf [00:38:34]Sock 9.Close socket [00:38:34]Sock 9.Thread stoped [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:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]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: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:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:43]accept exits with 7 [00:50:43]New connection [00:50:43]New thread 3067489636 created [00:50:43]Thread 3067346276 joined [00:50:43]Waiting for new connection... [00:50:43] Sock 7.Parse request [00:50:43]Sock 7.Check first char [00:50:43]Sock 7.First char is OK [00:50:43]request: POST /json_proto HTTP/1.0 [00:50:43]Method: POST [00:50:43]URL: /json_proto [00:50:43]Method is POST - this is cgi request [00:50:43]url: /json_proto [00:50:43]query_string will be loaded in cgi processing [00:50:43]execute_cgi json_proto POST (null) [00:50:43]execute_cgi path=json_proto method=POST [00:50:43]POST find Content-Length [00:50:43]Host: 172.17.51.3:8080 [00:50:43]Content-Length: 843 [00:50:43]Content-Type: application/json [00:50:43] [00:50:43]POST finish read [00:50:43]Found Content-Length = 843 [00:50:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:43]execute_script... [00:50:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:43]POST & json_proto [00:50:43]process_json_proto [00:50:43]json parsed OK: [00:50:43]protocol is kg_v1.0 [00:50:43]action value=close_receipt [00:50:43]process_action close_receipt [00:50:43]cmd_close_receipt [00:50:43]MH_GetDate [00:50:43]Write to MH i2c: F0 00 00 83 6D DF [00:50:43]Write i2c OK [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: F0 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: F0 09 00 [00:50:43]MH_I2C_Read... [00:50:43]Read from MH i2c: F0 09 00 83 6D 00 EB F6 16 67 04 C1 95 66 06 [00:50:43]GetLastDocTimeStamp 1729557517 [00:50:43]current date 1729558251 [00:50:43]FM_GetShiftState [00:50:43]SAM_PROTO_GetShiftState [00:50:43]wFMCommunicate request_size=4 [00:50:43]MH_SAM_APDU [00:50:43]CAPDU: 80 13 01 00 [00:50:43]Write to MH i2c: E2 08 00 84 6D 80 13 01 00 00 00 00 00 6E [00:50:43]Write i2c OK [00:50:43]MH_I2C_Read... [00:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:44]Read from MH i2c: E2 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 0E 00 [00:50:44]MH_I2C_Read... [00:50:44]Read from MH i2c: E2 0E 00 84 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 48 [00:50:44]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:50:44]wFMCommunicate OK [00:50:44]SAM_PROTO_GetShiftState done [00:50:44]FM_GetShiftState done [00:50:44]opened in 1729557342 [00:50:44]opened+sec_in_day 1729643742 [00:50:44]quantity*price = 100015 [00:50:44]sum+1 = 100017 [00:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 3 22.10.2024 00:50 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30770 ФПД: 147372021492880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005051&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30770&fm=147372021492880&tin=02508201610067®Number=0000000000186857&sum=100016 [00:50:45]StoreToDocumentArchive [00:50:45]shift 116 fd 30770 [00:50:45]save to /storage/0116/doc_00030770 [00:50:45]save last doc name /storage/0116/doc_00030770 to /storage/kkm_last_doc_name [00:50:45]save OK [00:50:45]Clear old archive folders... [00:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:45]tlvbuf is 01E55C60 [00:50:45]SAM_PROTO_ClearQueue [00:50:45]wFMCommunicate request_size=4 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 09 00 00 [00:50:45]Write to MH i2c: E2 08 00 91 6D 80 09 00 00 00 00 00 00 70 [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 91 6D 00 90 00 72 [00:50:45]RAPDU: 90 00 [00:50:45]wFMCommunicate OK [00:50:45]SAM_PROTO_ClearQueue done [00:50:45]KKMCreateOFDPacket [00:50:45]OFDProtocolAddRootSTLVToBuf [00:50:45]FM_MakeSignedData [00:50:45]FM_MakeSignedData [00:50:45]SAM_PROTO_SignData [00:50:45]wFMCommunicate request_size=4 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 0D 01 02 [00:50:45]Write to MH i2c: E2 08 00 92 6D 80 0D 01 02 00 00 00 00 78 [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 92 6D 00 90 00 73 [00:50:45]RAPDU: 90 00 [00:50:45]wFMCommunicate OK [00:50:45]wFMCommunicate request_size=255 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB F6 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 78 00 00 35 04 06 00 86 [00:50:45]Write to MH i2c: E2 02 01 93 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB F6 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 78 00 00 35 04 06 00 86 00 00 28 [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 93 6D 00 90 00 74 [00:50:45]RAPDU: 90 00 [00:50:45]wFMCommunicate OK [00:50:45]wFMCommunicate request_size=10 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 0D 02 02 05 08 B8 FD AC 90 [00:50:45]Write to MH i2c: E2 0D 00 94 6D 80 0D 02 02 05 00 08 B8 FD AC 90 00 00 7E [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 03 00 94 6D 00 90 00 75 [00:50:45]RAPDU: 90 00 [00:50:45]wFMCommunicate OK [00:50:45]wFMCommunicate request_size=4 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 0D 03 02 [00:50:45]Write to MH i2c: E2 08 00 95 6D 80 0D 03 02 00 00 00 00 7D [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 0B 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 0B 00 95 6D 00 97 0E F8 E3 CD B3 8B 06 90 00 0F [00:50:45]RAPDU: 97 0E F8 E3 CD B3 8B 06 90 00 [00:50:45]wFMCommunicate OK [00:50:45]SAM_PROTO_SignData done [00:50:45]FM_MakeSignedData done [00:50:45]CreateOFDProtocolMessage [00:50:45]wFMCommunicate request_size=4 [00:50:45]MH_SAM_APDU [00:50:45]CAPDU: 80 11 00 00 [00:50:45]Write to MH i2c: E2 08 00 96 6D 80 11 00 00 00 00 00 00 7D [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:45]Read from MH i2c: E2 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 17 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: E2 17 00 96 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 CB [00:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:50:45]wFMCommunicate OK [00:50:45]CreateOFDProtocolMessage done [00:50:45]OFDSenderStorePacket 30770 [00:50:45]StoreOFDPacket docnum=30770 [00:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 44 07 01 D2 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB F6 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 78 00 00 35 04 06 00 86 08 B8 FD AC 90 97 0E F8 E3 CD B3 8B 06 [00:50:45]CheckFolder [00:50:45]dirname=/storage/ofd_packets [00:50:45]CheckFolder done [00:50:45]ProducePacketName [00:50:45]name=ofd_packets/00030770 [00:50:45]NVStorageSaveData ofd_packets/00030770 [00:50:45]File name is /storage/ofd_packets/00030770 [00:50:45]Write 301 bytes [00:50:45]NVStorageSaveData done [00:50:45]OFDSenderStorePacket done [00:50:45]KKMCreateOFDPacket done [00:50:45]NVStorageSaveData kkm_last_timestamp [00:50:45]File name is /storage/kkm_last_timestamp [00:50:45]Write 4 bytes [00:50:45]NVStorageSaveData done [00:50:45]ExternCall_PrintAddStr [00:50:45]wPrintStart [00:50:45]Write to MH i2c: 01 00 00 97 6D 04 [00:50:45]Write i2c OK [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: 01 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: 01 07 00 [00:50:45]MH_I2C_Read... [00:50:45]Read from MH i2c: 01 07 00 97 6D 00 00 00 00 00 FF 0F 19 [00:50:45]RasterBufferAndPrint [00:50:45]line Счет N : (1)343187 [00:50:45]line ИНН: 02508201610067 [00:50:45]line Контрольно-Кассовый Чек [00:50:45]line ПРОДАЖА [00:50:45]line ТРК (МРК, ГНК) : 63 [00:50:45]line Товар: 2710124130 [00:50:45]line Аи-92-К-2 [00:50:45]line 14.950 * 66.90 [00:50:45]line = 1000.16 [00:50:45]line НДС 12% НСП 1% [00:50:45]line > о реализуемом товаре [00:50:45]line ИТОГО: 1000.16 [00:50:45]line НСП 1% : 8.85 [00:50:45]line НДС 12% : 106.21 [00:50:45]line Наличными: 0.00 [00:50:45]line Безнал.: 1000.16 [00:50:45]line Место: АЗС № 78 "Партнер Нефть" [00:50:45]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:50:45]line СНО: Общий режим [00:50:45]line Чек 3 22.10.2024 00:50 [00:50:45]line Смена: 116 ФФД: 1.0 [00:50:45]line ЗНМ: 0300000137 [00:50:45]line РНМ: 0000000000186857 [00:50:45]line Версия ККМ: v1.0 [00:50:45]line Платежная система: АКБ Кыргызстан [00:50:45]line ФМ: 0000000002094219 [00:50:45]line ФД: 30770 [00:50:45]line ФПД: 147372021492880 [00:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005051&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30770&fm=147372021492880&tin=02508201610067®Number=0000000000186857&sum=100016 [00:50:46]OFD Sender: Processing packet 30770 [packets to send 10, broken 9] [00:50:46]ProducePacketName [00:50:46]name=ofd_packets/00030770 [00:50:46]OFD Sender: To server: pG, [00:50:46]CommunicateWithHost lk.salyk.kg:30040 [00:50:46]ConnectInit lk.salyk.kg [00:50:46]written 0, free lines is 4095 [00:50:46]Connected sock=10 [00:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 9F 44 07 01 D2 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 EB F6 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 78 00 00 35 04 06 00 86 08 B8 FD AC 90 97 0E F8 E3 CD B3 8B 06 [00:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 E1 FF 47 00 13 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 32 78 00 00 F4 03 04 00 6A A1 16 67 B6 04 01 00 00 C1 C3 0A 18 A9 B4 08 84 [00:50:46]CommunicateWithHost err = 0 [00:50:46]CheckOFDResponse [00:50:46]1017 (14) - 77093643461234 [00:50:46]1041 (16) - 0000000002094219 [00:50:46]1040 (4) - 30770 [00:50:46]1012 (4) - 21.10.2024 18:46 [00:50:46]1206 (1) - 0 [00:50:46]OFD Sender: Remove packet 30770 [00:50:46]ProducePacketName [00:50:46]name=ofd_packets/00030770 [00:50:46]NVStorageDeleteData [00:50:46]Write to MH i2c: 01 00 00 C1 6D 2E [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: 01 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: 01 07 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: 01 07 00 C1 6D 00 00 00 00 00 10 0D 52 [00:50:46]RasterBufferAndPrint [00:50:46]line [00:50:46]line [00:50:46]line [00:50:46]line [00:50:46]line [00:50:46]written 0, free lines is 3352 [00:50:46]MH_Cut [00:50:46]Write to MH i2c: D1 01 00 C8 6D 01 07 [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: D1 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: D1 01 00 [00:50:46]MH_I2C_Read... [00:50:46]Read from MH i2c: D1 01 00 C8 6D 00 06 [00:50:46]Write to MH i2c: 01 00 00 C9 6D 36 [00:50:46]Write i2c OK [00:50:46]MH_I2C_Read... [00:50:46]OFD Sender: No OFD packet to send [00:50:47]*** Cut start [00:50:47]*** Partial cut [00:50:47]*** CUTSNS_PIN = 1 [00:50:47]*** CUTSNS_PIN = 0 [00:50:47]*** Brake cut motor [00:50:47]Read from MH i2c: 01 [00:50:47]MH_I2C_Read... [00:50:47]*** Stop cut motor [00:50:47]*** Cut end [00:50:47]Read from MH i2c: 01 07 00 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: 01 07 00 C9 6D 00 00 00 00 00 FF 0F 4B [00:50:47]process_action close_receipt done [00:50:47]requested_data is exist [00:50:47]produce_requested_data [00:50:47]requested_item fm.sn is exist - process it [00:50:47]wFMCommunicate request_size=4 [00:50:47]MH_SAM_APDU [00:50:47]CAPDU: 80 11 00 00 [00:50:47]Write to MH i2c: E2 08 00 CA 6D 80 11 00 00 00 00 00 00 B1 [00:50:47]Write i2c OK [00:50:47]MH_I2C_Read... [00:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:47]Read from MH i2c: E2 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 17 00 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 17 00 CA 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 FF [00:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:50:47]wFMCommunicate OK [00:50:47]requested_item fd.num is exist - process it [00:50:47]SAM_PROTO_GetFieldsCounters [00:50:47]wFMCommunicate request_size=4 [00:50:47]MH_SAM_APDU [00:50:47]CAPDU: 80 13 00 00 [00:50:47]Write to MH i2c: E2 08 00 CB 6D 80 13 00 00 00 00 00 00 B4 [00:50:47]Write i2c OK [00:50:47]MH_I2C_Read... [00:50:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:47]Read from MH i2c: E2 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 62 00 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 62 00 CB 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 78 00 00 0E 04 04 00 74 00 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 [00:50:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 32 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:47]wFMCommunicate OK [00:50:47]SAM_PROTO_GetFieldsCounters done [00:50:47]requested_item shift.num is exist - process it [00:50:47]requested_item shift.opened is exist - process it [00:50:47]req_shift_opened [00:50:47]FM_GetShiftState [00:50:47]SAM_PROTO_GetShiftState [00:50:47]wFMCommunicate request_size=4 [00:50:47]MH_SAM_APDU [00:50:47]CAPDU: 80 13 01 00 [00:50:47]Write to MH i2c: E2 08 00 CC 6D 80 13 01 00 00 00 00 00 B6 [00:50:47]Write i2c OK [00:50:47]MH_I2C_Read... [00:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:47]Read from MH i2c: E2 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 0E 00 [00:50:47]MH_I2C_Read... [00:50:47]Read from MH i2c: E2 0E 00 CC 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 90 [00:50:47]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:50:47]wFMCommunicate OK [00:50:47]SAM_PROTO_GetShiftState done [00:50:47]FM_GetShiftState done [00:50:47]req_shift_opened done [00:50:47]requested_item shift.open_date is exist - process it [00:50:47]req_shift_open_date [00:50:47]req_shift_open_date done [00:50:47]produce_requested_data done [00:50:47]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30770,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:50:47]process_action_free close_receipt [00:50:47]json_value_free [00:50:47]json_value_free done [00:50:47]process_json_proto returns [00:50:47]Send response to host [00:50:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30770,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:50:47]free response buf [00:50:47]execute_script done [00:50:47]execute_script returns [00:50:47]free content buf [00:50:47]Sock 7.Close socket [00:50:47]Sock 7.Thread stoped [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:35]accept exits with 9 [00:51:35]New connection [00:51:35]New thread 3067346276 created [00:51:35]Thread 3067489636 joined [00:51:35]Waiting for new connection... [00:51:35] Sock 9.Parse request [00:51:35]Sock 9.Check first char [00:51:35]Sock 9.First char is OK [00:51:35]request: POST /json_proto HTTP/1.0 [00:51:35]Method: POST [00:51:35]URL: /json_proto [00:51:35]Method is POST - this is cgi request [00:51:35]url: /json_proto [00:51:35]query_string will be loaded in cgi processing [00:51:35]execute_cgi json_proto POST (null) [00:51:35]execute_cgi path=json_proto method=POST [00:51:35]POST find Content-Length [00:51:35]Host: 172.17.51.3:8080 [00:51:35]Content-Length: 677 [00:51:35]Content-Type: application/json [00:51:35] [00:51:35]POST finish read [00:51:35]Found Content-Length = 677 [00:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:35]execute_script... [00:51:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:35]POST & json_proto [00:51:35]process_json_proto [00:51:35]json parsed OK: [00:51:35]protocol is kg_v1.0 [00:51:35]action value=close_receipt [00:51:35]process_action close_receipt [00:51:35]cmd_close_receipt [00:51:35]MH_GetDate [00:51:35]Write to MH i2c: F0 00 00 CD 6D 29 [00:51:35]Write i2c OK [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: F0 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: F0 09 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: F0 09 00 CD 6D 00 1F F7 16 67 04 C1 95 66 85 [00:51:35]GetLastDocTimeStamp 1729558251 [00:51:35]current date 1729558303 [00:51:35]FM_GetShiftState [00:51:35]SAM_PROTO_GetShiftState [00:51:35]wFMCommunicate request_size=4 [00:51:35]MH_SAM_APDU [00:51:35]CAPDU: 80 13 01 00 [00:51:35]Write to MH i2c: E2 08 00 CE 6D 80 13 01 00 00 00 00 00 B8 [00:51:35]Write i2c OK [00:51:35]MH_I2C_Read... [00:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:35]Read from MH i2c: E2 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 0E 00 [00:51:35]MH_I2C_Read... [00:51:35]Read from MH i2c: E2 0E 00 CE 6D 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 92 [00:51:35]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:51:35]wFMCommunicate OK [00:51:35]SAM_PROTO_GetShiftState done [00:51:35]FM_GetShiftState done [00:51:35]opened in 1729557342 [00:51:35]opened+sec_in_day 1729643742 [00:51:35]quantity*price = 40006 [00:51:35]sum+1 = 40007 [00:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 4 22.10.2024 00:51 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30771 ФПД: 209198991505021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005143&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30771&fm=209198991505021&tin=02508201610067®Number=0000000000186857&sum=40000 [00:51:36]StoreToDocumentArchive [00:51:36]shift 116 fd 30771 [00:51:36]save to /storage/0116/doc_00030771 [00:51:36]save last doc name /storage/0116/doc_00030771 to /storage/kkm_last_doc_name [00:51:36]save OK [00:51:36]Clear old archive folders... [00:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:36]tlvbuf is 01F3C1D0 [00:51:36]SAM_PROTO_ClearQueue [00:51:36]wFMCommunicate request_size=4 [00:51:36]MH_SAM_APDU [00:51:36]CAPDU: 80 09 00 00 [00:51:36]Write to MH i2c: E2 08 00 DB 6D 80 09 00 00 00 00 00 00 BA [00:51:36]Write i2c OK [00:51:36]MH_I2C_Read... [00:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:36]Read from MH i2c: E2 [00:51:36]MH_I2C_Read... [00:51:36]Read from MH i2c: E2 03 00 [00:51:36]MH_I2C_Read... [00:51:36]Read from MH i2c: E2 03 00 DB 6D 00 90 00 BC [00:51:36]RAPDU: 90 00 [00:51:36]wFMCommunicate OK [00:51:36]SAM_PROTO_ClearQueue done [00:51:36]KKMCreateOFDPacket [00:51:36]OFDProtocolAddRootSTLVToBuf [00:51:36]FM_MakeSignedData [00:51:36]FM_MakeSignedData [00:51:36]SAM_PROTO_SignData [00:51:36]wFMCommunicate request_size=4 [00:51:36]MH_SAM_APDU [00:51:36]CAPDU: 80 0D 01 02 [00:51:36]Write to MH i2c: E2 08 00 DC 6D 80 0D 01 02 00 00 00 00 C2 [00:51:36]Write i2c OK [00:51:36]MH_I2C_Read... [00:51:36]OFD Sender: No OFD packet to send [00:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:36]Read from MH i2c: E2 [00:51:36]MH_I2C_Read... [00:51:36]Read from MH i2c: E2 03 00 [00:51:36]MH_I2C_Read... [00:51:36]Read from MH i2c: E2 03 00 DC 6D 00 90 00 BD [00:51:36]RAPDU: 90 00 [00:51:36]wFMCommunicate OK [00:51:36]wFMCommunicate request_size=255 [00:51:36]MH_SAM_APDU [00:51:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1F F7 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 78 00 00 35 04 06 00 BE [00:51:36]Write to MH i2c: E2 02 01 DD 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1F F7 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 78 00 00 35 04 06 00 BE 00 00 96 [00:51:36]Write i2c OK [00:51:36]MH_I2C_Read... [00:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:37]Read from MH i2c: E2 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 03 00 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 03 00 DD 6D 00 90 00 BE [00:51:37]RAPDU: 90 00 [00:51:37]wFMCommunicate OK [00:51:37]wFMCommunicate request_size=10 [00:51:37]MH_SAM_APDU [00:51:37]CAPDU: 80 0D 02 02 05 43 EF 93 76 7D [00:51:37]Write to MH i2c: E2 0D 00 DE 6D 80 0D 02 02 05 00 43 EF 93 76 7D 00 00 87 [00:51:37]Write i2c OK [00:51:37]MH_I2C_Read... [00:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:37]Read from MH i2c: E2 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 03 00 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 03 00 DE 6D 00 90 00 BF [00:51:37]RAPDU: 90 00 [00:51:37]wFMCommunicate OK [00:51:37]wFMCommunicate request_size=4 [00:51:37]MH_SAM_APDU [00:51:37]CAPDU: 80 0D 03 02 [00:51:37]Write to MH i2c: E2 08 00 DF 6D 80 0D 03 02 00 00 00 00 C7 [00:51:37]Write i2c OK [00:51:37]MH_I2C_Read... [00:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:37]Read from MH i2c: E2 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 0B 00 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 0B 00 DF 6D 00 8A C5 18 4D E2 9F DB D6 90 00 AE [00:51:37]RAPDU: 8A C5 18 4D E2 9F DB D6 90 00 [00:51:37]wFMCommunicate OK [00:51:37]SAM_PROTO_SignData done [00:51:37]FM_MakeSignedData done [00:51:37]CreateOFDProtocolMessage [00:51:37]wFMCommunicate request_size=4 [00:51:37]MH_SAM_APDU [00:51:37]CAPDU: 80 11 00 00 [00:51:37]Write to MH i2c: E2 08 00 E0 6D 80 11 00 00 00 00 00 00 C7 [00:51:37]Write i2c OK [00:51:37]MH_I2C_Read... [00:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:37]Read from MH i2c: E2 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 17 00 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: E2 17 00 E0 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 15 [00:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:51:37]wFMCommunicate OK [00:51:37]CreateOFDProtocolMessage done [00:51:37]OFDSenderStorePacket 30771 [00:51:37]StoreOFDPacket docnum=30771 [00:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 CC 07 01 BA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1F F7 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 78 00 00 35 04 06 00 BE 43 EF 93 76 7D 8A C5 18 4D E2 9F DB D6 [00:51:37]CheckFolder [00:51:37]dirname=/storage/ofd_packets [00:51:37]CheckFolder done [00:51:37]ProducePacketName [00:51:37]name=ofd_packets/00030771 [00:51:37]NVStorageSaveData ofd_packets/00030771 [00:51:37]File name is /storage/ofd_packets/00030771 [00:51:37]Write 301 bytes [00:51:37]NVStorageSaveData done [00:51:37]OFDSenderStorePacket done [00:51:37]KKMCreateOFDPacket done [00:51:37]NVStorageSaveData kkm_last_timestamp [00:51:37]File name is /storage/kkm_last_timestamp [00:51:37]Write 4 bytes [00:51:37]NVStorageSaveData done [00:51:37]ExternCall_PrintAddStr [00:51:37]wPrintStart [00:51:37]Write to MH i2c: 01 00 00 E1 6D 4E [00:51:37]Write i2c OK [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: 01 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: 01 07 00 [00:51:37]MH_I2C_Read... [00:51:37]Read from MH i2c: 01 07 00 E1 6D 00 00 00 00 00 FF 0F 63 [00:51:37]RasterBufferAndPrint [00:51:37]line Счет N : (1)343188 [00:51:37]line ИНН: 02508201610067 [00:51:37]line Контрольно-Кассовый Чек [00:51:37]line ПРОДАЖА [00:51:37]line ТРК (МРК, ГНК) : 43 [00:51:37]line Товар: 2710124130 [00:51:37]line Аи-92-К-2 [00:51:37]line 5.980 * 66.90 [00:51:37]line = 400.06 [00:51:37]line НДС 12% НСП 1% [00:51:37]line > о реализуемом товаре [00:51:37]line ОКРУГЛЕНИЕ: -0.06 [00:51:37]line ИТОГО: 400.00 [00:51:37]line Внесено: 400.00 [00:51:37]line СДАЧА: 0.00 [00:51:37]line НСП 1% : 3.54 [00:51:37]line НДС 12% : 42.48 [00:51:37]line Наличными: 400.00 [00:51:37]line Безнал.: 0.00 [00:51:37]line Место: АЗС № 78 "Партнер Нефть" [00:51:37]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [00:51:37]line СНО: Общий режим [00:51:37]line Чек 4 22.10.2024 00:51 [00:51:37]line Смена: 116 ФФД: 1.0 [00:51:37]line ЗНМ: 0300000137 [00:51:37]line РНМ: 0000000000186857 [00:51:37]line Версия ККМ: v1.0 [00:51:37]line ФМ: 0000000002094219 [00:51:37]line ФД: 30771 [00:51:37]line ФПД: 209198991505021 [00:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005143&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30771&fm=209198991505021&tin=02508201610067®Number=0000000000186857&sum=40000 [00:51:37]OFD Sender: Processing packet 30771 [packets to send 10, broken 9] [00:51:37]ProducePacketName [00:51:37]name=ofd_packets/00030771 [00:51:37]OFD Sender: To server: pG, [00:51:37]CommunicateWithHost lk.salyk.kg:30040 [00:51:37]ConnectInit lk.salyk.kg [00:51:37]written 0, free lines is 4095 [00:51:37]Connected sock=10 [00:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 17 CC 07 01 BA 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 1F F7 16 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 78 00 00 35 04 06 00 BE 43 EF 93 76 7D 8A C5 18 4D E2 9F DB D6 [00:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 BB 1D 47 00 55 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 33 78 00 00 F4 03 04 00 9E A1 16 67 B6 04 01 00 00 76 5C 30 DC AE 37 F1 3A [00:51:37]CommunicateWithHost err = 0 [00:51:37]CheckOFDResponse [00:51:37]1017 (14) - 77093643461234 [00:51:37]1041 (16) - 0000000002094219 [00:51:37]1040 (4) - 30771 [00:51:37]1012 (4) - 21.10.2024 18:46 [00:51:37]1206 (1) - 0 [00:51:37]OFD Sender: Remove packet 30771 [00:51:37]ProducePacketName [00:51:37]name=ofd_packets/00030771 [00:51:37]NVStorageDeleteData [00:51:38]Write to MH i2c: 01 00 00 0C 6E 7A [00:51:38]Write i2c OK [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: 01 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: 01 07 00 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: 01 07 00 0C 6E 00 00 00 00 00 FB 0C 88 [00:51:38]RasterBufferAndPrint [00:51:38]line [00:51:38]line [00:51:38]line [00:51:38]line [00:51:38]line [00:51:38]written 0, free lines is 3332 [00:51:38]MH_Cut [00:51:38]Write to MH i2c: D1 01 00 13 6E 01 53 [00:51:38]Write i2c OK [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: D1 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: D1 01 00 [00:51:38]MH_I2C_Read... [00:51:38]Read from MH i2c: D1 01 00 13 6E 00 52 [00:51:38]Write to MH i2c: 01 00 00 14 6E 82 [00:51:38]Write i2c OK [00:51:38]MH_I2C_Read... [00:51:38]OFD Sender: No OFD packet to send [00:51:38]*** Cut start [00:51:38]*** Partial cut [00:51:38]*** CUTSNS_PIN = 1 [00:51:38]*** CUTSNS_PIN = 0 [00:51:39]*** Brake cut motor [00:51:39]Read from MH i2c: 01 [00:51:39]MH_I2C_Read... [00:51:39]*** Stop cut motor [00:51:39]*** Cut end [00:51:39]Read from MH i2c: 01 07 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: 01 07 00 14 6E 00 00 00 00 00 FF 0F 97 [00:51:39]process_action close_receipt done [00:51:39]requested_data is exist [00:51:39]produce_requested_data [00:51:39]requested_item fm.sn is exist - process it [00:51:39]wFMCommunicate request_size=4 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 11 00 00 [00:51:39]Write to MH i2c: E2 08 00 15 6E 80 11 00 00 00 00 00 00 FD [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:39]Read from MH i2c: E2 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 17 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 17 00 15 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 4B [00:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [00:51:39]wFMCommunicate OK [00:51:39]requested_item fd.num is exist - process it [00:51:39]SAM_PROTO_GetFieldsCounters [00:51:39]wFMCommunicate request_size=4 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 13 00 00 [00:51:39]Write to MH i2c: E2 08 00 16 6E 80 13 00 00 00 00 00 00 00 [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:39]Read from MH i2c: E2 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 62 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 62 00 16 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 78 00 00 0E 04 04 00 74 00 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 51 [00:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 33 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:39]wFMCommunicate OK [00:51:39]SAM_PROTO_GetFieldsCounters done [00:51:39]requested_item shift.num is exist - process it [00:51:39]requested_item shift.opened is exist - process it [00:51:39]req_shift_opened [00:51:39]FM_GetShiftState [00:51:39]SAM_PROTO_GetShiftState [00:51:39]wFMCommunicate request_size=4 [00:51:39]MH_SAM_APDU [00:51:39]CAPDU: 80 13 01 00 [00:51:39]Write to MH i2c: E2 08 00 17 6E 80 13 01 00 00 00 00 00 02 [00:51:39]Write i2c OK [00:51:39]MH_I2C_Read... [00:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:39]Read from MH i2c: E2 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 0E 00 [00:51:39]MH_I2C_Read... [00:51:39]Read from MH i2c: E2 0E 00 17 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DC [00:51:39]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [00:51:39]wFMCommunicate OK [00:51:39]SAM_PROTO_GetShiftState done [00:51:39]FM_GetShiftState done [00:51:39]req_shift_opened done [00:51:39]requested_item shift.open_date is exist - process it [00:51:39]req_shift_open_date [00:51:39]req_shift_open_date done [00:51:39]produce_requested_data done [00:51:39]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30771,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [00:51:39]process_action_free close_receipt [00:51:39]json_value_free [00:51:39]json_value_free done [00:51:39]process_json_proto returns [00:51:39]Send response to host [00:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30771,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [00:51:39]free response buf [00:51:39]execute_script done [00:51:39]execute_script returns [00:51:39]free content buf [00:51:39]Sock 9.Close socket [00:51:39]Sock 9.Thread stoped [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [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: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:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [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: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: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: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]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: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 [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02: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:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [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]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: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:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [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: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: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: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:45]accept exits with 7 [02:16:45]New connection [02:16:45]New thread 3067489636 created [02:16:45]Thread 3067346276 joined [02:16:45]Waiting for new connection... [02:16:45] Sock 7.Parse request [02:16:45]Sock 7.Check first char [02:16:45]Sock 7.First char is OK [02:16:45]request: POST /json_proto HTTP/1.0 [02:16:45]Method: POST [02:16:45]URL: /json_proto [02:16:45]Method is POST - this is cgi request [02:16:45]url: /json_proto [02:16:45]query_string will be loaded in cgi processing [02:16:45]execute_cgi json_proto POST (null) [02:16:45]execute_cgi path=json_proto method=POST [02:16:45]POST find Content-Length [02:16:45]Host: 172.17.51.3:8080 [02:16:45]Content-Length: 843 [02:16:45]Content-Type: application/json [02:16:45] [02:16:45]POST finish read [02:16:45]Found Content-Length = 843 [02:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:45]execute_script... [02:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:16:45]POST & json_proto [02:16:45]process_json_proto [02:16:45]json parsed OK: [02:16:45]protocol is kg_v1.0 [02:16:45]action value=close_receipt [02:16:45]process_action close_receipt [02:16:45]cmd_close_receipt [02:16:45]MH_GetDate [02:16:45]Write to MH i2c: F0 00 00 18 6E 75 [02:16:45]Write i2c OK [02:16:45]MH_I2C_Read... [02:16:45]Read from MH i2c: F0 [02:16:45]MH_I2C_Read... [02:16:45]Read from MH i2c: F0 09 00 [02:16:45]MH_I2C_Read... [02:16:45]Read from MH i2c: F0 09 00 18 6E 00 15 0B 17 67 04 C1 95 66 DC [02:16:45]GetLastDocTimeStamp 1729558303 [02:16:45]current date 1729563413 [02:16:45]FM_GetShiftState [02:16:45]SAM_PROTO_GetShiftState [02:16:45]wFMCommunicate request_size=4 [02:16:45]MH_SAM_APDU [02:16:45]CAPDU: 80 13 01 00 [02:16:45]Write to MH i2c: E2 08 00 19 6E 80 13 01 00 00 00 00 00 04 [02:16:45]Write i2c OK [02:16:45]MH_I2C_Read... [02:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:45]Read from MH i2c: E2 [02:16:45]MH_I2C_Read... [02:16:45]Read from MH i2c: E2 0E 00 [02:16:45]MH_I2C_Read... [02:16:45]Read from MH i2c: E2 0E 00 19 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 DE [02:16:45]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [02:16:45]wFMCommunicate OK [02:16:45]SAM_PROTO_GetShiftState done [02:16:45]FM_GetShiftState done [02:16:45]opened in 1729557342 [02:16:45]opened+sec_in_day 1729643742 [02:16:45]quantity*price = 100015 [02:16:45]sum+1 = 100017 [02:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 5 22.10.2024 02:16 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 Платежная система: АКБ Кыргызстан ФМ: 0000000002094219 ФД: 30772 ФПД: 275814730250800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30772&fm=275814730250800&tin=02508201610067®Number=0000000000186857&sum=100016 [02:16:46]StoreToDocumentArchive [02:16:46]shift 116 fd 30772 [02:16:46]save to /storage/0116/doc_00030772 [02:16:46]save last doc name /storage/0116/doc_00030772 to /storage/kkm_last_doc_name [02:16:46]save OK [02:16:46]Clear old archive folders... [02:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:16:46]tlvbuf is 01F3C940 [02:16:46]SAM_PROTO_ClearQueue [02:16:46]wFMCommunicate request_size=4 [02:16:46]MH_SAM_APDU [02:16:46]CAPDU: 80 09 00 00 [02:16:46]Write to MH i2c: E2 08 00 26 6E 80 09 00 00 00 00 00 00 06 [02:16:46]Write i2c OK [02:16:46]MH_I2C_Read... [02:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:16:46]Read from MH i2c: E2 [02:16:46]MH_I2C_Read... [02:16:46]Read from MH i2c: E2 03 00 [02:16:46]MH_I2C_Read... [02:16:46]Read from MH i2c: E2 03 00 26 6E 00 90 00 08 [02:16:46]RAPDU: 90 00 [02:16:46]wFMCommunicate OK [02:16:46]SAM_PROTO_ClearQueue done [02:16:46]KKMCreateOFDPacket [02:16:46]OFDProtocolAddRootSTLVToBuf [02:16:46]FM_MakeSignedData [02:16:46]FM_MakeSignedData [02:16:46]SAM_PROTO_SignData [02:16:46]wFMCommunicate request_size=4 [02:16:46]MH_SAM_APDU [02:16:46]CAPDU: 80 0D 01 02 [02:16:46]Write to MH i2c: E2 08 00 27 6E 80 0D 01 02 00 00 00 00 0E [02:16:46]Write i2c OK [02:16:46]MH_I2C_Read... [02:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:16:46]Read from MH i2c: E2 [02:16:46]MH_I2C_Read... [02:16:46]Read from MH i2c: E2 03 00 [02:16:46]MH_I2C_Read... [02:16:46]Read from MH i2c: E2 03 00 27 6E 00 90 00 09 [02:16:46]RAPDU: 90 00 [02:16:46]wFMCommunicate OK [02:16:46]wFMCommunicate request_size=255 [02:16:46]MH_SAM_APDU [02:16:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 0B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 78 00 00 35 04 06 00 FA [02:16:46]Write to MH i2c: E2 02 01 28 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 0B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 78 00 00 35 04 06 00 FA 00 00 76 [02:16:46]Write i2c OK [02:16:46]MH_I2C_Read... [02:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:47]Read from MH i2c: E2 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 03 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 03 00 28 6E 00 90 00 0A [02:16:47]RAPDU: 90 00 [02:16:47]wFMCommunicate OK [02:16:47]wFMCommunicate request_size=10 [02:16:47]MH_SAM_APDU [02:16:47]CAPDU: 80 0D 02 02 05 DA 1F 05 3A 30 [02:16:47]Write to MH i2c: E2 0D 00 29 6E 80 0D 02 02 05 00 DA 1F 05 3A 30 00 00 83 [02:16:47]Write i2c OK [02:16:47]MH_I2C_Read... [02:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:16:47]Read from MH i2c: E2 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 03 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 03 00 29 6E 00 90 00 0B [02:16:47]RAPDU: 90 00 [02:16:47]wFMCommunicate OK [02:16:47]wFMCommunicate request_size=4 [02:16:47]MH_SAM_APDU [02:16:47]CAPDU: 80 0D 03 02 [02:16:47]Write to MH i2c: E2 08 00 2A 6E 80 0D 03 02 00 00 00 00 13 [02:16:47]Write i2c OK [02:16:47]MH_I2C_Read... [02:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:16:47]Read from MH i2c: E2 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 0B 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 0B 00 2A 6E 00 C0 62 46 86 4B 6A 4B 98 90 00 9A [02:16:47]RAPDU: C0 62 46 86 4B 6A 4B 98 90 00 [02:16:47]wFMCommunicate OK [02:16:47]SAM_PROTO_SignData done [02:16:47]FM_MakeSignedData done [02:16:47]CreateOFDProtocolMessage [02:16:47]wFMCommunicate request_size=4 [02:16:47]MH_SAM_APDU [02:16:47]CAPDU: 80 11 00 00 [02:16:47]Write to MH i2c: E2 08 00 2B 6E 80 11 00 00 00 00 00 00 13 [02:16:47]Write i2c OK [02:16:47]MH_I2C_Read... [02:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:47]Read from MH i2c: E2 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 17 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: E2 17 00 2B 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 61 [02:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:16:47]wFMCommunicate OK [02:16:47]CreateOFDProtocolMessage done [02:16:47]OFDSenderStorePacket 30772 [02:16:47]StoreOFDPacket docnum=30772 [02:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 D8 07 01 6B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 0B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 78 00 00 35 04 06 00 FA DA 1F 05 3A 30 C0 62 46 86 4B 6A 4B 98 [02:16:47]CheckFolder [02:16:47]dirname=/storage/ofd_packets [02:16:47]CheckFolder done [02:16:47]ProducePacketName [02:16:47]name=ofd_packets/00030772 [02:16:47]NVStorageSaveData ofd_packets/00030772 [02:16:47]File name is /storage/ofd_packets/00030772 [02:16:47]Write 301 bytes [02:16:47]NVStorageSaveData done [02:16:47]OFDSenderStorePacket done [02:16:47]KKMCreateOFDPacket done [02:16:47]NVStorageSaveData kkm_last_timestamp [02:16:47]File name is /storage/kkm_last_timestamp [02:16:47]Write 4 bytes [02:16:47]NVStorageSaveData done [02:16:47]ExternCall_PrintAddStr [02:16:47]wPrintStart [02:16:47]Write to MH i2c: 01 00 00 2C 6E 9A [02:16:47]Write i2c OK [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 07 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 07 00 2C 6E 00 00 00 00 00 FF 0F AF [02:16:47]RasterBufferAndPrint [02:16:47]line Счет N : (1)343189 [02:16:47]line ИНН: 02508201610067 [02:16:47]line Контрольно-Кассовый Чек [02:16:47]line ПРОДАЖА [02:16:47]line ТРК (МРК, ГНК) : 43 [02:16:47]line Товар: 2710124130 [02:16:47]line Аи-92-К-2 [02:16:47]line 14.950 * 66.90 [02:16:47]line = 1000.16 [02:16:47]line НДС 12% НСП 1% [02:16:47]line > о реализуемом товаре [02:16:47]line ИТОГО: 1000.16 [02:16:47]line НСП 1% : 8.85 [02:16:47]line НДС 12% : 106.21 [02:16:47]line Наличными: 0.00 [02:16:47]line Безнал.: 1000.16 [02:16:47]line Место: АЗС № 78 "Партнер Нефть" [02:16:47]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [02:16:47]line СНО: Общий режим [02:16:47]line Чек 5 22.10.2024 02:16 [02:16:47]line Смена: 116 ФФД: 1.0 [02:16:47]line ЗНМ: 0300000137 [02:16:47]line РНМ: 0000000000186857 [02:16:47]line Версия ККМ: v1.0 [02:16:47]line Платежная система: АКБ Кыргызстан [02:16:47]line ФМ: 0000000002094219 [02:16:47]line ФД: 30772 [02:16:47]line ФПД: 275814730250800 [02:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021653&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30772&fm=275814730250800&tin=02508201610067®Number=0000000000186857&sum=100016 [02:16:47]OFD Sender: Processing packet 30772 [packets to send 10, broken 9] [02:16:47]ProducePacketName [02:16:47]name=ofd_packets/00030772 [02:16:47]OFD Sender: To server: pG, [02:16:47]CommunicateWithHost lk.salyk.kg:30040 [02:16:47]ConnectInit lk.salyk.kg [02:16:47]written 0, free lines is 4095 [02:16:47]Connected sock=10 [02:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 D1 D8 07 01 6B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 0B 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 34 78 00 00 35 04 06 00 FA DA 1F 05 3A 30 C0 62 46 86 4B 6A 4B 98 [02:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 78 C0 47 00 75 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 32 30 39 34 32 31 39 10 04 04 00 34 78 00 00 F4 03 04 00 94 B5 16 67 B6 04 01 00 00 D0 47 04 1C A6 D7 D7 6F [02:16:47]CommunicateWithHost err = 0 [02:16:47]CheckOFDResponse [02:16:47]1017 (14) - 77093643461234 [02:16:47]1041 (16) - 0000000002094219 [02:16:47]1040 (4) - 30772 [02:16:47]1012 (4) - 21.10.2024 20:12 [02:16:47]1206 (1) - 0 [02:16:47]OFD Sender: Remove packet 30772 [02:16:47]ProducePacketName [02:16:47]name=ofd_packets/00030772 [02:16:47]NVStorageDeleteData [02:16:47]Write to MH i2c: 01 00 00 56 6E C4 [02:16:47]Write i2c OK [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 07 00 [02:16:47]MH_I2C_Read... [02:16:47]Read from MH i2c: 01 07 00 56 6E 00 00 00 00 00 0B 0D E3 [02:16:47]RasterBufferAndPrint [02:16:47]line [02:16:47]line [02:16:47]line [02:16:47]line [02:16:47]line [02:16:47]written 0, free lines is 3348 [02:16:48]MH_Cut [02:16:48]Write to MH i2c: D1 01 00 5D 6E 01 9D [02:16:48]Write i2c OK [02:16:48]MH_I2C_Read... [02:16:48]Read from MH i2c: D1 [02:16:48]MH_I2C_Read... [02:16:48]Read from MH i2c: D1 01 00 [02:16:48]MH_I2C_Read... [02:16:48]Read from MH i2c: D1 01 00 5D 6E 00 9C [02:16:48]Write to MH i2c: 01 00 00 5E 6E CC [02:16:48]Write i2c OK [02:16:48]MH_I2C_Read... [02:16:48]OFD Sender: No OFD packet to send [02:16:48]*** Cut start [02:16:48]*** Partial cut [02:16:48]*** CUTSNS_PIN = 1 [02:16:48]*** CUTSNS_PIN = 0 [02:16:48]*** Brake cut motor [02:16:49]Read from MH i2c: 01 [02:16:49]MH_I2C_Read... [02:16:49]*** Stop cut motor [02:16:49]*** Cut end [02:16:49]Read from MH i2c: 01 07 00 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: 01 07 00 5E 6E 00 00 00 00 00 FF 0F E1 [02:16:49]process_action close_receipt done [02:16:49]requested_data is exist [02:16:49]produce_requested_data [02:16:49]requested_item fm.sn is exist - process it [02:16:49]wFMCommunicate request_size=4 [02:16:49]MH_SAM_APDU [02:16:49]CAPDU: 80 11 00 00 [02:16:49]Write to MH i2c: E2 08 00 5F 6E 80 11 00 00 00 00 00 00 47 [02:16:49]Write i2c OK [02:16:49]MH_I2C_Read... [02:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:49]Read from MH i2c: E2 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 17 00 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 17 00 5F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 95 [02:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:16:49]wFMCommunicate OK [02:16:49]requested_item fd.num is exist - process it [02:16:49]SAM_PROTO_GetFieldsCounters [02:16:49]wFMCommunicate request_size=4 [02:16:49]MH_SAM_APDU [02:16:49]CAPDU: 80 13 00 00 [02:16:49]Write to MH i2c: E2 08 00 60 6E 80 13 00 00 00 00 00 00 4A [02:16:49]Write i2c OK [02:16:49]MH_I2C_Read... [02:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:49]Read from MH i2c: E2 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 62 00 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 62 00 60 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 78 00 00 0E 04 04 00 74 00 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 9F [02:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 34 78 00 00 0E 04 04 00 74 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:16:49]wFMCommunicate OK [02:16:49]SAM_PROTO_GetFieldsCounters done [02:16:49]requested_item shift.num is exist - process it [02:16:49]requested_item shift.opened is exist - process it [02:16:49]req_shift_opened [02:16:49]FM_GetShiftState [02:16:49]SAM_PROTO_GetShiftState [02:16:49]wFMCommunicate request_size=4 [02:16:49]MH_SAM_APDU [02:16:49]CAPDU: 80 13 01 00 [02:16:49]Write to MH i2c: E2 08 00 61 6E 80 13 01 00 00 00 00 00 4C [02:16:49]Write i2c OK [02:16:49]MH_I2C_Read... [02:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:49]Read from MH i2c: E2 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 0E 00 [02:16:49]MH_I2C_Read... [02:16:49]Read from MH i2c: E2 0E 00 61 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 26 [02:16:49]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [02:16:49]wFMCommunicate OK [02:16:49]SAM_PROTO_GetShiftState done [02:16:49]FM_GetShiftState done [02:16:49]req_shift_opened done [02:16:49]requested_item shift.open_date is exist - process it [02:16:49]req_shift_open_date [02:16:49]req_shift_open_date done [02:16:49]produce_requested_data done [02:16:49]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30772,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [02:16:49]process_action_free close_receipt [02:16:49]json_value_free [02:16:49]json_value_free done [02:16:49]process_json_proto returns [02:16:49]Send response to host [02:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30772,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [02:16:49]free response buf [02:16:49]execute_script done [02:16:49]execute_script returns [02:16:49]free content buf [02:16:49]Sock 7.Close socket [02:16:49]Sock 7.Thread stoped [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24: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: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]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:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]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: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:13]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:12]accept exits with 9 [02:35:12]New connection [02:35:12]New thread 3067346276 created [02:35:12]Thread 3067489636 joined [02:35:12]Waiting for new connection... [02:35:12] Sock 9.Parse request [02:35:12]Sock 9.Check first char [02:35:12]Sock 9.First char is OK [02:35:12]request: POST /json_proto HTTP/1.0 [02:35:12]Method: POST [02:35:12]URL: /json_proto [02:35:12]Method is POST - this is cgi request [02:35:12]url: /json_proto [02:35:12]query_string will be loaded in cgi processing [02:35:12]execute_cgi json_proto POST (null) [02:35:12]execute_cgi path=json_proto method=POST [02:35:12]POST find Content-Length [02:35:12]Host: 172.17.51.3:8080 [02:35:12]Content-Length: 677 [02:35:12]Content-Type: application/json [02:35:12] [02:35:12]POST finish read [02:35:12]Found Content-Length = 677 [02:35:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:12]execute_script... [02:35:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)343190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:12]POST & json_proto [02:35:12]process_json_proto [02:35:12]json parsed OK: [02:35:12]protocol is kg_v1.0 [02:35:12]action value=close_receipt [02:35:12]process_action close_receipt [02:35:12]cmd_close_receipt [02:35:12]MH_GetDate [02:35:12]Write to MH i2c: F0 00 00 62 6E BF [02:35:12]Write i2c OK [02:35:12]MH_I2C_Read... [02:35:12]Read from MH i2c: F0 [02:35:12]MH_I2C_Read... [02:35:12]Read from MH i2c: F0 09 00 [02:35:12]MH_I2C_Read... [02:35:12]Read from MH i2c: F0 09 00 62 6E 00 68 0F 17 67 04 C1 95 66 7D [02:35:12]GetLastDocTimeStamp 1729563413 [02:35:12]current date 1729564520 [02:35:12]FM_GetShiftState [02:35:12]SAM_PROTO_GetShiftState [02:35:12]wFMCommunicate request_size=4 [02:35:12]MH_SAM_APDU [02:35:12]CAPDU: 80 13 01 00 [02:35:12]Write to MH i2c: E2 08 00 63 6E 80 13 01 00 00 00 00 00 4E [02:35:12]Write i2c OK [02:35:12]MH_I2C_Read... [02:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:12]Read from MH i2c: E2 [02:35:12]MH_I2C_Read... [02:35:12]Read from MH i2c: E2 0E 00 [02:35:12]MH_I2C_Read... [02:35:12]Read from MH i2c: E2 0E 00 63 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 28 [02:35:12]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [02:35:12]wFMCommunicate OK [02:35:12]SAM_PROTO_GetShiftState done [02:35:12]FM_GetShiftState done [02:35:12]opened in 1729557342 [02:35:12]opened+sec_in_day 1729643742 [02:35:12]quantity*price = 30038 [02:35:12]sum+1 = 30039 [02:35:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 78 "Партнер Нефть" Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 СНО: Общий режим Чек 6 22.10.2024 02:35 Смена: 116 ФФД: 1.0 ЗНМ: 0300000137 РНМ: 0000000000186857 Версия ККМ: v1.0 ФМ: 0000000002094219 ФД: 30773 ФПД: 84047586377576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023520&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30773&fm=84047586377576&tin=02508201610067®Number=0000000000186857&sum=30000 [02:35:13]StoreToDocumentArchive [02:35:13]shift 116 fd 30773 [02:35:13]save to /storage/0116/doc_00030773 [02:35:13]save last doc name /storage/0116/doc_00030773 to /storage/kkm_last_doc_name [02:35:13]save OK [02:35:13]Clear old archive folders... [02:35:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:35:13]tlvbuf is 0201E670 [02:35:13]SAM_PROTO_ClearQueue [02:35:13]wFMCommunicate request_size=4 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 09 00 00 [02:35:13]Write to MH i2c: E2 08 00 70 6E 80 09 00 00 00 00 00 00 50 [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:13]Read from MH i2c: E2 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 70 6E 00 90 00 52 [02:35:13]RAPDU: 90 00 [02:35:13]wFMCommunicate OK [02:35:13]SAM_PROTO_ClearQueue done [02:35:13]KKMCreateOFDPacket [02:35:13]OFDProtocolAddRootSTLVToBuf [02:35:13]FM_MakeSignedData [02:35:13]FM_MakeSignedData [02:35:13]SAM_PROTO_SignData [02:35:13]wFMCommunicate request_size=4 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 0D 01 02 [02:35:13]Write to MH i2c: E2 08 00 71 6E 80 0D 01 02 00 00 00 00 58 [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:13]Read from MH i2c: E2 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 71 6E 00 90 00 53 [02:35:13]RAPDU: 90 00 [02:35:13]wFMCommunicate OK [02:35:13]wFMCommunicate request_size=255 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 68 0F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 78 00 00 35 04 06 00 4C [02:35:13]Write to MH i2c: E2 02 01 72 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 68 0F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 78 00 00 35 04 06 00 4C 00 00 45 [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:13]Read from MH i2c: E2 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 72 6E 00 90 00 54 [02:35:13]RAPDU: 90 00 [02:35:13]wFMCommunicate OK [02:35:13]wFMCommunicate request_size=10 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 0D 02 02 05 70 DA 87 BF 68 [02:35:13]Write to MH i2c: E2 0D 00 73 6E 80 0D 02 02 05 00 70 DA 87 BF 68 00 00 5D [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:13]Read from MH i2c: E2 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 03 00 73 6E 00 90 00 55 [02:35:13]RAPDU: 90 00 [02:35:13]wFMCommunicate OK [02:35:13]wFMCommunicate request_size=4 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 0D 03 02 [02:35:13]Write to MH i2c: E2 08 00 74 6E 80 0D 03 02 00 00 00 00 5D [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:13]Read from MH i2c: E2 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 0B 00 [02:35:13]MH_I2C_Read... [02:35:13]Read from MH i2c: E2 0B 00 74 6E 00 14 23 49 61 CF 3B 42 7B 90 00 06 [02:35:13]RAPDU: 14 23 49 61 CF 3B 42 7B 90 00 [02:35:13]wFMCommunicate OK [02:35:13]SAM_PROTO_SignData done [02:35:13]FM_MakeSignedData done [02:35:13]CreateOFDProtocolMessage [02:35:13]wFMCommunicate request_size=4 [02:35:13]MH_SAM_APDU [02:35:13]CAPDU: 80 11 00 00 [02:35:13]Write to MH i2c: E2 08 00 75 6E 80 11 00 00 00 00 00 00 5D [02:35:13]Write i2c OK [02:35:13]MH_I2C_Read... [02:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:14]Read from MH i2c: E2 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: E2 17 00 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: E2 17 00 75 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 AB [02:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:35:14]wFMCommunicate OK [02:35:14]CreateOFDProtocolMessage done [02:35:14]OFDSenderStorePacket 30773 [02:35:14]StoreOFDPacket docnum=30773 [02:35:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 DC 07 01 31 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 68 0F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 78 00 00 35 04 06 00 4C 70 DA 87 BF 68 14 23 49 61 CF 3B 42 7B [02:35:14]CheckFolder [02:35:14]dirname=/storage/ofd_packets [02:35:14]CheckFolder done [02:35:14]ProducePacketName [02:35:14]name=ofd_packets/00030773 [02:35:14]NVStorageSaveData ofd_packets/00030773 [02:35:14]File name is /storage/ofd_packets/00030773 [02:35:14]Write 301 bytes [02:35:14]NVStorageSaveData done [02:35:14]OFDSenderStorePacket done [02:35:14]KKMCreateOFDPacket done [02:35:14]NVStorageSaveData kkm_last_timestamp [02:35:14]File name is /storage/kkm_last_timestamp [02:35:14]Write 4 bytes [02:35:14]NVStorageSaveData done [02:35:14]ExternCall_PrintAddStr [02:35:14]wPrintStart [02:35:14]Write to MH i2c: 01 00 00 76 6E E4 [02:35:14]Write i2c OK [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 07 00 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 07 00 76 6E 00 00 00 00 00 FF 0F F9 [02:35:14]RasterBufferAndPrint [02:35:14]line Счет N : (1)343190 [02:35:14]line ИНН: 02508201610067 [02:35:14]line Контрольно-Кассовый Чек [02:35:14]line ПРОДАЖА [02:35:14]line ТРК (МРК, ГНК) : 63 [02:35:14]line Товар: 2710124130 [02:35:14]line Аи-92-К-2 [02:35:14]line 4.490 * 66.90 [02:35:14]line = 300.38 [02:35:14]line НДС 12% НСП 1% [02:35:14]line > о реализуемом товаре [02:35:14]line ОКРУГЛЕНИЕ: -0.38 [02:35:14]line ИТОГО: 300.00 [02:35:14]line Внесено: 300.00 [02:35:14]line СДАЧА: 0.00 [02:35:14]line НСП 1% : 2.66 [02:35:14]line НДС 12% : 31.90 [02:35:14]line Наличными: 300.00 [02:35:14]line Безнал.: 0.00 [02:35:14]line Место: АЗС № 78 "Партнер Нефть" [02:35:14]line Адрес: 720001, с. Момбеков, трасса Бишкек-Ош, 41.041690, 72.427615 [02:35:14]line СНО: Общий режим [02:35:14]line Чек 6 22.10.2024 02:35 [02:35:14]line Смена: 116 ФФД: 1.0 [02:35:14]line ЗНМ: 0300000137 [02:35:14]line РНМ: 0000000000186857 [02:35:14]line Версия ККМ: v1.0 [02:35:14]line ФМ: 0000000002094219 [02:35:14]line ФД: 30773 [02:35:14]line ФПД: 84047586377576 [02:35:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T023520&type=1&operation_type=1&fn_number=0000000002094219&fd_number=30773&fm=84047586377576&tin=02508201610067®Number=0000000000186857&sum=30000 [02:35:14]OFD Sender: Processing packet 30773 [packets to send 10, broken 9] [02:35:14]ProducePacketName [02:35:14]name=ofd_packets/00030773 [02:35:14]OFD Sender: To server: pG, [02:35:14]CommunicateWithHost lk.salyk.kg:30040 [02:35:14]ConnectInit lk.salyk.kg [02:35:14]written 0, free lines is 4095 [02:35:14]Connected sock=10 [02:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0F 01 00 00 E5 DC 07 01 31 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 68 0F 17 67 0E 04 04 00 74 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 10 04 04 00 35 78 00 00 35 04 06 00 4C 70 DA 87 BF 68 14 23 49 61 CF 3B 42 7B [02:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 4F 00 00 00 09 D2 47 00 DF 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 32 30 39 34 32 31 39 10 04 04 00 35 78 00 00 F4 03 04 00 E7 B9 16 67 B6 04 01 00 00 9E B8 22 5D BE DB 64 5F [02:35:14]CommunicateWithHost err = 0 [02:35:14]CheckOFDResponse [02:35:14]1017 (14) - 77093643461234 [02:35:14]1041 (16) - 0000000002094219 [02:35:14]1040 (4) - 30773 [02:35:14]1012 (4) - 21.10.2024 20:30 [02:35:14]1206 (1) - 0 [02:35:14]OFD Sender: Remove packet 30773 [02:35:14]ProducePacketName [02:35:14]name=ofd_packets/00030773 [02:35:14]NVStorageDeleteData [02:35:14]Write to MH i2c: 01 00 00 A1 6E 0F [02:35:14]Write i2c OK [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 07 00 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: 01 07 00 A1 6E 00 00 00 00 00 F0 0C 12 [02:35:14]RasterBufferAndPrint [02:35:14]line [02:35:14]line [02:35:14]line [02:35:14]line [02:35:14]line [02:35:14]written 0, free lines is 3322 [02:35:14]MH_Cut [02:35:14]Write to MH i2c: D1 01 00 A8 6E 01 E8 [02:35:14]Write i2c OK [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: D1 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: D1 01 00 [02:35:14]MH_I2C_Read... [02:35:14]Read from MH i2c: D1 01 00 A8 6E 00 E7 [02:35:14]Write to MH i2c: 01 00 00 A9 6E 17 [02:35:14]Write i2c OK [02:35:14]MH_I2C_Read... [02:35:15]OFD Sender: No OFD packet to send [02:35:15]*** Cut start [02:35:15]*** Partial cut [02:35:15]*** CUTSNS_PIN = 1 [02:35:15]*** CUTSNS_PIN = 0 [02:35:15]*** Brake cut motor [02:35:16]Read from MH i2c: 01 [02:35:16]MH_I2C_Read... [02:35:16]*** Stop cut motor [02:35:16]*** Cut end [02:35:16]Read from MH i2c: 01 07 00 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: 01 07 00 A9 6E 00 00 00 00 00 FF 0F 2C [02:35:16]process_action close_receipt done [02:35:16]requested_data is exist [02:35:16]produce_requested_data [02:35:16]requested_item fm.sn is exist - process it [02:35:16]wFMCommunicate request_size=4 [02:35:16]MH_SAM_APDU [02:35:16]CAPDU: 80 11 00 00 [02:35:16]Write to MH i2c: E2 08 00 AA 6E 80 11 00 00 00 00 00 00 92 [02:35:16]Write i2c OK [02:35:16]MH_I2C_Read... [02:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:16]Read from MH i2c: E2 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 17 00 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 17 00 AA 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 E0 [02:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 90 00 [02:35:16]wFMCommunicate OK [02:35:16]requested_item fd.num is exist - process it [02:35:16]SAM_PROTO_GetFieldsCounters [02:35:16]wFMCommunicate request_size=4 [02:35:16]MH_SAM_APDU [02:35:16]CAPDU: 80 13 00 00 [02:35:16]Write to MH i2c: E2 08 00 AB 6E 80 13 00 00 00 00 00 00 95 [02:35:16]Write i2c OK [02:35:16]MH_I2C_Read... [02:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:16]Read from MH i2c: E2 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 62 00 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 62 00 AB 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 78 00 00 0E 04 04 00 74 00 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 EE [02:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 30 39 34 32 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 38 36 38 35 37 10 04 04 00 35 78 00 00 0E 04 04 00 74 00 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 [02:35:16]wFMCommunicate OK [02:35:16]SAM_PROTO_GetFieldsCounters done [02:35:16]requested_item shift.num is exist - process it [02:35:16]requested_item shift.opened is exist - process it [02:35:16]req_shift_opened [02:35:16]FM_GetShiftState [02:35:16]SAM_PROTO_GetShiftState [02:35:16]wFMCommunicate request_size=4 [02:35:16]MH_SAM_APDU [02:35:16]CAPDU: 80 13 01 00 [02:35:16]Write to MH i2c: E2 08 00 AC 6E 80 13 01 00 00 00 00 00 97 [02:35:16]Write i2c OK [02:35:16]MH_I2C_Read... [02:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:16]Read from MH i2c: E2 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 0E 00 [02:35:16]MH_I2C_Read... [02:35:16]Read from MH i2c: E2 0E 00 AC 6E 00 09 00 01 5E F3 16 67 00 00 00 00 90 00 71 [02:35:16]RAPDU: 09 00 01 5E F3 16 67 00 00 00 00 90 00 [02:35:16]wFMCommunicate OK [02:35:16]SAM_PROTO_GetShiftState done [02:35:16]FM_GetShiftState done [02:35:16]req_shift_opened done [02:35:16]requested_item shift.open_date is exist - process it [02:35:16]req_shift_open_date [02:35:16]req_shift_open_date done [02:35:16]produce_requested_data done [02:35:16]produce_requested_data return {"fm.sn":"0000000002094219","fd.num":30773,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342} [02:35:16]process_action_free close_receipt [02:35:16]json_value_free [02:35:16]json_value_free done [02:35:16]process_json_proto returns [02:35:16]Send response to host [02:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002094219","fd.num":30773,"shift.num":116,"shift.opened":1,"shift.open_date":1729557342}}} [02:35:16]free response buf [02:35:16]execute_script done [02:35:16]execute_script returns [02:35:16]free content buf [02:35:16]Sock 9.Close socket [02:35:16]Sock 9.Thread stoped [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53: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:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send